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.

+ * + *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ * + * + * + * *

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`. * @@ -275,6 +295,26 @@ * * * + *

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.

+ * + *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ * + * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -1765,6 +1805,174 @@ public final UnaryCallable deletePipelineJo return stub.deletePipelineJobCallable(); } + // 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. + * + *

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 names = new ArrayList<>();
+   *   BatchDeletePipelineJobsResponse response =
+   *       pipelineServiceClient.batchDeletePipelineJobsAsync(parent, names).get();
+   * }
+   * }
+ * + * @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 OperationFuture + batchDeletePipelineJobsAsync(LocationName parent, List names) { + BatchDeletePipelineJobsRequest request = + BatchDeletePipelineJobsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchDeletePipelineJobsAsync(request); + } + + // 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. + * + *

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 names = new ArrayList<>();
+   *   BatchDeletePipelineJobsResponse response =
+   *       pipelineServiceClient.batchDeletePipelineJobsAsync(parent, names).get();
+   * }
+   * }
+ * + * @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 OperationFuture + batchDeletePipelineJobsAsync(String parent, List names) { + BatchDeletePipelineJobsRequest request = + BatchDeletePipelineJobsRequest.newBuilder().setParent(parent).addAllNames(names).build(); + return batchDeletePipelineJobsAsync(request); + } + + // 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. + * + *

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())
+   *           .build();
+   *   BatchDeletePipelineJobsResponse response =
+   *       pipelineServiceClient.batchDeletePipelineJobsAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + batchDeletePipelineJobsAsync(BatchDeletePipelineJobsRequest request) { + return batchDeletePipelineJobsOperationCallable().futureCall(request); + } + + // 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. + * + *

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())
+   *           .build();
+   *   OperationFuture future =
+   *       pipelineServiceClient.batchDeletePipelineJobsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchDeletePipelineJobsResponse response = future.get();
+   * }
+   * }
+ */ + 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. + * + *

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())
+   *           .build();
+   *   ApiFuture future =
+   *       pipelineServiceClient.batchDeletePipelineJobsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchDeletePipelineJobsCallable() { + return stub.batchDeletePipelineJobsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Cancels a PipelineJob. Starts asynchronous cancellation on the PipelineJob. The server makes a @@ -1910,6 +2118,190 @@ public final UnaryCallable cancelPipelineJobCal return stub.cancelPipelineJobCallable(); } + // 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. + * + *

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 names = new ArrayList<>();
+   *   BatchCancelPipelineJobsResponse response =
+   *       pipelineServiceClient.batchCancelPipelineJobsAsync(parent, names).get();
+   * }
+   * }
+ * + * @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, List names) { + BatchCancelPipelineJobsRequest request = + BatchCancelPipelineJobsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchCancelPipelineJobsAsync(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. + * + *

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 names = new ArrayList<>();
+   *   BatchCancelPipelineJobsResponse response =
+   *       pipelineServiceClient.batchCancelPipelineJobsAsync(parent, names).get();
+   * }
+   * }
+ * + * @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, List names) { + BatchCancelPipelineJobsRequest request = + BatchCancelPipelineJobsRequest.newBuilder().setParent(parent).addAllNames(names).build(); + return batchCancelPipelineJobsAsync(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. + * + *

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())
+   *           .build();
+   *   BatchCancelPipelineJobsResponse response =
+   *       pipelineServiceClient.batchCancelPipelineJobsAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final 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. + * + *

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())
+   *           .build();
+   *   OperationFuture
+   *       future =
+   *           pipelineServiceClient.batchCancelPipelineJobsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   BatchCancelPipelineJobsResponse response = future.get();
+   * }
+   * }
+ */ + 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. + * + *

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())
+   *           .build();
+   *   ApiFuture future =
+   *       pipelineServiceClient.batchCancelPipelineJobsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchCancelPipelineJobsCallable() { + return stub.batchCancelPipelineJobsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java index c3df407c6099..6499e46d16cc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceSettings.java @@ -154,11 +154,41 @@ public UnaryCallSettings deletePipelineJobS return ((PipelineServiceStubSettings) getStubSettings()).deletePipelineJobOperationSettings(); } + /** Returns the object with the settings used for calls to batchDeletePipelineJobs. */ + public UnaryCallSettings + batchDeletePipelineJobsSettings() { + return ((PipelineServiceStubSettings) getStubSettings()).batchDeletePipelineJobsSettings(); + } + + /** Returns the object with the settings used for calls to batchDeletePipelineJobs. */ + public OperationCallSettings< + BatchDeletePipelineJobsRequest, BatchDeletePipelineJobsResponse, DeleteOperationMetadata> + batchDeletePipelineJobsOperationSettings() { + return ((PipelineServiceStubSettings) getStubSettings()) + .batchDeletePipelineJobsOperationSettings(); + } + /** Returns the object with the settings used for calls to cancelPipelineJob. */ public UnaryCallSettings cancelPipelineJobSettings() { return ((PipelineServiceStubSettings) getStubSettings()).cancelPipelineJobSettings(); } + /** Returns the object with the settings used for calls to batchCancelPipelineJobs. */ + public UnaryCallSettings + batchCancelPipelineJobsSettings() { + return ((PipelineServiceStubSettings) getStubSettings()).batchCancelPipelineJobsSettings(); + } + + /** Returns the object with the settings used for calls to batchCancelPipelineJobs. */ + public OperationCallSettings< + BatchCancelPipelineJobsRequest, + BatchCancelPipelineJobsResponse, + BatchCancelPipelineJobsOperationMetadata> + batchCancelPipelineJobsOperationSettings() { + return ((PipelineServiceStubSettings) getStubSettings()) + .batchCancelPipelineJobsOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -352,11 +382,41 @@ public UnaryCallSettings.Builder getPipeline return getStubSettingsBuilder().deletePipelineJobOperationSettings(); } + /** Returns the builder for the settings used for calls to batchDeletePipelineJobs. */ + public UnaryCallSettings.Builder + batchDeletePipelineJobsSettings() { + return getStubSettingsBuilder().batchDeletePipelineJobsSettings(); + } + + /** Returns the builder for the settings used for calls to batchDeletePipelineJobs. */ + public OperationCallSettings.Builder< + BatchDeletePipelineJobsRequest, + BatchDeletePipelineJobsResponse, + DeleteOperationMetadata> + batchDeletePipelineJobsOperationSettings() { + return getStubSettingsBuilder().batchDeletePipelineJobsOperationSettings(); + } + /** Returns the builder for the settings used for calls to cancelPipelineJob. */ public UnaryCallSettings.Builder cancelPipelineJobSettings() { return getStubSettingsBuilder().cancelPipelineJobSettings(); } + /** Returns the builder for the settings used for calls to batchCancelPipelineJobs. */ + public UnaryCallSettings.Builder + batchCancelPipelineJobsSettings() { + return getStubSettingsBuilder().batchCancelPipelineJobsSettings(); + } + + /** Returns the builder for the settings used for calls to batchCancelPipelineJobs. */ + public OperationCallSettings.Builder< + BatchCancelPipelineJobsRequest, + BatchCancelPipelineJobsResponse, + BatchCancelPipelineJobsOperationMetadata> + batchCancelPipelineJobsOperationSettings() { + return getStubSettingsBuilder().batchCancelPipelineJobsOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json index a6077d9717a8..475843524b75 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/gapic_metadata.json @@ -869,6 +869,33 @@ } } }, + "ModelGardenService": { + "clients": { + "grpc": { + "libraryClient": "ModelGardenServiceClient", + "rpcs": { + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetPublisherModel": { + "methods": ["getPublisherModel", "getPublisherModel", "getPublisherModel", "getPublisherModelCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + } + } + } + } + }, "ModelService": { "clients": { "grpc": { @@ -947,38 +974,17 @@ } } }, - "ModelGardenService": { - "clients": { - "grpc": { - "libraryClient": "ModelGardenServiceClient", - "rpcs": { - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicyCallable"] - }, - "GetLocation": { - "methods": ["getLocation", "getLocationCallable"] - }, - "GetPublisherModel": { - "methods": ["getPublisherModel", "getPublisherModel", "getPublisherModel", "getPublisherModelCallable"] - }, - "ListLocations": { - "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicyCallable"] - }, - "TestIamPermissions": { - "methods": ["testIamPermissions", "testIamPermissionsCallable"] - } - } - } - } - }, "PipelineService": { "clients": { "grpc": { "libraryClient": "PipelineServiceClient", "rpcs": { + "BatchCancelPipelineJobs": { + "methods": ["batchCancelPipelineJobsAsync", "batchCancelPipelineJobsAsync", "batchCancelPipelineJobsAsync", "batchCancelPipelineJobsOperationCallable", "batchCancelPipelineJobsCallable"] + }, + "BatchDeletePipelineJobs": { + "methods": ["batchDeletePipelineJobsAsync", "batchDeletePipelineJobsAsync", "batchDeletePipelineJobsAsync", "batchDeletePipelineJobsOperationCallable", "batchDeletePipelineJobsCallable"] + }, "CancelPipelineJob": { "methods": ["cancelPipelineJob", "cancelPipelineJob", "cancelPipelineJob", "cancelPipelineJobCallable"] }, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java index 649cd948a3a6..4389dfcf6825 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/package-info.java @@ -318,11 +318,11 @@ * } * } * - *

======================= 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 + batchDeletePipelineJobsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.PipelineService/BatchDeletePipelineJobs") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchDeletePipelineJobsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor cancelPipelineJobMethodDescriptor = MethodDescriptor.newBuilder() @@ -174,6 +190,17 @@ public class GrpcPipelineServiceStub extends PipelineServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + batchCancelPipelineJobsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.PipelineService/BatchCancelPipelineJobs") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchCancelPipelineJobsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -242,7 +269,19 @@ public class GrpcPipelineServiceStub extends PipelineServiceStub { private final UnaryCallable deletePipelineJobCallable; private final OperationCallable deletePipelineJobOperationCallable; + private final UnaryCallable + batchDeletePipelineJobsCallable; + private final OperationCallable< + BatchDeletePipelineJobsRequest, BatchDeletePipelineJobsResponse, DeleteOperationMetadata> + batchDeletePipelineJobsOperationCallable; private final UnaryCallable cancelPipelineJobCallable; + private final UnaryCallable + batchCancelPipelineJobsCallable; + private final OperationCallable< + BatchCancelPipelineJobsRequest, + BatchCancelPipelineJobsResponse, + BatchCancelPipelineJobsOperationMetadata> + batchCancelPipelineJobsOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -392,6 +431,17 @@ protected GrpcPipelineServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + batchDeletePipelineJobsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchDeletePipelineJobsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings cancelPipelineJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelPipelineJobMethodDescriptor) @@ -402,6 +452,17 @@ protected GrpcPipelineServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + batchCancelPipelineJobsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchCancelPipelineJobsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -515,11 +576,33 @@ protected GrpcPipelineServiceStub( settings.deletePipelineJobOperationSettings(), clientContext, operationsStub); + this.batchDeletePipelineJobsCallable = + callableFactory.createUnaryCallable( + batchDeletePipelineJobsTransportSettings, + settings.batchDeletePipelineJobsSettings(), + clientContext); + this.batchDeletePipelineJobsOperationCallable = + callableFactory.createOperationCallable( + batchDeletePipelineJobsTransportSettings, + settings.batchDeletePipelineJobsOperationSettings(), + clientContext, + operationsStub); this.cancelPipelineJobCallable = callableFactory.createUnaryCallable( cancelPipelineJobTransportSettings, settings.cancelPipelineJobSettings(), clientContext); + this.batchCancelPipelineJobsCallable = + callableFactory.createUnaryCallable( + batchCancelPipelineJobsTransportSettings, + settings.batchCancelPipelineJobsSettings(), + clientContext); + this.batchCancelPipelineJobsOperationCallable = + callableFactory.createOperationCallable( + batchCancelPipelineJobsTransportSettings, + settings.batchCancelPipelineJobsOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -621,11 +704,39 @@ public UnaryCallable deletePipelineJobCalla return deletePipelineJobOperationCallable; } + @Override + public UnaryCallable + batchDeletePipelineJobsCallable() { + return batchDeletePipelineJobsCallable; + } + + @Override + public OperationCallable< + BatchDeletePipelineJobsRequest, BatchDeletePipelineJobsResponse, DeleteOperationMetadata> + batchDeletePipelineJobsOperationCallable() { + return batchDeletePipelineJobsOperationCallable; + } + @Override public UnaryCallable cancelPipelineJobCallable() { return cancelPipelineJobCallable; } + @Override + public UnaryCallable + batchCancelPipelineJobsCallable() { + return batchCancelPipelineJobsCallable; + } + + @Override + public OperationCallable< + BatchCancelPipelineJobsRequest, + BatchCancelPipelineJobsResponse, + BatchCancelPipelineJobsOperationMetadata> + batchCancelPipelineJobsOperationCallable() { + return batchCancelPipelineJobsOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java index f3d02c89b9e5..bf13b91711ca 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStub.java @@ -23,6 +23,11 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; 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; @@ -127,10 +132,36 @@ public UnaryCallable deletePipelineJobCalla throw new UnsupportedOperationException("Not implemented: deletePipelineJobCallable()"); } + public OperationCallable< + BatchDeletePipelineJobsRequest, BatchDeletePipelineJobsResponse, DeleteOperationMetadata> + batchDeletePipelineJobsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchDeletePipelineJobsOperationCallable()"); + } + + public UnaryCallable + batchDeletePipelineJobsCallable() { + throw new UnsupportedOperationException("Not implemented: batchDeletePipelineJobsCallable()"); + } + public UnaryCallable cancelPipelineJobCallable() { throw new UnsupportedOperationException("Not implemented: cancelPipelineJobCallable()"); } + public OperationCallable< + BatchCancelPipelineJobsRequest, + BatchCancelPipelineJobsResponse, + BatchCancelPipelineJobsOperationMetadata> + batchCancelPipelineJobsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchCancelPipelineJobsOperationCallable()"); + } + + public UnaryCallable + batchCancelPipelineJobsCallable() { + throw new UnsupportedOperationException("Not implemented: batchCancelPipelineJobsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java index f4bbbfff2e21..b57a61ea9903 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/PipelineServiceStubSettings.java @@ -45,6 +45,11 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; 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; @@ -146,7 +151,19 @@ public class PipelineServiceStubSettings extends StubSettings deletePipelineJobSettings; private final OperationCallSettings deletePipelineJobOperationSettings; + private final UnaryCallSettings + batchDeletePipelineJobsSettings; + private final OperationCallSettings< + BatchDeletePipelineJobsRequest, BatchDeletePipelineJobsResponse, DeleteOperationMetadata> + batchDeletePipelineJobsOperationSettings; private final UnaryCallSettings cancelPipelineJobSettings; + private final UnaryCallSettings + batchCancelPipelineJobsSettings; + private final OperationCallSettings< + BatchCancelPipelineJobsRequest, + BatchCancelPipelineJobsResponse, + BatchCancelPipelineJobsOperationMetadata> + batchCancelPipelineJobsOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -399,11 +416,39 @@ public UnaryCallSettings deletePipelineJobS return deletePipelineJobOperationSettings; } + /** Returns the object with the settings used for calls to batchDeletePipelineJobs. */ + public UnaryCallSettings + batchDeletePipelineJobsSettings() { + return batchDeletePipelineJobsSettings; + } + + /** Returns the object with the settings used for calls to batchDeletePipelineJobs. */ + public OperationCallSettings< + BatchDeletePipelineJobsRequest, BatchDeletePipelineJobsResponse, DeleteOperationMetadata> + batchDeletePipelineJobsOperationSettings() { + return batchDeletePipelineJobsOperationSettings; + } + /** Returns the object with the settings used for calls to cancelPipelineJob. */ public UnaryCallSettings cancelPipelineJobSettings() { return cancelPipelineJobSettings; } + /** Returns the object with the settings used for calls to batchCancelPipelineJobs. */ + public UnaryCallSettings + batchCancelPipelineJobsSettings() { + return batchCancelPipelineJobsSettings; + } + + /** Returns the object with the settings used for calls to batchCancelPipelineJobs. */ + public OperationCallSettings< + BatchCancelPipelineJobsRequest, + BatchCancelPipelineJobsResponse, + BatchCancelPipelineJobsOperationMetadata> + batchCancelPipelineJobsOperationSettings() { + return batchCancelPipelineJobsOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -533,7 +578,13 @@ protected PipelineServiceStubSettings(Builder settingsBuilder) throws IOExceptio deletePipelineJobSettings = settingsBuilder.deletePipelineJobSettings().build(); deletePipelineJobOperationSettings = settingsBuilder.deletePipelineJobOperationSettings().build(); + batchDeletePipelineJobsSettings = settingsBuilder.batchDeletePipelineJobsSettings().build(); + batchDeletePipelineJobsOperationSettings = + settingsBuilder.batchDeletePipelineJobsOperationSettings().build(); cancelPipelineJobSettings = settingsBuilder.cancelPipelineJobSettings().build(); + batchCancelPipelineJobsSettings = settingsBuilder.batchCancelPipelineJobsSettings().build(); + batchCancelPipelineJobsOperationSettings = + settingsBuilder.batchCancelPipelineJobsOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -572,8 +623,22 @@ public static class Builder extends StubSettings.Builder deletePipelineJobOperationSettings; + private final UnaryCallSettings.Builder + batchDeletePipelineJobsSettings; + private final OperationCallSettings.Builder< + BatchDeletePipelineJobsRequest, + BatchDeletePipelineJobsResponse, + DeleteOperationMetadata> + batchDeletePipelineJobsOperationSettings; private final UnaryCallSettings.Builder cancelPipelineJobSettings; + private final UnaryCallSettings.Builder + batchCancelPipelineJobsSettings; + private final OperationCallSettings.Builder< + BatchCancelPipelineJobsRequest, + BatchCancelPipelineJobsResponse, + BatchCancelPipelineJobsOperationMetadata> + batchCancelPipelineJobsOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -621,7 +686,11 @@ protected Builder(ClientContext clientContext) { listPipelineJobsSettings = PagedCallSettings.newBuilder(LIST_PIPELINE_JOBS_PAGE_STR_FACT); deletePipelineJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deletePipelineJobOperationSettings = OperationCallSettings.newBuilder(); + batchDeletePipelineJobsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchDeletePipelineJobsOperationSettings = OperationCallSettings.newBuilder(); cancelPipelineJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchCancelPipelineJobsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchCancelPipelineJobsOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -639,7 +708,9 @@ protected Builder(ClientContext clientContext) { getPipelineJobSettings, listPipelineJobsSettings, deletePipelineJobSettings, + batchDeletePipelineJobsSettings, cancelPipelineJobSettings, + batchCancelPipelineJobsSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -663,7 +734,13 @@ protected Builder(PipelineServiceStubSettings settings) { listPipelineJobsSettings = settings.listPipelineJobsSettings.toBuilder(); deletePipelineJobSettings = settings.deletePipelineJobSettings.toBuilder(); deletePipelineJobOperationSettings = settings.deletePipelineJobOperationSettings.toBuilder(); + batchDeletePipelineJobsSettings = settings.batchDeletePipelineJobsSettings.toBuilder(); + batchDeletePipelineJobsOperationSettings = + settings.batchDeletePipelineJobsOperationSettings.toBuilder(); cancelPipelineJobSettings = settings.cancelPipelineJobSettings.toBuilder(); + batchCancelPipelineJobsSettings = settings.batchCancelPipelineJobsSettings.toBuilder(); + batchCancelPipelineJobsOperationSettings = + settings.batchCancelPipelineJobsOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -681,7 +758,9 @@ protected Builder(PipelineServiceStubSettings settings) { getPipelineJobSettings, listPipelineJobsSettings, deletePipelineJobSettings, + batchDeletePipelineJobsSettings, cancelPipelineJobSettings, + batchCancelPipelineJobsSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -747,11 +826,21 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .batchDeletePipelineJobsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .cancelPipelineJobSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .batchCancelPipelineJobsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -825,6 +914,57 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .batchDeletePipelineJobsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BatchDeletePipelineJobsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(DeleteOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .batchCancelPipelineJobsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BatchCancelPipelineJobsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + BatchCancelPipelineJobsOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -913,11 +1053,41 @@ public UnaryCallSettings.Builder getPipeline return deletePipelineJobOperationSettings; } + /** Returns the builder for the settings used for calls to batchDeletePipelineJobs. */ + public UnaryCallSettings.Builder + batchDeletePipelineJobsSettings() { + return batchDeletePipelineJobsSettings; + } + + /** Returns the builder for the settings used for calls to batchDeletePipelineJobs. */ + public OperationCallSettings.Builder< + BatchDeletePipelineJobsRequest, + BatchDeletePipelineJobsResponse, + DeleteOperationMetadata> + batchDeletePipelineJobsOperationSettings() { + return batchDeletePipelineJobsOperationSettings; + } + /** Returns the builder for the settings used for calls to cancelPipelineJob. */ public UnaryCallSettings.Builder cancelPipelineJobSettings() { return cancelPipelineJobSettings; } + /** Returns the builder for the settings used for calls to batchCancelPipelineJobs. */ + public UnaryCallSettings.Builder + batchCancelPipelineJobsSettings() { + return batchCancelPipelineJobsSettings; + } + + /** Returns the builder for the settings used for calls to batchCancelPipelineJobs. */ + public OperationCallSettings.Builder< + BatchCancelPipelineJobsRequest, + BatchCancelPipelineJobsResponse, + BatchCancelPipelineJobsOperationMetadata> + batchCancelPipelineJobsOperationSettings() { + return batchCancelPipelineJobsOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java index 4139936ba0ef..875d91177278 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClient.java @@ -1334,7 +1334,6 @@ public final PipelineJob createPipelineJob( * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPipelineJob(PipelineJob.newBuilder().build()) * .setPipelineJobId("pipelineJobId-1711315914") - * .setPreflightValidations(true) * .build(); * PipelineJob response = pipelineServiceClient.createPipelineJob(request); * } @@ -1365,7 +1364,6 @@ public final PipelineJob createPipelineJob(CreatePipelineJobRequest request) { * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPipelineJob(PipelineJob.newBuilder().build()) * .setPipelineJobId("pipelineJobId-1711315914") - * .setPreflightValidations(true) * .build(); * ApiFuture future = * pipelineServiceClient.createPipelineJobCallable().futureCall(request); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json index cde1c3099fc8..bb92d72695f8 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json @@ -233,6 +233,36 @@ } } }, + "FeatureOnlineStoreService": { + "clients": { + "grpc": { + "libraryClient": "FeatureOnlineStoreServiceClient", + "rpcs": { + "FetchFeatureValues": { + "methods": ["fetchFeatureValues", "fetchFeatureValues", "fetchFeatureValues", "fetchFeatureValuesCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "SearchNearestEntities": { + "methods": ["searchNearestEntities", "searchNearestEntitiesCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + } + } + } + } + }, "FeatureRegistryService": { "clients": { "grpc": { @@ -287,36 +317,6 @@ } } }, - "FeatureOnlineStoreService": { - "clients": { - "grpc": { - "libraryClient": "FeatureOnlineStoreServiceClient", - "rpcs": { - "FetchFeatureValues": { - "methods": ["fetchFeatureValues", "fetchFeatureValues", "fetchFeatureValues", "fetchFeatureValuesCallable"] - }, - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicyCallable"] - }, - "GetLocation": { - "methods": ["getLocation", "getLocationCallable"] - }, - "ListLocations": { - "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] - }, - "SearchNearestEntities": { - "methods": ["searchNearestEntities", "searchNearestEntitiesCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicyCallable"] - }, - "TestIamPermissions": { - "methods": ["testIamPermissions", "testIamPermissionsCallable"] - } - } - } - } - }, "FeaturestoreOnlineServingService": { "clients": { "grpc": { diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java index 0c6ecfb583eb..3633d26617ed 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java @@ -99,11 +99,11 @@ * } * } * - *

======================= 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 responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchDeletePipelineJobs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void cancelPipelineJob( CancelPipelineJobRequest request, StreamObserver responseObserver) { @@ -270,4 +291,25 @@ public void cancelPipelineJob( Exception.class.getName()))); } } + + @Override + public void batchCancelPipelineJobs( + BatchCancelPipelineJobsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BatchCancelPipelineJobs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java index 31eedd273cea..c8976db8bf03 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ModelServiceClientTest.java @@ -247,6 +247,7 @@ public void getModelTest() throws Exception { .setModelSourceInfo(ModelSourceInfo.newBuilder().build()) .setOriginalModelInfo(Model.OriginalModelInfo.newBuilder().build()) .setMetadataArtifact("metadataArtifact1018119713") + .setBaseModelSource(Model.BaseModelSource.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -317,6 +318,7 @@ public void getModelTest2() throws Exception { .setModelSourceInfo(ModelSourceInfo.newBuilder().build()) .setOriginalModelInfo(Model.OriginalModelInfo.newBuilder().build()) .setMetadataArtifact("metadataArtifact1018119713") + .setBaseModelSource(Model.BaseModelSource.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -563,6 +565,7 @@ public void updateModelTest() throws Exception { .setModelSourceInfo(ModelSourceInfo.newBuilder().build()) .setOriginalModelInfo(Model.OriginalModelInfo.newBuilder().build()) .setMetadataArtifact("metadataArtifact1018119713") + .setBaseModelSource(Model.BaseModelSource.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -896,6 +899,7 @@ public void mergeVersionAliasesTest() throws Exception { .setModelSourceInfo(ModelSourceInfo.newBuilder().build()) .setOriginalModelInfo(Model.OriginalModelInfo.newBuilder().build()) .setMetadataArtifact("metadataArtifact1018119713") + .setBaseModelSource(Model.BaseModelSource.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -969,6 +973,7 @@ public void mergeVersionAliasesTest2() throws Exception { .setModelSourceInfo(ModelSourceInfo.newBuilder().build()) .setOriginalModelInfo(Model.OriginalModelInfo.newBuilder().build()) .setMetadataArtifact("metadataArtifact1018119713") + .setBaseModelSource(Model.BaseModelSource.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java index 4d30ceb4ae41..d86d80209063 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/PipelineServiceClientTest.java @@ -1002,6 +1002,108 @@ public void deletePipelineJobExceptionTest2() throws Exception { } } + @Test + public void batchDeletePipelineJobsTest() throws Exception { + BatchDeletePipelineJobsResponse expectedResponse = + BatchDeletePipelineJobsResponse.newBuilder() + .addAllPipelineJobs(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchDeletePipelineJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockPipelineService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + List names = new ArrayList<>(); + + BatchDeletePipelineJobsResponse actualResponse = + client.batchDeletePipelineJobsAsync(parent, names).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPipelineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchDeletePipelineJobsRequest actualRequest = + ((BatchDeletePipelineJobsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(names, actualRequest.getNamesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchDeletePipelineJobsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPipelineService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + List names = new ArrayList<>(); + client.batchDeletePipelineJobsAsync(parent, names).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchDeletePipelineJobsTest2() throws Exception { + BatchDeletePipelineJobsResponse expectedResponse = + BatchDeletePipelineJobsResponse.newBuilder() + .addAllPipelineJobs(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchDeletePipelineJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockPipelineService.addResponse(resultOperation); + + String parent = "parent-995424086"; + List names = new ArrayList<>(); + + BatchDeletePipelineJobsResponse actualResponse = + client.batchDeletePipelineJobsAsync(parent, names).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPipelineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchDeletePipelineJobsRequest actualRequest = + ((BatchDeletePipelineJobsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(names, actualRequest.getNamesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchDeletePipelineJobsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPipelineService.addException(exception); + + try { + String parent = "parent-995424086"; + List names = new ArrayList<>(); + client.batchDeletePipelineJobsAsync(parent, names).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void cancelPipelineJobTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -1070,6 +1172,108 @@ public void cancelPipelineJobExceptionTest2() throws Exception { } } + @Test + public void batchCancelPipelineJobsTest() throws Exception { + BatchCancelPipelineJobsResponse expectedResponse = + BatchCancelPipelineJobsResponse.newBuilder() + .addAllPipelineJobs(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchCancelPipelineJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockPipelineService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + List names = new ArrayList<>(); + + BatchCancelPipelineJobsResponse actualResponse = + client.batchCancelPipelineJobsAsync(parent, names).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPipelineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchCancelPipelineJobsRequest actualRequest = + ((BatchCancelPipelineJobsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(names, actualRequest.getNamesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchCancelPipelineJobsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPipelineService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + List names = new ArrayList<>(); + client.batchCancelPipelineJobsAsync(parent, names).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void batchCancelPipelineJobsTest2() throws Exception { + BatchCancelPipelineJobsResponse expectedResponse = + BatchCancelPipelineJobsResponse.newBuilder() + .addAllPipelineJobs(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchCancelPipelineJobsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockPipelineService.addResponse(resultOperation); + + String parent = "parent-995424086"; + List names = new ArrayList<>(); + + BatchCancelPipelineJobsResponse actualResponse = + client.batchCancelPipelineJobsAsync(parent, names).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockPipelineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchCancelPipelineJobsRequest actualRequest = + ((BatchCancelPipelineJobsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(names, actualRequest.getNamesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchCancelPipelineJobsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockPipelineService.addException(exception); + + try { + String parent = "parent-995424086"; + List names = new ArrayList<>(); + client.batchCancelPipelineJobsAsync(parent, names).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java index 2ea9bb2ab4d5..ea477f614088 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/DatasetServiceClientTest.java @@ -756,6 +756,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() @@ -812,6 +814,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() @@ -956,6 +960,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); @@ -1002,6 +1008,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); @@ -1134,6 +1142,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() @@ -1189,6 +1199,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/v1beta1/FeatureOnlineStoreAdminServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClientTest.java index 6b1cd628df30..f2704b2b5304 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreAdminServiceClientTest.java @@ -1133,6 +1133,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); @@ -1181,6 +1182,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/v1beta1/ModelServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java index 98dd559fdd20..778f39323b13 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ModelServiceClientTest.java @@ -244,6 +244,7 @@ public void getModelTest() throws Exception { .setModelSourceInfo(ModelSourceInfo.newBuilder().build()) .setOriginalModelInfo(Model.OriginalModelInfo.newBuilder().build()) .setMetadataArtifact("metadataArtifact1018119713") + .setBaseModelSource(Model.BaseModelSource.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -311,6 +312,7 @@ public void getModelTest2() throws Exception { .setModelSourceInfo(ModelSourceInfo.newBuilder().build()) .setOriginalModelInfo(Model.OriginalModelInfo.newBuilder().build()) .setMetadataArtifact("metadataArtifact1018119713") + .setBaseModelSource(Model.BaseModelSource.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -554,6 +556,7 @@ public void updateModelTest() throws Exception { .setModelSourceInfo(ModelSourceInfo.newBuilder().build()) .setOriginalModelInfo(Model.OriginalModelInfo.newBuilder().build()) .setMetadataArtifact("metadataArtifact1018119713") + .setBaseModelSource(Model.BaseModelSource.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -884,6 +887,7 @@ public void mergeVersionAliasesTest() throws Exception { .setModelSourceInfo(ModelSourceInfo.newBuilder().build()) .setOriginalModelInfo(Model.OriginalModelInfo.newBuilder().build()) .setMetadataArtifact("metadataArtifact1018119713") + .setBaseModelSource(Model.BaseModelSource.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); @@ -954,6 +958,7 @@ public void mergeVersionAliasesTest2() throws Exception { .setModelSourceInfo(ModelSourceInfo.newBuilder().build()) .setOriginalModelInfo(Model.OriginalModelInfo.newBuilder().build()) .setMetadataArtifact("metadataArtifact1018119713") + .setBaseModelSource(Model.BaseModelSource.newBuilder().build()) .build(); mockModelService.addResponse(expectedResponse); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java index 94774aa1c494..070d45ee9b1e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceClientTest.java @@ -617,6 +617,7 @@ public void createPipelineJobTest() throws Exception { .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) .setScheduleName("scheduleName1161977282") + .setPreflightValidations(true) .build(); mockPipelineService.addResponse(expectedResponse); @@ -679,6 +680,7 @@ public void createPipelineJobTest2() throws Exception { .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) .setScheduleName("scheduleName1161977282") + .setPreflightValidations(true) .build(); mockPipelineService.addResponse(expectedResponse); @@ -741,6 +743,7 @@ public void getPipelineJobTest() throws Exception { .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) .setScheduleName("scheduleName1161977282") + .setPreflightValidations(true) .build(); mockPipelineService.addResponse(expectedResponse); @@ -797,6 +800,7 @@ public void getPipelineJobTest2() throws Exception { .setTemplateUri("templateUri1769633426") .setTemplateMetadata(PipelineTemplateMetadata.newBuilder().build()) .setScheduleName("scheduleName1161977282") + .setPreflightValidations(true) .build(); mockPipelineService.addResponse(expectedResponse); diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceGrpc.java index 573c91eaa50c..985868c70a8b 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PipelineServiceGrpc.java @@ -462,6 +462,56 @@ private PipelineServiceGrpc() {} return getDeletePipelineJobMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest, + com.google.longrunning.Operation> + getBatchDeletePipelineJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchDeletePipelineJobs", + requestType = com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest, + com.google.longrunning.Operation> + getBatchDeletePipelineJobsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest, + com.google.longrunning.Operation> + getBatchDeletePipelineJobsMethod; + if ((getBatchDeletePipelineJobsMethod = PipelineServiceGrpc.getBatchDeletePipelineJobsMethod) + == null) { + synchronized (PipelineServiceGrpc.class) { + if ((getBatchDeletePipelineJobsMethod = + PipelineServiceGrpc.getBatchDeletePipelineJobsMethod) + == null) { + PipelineServiceGrpc.getBatchDeletePipelineJobsMethod = + getBatchDeletePipelineJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchDeletePipelineJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new PipelineServiceMethodDescriptorSupplier("BatchDeletePipelineJobs")) + .build(); + } + } + } + return getBatchDeletePipelineJobsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.aiplatform.v1.CancelPipelineJobRequest, com.google.protobuf.Empty> getCancelPipelineJobMethod; @@ -505,6 +555,56 @@ private PipelineServiceGrpc() {} return getCancelPipelineJobMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest, + com.google.longrunning.Operation> + getBatchCancelPipelineJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchCancelPipelineJobs", + requestType = com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest, + com.google.longrunning.Operation> + getBatchCancelPipelineJobsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest, + com.google.longrunning.Operation> + getBatchCancelPipelineJobsMethod; + if ((getBatchCancelPipelineJobsMethod = PipelineServiceGrpc.getBatchCancelPipelineJobsMethod) + == null) { + synchronized (PipelineServiceGrpc.class) { + if ((getBatchCancelPipelineJobsMethod = + PipelineServiceGrpc.getBatchCancelPipelineJobsMethod) + == null) { + PipelineServiceGrpc.getBatchCancelPipelineJobsMethod = + getBatchCancelPipelineJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchCancelPipelineJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new PipelineServiceMethodDescriptorSupplier("BatchCancelPipelineJobs")) + .build(); + } + } + } + return getBatchCancelPipelineJobsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static PipelineServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -701,6 +801,22 @@ default void deletePipelineJob( getDeletePipelineJobMethod(), responseObserver); } + /** + * + * + *
+     * 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 responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchDeletePipelineJobsMethod(), responseObserver); + } + /** * * @@ -726,6 +842,26 @@ default void cancelPipelineJob( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCancelPipelineJobMethod(), responseObserver); } + + /** + * + * + *
+     * 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 responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchCancelPipelineJobsMethod(), responseObserver); + } } /** @@ -928,6 +1064,24 @@ public void deletePipelineJob( responseObserver); } + /** + * + * + *
+     * 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 responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchDeletePipelineJobsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -955,6 +1109,28 @@ public void cancelPipelineJob( request, responseObserver); } + + /** + * + * + *
+     * 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 responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchCancelPipelineJobsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1109,6 +1285,21 @@ public com.google.longrunning.Operation deletePipelineJob( getChannel(), 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.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 + batchDeletePipelineJobs( + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchDeletePipelineJobsMethod(), getCallOptions()), request); + } + /** * * @@ -1320,6 +1546,26 @@ protected PipelineServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(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.common.util.concurrent.ListenableFuture + batchCancelPipelineJobs( + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchCancelPipelineJobsMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_TRAINING_PIPELINE = 0; @@ -1331,7 +1577,9 @@ protected PipelineServiceFutureStub build( private static final int METHODID_GET_PIPELINE_JOB = 6; private static final int METHODID_LIST_PIPELINE_JOBS = 7; private static final int METHODID_DELETE_PIPELINE_JOB = 8; - private static final int METHODID_CANCEL_PIPELINE_JOB = 9; + private static final int METHODID_BATCH_DELETE_PIPELINE_JOBS = 9; + private static final int METHODID_CANCEL_PIPELINE_JOB = 10; + private static final int METHODID_BATCH_CANCEL_PIPELINE_JOBS = 11; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1402,11 +1650,21 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1.DeletePipelineJobRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_BATCH_DELETE_PIPELINE_JOBS: + serviceImpl.batchDeletePipelineJobs( + (com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_CANCEL_PIPELINE_JOB: serviceImpl.cancelPipelineJob( (com.google.cloud.aiplatform.v1.CancelPipelineJobRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_BATCH_CANCEL_PIPELINE_JOBS: + serviceImpl.batchCancelPipelineJobs( + (com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1485,12 +1743,26 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.aiplatform.v1.DeletePipelineJobRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_PIPELINE_JOB))) + .addMethod( + getBatchDeletePipelineJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest, + com.google.longrunning.Operation>( + service, METHODID_BATCH_DELETE_PIPELINE_JOBS))) .addMethod( getCancelPipelineJobMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.aiplatform.v1.CancelPipelineJobRequest, com.google.protobuf.Empty>(service, METHODID_CANCEL_PIPELINE_JOB))) + .addMethod( + getBatchCancelPipelineJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest, + com.google.longrunning.Operation>( + service, METHODID_BATCH_CANCEL_PIPELINE_JOBS))) .build(); } @@ -1551,7 +1823,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetPipelineJobMethod()) .addMethod(getListPipelineJobsMethod()) .addMethod(getDeletePipelineJobMethod()) + .addMethod(getBatchDeletePipelineJobsMethod()) .addMethod(getCancelPipelineJobMethod()) + .addMethod(getBatchCancelPipelineJobsMethod()) .build(); } } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java index 17a5aa52b4a5..3556b365b245 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AcceleratorType.java @@ -119,6 +119,16 @@ public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { * 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata) + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadataOrBuilder { + 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); + } + + // Construct using + // com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getGenericMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata build() { + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata buildPartial() { + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata result = + new com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.genericMetadata_ = + genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.BatchCancelPipelineJobsOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata + .getDefaultInstance()) return this; + if (other.hasGenericMetadata()) { + mergeGenericMetadata(other.getGenericMetadata()); + } + 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(getGenericMetadataFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + /** + * + * + *
+     * 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCancelPipelineJobsOperationMetadata 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.BatchCancelPipelineJobsOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..23391e947669 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsOperationMetadataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * 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; + +public interface BatchCancelPipelineJobsOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.BatchCancelPipelineJobsOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest) + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequestOrBuilder { + 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); + } + + // Construct using com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest build() { + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest buildPartial() { + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest result = + new com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @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.BatchCancelPipelineJobsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest other) { + if (other + == com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + 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 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. + */ + 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 values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + 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) = { ... } + * + * + * @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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCancelPipelineJobsRequest 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.BatchCancelPipelineJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsRequestOrBuilder.java new file mode 100644 index 000000000000..166fa2d4b0f6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * 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; + +public interface BatchCancelPipelineJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 getNamesList(); + /** + * + * + *
+   * 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_; + /** + * + * + *
+   * PipelineJobs cancelled.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + @java.lang.Override + public java.util.List getPipelineJobsList() { + return pipelineJobs_; + } + /** + * + * + *
+   * PipelineJobs cancelled.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + @java.lang.Override + public java.util.List + 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse) + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponseOrBuilder { + 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); + } + + // Construct using com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (pipelineJobsBuilder_ == null) { + pipelineJobs_ = java.util.Collections.emptyList(); + } else { + pipelineJobs_ = null; + pipelineJobsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchCancelPipelineJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse build() { + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse buildPartial() { + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse result = + new com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse result) { + if (pipelineJobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + pipelineJobs_ = java.util.Collections.unmodifiableList(pipelineJobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.pipelineJobs_ = pipelineJobs_; + } else { + result.pipelineJobs_ = pipelineJobsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse result) { + int from_bitField0_ = bitField0_; + } + + @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.BatchCancelPipelineJobsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse other) { + if (other + == com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse.getDefaultInstance()) + return this; + if (pipelineJobsBuilder_ == null) { + if (!other.pipelineJobs_.isEmpty()) { + if (pipelineJobs_.isEmpty()) { + pipelineJobs_ = other.pipelineJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePipelineJobsIsMutable(); + pipelineJobs_.addAll(other.pipelineJobs_); + } + onChanged(); + } + } else { + if (!other.pipelineJobs_.isEmpty()) { + if (pipelineJobsBuilder_.isEmpty()) { + pipelineJobsBuilder_.dispose(); + pipelineJobsBuilder_ = null; + pipelineJobs_ = other.pipelineJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + pipelineJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPipelineJobsFieldBuilder() + : null; + } else { + pipelineJobsBuilder_.addAllMessages(other.pipelineJobs_); + } + } + } + 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: + { + com.google.cloud.aiplatform.v1.PipelineJob m = + input.readMessage( + com.google.cloud.aiplatform.v1.PipelineJob.parser(), extensionRegistry); + if (pipelineJobsBuilder_ == null) { + ensurePipelineJobsIsMutable(); + pipelineJobs_.add(m); + } else { + pipelineJobsBuilder_.addMessage(m); + } + 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.util.List pipelineJobs_ = + java.util.Collections.emptyList(); + + private void ensurePipelineJobsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + pipelineJobs_ = + new java.util.ArrayList(pipelineJobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob, + com.google.cloud.aiplatform.v1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder> + pipelineJobsBuilder_; + + /** + * + * + *
+     * PipelineJobs cancelled.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public java.util.List getPipelineJobsList() { + if (pipelineJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pipelineJobs_); + } else { + return pipelineJobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 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 + 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 + getPipelineJobsBuilderList() { + return getPipelineJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob, + com.google.cloud.aiplatform.v1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder> + getPipelineJobsFieldBuilder() { + if (pipelineJobsBuilder_ == null) { + pipelineJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob, + com.google.cloud.aiplatform.v1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder>( + pipelineJobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + pipelineJobs_ = null; + } + return pipelineJobsBuilder_; + } + + @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.BatchCancelPipelineJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse) + private static final com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse(); + } + + public static com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCancelPipelineJobsResponse 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.BatchCancelPipelineJobsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsResponseOrBuilder.java new file mode 100644 index 000000000000..b378f8a48c0f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchCancelPipelineJobsResponseOrBuilder.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/pipeline_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.aiplatform.v1; + +public interface BatchCancelPipelineJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * PipelineJobs cancelled.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + java.util.List getPipelineJobsList(); + /** + * + * + *
+   * 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 + 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest) + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequestOrBuilder { + 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); + } + + // Construct using com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest build() { + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest buildPartial() { + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest result = + new com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @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.BatchDeletePipelineJobsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest other) { + if (other + == com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + 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 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. + */ + 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 values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + 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) = { ... } + * + * + * @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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeletePipelineJobsRequest 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.BatchDeletePipelineJobsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDeletePipelineJobsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDeletePipelineJobsRequestOrBuilder.java new file mode 100644 index 000000000000..4f5105396c6d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDeletePipelineJobsRequestOrBuilder.java @@ -0,0 +1,128 @@ +/* + * 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; + +public interface BatchDeletePipelineJobsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * 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 getNamesList(); + /** + * + * + *
+   * 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_; + /** + * + * + *
+   * PipelineJobs deleted.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + @java.lang.Override + public java.util.List getPipelineJobsList() { + return pipelineJobs_; + } + /** + * + * + *
+   * PipelineJobs deleted.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + @java.lang.Override + public java.util.List + 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 + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse) + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponseOrBuilder { + 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); + } + + // Construct using com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (pipelineJobsBuilder_ == null) { + pipelineJobs_ = java.util.Collections.emptyList(); + } else { + pipelineJobs_ = null; + pipelineJobsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.PipelineServiceProto + .internal_static_google_cloud_aiplatform_v1_BatchDeletePipelineJobsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse build() { + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse buildPartial() { + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse result = + new com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse result) { + if (pipelineJobsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + pipelineJobs_ = java.util.Collections.unmodifiableList(pipelineJobs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.pipelineJobs_ = pipelineJobs_; + } else { + result.pipelineJobs_ = pipelineJobsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse result) { + int from_bitField0_ = bitField0_; + } + + @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.BatchDeletePipelineJobsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse other) { + if (other + == com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse.getDefaultInstance()) + return this; + if (pipelineJobsBuilder_ == null) { + if (!other.pipelineJobs_.isEmpty()) { + if (pipelineJobs_.isEmpty()) { + pipelineJobs_ = other.pipelineJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePipelineJobsIsMutable(); + pipelineJobs_.addAll(other.pipelineJobs_); + } + onChanged(); + } + } else { + if (!other.pipelineJobs_.isEmpty()) { + if (pipelineJobsBuilder_.isEmpty()) { + pipelineJobsBuilder_.dispose(); + pipelineJobsBuilder_ = null; + pipelineJobs_ = other.pipelineJobs_; + bitField0_ = (bitField0_ & ~0x00000001); + pipelineJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPipelineJobsFieldBuilder() + : null; + } else { + pipelineJobsBuilder_.addAllMessages(other.pipelineJobs_); + } + } + } + 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: + { + com.google.cloud.aiplatform.v1.PipelineJob m = + input.readMessage( + com.google.cloud.aiplatform.v1.PipelineJob.parser(), extensionRegistry); + if (pipelineJobsBuilder_ == null) { + ensurePipelineJobsIsMutable(); + pipelineJobs_.add(m); + } else { + pipelineJobsBuilder_.addMessage(m); + } + 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.util.List pipelineJobs_ = + java.util.Collections.emptyList(); + + private void ensurePipelineJobsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + pipelineJobs_ = + new java.util.ArrayList(pipelineJobs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob, + com.google.cloud.aiplatform.v1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder> + pipelineJobsBuilder_; + + /** + * + * + *
+     * PipelineJobs deleted.
+     * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + public java.util.List getPipelineJobsList() { + if (pipelineJobsBuilder_ == null) { + return java.util.Collections.unmodifiableList(pipelineJobs_); + } else { + return pipelineJobsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * 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 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 + 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 + getPipelineJobsBuilderList() { + return getPipelineJobsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob, + com.google.cloud.aiplatform.v1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder> + getPipelineJobsFieldBuilder() { + if (pipelineJobsBuilder_ == null) { + pipelineJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PipelineJob, + com.google.cloud.aiplatform.v1.PipelineJob.Builder, + com.google.cloud.aiplatform.v1.PipelineJobOrBuilder>( + pipelineJobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + pipelineJobs_ = null; + } + return pipelineJobsBuilder_; + } + + @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.BatchDeletePipelineJobsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse) + private static final com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse(); + } + + public static com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeletePipelineJobsResponse 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.BatchDeletePipelineJobsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDeletePipelineJobsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDeletePipelineJobsResponseOrBuilder.java new file mode 100644 index 000000000000..867652a05880 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/BatchDeletePipelineJobsResponseOrBuilder.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/pipeline_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.aiplatform.v1; + +public interface BatchDeletePipelineJobsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * PipelineJobs deleted.
+   * 
+ * + * repeated .google.cloud.aiplatform.v1.PipelineJob pipeline_jobs = 1; + */ + java.util.List getPipelineJobsList(); + /** + * + * + *
+   * 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 + 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 + 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 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 + 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 + 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) { * * *
-     * 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.
      * 
* * @@ -990,14 +1202,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.
      * 
* * @@ -1016,14 +1228,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.
      * 
* * @@ -1039,14 +1251,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.
      * 
* * @@ -1063,14 +1275,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.
      * 
* * @@ -1102,6 +1314,454 @@ public Builder removeFunctionDeclarations(int index) { return functionDeclarationsBuilder_; } + private com.google.cloud.aiplatform.v1.Retrieval retrieval_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Retrieval, + com.google.cloud.aiplatform.v1.Retrieval.Builder, + com.google.cloud.aiplatform.v1.RetrievalOrBuilder> + retrievalBuilder_; + /** + * + * + *
+     * 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. + */ + public boolean hasRetrieval() { + return ((bitField0_ & 0x00000002) != 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. + */ + public com.google.cloud.aiplatform.v1.Retrieval getRetrieval() { + if (retrievalBuilder_ == null) { + return retrieval_ == null + ? com.google.cloud.aiplatform.v1.Retrieval.getDefaultInstance() + : retrieval_; + } else { + return retrievalBuilder_.getMessage(); + } + } + /** + * + * + *
+     * 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]; + * + */ + public Builder setRetrieval(com.google.cloud.aiplatform.v1.Retrieval value) { + if (retrievalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retrieval_ = value; + } else { + retrievalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder setRetrieval(com.google.cloud.aiplatform.v1.Retrieval.Builder builderForValue) { + if (retrievalBuilder_ == null) { + retrieval_ = builderForValue.build(); + } else { + retrievalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder mergeRetrieval(com.google.cloud.aiplatform.v1.Retrieval value) { + if (retrievalBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && retrieval_ != null + && retrieval_ != com.google.cloud.aiplatform.v1.Retrieval.getDefaultInstance()) { + getRetrievalBuilder().mergeFrom(value); + } else { + retrieval_ = value; + } + } else { + retrievalBuilder_.mergeFrom(value); + } + if (retrieval_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder clearRetrieval() { + bitField0_ = (bitField0_ & ~0x00000002); + retrieval_ = null; + if (retrievalBuilder_ != null) { + retrievalBuilder_.dispose(); + retrievalBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.cloud.aiplatform.v1.Retrieval.Builder getRetrievalBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRetrievalFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.cloud.aiplatform.v1.RetrievalOrBuilder getRetrievalOrBuilder() { + if (retrievalBuilder_ != null) { + return retrievalBuilder_.getMessageOrBuilder(); + } else { + 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]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Retrieval, + com.google.cloud.aiplatform.v1.Retrieval.Builder, + com.google.cloud.aiplatform.v1.RetrievalOrBuilder> + getRetrievalFieldBuilder() { + if (retrievalBuilder_ == null) { + retrievalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.Retrieval, + com.google.cloud.aiplatform.v1.Retrieval.Builder, + com.google.cloud.aiplatform.v1.RetrievalOrBuilder>( + getRetrieval(), getParentForChildren(), isClean()); + retrieval_ = null; + } + return retrievalBuilder_; + } + + private com.google.cloud.aiplatform.v1.GoogleSearchRetrieval googleSearchRetrieval_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GoogleSearchRetrieval, + com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.Builder, + com.google.cloud.aiplatform.v1.GoogleSearchRetrievalOrBuilder> + googleSearchRetrievalBuilder_; + /** + * + * + *
+     * 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. + */ + public boolean hasGoogleSearchRetrieval() { + return ((bitField0_ & 0x00000004) != 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. + */ + public com.google.cloud.aiplatform.v1.GoogleSearchRetrieval getGoogleSearchRetrieval() { + if (googleSearchRetrievalBuilder_ == null) { + return googleSearchRetrieval_ == null + ? com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.getDefaultInstance() + : googleSearchRetrieval_; + } else { + return googleSearchRetrievalBuilder_.getMessage(); + } + } + /** + * + * + *
+     * 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]; + * + */ + public Builder setGoogleSearchRetrieval( + com.google.cloud.aiplatform.v1.GoogleSearchRetrieval value) { + if (googleSearchRetrievalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + googleSearchRetrieval_ = value; + } else { + googleSearchRetrievalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder setGoogleSearchRetrieval( + com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.Builder builderForValue) { + if (googleSearchRetrievalBuilder_ == null) { + googleSearchRetrieval_ = builderForValue.build(); + } else { + googleSearchRetrievalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder mergeGoogleSearchRetrieval( + com.google.cloud.aiplatform.v1.GoogleSearchRetrieval value) { + if (googleSearchRetrievalBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && googleSearchRetrieval_ != null + && googleSearchRetrieval_ + != com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.getDefaultInstance()) { + getGoogleSearchRetrievalBuilder().mergeFrom(value); + } else { + googleSearchRetrieval_ = value; + } + } else { + googleSearchRetrievalBuilder_.mergeFrom(value); + } + if (googleSearchRetrieval_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder clearGoogleSearchRetrieval() { + bitField0_ = (bitField0_ & ~0x00000004); + googleSearchRetrieval_ = null; + if (googleSearchRetrievalBuilder_ != null) { + googleSearchRetrievalBuilder_.dispose(); + googleSearchRetrievalBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.Builder + getGoogleSearchRetrievalBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getGoogleSearchRetrievalFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.cloud.aiplatform.v1.GoogleSearchRetrievalOrBuilder + getGoogleSearchRetrievalOrBuilder() { + if (googleSearchRetrievalBuilder_ != null) { + return googleSearchRetrievalBuilder_.getMessageOrBuilder(); + } else { + 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]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GoogleSearchRetrieval, + com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.Builder, + com.google.cloud.aiplatform.v1.GoogleSearchRetrievalOrBuilder> + getGoogleSearchRetrievalFieldBuilder() { + if (googleSearchRetrievalBuilder_ == null) { + googleSearchRetrievalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.GoogleSearchRetrieval, + com.google.cloud.aiplatform.v1.GoogleSearchRetrieval.Builder, + com.google.cloud.aiplatform.v1.GoogleSearchRetrievalOrBuilder>( + getGoogleSearchRetrieval(), getParentForChildren(), isClean()); + googleSearchRetrieval_ = null; + } + return googleSearchRetrievalBuilder_; + } + @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/ToolOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java index 48cf54e02019..2e59e9519020 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolOrBuilder.java @@ -28,14 +28,14 @@ public interface ToolOrBuilder * * *
-   * 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.
    * 
* * @@ -47,14 +47,14 @@ public interface ToolOrBuilder * * *
-   * 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.
    * 
* * @@ -66,14 +66,14 @@ public interface ToolOrBuilder * * *
-   * 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.
    * 
* * @@ -85,14 +85,14 @@ public interface ToolOrBuilder * * *
-   * 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.
    * 
* * @@ -105,14 +105,14 @@ public interface ToolOrBuilder * * *
-   * 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,4 +121,98 @@ public interface ToolOrBuilder */ com.google.cloud.aiplatform.v1.FunctionDeclarationOrBuilder getFunctionDeclarationsOrBuilder( int index); + + /** + * + * + *
+   * 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. + */ + boolean hasRetrieval(); + /** + * + * + *
+   * 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. + */ + com.google.cloud.aiplatform.v1.Retrieval getRetrieval(); + /** + * + * + *
+   * 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]; + * + */ + com.google.cloud.aiplatform.v1.RetrievalOrBuilder getRetrievalOrBuilder(); + + /** + * + * + *
+   * 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. + */ + boolean hasGoogleSearchRetrieval(); + /** + * + * + *
+   * 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. + */ + com.google.cloud.aiplatform.v1.GoogleSearchRetrieval getGoogleSearchRetrieval(); + /** + * + * + *
+   * 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]; + * + */ + com.google.cloud.aiplatform.v1.GoogleSearchRetrievalOrBuilder getGoogleSearchRetrievalOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java index bf305b239dff..8e4ad6cf0a41 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java @@ -44,6 +44,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_FunctionResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_FunctionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_Retrieval_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_Retrieval_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_VertexAISearch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_VertexAISearch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -55,30 +67,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n%google/cloud/aiplatform/v1/tool.proto\022" + "\032google.cloud.aiplatform.v1\032\037google/api/" - + "field_behavior.proto\032(google/cloud/aipla" - + "tform/v1/openapi.proto\032\034google/protobuf/" - + "struct.proto\"[\n\004Tool\022S\n\025function_declara" - + "tions\030\001 \003(\0132/.google.cloud.aiplatform.v1" - + ".FunctionDeclarationB\003\340A\001\"\177\n\023FunctionDec" - + "laration\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013descripti" - + "on\030\002 \001(\tB\003\340A\001\022;\n\nparameters\030\003 \001(\0132\".goog" - + "le.cloud.aiplatform.v1.SchemaB\003\340A\001\"M\n\014Fu" - + "nctionCall\022\021\n\004name\030\001 \001(\tB\003\340A\002\022*\n\004args\030\002 " - + "\001(\0132\027.google.protobuf.StructB\003\340A\001\"U\n\020Fun" - + "ctionResponse\022\021\n\004name\030\001 \001(\tB\003\340A\002\022.\n\010resp" - + "onse\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\002" - + "B\307\001\n\036com.google.cloud.aiplatform.v1B\tToo" - + "lProtoP\001Z>cloud.google.com/go/aiplatform" - + "/apiv1/aiplatformpb;aiplatformpb\252\002\032Googl" - + "e.Cloud.AIPlatform.V1\312\002\032Google\\Cloud\\AIP" - + "latform\\V1\352\002\035Google::Cloud::AIPlatform::" - + "V1b\006proto3" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032(google/cloud/aiplatform/v1/open" + + "api.proto\032\034google/protobuf/struct.proto\"" + + "\363\001\n\004Tool\022S\n\025function_declarations\030\001 \003(\0132" + + "/.google.cloud.aiplatform.v1.FunctionDec" + + "larationB\003\340A\001\022=\n\tretrieval\030\002 \001(\0132%.googl" + + "e.cloud.aiplatform.v1.RetrievalB\003\340A\001\022W\n\027" + + "google_search_retrieval\030\003 \001(\01321.google.c" + + "loud.aiplatform.v1.GoogleSearchRetrieval" + + "B\003\340A\001\"\177\n\023FunctionDeclaration\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022;\n\npar" + + "ameters\030\003 \001(\0132\".google.cloud.aiplatform." + + "v1.SchemaB\003\340A\001\"M\n\014FunctionCall\022\021\n\004name\030\001" + + " \001(\tB\003\340A\002\022*\n\004args\030\002 \001(\0132\027.google.protobu" + + "f.StructB\003\340A\001\"U\n\020FunctionResponse\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\002\022.\n\010response\030\002 \001(\0132\027.google." + + "protobuf.StructB\003\340A\002\"\177\n\tRetrieval\022F\n\020ver" + + "tex_ai_search\030\002 \001(\0132*.google.cloud.aipla" + + "tform.v1.VertexAISearchH\000\022 \n\023disable_att" + + "ribution\030\003 \001(\010B\003\340A\001B\010\n\006source\"(\n\016VertexA" + + "ISearch\022\026\n\tdatastore\030\001 \001(\tB\003\340A\002\"9\n\025Googl" + + "eSearchRetrieval\022 \n\023disable_attribution\030" + + "\001 \001(\010B\003\340A\001B\307\001\n\036com.google.cloud.aiplatfo" + + "rm.v1B\tToolProtoP\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( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1.OpenApiProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); @@ -88,7 +111,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_Tool_descriptor, new java.lang.String[] { - "FunctionDeclarations", + "FunctionDeclarations", "Retrieval", "GoogleSearchRetrieval", }); internal_static_google_cloud_aiplatform_v1_FunctionDeclaration_descriptor = getDescriptor().getMessageTypes().get(1); @@ -114,12 +137,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Response", }); + internal_static_google_cloud_aiplatform_v1_Retrieval_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1_Retrieval_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_Retrieval_descriptor, + new java.lang.String[] { + "VertexAiSearch", "DisableAttribution", "Source", + }); + internal_static_google_cloud_aiplatform_v1_VertexAISearch_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_aiplatform_v1_VertexAISearch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_VertexAISearch_descriptor, + new java.lang.String[] { + "Datastore", + }); + internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_descriptor, + new java.lang.String[] { + "DisableAttribution", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1.OpenApiProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearch.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearch.java new file mode 100644 index 000000000000..64734a88d3a1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearch.java @@ -0,0 +1,640 @@ +/* + * 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; + +/** + * + * + *
+ * Retrieve from Vertex AI Search datastore for grounding.
+ * See https://cloud.google.com/vertex-ai-search-and-conversation
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.VertexAISearch} + */ +public final class VertexAISearch extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.VertexAISearch) + VertexAISearchOrBuilder { + private static final long serialVersionUID = 0L; + // Use VertexAISearch.newBuilder() to construct. + private VertexAISearch(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VertexAISearch() { + datastore_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VertexAISearch(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_VertexAISearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_VertexAISearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.VertexAISearch.class, + com.google.cloud.aiplatform.v1.VertexAISearch.Builder.class); + } + + public static final int DATASTORE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object datastore_ = ""; + /** + * + * + *
+   * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+   * Format:
+   * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}
+   * 
+ * + * string datastore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The datastore. + */ + @java.lang.Override + public java.lang.String getDatastore() { + java.lang.Object ref = datastore_; + 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(); + datastore_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+   * Format:
+   * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}
+   * 
+ * + * string datastore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for datastore. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatastoreBytes() { + java.lang.Object ref = datastore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datastore_ = 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(datastore_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datastore_); + } + 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(datastore_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datastore_); + } + 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.VertexAISearch)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.VertexAISearch other = + (com.google.cloud.aiplatform.v1.VertexAISearch) obj; + + if (!getDatastore().equals(other.getDatastore())) 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) + DATASTORE_FIELD_NUMBER; + hash = (53 * hash) + getDatastore().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.VertexAISearch parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexAISearch 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.VertexAISearch parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexAISearch 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.VertexAISearch parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VertexAISearch 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.VertexAISearch parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VertexAISearch 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.VertexAISearch parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VertexAISearch 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.VertexAISearch 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.VertexAISearch 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.VertexAISearch 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; + } + /** + * + * + *
+   * Retrieve from Vertex AI Search datastore for grounding.
+   * See https://cloud.google.com/vertex-ai-search-and-conversation
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.VertexAISearch} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.VertexAISearch) + com.google.cloud.aiplatform.v1.VertexAISearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_VertexAISearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_VertexAISearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.VertexAISearch.class, + com.google.cloud.aiplatform.v1.VertexAISearch.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.VertexAISearch.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + datastore_ = ""; + 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_VertexAISearch_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexAISearch getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.VertexAISearch.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexAISearch build() { + com.google.cloud.aiplatform.v1.VertexAISearch result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VertexAISearch buildPartial() { + com.google.cloud.aiplatform.v1.VertexAISearch result = + new com.google.cloud.aiplatform.v1.VertexAISearch(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.VertexAISearch result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datastore_ = datastore_; + } + } + + @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.VertexAISearch) { + return mergeFrom((com.google.cloud.aiplatform.v1.VertexAISearch) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.VertexAISearch other) { + if (other == com.google.cloud.aiplatform.v1.VertexAISearch.getDefaultInstance()) return this; + if (!other.getDatastore().isEmpty()) { + datastore_ = other.datastore_; + 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: + { + datastore_ = 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 datastore_ = ""; + /** + * + * + *
+     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Format:
+     * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}
+     * 
+ * + * string datastore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The datastore. + */ + public java.lang.String getDatastore() { + java.lang.Object ref = datastore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datastore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Format:
+     * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}
+     * 
+ * + * string datastore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for datastore. + */ + public com.google.protobuf.ByteString getDatastoreBytes() { + java.lang.Object ref = datastore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datastore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Format:
+     * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}
+     * 
+ * + * string datastore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The datastore to set. + * @return This builder for chaining. + */ + public Builder setDatastore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + datastore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Format:
+     * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}
+     * 
+ * + * string datastore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatastore() { + datastore_ = getDefaultInstance().getDatastore(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+     * Format:
+     * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}
+     * 
+ * + * string datastore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for datastore to set. + * @return This builder for chaining. + */ + public Builder setDatastoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datastore_ = 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.VertexAISearch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.VertexAISearch) + private static final com.google.cloud.aiplatform.v1.VertexAISearch DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.VertexAISearch(); + } + + public static com.google.cloud.aiplatform.v1.VertexAISearch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VertexAISearch 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.VertexAISearch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearchOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearchOrBuilder.java new file mode 100644 index 000000000000..c5d8060c196a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexAISearchOrBuilder.java @@ -0,0 +1,55 @@ +/* + * 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 VertexAISearchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.VertexAISearch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+   * Format:
+   * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}
+   * 
+ * + * string datastore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The datastore. + */ + java.lang.String getDatastore(); + /** + * + * + *
+   * Required. Fully-qualified Vertex AI Search's datastore resource ID.
+   * Format:
+   * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}
+   * 
+ * + * string datastore = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for datastore. + */ + com.google.protobuf.ByteString getDatastoreBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto index de62b281e3a7..1df5516e33d1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/accelerator_type.proto @@ -53,6 +53,9 @@ enum AcceleratorType { // Nvidia L4 GPU. NVIDIA_L4 = 11; + // Nvidia H100 80Gb GPU. + NVIDIA_H100_80GB = 13; + // TPU v2. TPU_V2 = 6; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto index e9678f035cb5..331bb4ed4605 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto @@ -201,12 +201,39 @@ message SafetyRating { HIGH = 4; } + // Harm severity levels. + enum HarmSeverity { + // Harm severity unspecified. + HARM_SEVERITY_UNSPECIFIED = 0; + + // Negligible level of harm severity. + HARM_SEVERITY_NEGLIGIBLE = 1; + + // Low level of harm severity. + HARM_SEVERITY_LOW = 2; + + // Medium level of harm severity. + HARM_SEVERITY_MEDIUM = 3; + + // High level of harm severity. + HARM_SEVERITY_HIGH = 4; + } + // Output only. Harm category. HarmCategory category = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Harm probability levels in the content. HarmProbability probability = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Harm probability score. + float probability_score = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Harm severity levels in the content. + HarmSeverity severity = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Harm severity score. + float severity_score = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Indicates whether the content was filtered out because of this // rating. bool blocked = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -265,6 +292,18 @@ message Candidate { // All other reasons that stopped the token generation OTHER = 5; + + // The token generation was stopped as the response was flagged for the + // terms which are included from the terminology blocklist. + BLOCKLIST = 6; + + // The token generation was stopped as the response was flagged for + // the prohibited contents. + PROHIBITED_CONTENT = 7; + + // The token generation was stopped as the response was flagged for + // Sensitive Personally Identifiable Information (SPII) contents. + SPII = 8; } // Output only. Index of the candidate. @@ -291,4 +330,60 @@ message Candidate { // Output only. Source attribution of the generated content. CitationMetadata citation_metadata = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata specifies sources used to ground generated content. + GroundingMetadata grounding_metadata = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Segment of the content. +message Segment { + // Output only. The index of a Part object within its parent Content object. + int32 part_index = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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]; + + // 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]; +} + +// Grounding attribution. +message GroundingAttribution { + // Attribution from the web. + message Web { + // Output only. URI reference of the attribution. + string uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Title of the attribution. + string title = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + oneof reference { + // Optional. Attribution from the web. + Web web = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Output only. Segment of the content this attribution belongs to. + Segment segment = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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 + ]; +} + +// Metadata returned to client when grounding is enabled. +message GroundingMetadata { + // Optional. Web search queries for the following-up web search. + repeated string web_search_queries = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of grounding attributions. + repeated GroundingAttribution grounding_attributions = 2 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto index 5a6dd1110d34..15cd762f4b94 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/dataset_version.proto @@ -18,6 +18,7 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; @@ -52,4 +53,15 @@ message DatasetVersion { // Output only. Name of the associated BigQuery dataset. string big_query_dataset_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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; + + // Required. Output only. Additional information about the DatasetVersion. + google.protobuf.Value metadata = 8 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = REQUIRED + ]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint_service.proto index c1bd96271d96..5b1216b1a86e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/endpoint_service.proto @@ -210,20 +210,23 @@ message ListEndpointsRequest { // 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]; // Optional. The standard list page size. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_group.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_group.proto index f92f5f619610..75562ea6e1bd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_group.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_group.proto @@ -47,8 +47,8 @@ message FeatureGroup { (google.api.field_behavior) = REQUIRED ]; - // 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/proto/google/cloud/aiplatform/v1/feature_view.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto index 6ffec476295a..07b5b139d3cb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view.proto @@ -41,8 +41,7 @@ message FeatureView { // trigger based on FeatureView.SyncConfig. string uri = 1 [(google.api.field_behavior) = REQUIRED]; - // 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]; } @@ -74,6 +73,9 @@ message FeatureView { // Required. List of features that need to be synced to Online Store. repeated FeatureGroup feature_groups = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The project number of the parent project of the Feature Groups. + optional int64 project_number = 2 [(google.api.field_behavior) = OPTIONAL]; } oneof source { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view_sync.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view_sync.proto index 20357882bd27..b5d8f32e9b6f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view_sync.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_view_sync.proto @@ -38,6 +38,16 @@ message FeatureViewSync { pattern: "projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync" }; + // Summary from the Sync job. For continuous syncs, the summary is updated + // periodically. For batch syncs, it gets updated on completion of the sync. + message SyncSummary { + // Output only. Total number of rows synced. + int64 row_synced = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. BigQuery slot milliseconds consumed for the sync job. + int64 total_slot = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Identifier. Name of the FeatureViewSync. Format: // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; @@ -54,4 +64,7 @@ message FeatureViewSync { // Output only. Final status of the FeatureViewSync. google.rpc.Status final_status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Summary of the sync job. + SyncSummary sync_summary = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index.proto index 6766741240e7..df0bfe52fc20 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/index.proto @@ -168,6 +168,9 @@ message IndexDatapoint { // Datapoints are eligible iff their value is > the query's. GREATER = 5; + + // Datapoints are eligible iff their value is != the query's. + NOT_EQUAL = 6; } // The type of Value must be consistent for all datapoints with a given diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto index fa1a9eb8bf9e..d639cae7b26d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model.proto @@ -133,6 +133,18 @@ message Model { ]; } + // User input field to specify the base model source. Currently it only + // supports specifing the Model Garden models and Genie models. + message BaseModelSource { + oneof source { + // Source information of Model Garden models. + ModelGardenSource model_garden_source = 1; + + // Information about the base model of Genie models. + GenieSource genie_source = 2; + } + } + // Identifies a type of Model's prediction resources. enum DeploymentResourcesType { // Should not be used. @@ -452,6 +464,11 @@ message Model { // is // `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. string metadata_artifact = 44 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User input field to specify the base model source. Currently it + // only supports specifing the Model Garden models and Genie models. + BaseModelSource base_model_source = 50 + [(google.api.field_behavior) = OPTIONAL]; } // Contains information about the Large Model. @@ -462,6 +479,20 @@ message LargeModelReference { string name = 1 [(google.api.field_behavior) = REQUIRED]; } +// Contains information about the source of the models generated from Model +// Garden. +message ModelGardenSource { + // Required. The model garden source model resource name. + string public_model_name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Contains information about the source of the models generated from Generative +// AI Studio. +message GenieSource { + // Required. The public base model URI. + string base_model_uri = 1 [(google.api.field_behavior) = REQUIRED]; +} + // Contains the schemata used in Model's predictions and explanations via // [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict], // [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain] diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto index 957d92e8a55c..e6ea3e8f3ffb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/model_service.proto @@ -358,12 +358,14 @@ message ListModelsRequest { // * `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; // The standard list page size. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto index c500559d9318..8f4661770278 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/pipeline_service.proto @@ -148,6 +148,22 @@ service PipelineService { }; } + // 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. + rpc BatchDeletePipelineJobs(BatchDeletePipelineJobsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/pipelineJobs:batchDelete" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + option (google.longrunning.operation_info) = { + response_type: "BatchDeletePipelineJobsResponse" + metadata_type: "DeleteOperationMetadata" + }; + } + // Cancels a PipelineJob. // Starts asynchronous cancellation on the PipelineJob. The server // makes a best effort to cancel the pipeline, but success is not @@ -169,6 +185,33 @@ service PipelineService { }; option (google.api.method_signature) = "name"; } + + // 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. + rpc BatchCancelPipelineJobs(BatchCancelPipelineJobsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/pipelineJobs:batchCancel" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + option (google.longrunning.operation_info) = { + response_type: "BatchCancelPipelineJobsResponse" + metadata_type: "BatchCancelPipelineJobsOperationMetadata" + }; + } +} + +// Runtime operation information for +// [PipelineService.BatchCancelPipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchCancelPipelineJobs]. +message BatchCancelPipelineJobsOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; } // Request message for @@ -435,6 +478,37 @@ message DeletePipelineJobRequest { ]; } +// Request message for +// [PipelineService.BatchDeletePipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchDeletePipelineJobs]. +message BatchDeletePipelineJobsRequest { + // 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) = { + child_type: "aiplatform.googleapis.com/PipelineJob" + } + ]; + + // 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) = { + type: "aiplatform.googleapis.com/PipelineJob" + } + ]; +} + +// Response message for +// [PipelineService.BatchDeletePipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchDeletePipelineJobs]. +message BatchDeletePipelineJobsResponse { + // PipelineJobs deleted. + repeated PipelineJob pipeline_jobs = 1; +} + // Request message for // [PipelineService.CancelPipelineJob][google.cloud.aiplatform.v1.PipelineService.CancelPipelineJob]. message CancelPipelineJobRequest { @@ -448,3 +522,34 @@ message CancelPipelineJobRequest { } ]; } + +// Request message for +// [PipelineService.BatchCancelPipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchCancelPipelineJobs]. +message BatchCancelPipelineJobsRequest { + // 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) = { + child_type: "aiplatform.googleapis.com/PipelineJob" + } + ]; + + // 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) = { + type: "aiplatform.googleapis.com/PipelineJob" + } + ]; +} + +// Response message for +// [PipelineService.BatchCancelPipelineJobs][google.cloud.aiplatform.v1.PipelineService.BatchCancelPipelineJobs]. +message BatchCancelPipelineJobsResponse { + // PipelineJobs cancelled. + repeated PipelineJob pipeline_jobs = 1; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/publisher_model.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/publisher_model.proto index 4bfe02119b39..0f2b57a4e202 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/publisher_model.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/publisher_model.proto @@ -243,16 +243,23 @@ message PublisherModel { // The model launch stage is unspecified. LAUNCH_STAGE_UNSPECIFIED = 0; - // 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; - // 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; - // 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; - // 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/proto/google/cloud/aiplatform/v1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto index 0837b8095410..58dbb77e9530 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/openapi.proto"; import "google/protobuf/struct.proto"; @@ -32,18 +33,31 @@ option ruby_package = "Google::Cloud::AIPlatform::V1"; // // 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). message Tool { - // 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. repeated FunctionDeclaration function_declarations = 1 [(google.api.field_behavior) = OPTIONAL]; + + // 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. + Retrieval retrieval = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. GoogleSearchRetrieval tool type. + // Specialized retrieval tool that is powered by Google search. + GoogleSearchRetrieval google_search_retrieval = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Structured representation of a function declaration as defined by the @@ -102,3 +116,33 @@ message FunctionResponse { // Required. The function response in JSON object format. google.protobuf.Struct response = 2 [(google.api.field_behavior) = REQUIRED]; } + +// Defines a retrieval tool that model can call to access external knowledge. +message Retrieval { + oneof source { + // Set to use data source powered by Vertex AI Search. + VertexAISearch vertex_ai_search = 2; + } + + // 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]; +} + +// Retrieve from Vertex AI Search datastore for grounding. +// See https://cloud.google.com/vertex-ai-search-and-conversation +message VertexAISearch { + // Required. Fully-qualified Vertex AI Search's datastore resource ID. + // Format: + // projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore} + string datastore = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Tool to retrieve public web data for grounding, powered by Google. +message GoogleSearchRetrieval { + // 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]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Candidate.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Candidate.java index bc5a0c396d96..b25ea3fe0e71 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Candidate.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java index dbe9d4130d4b..243a21f8e924 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java @@ -136,59 +136,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "shold\022$\n HARM_BLOCK_THRESHOLD_UNSPECIFIE" + "D\020\000\022\027\n\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n\026BLOCK_ME" + "DIUM_AND_ABOVE\020\002\022\023\n\017BLOCK_ONLY_HIGH\020\003\022\016\n" - + "\nBLOCK_NONE\020\004\"\247\002\n\014SafetyRating\022D\n\010catego" + + "\nBLOCK_NONE\020\004\"\316\004\n\014SafetyRating\022D\n\010catego" + "ry\030\001 \001(\0162-.google.cloud.aiplatform.v1bet" + "a1.HarmCategoryB\003\340A\003\022W\n\013probability\030\002 \001(" + "\0162=.google.cloud.aiplatform.v1beta1.Safe" - + "tyRating.HarmProbabilityB\003\340A\003\022\024\n\007blocked" - + "\030\003 \001(\010B\003\340A\003\"b\n\017HarmProbability\022 \n\034HARM_P" - + "ROBABILITY_UNSPECIFIED\020\000\022\016\n\nNEGLIGIBLE\020\001" - + "\022\007\n\003LOW\020\002\022\n\n\006MEDIUM\020\003\022\010\n\004HIGH\020\004\"U\n\020Citat" - + "ionMetadata\022A\n\tcitations\030\001 \003(\0132).google." - + "cloud.aiplatform.v1beta1.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_date\030\006 \001(\0132\021.google.typ" - + "e.DateB\003\340A\003\"\315\004\n\tCandidate\022\022\n\005index\030\001 \001(\005" - + "B\003\340A\003\022>\n\007content\030\002 \001(\0132(.google.cloud.ai" - + "platform.v1beta1.ContentB\003\340A\003\022S\n\rfinish_" - + "reason\030\003 \001(\01627.google.cloud.aiplatform.v" - + "1beta1.Candidate.FinishReasonB\003\340A\003\022J\n\016sa" - + "fety_ratings\030\004 \003(\0132-.google.cloud.aiplat" - + "form.v1beta1.SafetyRatingB\003\340A\003\022 \n\016finish" - + "_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022Q\n\021citation_met" - + "adata\030\006 \001(\01321.google.cloud.aiplatform.v1" - + "beta1.CitationMetadataB\003\340A\003\022S\n\022grounding" - + "_metadata\030\007 \001(\01322.google.cloud.aiplatfor" - + "m.v1beta1.GroundingMetadataB\003\340A\003\"n\n\014Fini" - + "shReason\022\035\n\031FINISH_REASON_UNSPECIFIED\020\000\022" - + "\010\n\004STOP\020\001\022\016\n\nMAX_TOKENS\020\002\022\n\n\006SAFETY\020\003\022\016\n" - + "\nRECITATION\020\004\022\t\n\005OTHER\020\005B\021\n\017_finish_mess" - + "age\"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_index\030\003" - + " \001(\005B\003\340A\003\"\233\002\n\024GroundingAttribution\022M\n\003we" - + "b\030\003 \001(\01329.google.cloud.aiplatform.v1beta" - + "1.GroundingAttribution.WebB\003\340A\001H\000\022>\n\007seg" - + "ment\030\001 \001(\0132(.google.cloud.aiplatform.v1b" - + "eta1.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\005title\030\002 \001(\tB\003\340A\003B\013\n\treferenceB\023\n\021_c" - + "onfidence_score\"\220\001\n\021GroundingMetadata\022\037\n" - + "\022web_search_queries\030\001 \003(\tB\003\340A\001\022Z\n\026ground" - + "ing_attributions\030\002 \003(\01325.google.cloud.ai" - + "platform.v1beta1.GroundingAttributionB\003\340" - + "A\001*\264\001\n\014HarmCategory\022\035\n\031HARM_CATEGORY_UNS" - + "PECIFIED\020\000\022\035\n\031HARM_CATEGORY_HATE_SPEECH\020" - + "\001\022#\n\037HARM_CATEGORY_DANGEROUS_CONTENT\020\002\022\034" - + "\n\030HARM_CATEGORY_HARASSMENT\020\003\022#\n\037HARM_CAT" - + "EGORY_SEXUALLY_EXPLICIT\020\004B\343\001\n#com.google" - + ".cloud.aiplatform.v1beta1B\014ContentProtoP" - + "\001ZCcloud.google.com/go/aiplatform/apiv1b" - + "eta1/aiplatformpb;aiplatformpb\252\002\037Google." - + "Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\" - + "AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPl" - + "atform::V1beta1b\006proto3" + + "tyRating.HarmProbabilityB\003\340A\003\022\036\n\021probabi" + + "lity_score\030\005 \001(\002B\003\340A\003\022Q\n\010severity\030\006 \001(\0162" + + ":.google.cloud.aiplatform.v1beta1.Safety" + + "Rating.HarmSeverityB\003\340A\003\022\033\n\016severity_sco" + + "re\030\007 \001(\002B\003\340A\003\022\024\n\007blocked\030\003 \001(\010B\003\340A\003\"b\n\017H" + + "armProbability\022 \n\034HARM_PROBABILITY_UNSPE" + + "CIFIED\020\000\022\016\n\nNEGLIGIBLE\020\001\022\007\n\003LOW\020\002\022\n\n\006MED" + + "IUM\020\003\022\010\n\004HIGH\020\004\"\224\001\n\014HarmSeverity\022\035\n\031HARM" + + "_SEVERITY_UNSPECIFIED\020\000\022\034\n\030HARM_SEVERITY" + + "_NEGLIGIBLE\020\001\022\025\n\021HARM_SEVERITY_LOW\020\002\022\030\n\024" + + "HARM_SEVERITY_MEDIUM\020\003\022\026\n\022HARM_SEVERITY_" + + "HIGH\020\004\"U\n\020CitationMetadata\022A\n\tcitations\030" + + "\001 \003(\0132).google.cloud.aiplatform.v1beta1." + + "CitationB\003\340A\003\"\252\001\n\010Citation\022\030\n\013start_inde" + + "x\030\001 \001(\005B\003\340A\003\022\026\n\tend_index\030\002 \001(\005B\003\340A\003\022\020\n\003" + + "uri\030\003 \001(\tB\003\340A\003\022\022\n\005title\030\004 \001(\tB\003\340A\003\022\024\n\007li" + + "cense\030\005 \001(\tB\003\340A\003\0220\n\020publication_date\030\006 \001" + + "(\0132\021.google.type.DateB\003\340A\003\"\377\004\n\tCandidate" + + "\022\022\n\005index\030\001 \001(\005B\003\340A\003\022>\n\007content\030\002 \001(\0132(." + + "google.cloud.aiplatform.v1beta1.ContentB" + + "\003\340A\003\022S\n\rfinish_reason\030\003 \001(\01627.google.clo" + + "ud.aiplatform.v1beta1.Candidate.FinishRe" + + "asonB\003\340A\003\022J\n\016safety_ratings\030\004 \003(\0132-.goog" + + "le.cloud.aiplatform.v1beta1.SafetyRating" + + "B\003\340A\003\022 \n\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022" + + "Q\n\021citation_metadata\030\006 \001(\01321.google.clou" + + "d.aiplatform.v1beta1.CitationMetadataB\003\340" + + "A\003\022S\n\022grounding_metadata\030\007 \001(\01322.google." + + "cloud.aiplatform.v1beta1.GroundingMetada" + + "taB\003\340A\003\"\237\001\n\014FinishReason\022\035\n\031FINISH_REASO" + + "N_UNSPECIFIED\020\000\022\010\n\004STOP\020\001\022\016\n\nMAX_TOKENS\020" + + "\002\022\n\n\006SAFETY\020\003\022\016\n\nRECITATION\020\004\022\t\n\005OTHER\020\005" + + "\022\r\n\tBLOCKLIST\020\006\022\026\n\022PROHIBITED_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_index\030\003 \001(\005B\003\340A\003\"\233\002\n\024G" + + "roundingAttribution\022M\n\003web\030\003 \001(\01329.googl" + + "e.cloud.aiplatform.v1beta1.GroundingAttr" + + "ibution.WebB\003\340A\001H\000\022>\n\007segment\030\001 \001(\0132(.go" + + "ogle.cloud.aiplatform.v1beta1.SegmentB\003\340" + + "A\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\005title\030\002 \001(" + + "\tB\003\340A\003B\013\n\treferenceB\023\n\021_confidence_score" + + "\"\220\001\n\021GroundingMetadata\022\037\n\022web_search_que" + + "ries\030\001 \003(\tB\003\340A\001\022Z\n\026grounding_attribution" + + "s\030\002 \003(\01325.google.cloud.aiplatform.v1beta" + + "1.GroundingAttributionB\003\340A\001*\264\001\n\014HarmCate" + + "gory\022\035\n\031HARM_CATEGORY_UNSPECIFIED\020\000\022\035\n\031H" + + "ARM_CATEGORY_HATE_SPEECH\020\001\022#\n\037HARM_CATEG" + + "ORY_DANGEROUS_CONTENT\020\002\022\034\n\030HARM_CATEGORY" + + "_HARASSMENT\020\003\022#\n\037HARM_CATEGORY_SEXUALLY_" + + "EXPLICIT\020\004B\343\001\n#com.google.cloud.aiplatfo" + + "rm.v1beta1B\014ContentProtoP\001ZCcloud.google" + + ".com/go/aiplatform/apiv1beta1/aiplatform" + + "pb;aiplatformpb\252\002\037Google.Cloud.AIPlatfor" + + "m.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1be" + + "ta1\352\002\"Google::Cloud::AIPlatform::V1beta1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -268,7 +277,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_SafetyRating_descriptor, new java.lang.String[] { - "Category", "Probability", "Blocked", + "Category", "Probability", "ProbabilityScore", "Severity", "SeverityScore", "Blocked", }); internal_static_google_cloud_aiplatform_v1beta1_CitationMetadata_descriptor = getDescriptor().getMessageTypes().get(8); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceOperationMetadata.java index 474c654566bc..e018078f71a2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceOperationMetadata.java @@ -40,7 +40,9 @@ private CreatePersistentResourceOperationMetadata( super(builder); } - private CreatePersistentResourceOperationMetadata() {} + private CreatePersistentResourceOperationMetadata() { + progressMessage_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -116,6 +118,57 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe : genericMetadata_; } + public static final int PROGRESS_MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object progressMessage_ = ""; + /** + * + * + *
+   * Progress Message for Create LRO
+   * 
+ * + * string progress_message = 2; + * + * @return The progressMessage. + */ + @java.lang.Override + public java.lang.String getProgressMessage() { + java.lang.Object ref = progressMessage_; + 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(); + progressMessage_ = s; + return s; + } + } + /** + * + * + *
+   * Progress Message for Create LRO
+   * 
+ * + * string progress_message = 2; + * + * @return The bytes for progressMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProgressMessageBytes() { + java.lang.Object ref = progressMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + progressMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -133,6 +186,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getGenericMetadata()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(progressMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, progressMessage_); + } getUnknownFields().writeTo(output); } @@ -145,6 +201,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(progressMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, progressMessage_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -166,6 +225,7 @@ public boolean equals(final java.lang.Object obj) { if (hasGenericMetadata()) { if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; } + if (!getProgressMessage().equals(other.getProgressMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,6 +241,8 @@ public int hashCode() { hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; hash = (53 * hash) + getGenericMetadata().hashCode(); } + hash = (37 * hash) + PROGRESS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getProgressMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -343,6 +405,7 @@ public Builder clear() { genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } + progressMessage_ = ""; return this; } @@ -390,6 +453,9 @@ private void buildPartial0( genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.progressMessage_ = progressMessage_; + } result.bitField0_ |= to_bitField0_; } @@ -447,6 +513,11 @@ public Builder mergeFrom( if (other.hasGenericMetadata()) { mergeGenericMetadata(other.getGenericMetadata()); } + if (!other.getProgressMessage().isEmpty()) { + progressMessage_ = other.progressMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -479,6 +550,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + progressMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -690,6 +767,112 @@ public Builder clearGenericMetadata() { return genericMetadataBuilder_; } + private java.lang.Object progressMessage_ = ""; + /** + * + * + *
+     * Progress Message for Create LRO
+     * 
+ * + * string progress_message = 2; + * + * @return The progressMessage. + */ + public java.lang.String getProgressMessage() { + java.lang.Object ref = progressMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + progressMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Progress Message for Create LRO
+     * 
+ * + * string progress_message = 2; + * + * @return The bytes for progressMessage. + */ + public com.google.protobuf.ByteString getProgressMessageBytes() { + java.lang.Object ref = progressMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + progressMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Progress Message for Create LRO
+     * 
+ * + * string progress_message = 2; + * + * @param value The progressMessage to set. + * @return This builder for chaining. + */ + public Builder setProgressMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + progressMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Progress Message for Create LRO
+     * 
+ * + * string progress_message = 2; + * + * @return This builder for chaining. + */ + public Builder clearProgressMessage() { + progressMessage_ = getDefaultInstance().getProgressMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Progress Message for Create LRO
+     * 
+ * + * string progress_message = 2; + * + * @param value The bytes for progressMessage to set. + * @return This builder for chaining. + */ + public Builder setProgressMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + progressMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceOperationMetadataOrBuilder.java index 84736333292f..4b7c12345938 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceOperationMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePersistentResourceOperationMetadataOrBuilder.java @@ -59,4 +59,29 @@ public interface CreatePersistentResourceOperationMetadataOrBuilder */ com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder(); + + /** + * + * + *
+   * Progress Message for Create LRO
+   * 
+ * + * string progress_message = 2; + * + * @return The progressMessage. + */ + java.lang.String getProgressMessage(); + /** + * + * + *
+   * Progress Message for Create LRO
+   * 
+ * + * string progress_message = 2; + * + * @return The bytes for progressMessage. + */ + com.google.protobuf.ByteString getProgressMessageBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java index 26a6b68094d7..86dbe47701ed 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequest.java @@ -240,25 +240,6 @@ public com.google.protobuf.ByteString getPipelineJobIdBytes() { } } - public static final int PREFLIGHT_VALIDATIONS_FIELD_NUMBER = 4; - private boolean preflightValidations_ = false; - /** - * - * - *
-   * Optional. Whether to do component level validations before job creation.
-   * Currently we only support Google First Party Component/Pipelines.
-   * 
- * - * bool preflight_validations = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The preflightValidations. - */ - @java.lang.Override - public boolean getPreflightValidations() { - return preflightValidations_; - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -282,9 +263,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pipelineJobId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pipelineJobId_); } - if (preflightValidations_ != false) { - output.writeBool(4, preflightValidations_); - } getUnknownFields().writeTo(output); } @@ -303,9 +281,6 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pipelineJobId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pipelineJobId_); } - if (preflightValidations_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, preflightValidations_); - } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -328,7 +303,6 @@ public boolean equals(final java.lang.Object obj) { if (!getPipelineJob().equals(other.getPipelineJob())) return false; } if (!getPipelineJobId().equals(other.getPipelineJobId())) return false; - if (getPreflightValidations() != other.getPreflightValidations()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,8 +322,6 @@ public int hashCode() { } hash = (37 * hash) + PIPELINE_JOB_ID_FIELD_NUMBER; hash = (53 * hash) + getPipelineJobId().hashCode(); - hash = (37 * hash) + PREFLIGHT_VALIDATIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreflightValidations()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -507,7 +479,6 @@ public Builder clear() { pipelineJobBuilder_ = null; } pipelineJobId_ = ""; - preflightValidations_ = false; return this; } @@ -558,9 +529,6 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.pipelineJobId_ = pipelineJobId_; } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.preflightValidations_ = preflightValidations_; - } result.bitField0_ |= to_bitField0_; } @@ -624,9 +592,6 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CreatePipelineJobRe bitField0_ |= 0x00000004; onChanged(); } - if (other.getPreflightValidations() != false) { - setPreflightValidations(other.getPreflightValidations()); - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -671,12 +636,6 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 - case 32: - { - preflightValidations_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1153,62 +1112,6 @@ public Builder setPipelineJobIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean preflightValidations_; - /** - * - * - *
-     * Optional. Whether to do component level validations before job creation.
-     * Currently we only support Google First Party Component/Pipelines.
-     * 
- * - * bool preflight_validations = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The preflightValidations. - */ - @java.lang.Override - public boolean getPreflightValidations() { - return preflightValidations_; - } - /** - * - * - *
-     * Optional. Whether to do component level validations before job creation.
-     * Currently we only support Google First Party Component/Pipelines.
-     * 
- * - * bool preflight_validations = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The preflightValidations to set. - * @return This builder for chaining. - */ - public Builder setPreflightValidations(boolean value) { - - preflightValidations_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
-     * Optional. Whether to do component level validations before job creation.
-     * Currently we only support Google First Party Component/Pipelines.
-     * 
- * - * bool preflight_validations = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPreflightValidations() { - bitField0_ = (bitField0_ & ~0x00000008); - preflightValidations_ = false; - onChanged(); - return this; - } - @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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequestOrBuilder.java index 5530993118c9..a2cab6dc095f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreatePipelineJobRequestOrBuilder.java @@ -130,18 +130,4 @@ public interface CreatePipelineJobRequestOrBuilder * @return The bytes for pipelineJobId. */ com.google.protobuf.ByteString getPipelineJobIdBytes(); - - /** - * - * - *
-   * Optional. Whether to do component level validations before job creation.
-   * Currently we only support Google First Party Component/Pipelines.
-   * 
- * - * bool preflight_validations = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The preflightValidations. - */ - boolean getPreflightValidations(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java index 008f8561fd17..06f51e7673ec 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersion.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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.v1beta1.DatasetVersion re 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_; } @@ -710,6 +855,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DatasetVersion othe 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; @@ -766,6 +919,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)) { @@ -1514,6 +1679,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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java index 18875d7d08b3..fd3b874905f9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java index 8b2292ebfe31..e590e56d542a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DatasetVersionProto.java @@ -44,23 +44,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n5google/cloud/aiplatform/v1beta1/datase" + "t_version.proto\022\037google.cloud.aiplatform" + ".v1beta1\032\037google/api/field_behavior.prot" - + "o\032\031google/api/resource.proto\032\037google/pro" - + "tobuf/timestamp.proto\"\321\002\n\016DatasetVersion" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" - + "ate_time\030\006 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\022\014\n\004etag\030\003 \001(\t\022#\n\026big_query_datas" - + "et_name\030\004 \001(\tB\003\340A\003:\214\001\352A\210\001\n(aiplatform.go" - + "ogleapis.com/DatasetVersion\022\\projects/{p" - + "roject}/locations/{location}/datasets/{d" - + "ataset}/datasetVersions/{dataset_version" - + "}B\352\001\n#com.google.cloud.aiplatform.v1beta" - + "1B\023DatasetVersionProtoP\001ZCcloud.google.c" - + "om/go/aiplatform/apiv1beta1/aiplatformpb" - + ";aiplatformpb\252\002\037Google.Cloud.AIPlatform." - + "V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta" - + "1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006" - + "proto3" + + "o\032\031google/api/resource.proto\032\034google/pro" + + "tobuf/struct.proto\032\037google/protobuf/time" + + "stamp.proto\"\231\003\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\022\024\n\014display_name\030\007 \001(\t\0220\n\010metada" + + "ta\030\010 \001(\0132\026.google.protobuf.ValueB\006\340A\003\340A\002" + + ":\214\001\352A\210\001\n(aiplatform.googleapis.com/Datas" + + "etVersion\022\\projects/{project}/locations/" + + "{location}/datasets/{dataset}/datasetVer" + + "sions/{dataset_version}B\352\001\n#com.google.c" + + "loud.aiplatform.v1beta1B\023DatasetVersionP" + + "rotoP\001ZCcloud.google.com/go/aiplatform/a" + + "piv1beta1/aiplatformpb;aiplatformpb\252\002\037Go" + + "ogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\C" + + "loud\\AIPlatform\\V1beta1\352\002\"Google::Cloud:" + + ":AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -68,6 +70,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_v1beta1_DatasetVersion_descriptor = @@ -76,7 +79,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_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(); @@ -86,6 +95,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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureGroup.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureGroup.java index 829505df9d0b..96ece2677f88 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureGroup.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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]; @@ -295,8 +295,8 @@ public com.google.cloud.aiplatform.v1beta1.BigQuerySource getBigQuerySource() { * * *
-     * 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]; @@ -310,8 +310,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]; @@ -325,8 +325,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]; @@ -341,8 +341,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]; @@ -988,8 +988,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]; @@ -1005,8 +1005,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]; @@ -1021,8 +1021,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]; @@ -1038,8 +1038,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]; @@ -1055,8 +1055,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]; @@ -1080,8 +1080,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]; @@ -1104,8 +1104,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]; @@ -1125,8 +1125,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]; @@ -1145,8 +1145,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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureView.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureView.java index 059349c368c7..e644c19b1837 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureView.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureView.java @@ -282,8 +282,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]; @@ -295,8 +294,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]; @@ -308,8 +306,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]; @@ -322,8 +319,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]; @@ -432,8 +428,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]; @@ -447,8 +442,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]; @@ -462,8 +456,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]; @@ -478,8 +471,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]; @@ -996,8 +988,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]; @@ -1013,8 +1004,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]; @@ -1029,8 +1019,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]; @@ -1046,8 +1035,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]; @@ -1063,8 +1051,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]; @@ -1088,8 +1075,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]; @@ -1112,8 +1098,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]; @@ -1133,8 +1118,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]; @@ -1153,8 +1137,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]; @@ -1933,6 +1916,7 @@ public com.google.cloud.aiplatform.v1beta1.FeatureView.SyncConfig getDefaultInst } } + @java.lang.Deprecated public interface VectorSearchConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig) @@ -2218,11 +2202,14 @@ public interface VectorSearchConfigOrBuilder * * *
-   * Configuration for vector search.
+   * Deprecated. Use
+   * [IndexConfig][google.cloud.aiplatform.v1beta1.FeatureView.IndexConfig]
+   * instead.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig} */ + @java.lang.Deprecated public static final class VectorSearchConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig) @@ -4280,7 +4267,9 @@ protected Builder newBuilderForType( * * *
-     * Configuration for vector search.
+     * Deprecated. Use
+     * [IndexConfig][google.cloud.aiplatform.v1beta1.FeatureView.IndexConfig]
+     * instead.
      * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig} @@ -5898,6 +5887,31 @@ public interface FeatureRegistrySourceOrBuilder */ com.google.cloud.aiplatform.v1beta1.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(); } /** * @@ -6971,6 +6985,7 @@ public com.google.protobuf.Parser getParserForType() { } } + private int bitField0_; public static final int FEATURE_GROUPS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -7062,6 +7077,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 @@ -7079,6 +7127,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); } @@ -7091,6 +7142,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; @@ -7108,6 +7162,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.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; } @@ -7123,6 +7181,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; @@ -7276,6 +7338,7 @@ public Builder clear() { featureGroupsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); + projectNumber_ = 0L; return this; } @@ -7330,6 +7393,12 @@ private void buildPartialRepeatedFields( private void buildPartial0( com.google.cloud.aiplatform.v1beta1.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 @@ -7411,6 +7480,9 @@ public Builder mergeFrom( } } } + if (other.hasProjectNumber()) { + setProjectNumber(other.getProjectNumber()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -7453,6 +7525,12 @@ public Builder mergeFrom( } break; } // case 10 + case 16: + { + projectNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7910,6 +7988,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) { @@ -8562,19 +8708,21 @@ public com.google.cloud.aiplatform.v1beta1.FeatureView.SyncConfig getSyncConfig( * * *
-   * Optional. Configuration for vector search. It contains the required
-   * configurations to create an index from source data, so that approximate
-   * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-   * online serving.
+   * Optional. Deprecated: please use
+   * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+   * instead.
    * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.FeatureView.vector_search_config is deprecated. See + * google/cloud/aiplatform/v1beta1/feature_view.proto;l=220 * @return Whether the vectorSearchConfig field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasVectorSearchConfig() { return ((bitField0_ & 0x00000008) != 0); } @@ -8582,19 +8730,21 @@ public boolean hasVectorSearchConfig() { * * *
-   * Optional. Configuration for vector search. It contains the required
-   * configurations to create an index from source data, so that approximate
-   * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-   * online serving.
+   * Optional. Deprecated: please use
+   * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+   * instead.
    * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.FeatureView.vector_search_config is deprecated. See + * google/cloud/aiplatform/v1beta1/feature_view.proto;l=220 * @return The vectorSearchConfig. */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig getVectorSearchConfig() { return vectorSearchConfig_ == null @@ -8605,17 +8755,17 @@ public boolean hasVectorSearchConfig() { * * *
-   * Optional. Configuration for vector search. It contains the required
-   * configurations to create an index from source data, so that approximate
-   * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-   * online serving.
+   * Optional. Deprecated: please use
+   * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+   * instead.
    * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfigOrBuilder getVectorSearchConfigOrBuilder() { return vectorSearchConfig_ == null @@ -11030,18 +11180,20 @@ public Builder clearSyncConfig() { * * *
-     * Optional. Configuration for vector search. It contains the required
-     * configurations to create an index from source data, so that approximate
-     * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-     * online serving.
+     * Optional. Deprecated: please use
+     * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+     * instead.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.FeatureView.vector_search_config is deprecated. + * See google/cloud/aiplatform/v1beta1/feature_view.proto;l=220 * @return Whether the vectorSearchConfig field is set. */ + @java.lang.Deprecated public boolean hasVectorSearchConfig() { return ((bitField0_ & 0x00000100) != 0); } @@ -11049,18 +11201,20 @@ public boolean hasVectorSearchConfig() { * * *
-     * Optional. Configuration for vector search. It contains the required
-     * configurations to create an index from source data, so that approximate
-     * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-     * online serving.
+     * Optional. Deprecated: please use
+     * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+     * instead.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.FeatureView.vector_search_config is deprecated. + * See google/cloud/aiplatform/v1beta1/feature_view.proto;l=220 * @return The vectorSearchConfig. */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig getVectorSearchConfig() { if (vectorSearchConfigBuilder_ == null) { @@ -11076,16 +11230,16 @@ public boolean hasVectorSearchConfig() { * * *
-     * Optional. Configuration for vector search. It contains the required
-     * configurations to create an index from source data, so that approximate
-     * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-     * online serving.
+     * Optional. Deprecated: please use
+     * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+     * instead.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder setVectorSearchConfig( com.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig value) { if (vectorSearchConfigBuilder_ == null) { @@ -11104,16 +11258,16 @@ public Builder setVectorSearchConfig( * * *
-     * Optional. Configuration for vector search. It contains the required
-     * configurations to create an index from source data, so that approximate
-     * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-     * online serving.
+     * Optional. Deprecated: please use
+     * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+     * instead.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder setVectorSearchConfig( com.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig.Builder builderForValue) { @@ -11130,16 +11284,16 @@ public Builder setVectorSearchConfig( * * *
-     * Optional. Configuration for vector search. It contains the required
-     * configurations to create an index from source data, so that approximate
-     * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-     * online serving.
+     * Optional. Deprecated: please use
+     * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+     * instead.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder mergeVectorSearchConfig( com.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig value) { if (vectorSearchConfigBuilder_ == null) { @@ -11165,16 +11319,16 @@ public Builder mergeVectorSearchConfig( * * *
-     * Optional. Configuration for vector search. It contains the required
-     * configurations to create an index from source data, so that approximate
-     * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-     * online serving.
+     * Optional. Deprecated: please use
+     * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+     * instead.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public Builder clearVectorSearchConfig() { bitField0_ = (bitField0_ & ~0x00000100); vectorSearchConfig_ = null; @@ -11189,16 +11343,16 @@ public Builder clearVectorSearchConfig() { * * *
-     * Optional. Configuration for vector search. It contains the required
-     * configurations to create an index from source data, so that approximate
-     * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-     * online serving.
+     * Optional. Deprecated: please use
+     * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+     * instead.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig.Builder getVectorSearchConfigBuilder() { bitField0_ |= 0x00000100; @@ -11209,16 +11363,16 @@ public Builder clearVectorSearchConfig() { * * *
-     * Optional. Configuration for vector search. It contains the required
-     * configurations to create an index from source data, so that approximate
-     * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-     * online serving.
+     * Optional. Deprecated: please use
+     * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+     * instead.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated public com.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfigOrBuilder getVectorSearchConfigOrBuilder() { if (vectorSearchConfigBuilder_ != null) { @@ -11234,14 +11388,13 @@ public Builder clearVectorSearchConfig() { * * *
-     * Optional. Configuration for vector search. It contains the required
-     * configurations to create an index from source data, so that approximate
-     * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-     * online serving.
+     * Optional. Deprecated: please use
+     * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+     * instead.
      * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewOrBuilder.java index 8b0a75c13eb8..b366395a0d13 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewOrBuilder.java @@ -397,50 +397,54 @@ java.lang.String getLabelsOrDefault( * * *
-   * Optional. Configuration for vector search. It contains the required
-   * configurations to create an index from source data, so that approximate
-   * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-   * online serving.
+   * Optional. Deprecated: please use
+   * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+   * instead.
    * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.FeatureView.vector_search_config is deprecated. See + * google/cloud/aiplatform/v1beta1/feature_view.proto;l=220 * @return Whether the vectorSearchConfig field is set. */ + @java.lang.Deprecated boolean hasVectorSearchConfig(); /** * * *
-   * Optional. Configuration for vector search. It contains the required
-   * configurations to create an index from source data, so that approximate
-   * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-   * online serving.
+   * Optional. Deprecated: please use
+   * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+   * instead.
    * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * + * @deprecated google.cloud.aiplatform.v1beta1.FeatureView.vector_search_config is deprecated. See + * google/cloud/aiplatform/v1beta1/feature_view.proto;l=220 * @return The vectorSearchConfig. */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig getVectorSearchConfig(); /** * * *
-   * Optional. Configuration for vector search. It contains the required
-   * configurations to create an index from source data, so that approximate
-   * nearest neighbor (a.k.a ANN) algorithms search can be performed during
-   * online serving.
+   * Optional. Deprecated: please use
+   * [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config]
+   * instead.
    * 
* * - * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfig vector_search_config = 8 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * */ + @java.lang.Deprecated com.google.cloud.aiplatform.v1beta1.FeatureView.VectorSearchConfigOrBuilder getVectorSearchConfigOrBuilder(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewProto.java index 5d838b21df84..d8241a09c662 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewProto.java @@ -77,7 +77,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e_view.proto\022\037google.cloud.aiplatform.v1" + "beta1\032\037google/api/field_behavior.proto\032\031" + "google/api/resource.proto\032\037google/protob" - + "uf/timestamp.proto\"\210\021\n\013FeatureView\022\\\n\020bi" + + "uf/timestamp.proto\"\303\021\n\013FeatureView\022\\\n\020bi" + "g_query_source\030\006 \001(\0132;.google.cloud.aipl" + "atform.v1beta1.FeatureView.BigQuerySourc" + "eB\003\340A\001H\000\022j\n\027feature_registry_source\030\t \001(" @@ -90,55 +90,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.cloud.aiplatform.v1beta1.Feature" + "View.LabelsEntryB\003\340A\001\022L\n\013sync_config\030\007 \001" + "(\01327.google.cloud.aiplatform.v1beta1.Fea" - + "tureView.SyncConfig\022b\n\024vector_search_con" + + "tureView.SyncConfig\022d\n\024vector_search_con" + "fig\030\010 \001(\0132?.google.cloud.aiplatform.v1be" - + "ta1.FeatureView.VectorSearchConfigB\003\340A\001\022" - + "^\n\022service_agent_type\030\016 \001(\0162=.google.clo" - + "ud.aiplatform.v1beta1.FeatureView.Servic" - + "eAgentTypeB\003\340A\001\022\"\n\025service_account_email" - + "\030\r \001(\tB\003\340A\003\032B\n\016BigQuerySource\022\020\n\003uri\030\001 \001" - + "(\tB\003\340A\002\022\036\n\021entity_id_columns\030\002 \003(\tB\003\340A\002\032" - + "\032\n\nSyncConfig\022\014\n\004cron\030\001 \001(\t\032\222\006\n\022VectorSe" - + "archConfig\022k\n\016tree_ah_config\030\010 \001(\0132L.goo" - + "gle.cloud.aiplatform.v1beta1.FeatureView" - + ".VectorSearchConfig.TreeAHConfigB\003\340A\001H\000\022" - + "s\n\022brute_force_config\030\t \001(\0132P.google.clo" - + "ud.aiplatform.v1beta1.FeatureView.Vector" - + "SearchConfig.BruteForceConfigB\003\340A\001H\000\022\035\n\020" - + "embedding_column\030\003 \001(\tB\003\340A\001\022\033\n\016filter_co" - + "lumns\030\004 \003(\tB\003\340A\001\022\034\n\017crowding_column\030\005 \001(" - + "\tB\003\340A\001\022%\n\023embedding_dimension\030\006 \001(\005B\003\340A\001" - + "H\001\210\001\001\022w\n\025distance_measure_type\030\007 \001(\0162S.g" + + "ta1.FeatureView.VectorSearchConfigB\005\030\001\340A" + + "\001\022^\n\022service_agent_type\030\016 \001(\0162=.google.c" + + "loud.aiplatform.v1beta1.FeatureView.Serv" + + "iceAgentTypeB\003\340A\001\022\"\n\025service_account_ema" + + "il\030\r \001(\tB\003\340A\003\032B\n\016BigQuerySource\022\020\n\003uri\030\001" + + " \001(\tB\003\340A\002\022\036\n\021entity_id_columns\030\002 \003(\tB\003\340A" + + "\002\032\032\n\nSyncConfig\022\014\n\004cron\030\001 \001(\t\032\226\006\n\022Vector" + + "SearchConfig\022k\n\016tree_ah_config\030\010 \001(\0132L.g" + "oogle.cloud.aiplatform.v1beta1.FeatureVi" - + "ew.VectorSearchConfig.DistanceMeasureTyp" - + "eB\003\340A\001\032\022\n\020BruteForceConfig\032Y\n\014TreeAHConf" - + "ig\022+\n\031leaf_node_embedding_count\030\001 \001(\003B\003\340" - + "A\001H\000\210\001\001B\034\n\032_leaf_node_embedding_count\"\204\001" - + "\n\023DistanceMeasureType\022%\n!DISTANCE_MEASUR" - + "E_TYPE_UNSPECIFIED\020\000\022\027\n\023SQUARED_L2_DISTA" - + "NCE\020\001\022\023\n\017COSINE_DISTANCE\020\002\022\030\n\024DOT_PRODUC" - + "T_DISTANCE\020\003B\022\n\020algorithm_configB\026\n\024_emb" - + "edding_dimension\032\316\001\n\025FeatureRegistrySour" - + "ce\022l\n\016feature_groups\030\001 \003(\0132O.google.clou" - + "d.aiplatform.v1beta1.FeatureView.Feature" - + "RegistrySource.FeatureGroupB\003\340A\002\032G\n\014Feat" + + "ew.VectorSearchConfig.TreeAHConfigB\003\340A\001H" + + "\000\022s\n\022brute_force_config\030\t \001(\0132P.google.c" + + "loud.aiplatform.v1beta1.FeatureView.Vect" + + "orSearchConfig.BruteForceConfigB\003\340A\001H\000\022\035" + + "\n\020embedding_column\030\003 \001(\tB\003\340A\001\022\033\n\016filter_" + + "columns\030\004 \003(\tB\003\340A\001\022\034\n\017crowding_column\030\005 " + + "\001(\tB\003\340A\001\022%\n\023embedding_dimension\030\006 \001(\005B\003\340" + + "A\001H\001\210\001\001\022w\n\025distance_measure_type\030\007 \001(\0162S" + + ".google.cloud.aiplatform.v1beta1.Feature" + + "View.VectorSearchConfig.DistanceMeasureT" + + "ypeB\003\340A\001\032\022\n\020BruteForceConfig\032Y\n\014TreeAHCo" + + "nfig\022+\n\031leaf_node_embedding_count\030\001 \001(\003B" + + "\003\340A\001H\000\210\001\001B\034\n\032_leaf_node_embedding_count\"" + + "\204\001\n\023DistanceMeasureType\022%\n!DISTANCE_MEAS" + + "URE_TYPE_UNSPECIFIED\020\000\022\027\n\023SQUARED_L2_DIS" + + "TANCE\020\001\022\023\n\017COSINE_DISTANCE\020\002\022\030\n\024DOT_PROD" + + "UCT_DISTANCE\020\003:\002\030\001B\022\n\020algorithm_configB\026" + + "\n\024_embedding_dimension\032\203\002\n\025FeatureRegist" + + "rySource\022l\n\016feature_groups\030\001 \003(\0132O.googl" + + "e.cloud.aiplatform.v1beta1.FeatureView.F" + + "eatureRegistrySource.FeatureGroupB\003\340A\002\022 " + + "\n\016project_number\030\002 \001(\003B\003\340A\001H\000\210\001\001\032G\n\014Feat" + "ureGroup\022\035\n\020feature_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\"{\n\020Serv" - + "iceAgentType\022\"\n\036SERVICE_AGENT_TYPE_UNSPE" - + "CIFIED\020\000\022\036\n\032SERVICE_AGENT_TYPE_PROJECT\020\001" - + "\022#\n\037SERVICE_AGENT_TYPE_FEATURE_VIEW\020\002:\233\001" - + "\352A\227\001\n%aiplatform.googleapis.com/FeatureV" - + "iew\022nprojects/{project}/locations/{locat" - + "ion}/featureOnlineStores/{feature_online" - + "_store}/featureViews/{feature_view}B\010\n\006s" - + "ourceB\347\001\n#com.google.cloud.aiplatform.v1" - + "beta1B\020FeatureViewProtoP\001ZCcloud.google." - + "com/go/aiplatform/apiv1beta1/aiplatformp" - + "b;aiplatformpb\252\002\037Google.Cloud.AIPlatform" - + ".V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1bet" - + "a1\352\002\"Google::Cloud::AIPlatform::V1beta1b" - + "\006proto3" + + "\030\n\013feature_ids\030\002 \003(\tB\003\340A\002B\021\n\017_project_nu" + + "mber\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"{\n\020ServiceAgentType\022\"\n\036SERVI" + + "CE_AGENT_TYPE_UNSPECIFIED\020\000\022\036\n\032SERVICE_A" + + "GENT_TYPE_PROJECT\020\001\022#\n\037SERVICE_AGENT_TYP" + + "E_FEATURE_VIEW\020\002:\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\347\001\n#com.google." + + "cloud.aiplatform.v1beta1B\020FeatureViewPro" + + "toP\001ZCcloud.google.com/go/aiplatform/api" + + "v1beta1/aiplatformpb;aiplatformpb\252\002\037Goog" + + "le.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clo" + + "ud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::A" + + "IPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -230,7 +231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_FeatureView_FeatureRegistrySource_descriptor, new java.lang.String[] { - "FeatureGroups", + "FeatureGroups", "ProjectNumber", }); internal_static_google_cloud_aiplatform_v1beta1_FeatureView_FeatureRegistrySource_FeatureGroup_descriptor = internal_static_google_cloud_aiplatform_v1beta1_FeatureView_FeatureRegistrySource_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSync.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSync.java index f27097047bd7..c6f63d484104 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSync.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSync.java @@ -64,6 +64,663 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.FeatureViewSync.Builder.class); } + public interface SyncSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary} + */ + public static final class SyncSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.FeatureViewSyncProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureViewSync_SyncSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureViewSyncProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureViewSync_SyncSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary) + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.FeatureViewSyncProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureViewSync_SyncSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.FeatureViewSyncProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureViewSync_SyncSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.class, + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.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.v1beta1.FeatureViewSyncProto + .internal_static_google_cloud_aiplatform_v1beta1_FeatureViewSync_SyncSummary_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary build() { + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary buildPartial() { + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary result = + new com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary other) { + if (other + == com.google.cloud.aiplatform.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary) + private static final com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -265,6 +922,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.v1beta1.FeatureViewSync.SyncSummary syncSummary_; + /** + * + * + *
+   * Output only. Summary of the sync job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The syncSummary. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary getSyncSummary() { + return syncSummary_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.getDefaultInstance() + : syncSummary_; + } + /** + * + * + *
+   * Output only. Summary of the sync job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummaryOrBuilder + getSyncSummaryOrBuilder() { + return syncSummary_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.getDefaultInstance() + : syncSummary_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -291,6 +1005,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 +1029,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 +1061,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 +1090,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 +1238,7 @@ private void maybeForceBuilderInitialization() { getCreateTimeFieldBuilder(); getRunTimeFieldBuilder(); getFinalStatusFieldBuilder(); + getSyncSummaryFieldBuilder(); } } @@ -533,6 +1262,11 @@ public Builder clear() { finalStatusBuilder_.dispose(); finalStatusBuilder_ = null; } + syncSummary_ = null; + if (syncSummaryBuilder_ != null) { + syncSummaryBuilder_.dispose(); + syncSummaryBuilder_ = null; + } return this; } @@ -586,6 +1320,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FeatureViewSync r 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_; } @@ -649,6 +1388,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.FeatureViewSync oth if (other.hasFinalStatus()) { mergeFinalStatus(other.getFinalStatus()); } + if (other.hasSyncSummary()) { + mergeSyncSummary(other.getSyncSummary()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -699,6 +1441,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)) { @@ -1416,6 +2164,216 @@ public com.google.rpc.StatusOrBuilder getFinalStatusOrBuilder() { return finalStatusBuilder_; } + private com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary syncSummary_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary, + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummaryOrBuilder> + syncSummaryBuilder_; + /** + * + * + *
+     * Output only. Summary of the sync job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The syncSummary. + */ + public com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary getSyncSummary() { + if (syncSummaryBuilder_ == null) { + return syncSummary_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.getDefaultInstance() + : syncSummary_; + } else { + return syncSummaryBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Summary of the sync job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSyncSummary( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSyncSummary( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSyncSummary( + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary value) { + if (syncSummaryBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && syncSummary_ != null + && syncSummary_ + != com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.Builder + getSyncSummaryBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getSyncSummaryFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Summary of the sync job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummaryOrBuilder + getSyncSummaryOrBuilder() { + if (syncSummaryBuilder_ != null) { + return syncSummaryBuilder_.getMessageOrBuilder(); + } else { + return syncSummary_ == null + ? com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.getDefaultInstance() + : syncSummary_; + } + } + /** + * + * + *
+     * Output only. Summary of the sync job.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary, + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.Builder, + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummaryOrBuilder> + getSyncSummaryFieldBuilder() { + if (syncSummaryBuilder_ == null) { + syncSummaryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary, + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary.Builder, + com.google.cloud.aiplatform.v1beta1.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSyncOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSyncOrBuilder.java index 55142e30b389..606dbf40aec9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSyncOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSyncOrBuilder.java @@ -164,4 +164,46 @@ 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.v1beta1.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.v1beta1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The syncSummary. + */ + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary getSyncSummary(); + /** + * + * + *
+   * Output only. Summary of the sync job.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummary sync_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.FeatureViewSync.SyncSummaryOrBuilder + getSyncSummaryOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSyncProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSyncProto.java index aca03e3d12e1..304b7cf4f685 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSyncProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureViewSyncProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_FeatureViewSync_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_FeatureViewSync_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_FeatureViewSync_SyncSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_FeatureViewSync_SyncSummary_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -46,23 +50,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rm.v1beta1\032\037google/api/field_behavior.pr" + "oto\032\031google/api/resource.proto\032\037google/p" + "rotobuf/timestamp.proto\032\027google/rpc/stat" - + "us.proto\032\032google/type/interval.proto\"\375\002\n" + + "us.proto\032\032google/type/interval.proto\"\227\004\n" + "\017FeatureViewSync\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013c" + "reate_time\030\002 \001(\0132\032.google.protobuf.Times" + "tampB\003\340A\003\022,\n\010run_time\030\005 \001(\0132\025.google.typ" + "e.IntervalB\003\340A\003\022-\n\014final_status\030\004 \001(\0132\022." - + "google.rpc.StatusB\003\340A\003:\303\001\352A\277\001\n)aiplatfor" - + "m.googleapis.com/FeatureViewSync\022\221\001proje" - + "cts/{project}/locations/{location}/featu" - + "reOnlineStores/{feature_online_store}/fe" - + "atureViews/{feature_view}/featureViewSyn" - + "cs/feature_view_syncB\353\001\n#com.google.clou" - + "d.aiplatform.v1beta1B\024FeatureViewSyncPro" - + "toP\001ZCcloud.google.com/go/aiplatform/api" - + "v1beta1/aiplatformpb;aiplatformpb\252\002\037Goog" - + "le.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clo" - + "ud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::A" - + "iplatform::V1beta1b\006proto3" + + "google.rpc.StatusB\003\340A\003\022W\n\014sync_summary\030\006" + + " \001(\0132<.google.cloud.aiplatform.v1beta1.F" + + "eatureViewSync.SyncSummaryB\003\340A\003\032?\n\013SyncS" + + "ummary\022\027\n\nrow_synced\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.goog" + + "leapis.com/FeatureViewSync\022\221\001projects/{p" + + "roject}/locations/{location}/featureOnli" + + "neStores/{feature_online_store}/featureV" + + "iews/{feature_view}/featureViewSyncs/fea" + + "ture_view_syncB\353\001\n#com.google.cloud.aipl" + + "atform.v1beta1B\024FeatureViewSyncProtoP\001ZC" + + "cloud.google.com/go/aiplatform/apiv1beta" + + "1/aiplatformpb;aiplatformpb\252\002\037Google.Clo" + + "ud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIP" + + "latform\\V1beta1\352\002\"Google::Cloud::Aiplatf" + + "orm::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -80,7 +88,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_FeatureViewSync_descriptor, new java.lang.String[] { - "Name", "CreateTime", "RunTime", "FinalStatus", + "Name", "CreateTime", "RunTime", "FinalStatus", "SyncSummary", + }); + internal_static_google_cloud_aiplatform_v1beta1_FeatureViewSync_SyncSummary_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_FeatureViewSync_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_aiplatform_v1beta1_FeatureViewSync_SyncSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenieSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenieSource.java new file mode 100644 index 000000000000..bc8819d51fe0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenieSource.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/v1beta1/model.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Contains information about the source of the models generated from Generative
+ * AI Studio.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenieSource} + */ +public final class GenieSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_GenieSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_GenieSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GenieSource.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.GenieSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GenieSource other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.GenieSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.GenieSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.GenieSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.GenieSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.GenieSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.GenieSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GenieSource) + com.google.cloud.aiplatform.v1beta1.GenieSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_GenieSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_GenieSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GenieSource.class, + com.google.cloud.aiplatform.v1beta1.GenieSource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_GenieSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenieSource getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GenieSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenieSource build() { + com.google.cloud.aiplatform.v1beta1.GenieSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenieSource buildPartial() { + com.google.cloud.aiplatform.v1beta1.GenieSource result = + new com.google.cloud.aiplatform.v1beta1.GenieSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.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.v1beta1.GenieSource) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GenieSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GenieSource other) { + if (other == com.google.cloud.aiplatform.v1beta1.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.v1beta1.GenieSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GenieSource) + private static final com.google.cloud.aiplatform.v1beta1.GenieSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GenieSource(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.GenieSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenieSourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenieSourceOrBuilder.java new file mode 100644 index 000000000000..9d4670a7f75f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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/v1beta1/model.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.aiplatform.v1beta1; + +public interface GenieSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapoint.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapoint.java index 21e2b665f47c..00a03bfcaab1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapoint.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexDatapoint.java @@ -1630,6 +1630,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), ; @@ -1693,6 +1703,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) { @@ -1730,6 +1750,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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexProto.java index f5018661c84e..febe088cdc65 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/IndexProto.java @@ -95,7 +95,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "FIED\020\000\022\020\n\014BATCH_UPDATE\020\001\022\021\n\rSTREAM_UPDAT" + "E\020\002:]\352AZ\n\037aiplatform.googleapis.com/Inde" + "x\0227projects/{project}/locations/{locatio" - + "n}/indexes/{index}\"\210\006\n\016IndexDatapoint\022\031\n" + + "n}/indexes/{index}\"\227\006\n\016IndexDatapoint\022\031\n" + "\014datapoint_id\030\001 \001(\tB\003\340A\002\022\033\n\016feature_vect" + "or\030\002 \003(\002B\003\340A\002\022S\n\trestricts\030\004 \003(\0132;.googl" + "e.cloud.aiplatform.v1beta1.IndexDatapoin" @@ -106,23 +106,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "atform.v1beta1.IndexDatapoint.CrowdingTa" + "gB\003\340A\001\032G\n\013Restriction\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" - + "\270\002\n\022NumericRestriction\022\023\n\tvalue_int\030\002 \001(" + + "\307\002\n\022NumericRestriction\022\023\n\tvalue_int\030\002 \001(" + "\003H\000\022\025\n\013value_float\030\003 \001(\002H\000\022\026\n\014value_doub" + "le\030\004 \001(\001H\000\022\021\n\tnamespace\030\001 \001(\t\022W\n\002op\030\005 \001(" + "\0162K.google.cloud.aiplatform.v1beta1.Inde" - + "xDatapoint.NumericRestriction.Operator\"i" + + "xDatapoint.NumericRestriction.Operator\"x" + "\n\010Operator\022\030\n\024OPERATOR_UNSPECIFIED\020\000\022\010\n\004" + "LESS\020\001\022\016\n\nLESS_EQUAL\020\002\022\t\n\005EQUAL\020\003\022\021\n\rGRE" - + "ATER_EQUAL\020\004\022\013\n\007GREATER\020\005B\007\n\005Value\032)\n\013Cr" - + "owdingTag\022\032\n\022crowding_attribute\030\001 \001(\t\"C\n" - + "\nIndexStats\022\032\n\rvectors_count\030\001 \001(\003B\003\340A\003\022" - + "\031\n\014shards_count\030\002 \001(\005B\003\340A\003B\341\001\n#com.googl" - + "e.cloud.aiplatform.v1beta1B\nIndexProtoP\001" - + "ZCcloud.google.com/go/aiplatform/apiv1be" - + "ta1/aiplatformpb;aiplatformpb\252\002\037Google.C" - + "loud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\A" - + "IPlatform\\V1beta1\352\002\"Google::Cloud::AIPla" - + "tform::V1beta1b\006proto3" + + "ATER_EQUAL\020\004\022\013\n\007GREATER\020\005\022\r\n\tNOT_EQUAL\020\006" + + "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\341\001\n#com.google.cloud.aiplatform.v1beta" + + "1B\nIndexProtoP\001ZCcloud.google.com/go/aip" + + "latform/apiv1beta1/aiplatformpb;aiplatfo" + + "rmpb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002" + + "\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Googl" + + "e::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequest.java index 42c3caae0aae..4a3a193aede2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequest.java @@ -143,12 +143,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: * * * `endpoint=1` * * `displayName="myDisplayName"` * * `labels.myKey="myValue"` + * * `baseModelName="text-bison"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -182,12 +184,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: * * * `endpoint=1` * * `displayName="myDisplayName"` * * `labels.myKey="myValue"` + * * `baseModelName="text-bison"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -929,12 +933,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: * * * `endpoint=1` * * `displayName="myDisplayName"` * * `labels.myKey="myValue"` + * * `baseModelName="text-bison"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -967,12 +973,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: * * * `endpoint=1` * * `displayName="myDisplayName"` * * `labels.myKey="myValue"` + * * `baseModelName="text-bison"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1005,12 +1013,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: * * * `endpoint=1` * * `displayName="myDisplayName"` * * `labels.myKey="myValue"` + * * `baseModelName="text-bison"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1042,12 +1052,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: * * * `endpoint=1` * * `displayName="myDisplayName"` * * `labels.myKey="myValue"` + * * `baseModelName="text-bison"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1075,12 +1087,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: * * * `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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequestOrBuilder.java index 30aa1b2b6728..ab11a4cdbfac 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListEndpointsRequestOrBuilder.java @@ -70,12 +70,14 @@ public interface ListEndpointsRequestOrBuilder * * `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: * * * `endpoint=1` * * `displayName="myDisplayName"` * * `labels.myKey="myValue"` + * * `baseModelName="text-bison"` * * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -98,12 +100,14 @@ public interface ListEndpointsRequestOrBuilder * * `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: * * * `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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequest.java index 2be69c3c9b1e..3da6fbff52a8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequest.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequest.java @@ -143,12 +143,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; @@ -182,12 +184,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; @@ -926,12 +930,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; @@ -964,12 +970,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; @@ -1002,12 +1010,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; @@ -1039,12 +1049,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; @@ -1072,12 +1084,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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequestOrBuilder.java index bafe0eddc0a4..6d31c763e8d1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListModelsRequestOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java index cbfabef4fb4f..a57f668d0feb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Model.java @@ -2487,6 +2487,1192 @@ public com.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo getDefaultIns } } + public interface BaseModelSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Model.BaseModelSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Source information of Model Garden models.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelGardenSource model_garden_source = 1; + * + * @return Whether the modelGardenSource field is set. + */ + boolean hasModelGardenSource(); + /** + * + * + *
+     * Source information of Model Garden models.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelGardenSource model_garden_source = 1; + * + * @return The modelGardenSource. + */ + com.google.cloud.aiplatform.v1beta1.ModelGardenSource getModelGardenSource(); + /** + * + * + *
+     * Source information of Model Garden models.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelGardenSource model_garden_source = 1; + */ + com.google.cloud.aiplatform.v1beta1.ModelGardenSourceOrBuilder getModelGardenSourceOrBuilder(); + + /** + * + * + *
+     * Information about the base model of Genie models.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenieSource genie_source = 2; + * + * @return Whether the genieSource field is set. + */ + boolean hasGenieSource(); + /** + * + * + *
+     * Information about the base model of Genie models.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenieSource genie_source = 2; + * + * @return The genieSource. + */ + com.google.cloud.aiplatform.v1beta1.GenieSource getGenieSource(); + /** + * + * + *
+     * Information about the base model of Genie models.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenieSource genie_source = 2; + */ + com.google.cloud.aiplatform.v1beta1.GenieSourceOrBuilder getGenieSourceOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.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.v1beta1.Model.BaseModelSource} + */ + public static final class BaseModelSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_Model_BaseModelSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_Model_BaseModelSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.ModelGardenSource model_garden_source = 1; + * + * @return The modelGardenSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelGardenSource getModelGardenSource() { + if (sourceCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.ModelGardenSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.ModelGardenSource.getDefaultInstance(); + } + /** + * + * + *
+     * Source information of Model Garden models.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelGardenSource model_garden_source = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelGardenSourceOrBuilder + getModelGardenSourceOrBuilder() { + if (sourceCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.ModelGardenSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.ModelGardenSource.getDefaultInstance(); + } + + public static final int GENIE_SOURCE_FIELD_NUMBER = 2; + /** + * + * + *
+     * Information about the base model of Genie models.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.GenieSource genie_source = 2; + * + * @return The genieSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenieSource getGenieSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.GenieSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.GenieSource.getDefaultInstance(); + } + /** + * + * + *
+     * Information about the base model of Genie models.
+     * 
+ * + * .google.cloud.aiplatform.v1beta1.GenieSource genie_source = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenieSourceOrBuilder getGenieSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.GenieSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource) source_); + } + if (sourceCase_ == 2) { + output.writeMessage(2, (com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource) source_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.aiplatform.v1beta1.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.v1beta1.Model.BaseModelSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.Model.BaseModelSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Model.BaseModelSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Model.BaseModelSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.Model.BaseModelSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Model.BaseModelSource) + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_Model_BaseModelSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_Model_BaseModelSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource.class, + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_Model_BaseModelSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource build() { + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource buildPartial() { + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource result = + new com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.Model.BaseModelSource) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource other) { + if (other == com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource, + com.google.cloud.aiplatform.v1beta1.ModelGardenSource.Builder, + com.google.cloud.aiplatform.v1beta1.ModelGardenSourceOrBuilder> + modelGardenSourceBuilder_; + /** + * + * + *
+       * Source information of Model Garden models.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource model_garden_source = 1; + * + * @return The modelGardenSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelGardenSource getModelGardenSource() { + if (modelGardenSourceBuilder_ == null) { + if (sourceCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.ModelGardenSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.ModelGardenSource.getDefaultInstance(); + } else { + if (sourceCase_ == 1) { + return modelGardenSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ModelGardenSource.getDefaultInstance(); + } + } + /** + * + * + *
+       * Source information of Model Garden models.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelGardenSource model_garden_source = 1; + */ + public Builder setModelGardenSource( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource model_garden_source = 1; + */ + public Builder setModelGardenSource( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource model_garden_source = 1; + */ + public Builder mergeModelGardenSource( + com.google.cloud.aiplatform.v1beta1.ModelGardenSource value) { + if (modelGardenSourceBuilder_ == null) { + if (sourceCase_ == 1 + && source_ + != com.google.cloud.aiplatform.v1beta1.ModelGardenSource.getDefaultInstance()) { + source_ = + com.google.cloud.aiplatform.v1beta1.ModelGardenSource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.ModelGardenSource model_garden_source = 1; + */ + public com.google.cloud.aiplatform.v1beta1.ModelGardenSource.Builder + getModelGardenSourceBuilder() { + return getModelGardenSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Source information of Model Garden models.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelGardenSource model_garden_source = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelGardenSourceOrBuilder + getModelGardenSourceOrBuilder() { + if ((sourceCase_ == 1) && (modelGardenSourceBuilder_ != null)) { + return modelGardenSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.ModelGardenSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.ModelGardenSource.getDefaultInstance(); + } + } + /** + * + * + *
+       * Source information of Model Garden models.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.ModelGardenSource model_garden_source = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelGardenSource, + com.google.cloud.aiplatform.v1beta1.ModelGardenSource.Builder, + com.google.cloud.aiplatform.v1beta1.ModelGardenSourceOrBuilder> + getModelGardenSourceFieldBuilder() { + if (modelGardenSourceBuilder_ == null) { + if (!(sourceCase_ == 1)) { + source_ = com.google.cloud.aiplatform.v1beta1.ModelGardenSource.getDefaultInstance(); + } + modelGardenSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ModelGardenSource, + com.google.cloud.aiplatform.v1beta1.ModelGardenSource.Builder, + com.google.cloud.aiplatform.v1beta1.ModelGardenSourceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ModelGardenSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 1; + onChanged(); + return modelGardenSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenieSource, + com.google.cloud.aiplatform.v1beta1.GenieSource.Builder, + com.google.cloud.aiplatform.v1beta1.GenieSourceOrBuilder> + genieSourceBuilder_; + /** + * + * + *
+       * Information about the base model of Genie models.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.GenieSource genie_source = 2; + * + * @return The genieSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenieSource getGenieSource() { + if (genieSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.GenieSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.GenieSource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return genieSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.GenieSource.getDefaultInstance(); + } + } + /** + * + * + *
+       * Information about the base model of Genie models.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GenieSource genie_source = 2; + */ + public Builder setGenieSource(com.google.cloud.aiplatform.v1beta1.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.v1beta1.GenieSource genie_source = 2; + */ + public Builder setGenieSource( + com.google.cloud.aiplatform.v1beta1.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.v1beta1.GenieSource genie_source = 2; + */ + public Builder mergeGenieSource(com.google.cloud.aiplatform.v1beta1.GenieSource value) { + if (genieSourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ != com.google.cloud.aiplatform.v1beta1.GenieSource.getDefaultInstance()) { + source_ = + com.google.cloud.aiplatform.v1beta1.GenieSource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.GenieSource genie_source = 2; + */ + public com.google.cloud.aiplatform.v1beta1.GenieSource.Builder getGenieSourceBuilder() { + return getGenieSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Information about the base model of Genie models.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GenieSource genie_source = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenieSourceOrBuilder getGenieSourceOrBuilder() { + if ((sourceCase_ == 2) && (genieSourceBuilder_ != null)) { + return genieSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.GenieSource) source_; + } + return com.google.cloud.aiplatform.v1beta1.GenieSource.getDefaultInstance(); + } + } + /** + * + * + *
+       * Information about the base model of Genie models.
+       * 
+ * + * .google.cloud.aiplatform.v1beta1.GenieSource genie_source = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenieSource, + com.google.cloud.aiplatform.v1beta1.GenieSource.Builder, + com.google.cloud.aiplatform.v1beta1.GenieSourceOrBuilder> + getGenieSourceFieldBuilder() { + if (genieSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = com.google.cloud.aiplatform.v1beta1.GenieSource.getDefaultInstance(); + } + genieSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.GenieSource, + com.google.cloud.aiplatform.v1beta1.GenieSource.Builder, + com.google.cloud.aiplatform.v1beta1.GenieSourceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.Model.BaseModelSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Model.BaseModelSource) + private static final com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.Model.BaseModelSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -4838,6 +6024,66 @@ public com.google.protobuf.ByteString getMetadataArtifactBytes() { } } + public static final int BASE_MODEL_SOURCE_FIELD_NUMBER = 50; + private com.google.cloud.aiplatform.v1beta1.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.v1beta1.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_ & 0x00000800) != 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.v1beta1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The baseModelSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource getBaseModelSource() { + return baseModelSource_ == null + ? com.google.cloud.aiplatform.v1beta1.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.v1beta1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Model.BaseModelSourceOrBuilder + getBaseModelSourceOrBuilder() { + return baseModelSource_ == null + ? com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource.getDefaultInstance() + : baseModelSource_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4942,6 +6188,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataArtifact_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 44, metadataArtifact_); } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(50, getBaseModelSource()); + } getUnknownFields().writeTo(output); } @@ -5070,6 +6319,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metadataArtifact_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(44, metadataArtifact_); } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, getBaseModelSource()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5151,6 +6403,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; } @@ -5254,6 +6510,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; @@ -5429,6 +6689,7 @@ private void maybeForceBuilderInitialization() { getEncryptionSpecFieldBuilder(); getModelSourceInfoFieldBuilder(); getOriginalModelInfoFieldBuilder(); + getBaseModelSourceFieldBuilder(); } } @@ -5521,6 +6782,11 @@ public Builder clear() { originalModelInfoBuilder_ = null; } metadataArtifact_ = ""; + baseModelSource_ = null; + if (baseModelSourceBuilder_ != null) { + baseModelSourceBuilder_.dispose(); + baseModelSourceBuilder_ = null; + } return this; } @@ -5690,6 +6956,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Model result) { if (((from_bitField0_ & 0x08000000) != 0)) { result.metadataArtifact_ = metadataArtifact_; } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.baseModelSource_ = + baseModelSourceBuilder_ == null ? baseModelSource_ : baseModelSourceBuilder_.build(); + to_bitField0_ |= 0x00000800; + } result.bitField0_ |= to_bitField0_; } @@ -5917,6 +7188,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Model other) { bitField0_ |= 0x08000000; onChanged(); } + if (other.hasBaseModelSource()) { + mergeBaseModelSource(other.getBaseModelSource()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6152,6 +7426,12 @@ public Builder mergeFrom( bitField0_ |= 0x08000000; break; } // case 354 + case 402: + { + input.readMessage(getBaseModelSourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x10000000; + break; + } // case 402 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -12827,6 +14107,224 @@ public Builder setMetadataArtifactBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource baseModelSource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource, + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource.Builder, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the baseModelSource field is set. + */ + public boolean hasBaseModelSource() { + return ((bitField0_ & 0x10000000) != 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.v1beta1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The baseModelSource. + */ + public com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource getBaseModelSource() { + if (baseModelSourceBuilder_ == null) { + return baseModelSource_ == null + ? com.google.cloud.aiplatform.v1beta1.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.v1beta1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBaseModelSource( + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource value) { + if (baseModelSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + baseModelSource_ = value; + } else { + baseModelSourceBuilder_.setMessage(value); + } + bitField0_ |= 0x10000000; + 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.v1beta1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBaseModelSource( + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource.Builder builderForValue) { + if (baseModelSourceBuilder_ == null) { + baseModelSource_ = builderForValue.build(); + } else { + baseModelSourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x10000000; + 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.v1beta1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBaseModelSource( + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource value) { + if (baseModelSourceBuilder_ == null) { + if (((bitField0_ & 0x10000000) != 0) + && baseModelSource_ != null + && baseModelSource_ + != com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource.getDefaultInstance()) { + getBaseModelSourceBuilder().mergeFrom(value); + } else { + baseModelSource_ = value; + } + } else { + baseModelSourceBuilder_.mergeFrom(value); + } + if (baseModelSource_ != null) { + bitField0_ |= 0x10000000; + 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.v1beta1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBaseModelSource() { + bitField0_ = (bitField0_ & ~0x10000000); + 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.v1beta1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource.Builder + getBaseModelSourceBuilder() { + bitField0_ |= 0x10000000; + 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.v1beta1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Model.BaseModelSourceOrBuilder + getBaseModelSourceOrBuilder() { + if (baseModelSourceBuilder_ != null) { + return baseModelSourceBuilder_.getMessageOrBuilder(); + } else { + return baseModelSource_ == null + ? com.google.cloud.aiplatform.v1beta1.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.v1beta1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource, + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource.Builder, + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSourceOrBuilder> + getBaseModelSourceFieldBuilder() { + if (baseModelSourceBuilder_ == null) { + baseModelSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource, + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSource.Builder, + com.google.cloud.aiplatform.v1beta1.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenSource.java new file mode 100644 index 000000000000..6483b9d52ea0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenSource.java @@ -0,0 +1,628 @@ +/* + * 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/v1beta1/model.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Contains information about the source of the models generated from Model
+ * Garden.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ModelGardenSource} + */ +public final class ModelGardenSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.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.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelGardenSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelGardenSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelGardenSource.class, + com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ModelGardenSource other = + (com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.ModelGardenSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ModelGardenSource) + com.google.cloud.aiplatform.v1beta1.ModelGardenSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelGardenSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelGardenSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ModelGardenSource.class, + com.google.cloud.aiplatform.v1beta1.ModelGardenSource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelProto + .internal_static_google_cloud_aiplatform_v1beta1_ModelGardenSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelGardenSource getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ModelGardenSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelGardenSource build() { + com.google.cloud.aiplatform.v1beta1.ModelGardenSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ModelGardenSource buildPartial() { + com.google.cloud.aiplatform.v1beta1.ModelGardenSource result = + new com.google.cloud.aiplatform.v1beta1.ModelGardenSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ModelGardenSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ModelGardenSource other) { + if (other == com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ModelGardenSource) + private static final com.google.cloud.aiplatform.v1beta1.ModelGardenSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ModelGardenSource(); + } + + public static com.google.cloud.aiplatform.v1beta1.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.v1beta1.ModelGardenSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenSourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelGardenSourceOrBuilder.java new file mode 100644 index 000000000000..7577726ee3a3 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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/v1beta1/model.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.aiplatform.v1beta1; + +public interface ModelGardenSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java index 41bd68009fa0..903f9dd8cc22 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelOrBuilder.java @@ -1798,4 +1798,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.v1beta1.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.v1beta1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The baseModelSource. + */ + com.google.cloud.aiplatform.v1beta1.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.v1beta1.Model.BaseModelSource base_model_source = 50 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Model.BaseModelSourceOrBuilder getBaseModelSourceOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java index 44a5b3920799..768e30c665e3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ModelProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_Model_OriginalModelInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_Model_OriginalModelInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Model_BaseModelSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Model_BaseModelSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_Model_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -48,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_LargeModelReference_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_LargeModelReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ModelGardenSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ModelGardenSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GenieSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GenieSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_PredictSchemata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -92,7 +104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "orm/v1beta1/explanation.proto\032\036google/pr" + "otobuf/duration.proto\032\034google/protobuf/s" + "truct.proto\032\037google/protobuf/timestamp.p" - + "roto\"\321\020\n\005Model\022\014\n\004name\030\001 \001(\t\022\032\n\nversion_" + + "roto\"\340\022\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_aliases\030\035 \003(" + "\t\022<\n\023version_create_time\030\037 \001(\0132\032.google." + "protobuf.TimestampB\003\340A\003\022<\n\023version_updat" @@ -130,58 +142,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "m.v1beta1.ModelSourceInfoB\003\340A\003\022Z\n\023origin" + "al_model_info\030\" \001(\01328.google.cloud.aipla" + "tform.v1beta1.Model.OriginalModelInfoB\003\340" - + "A\003\022\036\n\021metadata_artifact\030, \001(\tB\003\340A\003\032\332\001\n\014E" - + "xportFormat\022\017\n\002id\030\001 \001(\tB\003\340A\003\022g\n\023exportab" - + "le_contents\030\002 \003(\0162E.google.cloud.aiplatf" - + "orm.v1beta1.Model.ExportFormat.Exportabl" - + "eContentB\003\340A\003\"P\n\021ExportableContent\022\"\n\036EX" - + "PORTABLE_CONTENT_UNSPECIFIED\020\000\022\014\n\010ARTIFA" - + "CT\020\001\022\t\n\005IMAGE\020\002\032K\n\021OriginalModelInfo\0226\n\005" - + "model\030\001 \001(\tB\'\340A\003\372A!\n\037aiplatform.googleap" - + "is.com/Model\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\214\001\n\027DeploymentResour" - + "cesType\022)\n%DEPLOYMENT_RESOURCES_TYPE_UNS" - + "PECIFIED\020\000\022\027\n\023DEDICATED_RESOURCES\020\001\022\027\n\023A" - + "UTOMATIC_RESOURCES\020\002\022\024\n\020SHARED_RESOURCES" - + "\020\003:\\\352AY\n\037aiplatform.googleapis.com/Model" - + "\0226projects/{project}/locations/{location" - + "}/models/{model}\"(\n\023LargeModelReference\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\002\"{\n\017PredictSchemata\022 \n" - + "\023instance_schema_uri\030\001 \001(\tB\003\340A\005\022\"\n\025param" - + "eters_schema_uri\030\002 \001(\tB\003\340A\005\022\"\n\025predictio" - + "n_schema_uri\030\003 \001(\tB\003\340A\005\"\254\004\n\022ModelContain" - + "erSpec\022\031\n\timage_uri\030\001 \001(\tB\006\340A\002\340A\005\022\024\n\007com" - + "mand\030\002 \003(\tB\003\340A\005\022\021\n\004args\030\003 \003(\tB\003\340A\005\0229\n\003en" - + "v\030\004 \003(\0132\'.google.cloud.aiplatform.v1beta" - + "1.EnvVarB\003\340A\005\0229\n\005ports\030\005 \003(\0132%.google.cl" - + "oud.aiplatform.v1beta1.PortB\003\340A\005\022\032\n\rpred" - + "ict_route\030\006 \001(\tB\003\340A\005\022\031\n\014health_route\030\007 \001" - + "(\tB\003\340A\005\022>\n\ngrpc_ports\030\t \003(\0132%.google.clo" - + "ud.aiplatform.v1beta1.PortB\003\340A\005\022:\n\022deplo" - + "yment_timeout\030\n \001(\0132\031.google.protobuf.Du" - + "rationB\003\340A\005\022\"\n\025shared_memory_size_mb\030\013 \001" - + "(\003B\003\340A\005\022B\n\rstartup_probe\030\014 \001(\0132&.google." - + "cloud.aiplatform.v1beta1.ProbeB\003\340A\005\022A\n\014h" - + "ealth_probe\030\r \001(\0132&.google.cloud.aiplatf" - + "orm.v1beta1.ProbeB\003\340A\005\"\036\n\004Port\022\026\n\016contai" - + "ner_port\030\003 \001(\005\"\230\002\n\017ModelSourceInfo\022U\n\013so" - + "urce_type\030\001 \001(\0162@.google.cloud.aiplatfor" - + "m.v1beta1.ModelSourceInfo.ModelSourceTyp" - + "e\022\014\n\004copy\030\002 \001(\010\"\237\001\n\017ModelSourceType\022!\n\035M" - + "ODEL_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\013MARKETPLACE\020\007\"\250\001\n\005Probe\022A\n\004exec\030\001 \001(" - + "\01321.google.cloud.aiplatform.v1beta1.Prob" - + "e.ExecActionH\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\341\001\n#com.goo" - + "gle.cloud.aiplatform.v1beta1B\nModelProto" - + "P\001ZCcloud.google.com/go/aiplatform/apiv1" - + "beta1/aiplatformpb;aiplatformpb\252\002\037Google" - + ".Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cloud" - + "\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIP" - + "latform::V1beta1b\006proto3" + + "A\003\022\036\n\021metadata_artifact\030, \001(\tB\003\340A\003\022V\n\021ba" + + "se_model_source\0302 \001(\01326.google.cloud.aip" + + "latform.v1beta1.Model.BaseModelSourceB\003\340" + + "A\001\032\332\001\n\014ExportFormat\022\017\n\002id\030\001 \001(\tB\003\340A\003\022g\n\023" + + "exportable_contents\030\002 \003(\0162E.google.cloud" + + ".aiplatform.v1beta1.Model.ExportFormat.E" + + "xportableContentB\003\340A\003\"P\n\021ExportableConte" + + "nt\022\"\n\036EXPORTABLE_CONTENT_UNSPECIFIED\020\000\022\014" + + "\n\010ARTIFACT\020\001\022\t\n\005IMAGE\020\002\032K\n\021OriginalModel" + + "Info\0226\n\005model\030\001 \001(\tB\'\340A\003\372A!\n\037aiplatform." + + "googleapis.com/Model\032\264\001\n\017BaseModelSource" + + "\022Q\n\023model_garden_source\030\001 \001(\01322.google.c" + + "loud.aiplatform.v1beta1.ModelGardenSourc" + + "eH\000\022D\n\014genie_source\030\002 \001(\0132,.google.cloud" + + ".aiplatform.v1beta1.GenieSourceH\000B\010\n\006sou" + + "rce\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\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\037" + + "aiplatform.googleapis.com/Model\0226project" + + "s/{project}/locations/{location}/models/" + + "{model}\"(\n\023LargeModelReference\022\021\n\004name\030\001" + + " \001(\tB\003\340A\002\"3\n\021ModelGardenSource\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\017PredictSch" + + "emata\022 \n\023instance_schema_uri\030\001 \001(\tB\003\340A\005\022" + + "\"\n\025parameters_schema_uri\030\002 \001(\tB\003\340A\005\022\"\n\025p" + + "rediction_schema_uri\030\003 \001(\tB\003\340A\005\"\254\004\n\022Mode" + + "lContainerSpec\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\340" + + "A\005\0229\n\003env\030\004 \003(\0132\'.google.cloud.aiplatfor" + + "m.v1beta1.EnvVarB\003\340A\005\0229\n\005ports\030\005 \003(\0132%.g" + + "oogle.cloud.aiplatform.v1beta1.PortB\003\340A\005" + + "\022\032\n\rpredict_route\030\006 \001(\tB\003\340A\005\022\031\n\014health_r" + + "oute\030\007 \001(\tB\003\340A\005\022>\n\ngrpc_ports\030\t \003(\0132%.go" + + "ogle.cloud.aiplatform.v1beta1.PortB\003\340A\005\022" + + ":\n\022deployment_timeout\030\n \001(\0132\031.google.pro" + + "tobuf.DurationB\003\340A\005\022\"\n\025shared_memory_siz" + + "e_mb\030\013 \001(\003B\003\340A\005\022B\n\rstartup_probe\030\014 \001(\0132&" + + ".google.cloud.aiplatform.v1beta1.ProbeB\003" + + "\340A\005\022A\n\014health_probe\030\r \001(\0132&.google.cloud" + + ".aiplatform.v1beta1.ProbeB\003\340A\005\"\036\n\004Port\022\026" + + "\n\016container_port\030\003 \001(\005\"\230\002\n\017ModelSourceIn" + + "fo\022U\n\013source_type\030\001 \001(\0162@.google.cloud.a" + + "iplatform.v1beta1.ModelSourceInfo.ModelS" + + "ourceType\022\014\n\004copy\030\002 \001(\010\"\237\001\n\017ModelSourceT" + + "ype\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\014MODE" + + "L_GARDEN\020\004\022\t\n\005GENIE\020\005\022\031\n\025CUSTOM_TEXT_EMB" + + "EDDING\020\006\022\017\n\013MARKETPLACE\020\007\"\250\001\n\005Probe\022A\n\004e" + + "xec\030\001 \001(\01321.google.cloud.aiplatform.v1be" + + "ta1.Probe.ExecActionH\000\022\026\n\016period_seconds" + + "\030\002 \001(\005\022\027\n\017timeout_seconds\030\003 \001(\005\032\035\n\nExecA" + + "ction\022\017\n\007command\030\001 \003(\tB\014\n\nprobe_typeB\341\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\nMo" + + "delProtoP\001ZCcloud.google.com/go/aiplatfo" + + "rm/apiv1beta1/aiplatformpb;aiplatformpb\252" + + "\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goog" + + "le\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cl" + + "oud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -231,6 +252,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ModelSourceInfo", "OriginalModelInfo", "MetadataArtifact", + "BaseModelSource", }); internal_static_google_cloud_aiplatform_v1beta1_Model_ExportFormat_descriptor = internal_static_google_cloud_aiplatform_v1beta1_Model_descriptor.getNestedTypes().get(0); @@ -248,8 +270,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Model", }); - internal_static_google_cloud_aiplatform_v1beta1_Model_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Model_BaseModelSource_descriptor = internal_static_google_cloud_aiplatform_v1beta1_Model_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_Model_BaseModelSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Model_BaseModelSource_descriptor, + new java.lang.String[] { + "ModelGardenSource", "GenieSource", "Source", + }); + internal_static_google_cloud_aiplatform_v1beta1_Model_LabelsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Model_descriptor.getNestedTypes().get(3); internal_static_google_cloud_aiplatform_v1beta1_Model_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Model_LabelsEntry_descriptor, @@ -264,8 +294,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_cloud_aiplatform_v1beta1_PredictSchemata_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ModelGardenSource_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_aiplatform_v1beta1_ModelGardenSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ModelGardenSource_descriptor, + new java.lang.String[] { + "PublicModelName", + }); + internal_static_google_cloud_aiplatform_v1beta1_GenieSource_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_aiplatform_v1beta1_GenieSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GenieSource_descriptor, + new java.lang.String[] { + "BaseModelUri", + }); + internal_static_google_cloud_aiplatform_v1beta1_PredictSchemata_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_aiplatform_v1beta1_PredictSchemata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PredictSchemata_descriptor, @@ -273,7 +319,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceSchemaUri", "ParametersSchemaUri", "PredictionSchemaUri", }); internal_static_google_cloud_aiplatform_v1beta1_ModelContainerSpec_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_aiplatform_v1beta1_ModelContainerSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ModelContainerSpec_descriptor, @@ -292,7 +338,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthProbe", }); internal_static_google_cloud_aiplatform_v1beta1_Port_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_aiplatform_v1beta1_Port_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Port_descriptor, @@ -300,7 +346,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ContainerPort", }); internal_static_google_cloud_aiplatform_v1beta1_ModelSourceInfo_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1beta1_ModelSourceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ModelSourceInfo_descriptor, @@ -308,7 +354,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceType", "Copy", }); internal_static_google_cloud_aiplatform_v1beta1_Probe_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1beta1_Probe_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_Probe_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceProto.java index 8c42ec5d2183..45e94f6938c9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PersistentResourceServiceProto.java @@ -85,74 +85,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\023persistent_resource\030\002 \001(\01323.google.clo" + "ud.aiplatform.v1beta1.PersistentResource" + "B\003\340A\002\022#\n\026persistent_resource_id\030\003 \001(\tB\003\340" - + "A\002\"\200\001\n)CreatePersistentResourceOperation" + + "A\002\"\232\001\n)CreatePersistentResourceOperation" + "Metadata\022S\n\020generic_metadata\030\001 \001(\01329.goo" + "gle.cloud.aiplatform.v1beta1.GenericOper" - + "ationMetadata\"\200\001\n)UpdatePersistentResour" - + "ceOperationMetadata\022S\n\020generic_metadata\030" - + "\001 \001(\01329.google.cloud.aiplatform.v1beta1." - + "GenericOperationMetadata\"b\n\034GetPersisten" - + "tResourceRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n," - + "aiplatform.googleapis.com/PersistentReso" - + "urce\"\214\001\n\036ListPersistentResourcesRequest\022" - + "9\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googl" - + "eapis.com/Location\022\026\n\tpage_size\030\003 \001(\005B\003\340" - + "A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"\215\001\n\037ListPers" - + "istentResourcesResponse\022Q\n\024persistent_re" - + "sources\030\001 \003(\01323.google.cloud.aiplatform." - + "v1beta1.PersistentResource\022\027\n\017next_page_" - + "token\030\002 \001(\t\"e\n\037DeletePersistentResourceR" - + "equest\022B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,aiplatform" - + ".googleapis.com/PersistentResource\"\256\001\n\037U" - + "pdatePersistentResourceRequest\022U\n\023persis" - + "tent_resource\030\001 \001(\01323.google.cloud.aipla" - + "tform.v1beta1.PersistentResourceB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" - + "ldMaskB\003\340A\0022\323\013\n\031PersistentResourceServic" - + "e\022\315\002\n\030CreatePersistentResource\022@.google." - + "cloud.aiplatform.v1beta1.CreatePersisten" - + "tResourceRequest\032\035.google.longrunning.Op" - + "eration\"\317\001\312A?\n\022PersistentResource\022)Creat" - + "ePersistentResourceOperationMetadata\332A1p" - + "arent,persistent_resource,persistent_res" - + "ource_id\202\323\344\223\002S\"\022\022*\022\022*<" + + "/v1beta1/{name=projects/*/locations/*/pe" + + "rsistentResources/*}\022\317\002\n\030UpdatePersisten" + + "tResource\022@.google.cloud.aiplatform.v1be" + + "ta1.UpdatePersistentResourceRequest\032\035.go" + + "ogle.longrunning.Operation\"\321\001\312A?\n\022Persis" + + "tentResource\022)UpdatePersistentResourceOp" + + "erationMetadata\332A\037persistent_resource,up" + + "date_mask\202\323\344\223\002g2P/v1beta1/{persistent_re" + + "source.name=projects/*/locations/*/persi" + + "stentResources/*}:\023persistent_resource\032M" + + "\312A\031aiplatform.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platformB\365\001" + + "\n#com.google.cloud.aiplatform.v1beta1B\036P" + + "ersistentResourceServiceProtoP\001ZCcloud.g" + + "oogle.com/go/aiplatform/apiv1beta1/aipla" + + "tformpb;aiplatformpb\252\002\037Google.Cloud.AIPl" + + "atform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform" + + "\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1" + + "beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -182,7 +183,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_CreatePersistentResourceOperationMetadata_descriptor, new java.lang.String[] { - "GenericMetadata", + "GenericMetadata", "ProgressMessage", }); internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceOperationMetadata_descriptor = getDescriptor().getMessageTypes().get(2); @@ -190,7 +191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_UpdatePersistentResourceOperationMetadata_descriptor, new java.lang.String[] { - "GenericMetadata", + "GenericMetadata", "ProgressMessage", }); internal_static_google_cloud_aiplatform_v1beta1_GetPersistentResourceRequest_descriptor = getDescriptor().getMessageTypes().get(3); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java index 91b776b8c556..1609f4d30cc5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Pipeline.java @@ -119,7 +119,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/pipeline_state.proto\032+google/cloud/aipl" + "atform/v1beta1/value.proto\032\034google/proto" + "buf/struct.proto\032\037google/protobuf/timest" - + "amp.proto\032\027google/rpc/status.proto\"\214\017\n\013P" + + "amp.proto\032\027google/rpc/status.proto\"\260\017\n\013P" + "ipelineJob\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014display" + "_name\030\002 \001(\t\0224\n\013create_time\030\003 \001(\0132\032.googl" + "e.protobuf.TimestampB\003\340A\003\0223\n\nstart_time\030" @@ -144,98 +144,99 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "emplate_uri\030\023 \001(\t\022Y\n\021template_metadata\030\024" + " \001(\01329.google.cloud.aiplatform.v1beta1.P" + "ipelineTemplateMetadataB\003\340A\003\022\032\n\rschedule" - + "_name\030\026 \001(\tB\003\340A\003\032\226\006\n\rRuntimeConfig\022b\n\npa" - + "rameters\030\001 \003(\0132J.google.cloud.aiplatform" - + ".v1beta1.PipelineJob.RuntimeConfig.Param" - + "etersEntryB\002\030\001\022!\n\024gcs_output_directory\030\002" - + " \001(\tB\003\340A\002\022i\n\020parameter_values\030\003 \003(\0132O.go" - + "ogle.cloud.aiplatform.v1beta1.PipelineJo" - + "b.RuntimeConfig.ParameterValuesEntry\022N\n\016" - + "failure_policy\030\004 \001(\01626.google.cloud.aipl" - + "atform.v1beta1.PipelineFailurePolicy\022g\n\017" - + "input_artifacts\030\005 \003(\0132N.google.cloud.aip" - + "latform.v1beta1.PipelineJob.RuntimeConfi" - + "g.InputArtifactsEntry\032.\n\rInputArtifact\022\025" - + "\n\013artifact_id\030\001 \001(\tH\000B\006\n\004kind\032Y\n\017Paramet" - + "ersEntry\022\013\n\003key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.g" - + "oogle.cloud.aiplatform.v1beta1.Value:\0028\001" - + "\032N\n\024ParameterValuesEntry\022\013\n\003key\030\001 \001(\t\022%\n" - + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001" - + "\032\177\n\023InputArtifactsEntry\022\013\n\003key\030\001 \001(\t\022W\n\005" - + "value\030\002 \001(\0132H.google.cloud.aiplatform.v1" - + "beta1.PipelineJob.RuntimeConfig.InputArt" - + "ifact:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001:o\352Al\n%aiplatform.google" - + "apis.com/PipelineJob\022Cprojects/{project}" - + "/locations/{location}/pipelineJobs/{pipe" - + "line_job}\"+\n\030PipelineTemplateMetadata\022\017\n" - + "\007version\030\003 \001(\t\"\371\001\n\021PipelineJobDetail\022G\n\020" - + "pipeline_context\030\001 \001(\0132(.google.cloud.ai" - + "platform.v1beta1.ContextB\003\340A\003\022K\n\024pipelin" - + "e_run_context\030\002 \001(\0132(.google.cloud.aipla" - + "tform.v1beta1.ContextB\003\340A\003\022N\n\014task_detai" - + "ls\030\003 \003(\01323.google.cloud.aiplatform.v1bet" - + "a1.PipelineTaskDetailB\003\340A\003\"\317\013\n\022PipelineT" - + "askDetail\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016paren" - + "t_task_id\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB" - + "\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0221\n\010end_t" - + "ime\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022Y\n\017executor_detail\030\006 \001(\0132;.google.clo" - + "ud.aiplatform.v1beta1.PipelineTaskExecut" - + "orDetailB\003\340A\003\022M\n\005state\030\007 \001(\01629.google.cl" - + "oud.aiplatform.v1beta1.PipelineTaskDetai" - + "l.StateB\003\340A\003\022B\n\texecution\030\010 \001(\0132*.google" - + ".cloud.aiplatform.v1beta1.ExecutionB\003\340A\003" - + "\022&\n\005error\030\t \001(\0132\022.google.rpc.StatusB\003\340A\003" - + "\022i\n\024pipeline_task_status\030\r \003(\0132F.google." - + "cloud.aiplatform.v1beta1.PipelineTaskDet" - + "ail.PipelineTaskStatusB\003\340A\003\022T\n\006inputs\030\n " - + "\003(\0132?.google.cloud.aiplatform.v1beta1.Pi" - + "pelineTaskDetail.InputsEntryB\003\340A\003\022V\n\007out" - + "puts\030\013 \003(\0132@.google.cloud.aiplatform.v1b" - + "eta1.PipelineTaskDetail.OutputsEntryB\003\340A" - + "\003\032\301\001\n\022PipelineTaskStatus\0224\n\013update_time\030" - + "\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M" - + "\n\005state\030\002 \001(\01629.google.cloud.aiplatform." - + "v1beta1.PipelineTaskDetail.StateB\003\340A\003\022&\n" - + "\005error\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032Q\n" - + "\014ArtifactList\022A\n\tartifacts\030\001 \003(\0132).googl" - + "e.cloud.aiplatform.v1beta1.ArtifactB\003\340A\003" - + "\032o\n\013InputsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 " - + "\001(\0132@.google.cloud.aiplatform.v1beta1.Pi" - + "pelineTaskDetail.ArtifactList:\0028\001\032p\n\014Out" - + "putsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@." - + "google.cloud.aiplatform.v1beta1.Pipeline" - + "TaskDetail.ArtifactList:\0028\001\"\246\001\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUN" - + "NING\020\002\022\r\n\tSUCCEEDED\020\003\022\022\n\016CANCEL_PENDING\020" - + "\004\022\016\n\nCANCELLING\020\005\022\r\n\tCANCELLED\020\006\022\n\n\006FAIL" - + "ED\020\007\022\013\n\007SKIPPED\020\010\022\021\n\rNOT_TRIGGERED\020\t\"\325\004\n" - + "\032PipelineTaskExecutorDetail\022l\n\020container" - + "_detail\030\001 \001(\0132K.google.cloud.aiplatform." - + "v1beta1.PipelineTaskExecutorDetail.Conta" - + "inerDetailB\003\340A\003H\000\022m\n\021custom_job_detail\030\002" - + " \001(\0132K.google.cloud.aiplatform.v1beta1.P" - + "ipelineTaskExecutorDetail.CustomJobDetai" - + "lB\003\340A\003H\000\032\347\001\n\017ContainerDetail\022=\n\010main_job" - + "\030\001 \001(\tB+\340A\003\372A%\n#aiplatform.googleapis.co" - + "m/CustomJob\022J\n\025pre_caching_check_job\030\002 \001" + + "_name\030\026 \001(\tB\003\340A\003\022\"\n\025preflight_validation" + + "s\030\032 \001(\010B\003\340A\001\032\226\006\n\rRuntimeConfig\022b\n\nparame" + + "ters\030\001 \003(\0132J.google.cloud.aiplatform.v1b" + + "eta1.PipelineJob.RuntimeConfig.Parameter" + + "sEntryB\002\030\001\022!\n\024gcs_output_directory\030\002 \001(\t" + + "B\003\340A\002\022i\n\020parameter_values\030\003 \003(\0132O.google" + + ".cloud.aiplatform.v1beta1.PipelineJob.Ru" + + "ntimeConfig.ParameterValuesEntry\022N\n\016fail" + + "ure_policy\030\004 \001(\01626.google.cloud.aiplatfo" + + "rm.v1beta1.PipelineFailurePolicy\022g\n\017inpu" + + "t_artifacts\030\005 \003(\0132N.google.cloud.aiplatf" + + "orm.v1beta1.PipelineJob.RuntimeConfig.In" + + "putArtifactsEntry\032.\n\rInputArtifact\022\025\n\013ar" + + "tifact_id\030\001 \001(\tH\000B\006\n\004kind\032Y\n\017ParametersE" + + "ntry\022\013\n\003key\030\001 \001(\t\0225\n\005value\030\002 \001(\0132&.googl" + + "e.cloud.aiplatform.v1beta1.Value:\0028\001\032N\n\024" + + "ParameterValuesEntry\022\013\n\003key\030\001 \001(\t\022%\n\005val" + + "ue\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\032\177\n\023" + + "InputArtifactsEntry\022\013\n\003key\030\001 \001(\t\022W\n\005valu" + + "e\030\002 \001(\0132H.google.cloud.aiplatform.v1beta" + + "1.PipelineJob.RuntimeConfig.InputArtifac" + + "t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001:o\352Al\n%aiplatform.googleapis" + + ".com/PipelineJob\022Cprojects/{project}/loc" + + "ations/{location}/pipelineJobs/{pipeline" + + "_job}\"+\n\030PipelineTemplateMetadata\022\017\n\007ver" + + "sion\030\003 \001(\t\"\371\001\n\021PipelineJobDetail\022G\n\020pipe" + + "line_context\030\001 \001(\0132(.google.cloud.aiplat" + + "form.v1beta1.ContextB\003\340A\003\022K\n\024pipeline_ru" + + "n_context\030\002 \001(\0132(.google.cloud.aiplatfor" + + "m.v1beta1.ContextB\003\340A\003\022N\n\014task_details\030\003" + + " \003(\01323.google.cloud.aiplatform.v1beta1.P" + + "ipelineTaskDetailB\003\340A\003\"\317\013\n\022PipelineTaskD" + + "etail\022\024\n\007task_id\030\001 \001(\003B\003\340A\003\022\033\n\016parent_ta" + + "sk_id\030\014 \001(\003B\003\340A\003\022\026\n\ttask_name\030\002 \001(\tB\003\340A\003" + + "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0223\n\nstart_time\030\004 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030" + + "\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Y" + + "\n\017executor_detail\030\006 \001(\0132;.google.cloud.a" + + "iplatform.v1beta1.PipelineTaskExecutorDe" + + "tailB\003\340A\003\022M\n\005state\030\007 \001(\01629.google.cloud." + + "aiplatform.v1beta1.PipelineTaskDetail.St" + + "ateB\003\340A\003\022B\n\texecution\030\010 \001(\0132*.google.clo" + + "ud.aiplatform.v1beta1.ExecutionB\003\340A\003\022&\n\005" + + "error\030\t \001(\0132\022.google.rpc.StatusB\003\340A\003\022i\n\024" + + "pipeline_task_status\030\r \003(\0132F.google.clou" + + "d.aiplatform.v1beta1.PipelineTaskDetail." + + "PipelineTaskStatusB\003\340A\003\022T\n\006inputs\030\n \003(\0132" + + "?.google.cloud.aiplatform.v1beta1.Pipeli" + + "neTaskDetail.InputsEntryB\003\340A\003\022V\n\007outputs" + + "\030\013 \003(\0132@.google.cloud.aiplatform.v1beta1" + + ".PipelineTaskDetail.OutputsEntryB\003\340A\003\032\301\001" + + "\n\022PipelineTaskStatus\0224\n\013update_time\030\001 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n\005st" + + "ate\030\002 \001(\01629.google.cloud.aiplatform.v1be" + + "ta1.PipelineTaskDetail.StateB\003\340A\003\022&\n\005err" + + "or\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\032Q\n\014Art" + + "ifactList\022A\n\tartifacts\030\001 \003(\0132).google.cl" + + "oud.aiplatform.v1beta1.ArtifactB\003\340A\003\032o\n\013" + + "InputsEntry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132" + + "@.google.cloud.aiplatform.v1beta1.Pipeli" + + "neTaskDetail.ArtifactList:\0028\001\032p\n\014Outputs" + + "Entry\022\013\n\003key\030\001 \001(\t\022O\n\005value\030\002 \001(\0132@.goog" + + "le.cloud.aiplatform.v1beta1.PipelineTask" + + "Detail.ArtifactList:\0028\001\"\246\001\n\005State\022\025\n\021STA" + + "TE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING" + + "\020\002\022\r\n\tSUCCEEDED\020\003\022\022\n\016CANCEL_PENDING\020\004\022\016\n" + + "\nCANCELLING\020\005\022\r\n\tCANCELLED\020\006\022\n\n\006FAILED\020\007" + + "\022\013\n\007SKIPPED\020\010\022\021\n\rNOT_TRIGGERED\020\t\"\325\004\n\032Pip" + + "elineTaskExecutorDetail\022l\n\020container_det" + + "ail\030\001 \001(\0132K.google.cloud.aiplatform.v1be" + + "ta1.PipelineTaskExecutorDetail.Container" + + "DetailB\003\340A\003H\000\022m\n\021custom_job_detail\030\002 \001(\013" + + "2K.google.cloud.aiplatform.v1beta1.Pipel" + + "ineTaskExecutorDetail.CustomJobDetailB\003\340" + + "A\003H\000\032\347\001\n\017ContainerDetail\022=\n\010main_job\030\001 \001" + "(\tB+\340A\003\372A%\n#aiplatform.googleapis.com/Cu" - + "stomJob\022\035\n\020failed_main_jobs\030\003 \003(\tB\003\340A\003\022*" - + "\n\035failed_pre_caching_check_jobs\030\004 \003(\tB\003\340" - + "A\003\032e\n\017CustomJobDetail\0228\n\003job\030\001 \001(\tB+\340A\003\372" - + "A%\n#aiplatform.googleapis.com/CustomJob\022" - + "\030\n\013failed_jobs\030\003 \003(\tB\003\340A\003B\t\n\007detailsB\260\002\n" - + "#com.google.cloud.aiplatform.v1beta1B\010Pi" - + "pelineP\001ZCcloud.google.com/go/aiplatform" - + "/apiv1beta1/aiplatformpb;aiplatformpb\252\002\037" - + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google" - + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Clou" - + "d::AIPlatform::V1beta1\352AN\n\036compute.googl" - + "eapis.com/Network\022,projects/{project}/gl" - + "obal/networks/{network}b\006proto3" + + "stomJob\022J\n\025pre_caching_check_job\030\002 \001(\tB+" + + "\340A\003\372A%\n#aiplatform.googleapis.com/Custom" + + "Job\022\035\n\020failed_main_jobs\030\003 \003(\tB\003\340A\003\022*\n\035fa" + + "iled_pre_caching_check_jobs\030\004 \003(\tB\003\340A\003\032e" + + "\n\017CustomJobDetail\0228\n\003job\030\001 \001(\tB+\340A\003\372A%\n#" + + "aiplatform.googleapis.com/CustomJob\022\030\n\013f" + + "ailed_jobs\030\003 \003(\tB\003\340A\003B\t\n\007detailsB\260\002\n#com" + + ".google.cloud.aiplatform.v1beta1B\010Pipeli" + + "neP\001ZCcloud.google.com/go/aiplatform/api" + + "v1beta1/aiplatformpb;aiplatformpb\252\002\037Goog" + + "le.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clo" + + "ud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::A" + + "IPlatform::V1beta1\352AN\n\036compute.googleapi" + + "s.com/Network\022,projects/{project}/global" + + "/networks/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -279,6 +280,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TemplateUri", "TemplateMetadata", "ScheduleName", + "PreflightValidations", }); internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_RuntimeConfig_descriptor = internal_static_google_cloud_aiplatform_v1beta1_PipelineJob_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java index 003aef52c19e..3a0e5a12bb05 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJob.java @@ -4799,6 +4799,24 @@ public com.google.protobuf.ByteString getScheduleNameBytes() { } } + public static final int PREFLIGHT_VALIDATIONS_FIELD_NUMBER = 26; + private boolean preflightValidations_ = false; + /** + * + * + *
+   * Optional. Whether to do component level validations before job creation.
+   * 
+ * + * bool preflight_validations = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preflightValidations. + */ + @java.lang.Override + public boolean getPreflightValidations() { + return preflightValidations_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4871,6 +4889,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < reservedIpRanges_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, reservedIpRanges_.getRaw(i)); } + if (preflightValidations_ != false) { + output.writeBool(26, preflightValidations_); + } getUnknownFields().writeTo(output); } @@ -4951,6 +4972,9 @@ public int getSerializedSize() { size += dataSize; size += 2 * getReservedIpRangesList().size(); } + if (preflightValidations_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(26, preflightValidations_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5016,6 +5040,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTemplateMetadata().equals(other.getTemplateMetadata())) return false; } if (!getScheduleName().equals(other.getScheduleName())) return false; + if (getPreflightValidations() != other.getPreflightValidations()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5089,6 +5114,8 @@ public int hashCode() { } hash = (37 * hash) + SCHEDULE_NAME_FIELD_NUMBER; hash = (53 * hash) + getScheduleName().hashCode(); + hash = (37 * hash) + PREFLIGHT_VALIDATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreflightValidations()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5327,6 +5354,7 @@ public Builder clear() { templateMetadataBuilder_ = null; } scheduleName_ = ""; + preflightValidations_ = false; return this; } @@ -5437,6 +5465,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PipelineJob resul if (((from_bitField0_ & 0x00040000) != 0)) { result.scheduleName_ = scheduleName_; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.preflightValidations_ = preflightValidations_; + } result.bitField0_ |= to_bitField0_; } @@ -5561,6 +5592,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineJob other) bitField0_ |= 0x00040000; onChanged(); } + if (other.getPreflightValidations() != false) { + setPreflightValidations(other.getPreflightValidations()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5709,6 +5743,12 @@ public Builder mergeFrom( reservedIpRanges_.add(s); break; } // case 202 + case 208: + { + preflightValidations_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 208 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9042,6 +9082,59 @@ public Builder setScheduleNameBytes(com.google.protobuf.ByteString value) { return this; } + private boolean preflightValidations_; + /** + * + * + *
+     * Optional. Whether to do component level validations before job creation.
+     * 
+ * + * bool preflight_validations = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preflightValidations. + */ + @java.lang.Override + public boolean getPreflightValidations() { + return preflightValidations_; + } + /** + * + * + *
+     * Optional. Whether to do component level validations before job creation.
+     * 
+ * + * bool preflight_validations = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The preflightValidations to set. + * @return This builder for chaining. + */ + public Builder setPreflightValidations(boolean value) { + + preflightValidations_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Whether to do component level validations before job creation.
+     * 
+ * + * bool preflight_validations = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPreflightValidations() { + bitField0_ = (bitField0_ & ~0x00080000); + preflightValidations_ = false; + onChanged(); + return this; + } + @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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java index 8119011de778..bb5706358e1b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineJobOrBuilder.java @@ -826,4 +826,17 @@ java.lang.String getLabelsOrDefault( * @return The bytes for scheduleName. */ com.google.protobuf.ByteString getScheduleNameBytes(); + + /** + * + * + *
+   * Optional. Whether to do component level validations before job creation.
+   * 
+ * + * bool preflight_validations = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preflightValidations. + */ + boolean getPreflightValidations(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceProto.java index 859b6f6d7297..50f8d082771c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PipelineServiceProto.java @@ -139,119 +139,118 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\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\"\333\001\n\030Cr" + + "m.googleapis.com/TrainingPipeline\"\267\001\n\030Cr" + "eatePipelineJobRequest\0229\n\006parent\030\001 \001(\tB)" + "\340A\002\372A#\n!locations.googleapis.com/Locatio" + "n\022G\n\014pipeline_job\030\002 \001(\0132,.google.cloud.a" + "iplatform.v1beta1.PipelineJobB\003\340A\002\022\027\n\017pi" - + "peline_job_id\030\003 \001(\t\022\"\n\025preflight_validat" - + "ions\030\004 \001(\010B\003\340A\001\"T\n\025GetPipelineJobRequest" - + "\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%aiplatform.googl" - + "eapis.com/PipelineJob\"\314\001\n\027ListPipelineJo" - + "bsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" - + "ions.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(\013" - + "2\032.google.protobuf.FieldMask\"x\n\030ListPipe" - + "lineJobsResponse\022C\n\rpipeline_jobs\030\001 \003(\0132" - + ",.google.cloud.aiplatform.v1beta1.Pipeli" - + "neJob\022\027\n\017next_page_token\030\002 \001(\t\"W\n\030Delete" - + "PipelineJobRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'" - + "\n%aiplatform.googleapis.com/PipelineJob\"" - + "\235\001\n\036BatchDeletePipelineJobsRequest\022=\n\006pa" - + "rent\030\001 \001(\tB-\340A\002\372A\'\022%aiplatform.googleapi" - + "s.com/PipelineJob\022<\n\005names\030\002 \003(\tB-\340A\002\372A\'" - + "\n%aiplatform.googleapis.com/PipelineJob\"" - + "f\n\037BatchDeletePipelineJobsResponse\022C\n\rpi" - + "peline_jobs\030\001 \003(\0132,.google.cloud.aiplatf" - + "orm.v1beta1.PipelineJob\"W\n\030CancelPipelin" - + "eJobRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%aipla" - + "tform.googleapis.com/PipelineJob\"\235\001\n\036Bat" - + "chCancelPipelineJobsRequest\022=\n\006parent\030\001 " - + "\001(\tB-\340A\002\372A\'\022%aiplatform.googleapis.com/P" - + "ipelineJob\022<\n\005names\030\002 \003(\tB-\340A\002\372A\'\n%aipla" - + "tform.googleapis.com/PipelineJob\"f\n\037Batc" - + "hCancelPipelineJobsResponse\022C\n\rpipeline_" - + "jobs\030\001 \003(\0132,.google.cloud.aiplatform.v1b" - + "eta1.PipelineJob2\275\026\n\017PipelineService\022\375\001\n" - + "\026CreateTrainingPipeline\022>.google.cloud.a" - + "iplatform.v1beta1.CreateTrainingPipeline" - + "Request\0321.google.cloud.aiplatform.v1beta" - + "1.TrainingPipeline\"p\332A\030parent,training_p" - + "ipeline\202\323\344\223\002O\":/v1beta1/{parent=projects" - + "/*/locations/*}/trainingPipelines:\021train" - + "ing_pipeline\022\320\001\n\023GetTrainingPipeline\022;.g" - + "oogle.cloud.aiplatform.v1beta1.GetTraini" - + "ngPipelineRequest\0321.google.cloud.aiplatf" - + "orm.v1beta1.TrainingPipeline\"I\332A\004name\202\323\344" - + "\223\002<\022:/v1beta1/{name=projects/*/locations" - + "/*/trainingPipelines/*}\022\343\001\n\025ListTraining" - + "Pipelines\022=.google.cloud.aiplatform.v1be" - + "ta1.ListTrainingPipelinesRequest\032>.googl" - + "e.cloud.aiplatform.v1beta1.ListTrainingP" - + "ipelinesResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1be" - + "ta1/{parent=projects/*/locations/*}/trai" - + "ningPipelines\022\365\001\n\026DeleteTrainingPipeline" - + "\022>.google.cloud.aiplatform.v1beta1.Delet" - + "eTrainingPipelineRequest\032\035.google.longru" - + "nning.Operation\"|\312A0\n\025google.protobuf.Em" - + "pty\022\027DeleteOperationMetadata\332A\004name\202\323\344\223\002" - + "<*:/v1beta1/{name=projects/*/locations/*" - + "/trainingPipelines/*}\022\305\001\n\026CancelTraining" - + "Pipeline\022>.google.cloud.aiplatform.v1bet" - + "a1.CancelTrainingPipelineRequest\032\026.googl" - + "e.protobuf.Empty\"S\332A\004name\202\323\344\223\002F\"A/v1beta" - + "1/{name=projects/*/locations/*/trainingP" - + "ipelines/*}:cancel:\001*\022\357\001\n\021CreatePipeline" - + "Job\0229.google.cloud.aiplatform.v1beta1.Cr" - + "eatePipelineJobRequest\032,.google.cloud.ai" - + "platform.v1beta1.PipelineJob\"q\332A#parent," - + "pipeline_job,pipeline_job_id\202\323\344\223\002E\"5/v1b" - + "eta1/{parent=projects/*/locations/*}/pip" - + "elineJobs:\014pipeline_job\022\274\001\n\016GetPipelineJ" - + "ob\0226.google.cloud.aiplatform.v1beta1.Get" - + "PipelineJobRequest\032,.google.cloud.aiplat" - + "form.v1beta1.PipelineJob\"D\332A\004name\202\323\344\223\0027\022" - + "5/v1beta1/{name=projects/*/locations/*/p" - + "ipelineJobs/*}\022\317\001\n\020ListPipelineJobs\0228.go" - + "ogle.cloud.aiplatform.v1beta1.ListPipeli" - + "neJobsRequest\0329.google.cloud.aiplatform." - + "v1beta1.ListPipelineJobsResponse\"F\332A\006par" - + "ent\202\323\344\223\0027\0225/v1beta1/{parent=projects/*/l" - + "ocations/*}/pipelineJobs\022\346\001\n\021DeletePipel" - + "ineJob\0229.google.cloud.aiplatform.v1beta1" - + ".DeletePipelineJobRequest\032\035.google.longr" - + "unning.Operation\"w\312A0\n\025google.protobuf.E" - + "mpty\022\027DeleteOperationMetadata\332A\004name\202\323\344\223" - + "\0027*5/v1beta1/{name=projects/*/locations/" - + "*/pipelineJobs/*}\022\224\002\n\027BatchDeletePipelin" - + "eJobs\022?.google.cloud.aiplatform.v1beta1." - + "BatchDeletePipelineJobsRequest\032\035.google." - + "longrunning.Operation\"\230\001\312A:\n\037BatchDelete" - + "PipelineJobsResponse\022\027DeleteOperationMet" - + "adata\332A\014parent,names\202\323\344\223\002F\"A/v1beta1/{pa" - + "rent=projects/*/locations/*}/pipelineJob" - + "s:batchDelete:\001*\022\266\001\n\021CancelPipelineJob\0229" - + ".google.cloud.aiplatform.v1beta1.CancelP" - + "ipelineJobRequest\032\026.google.protobuf.Empt" - + "y\"N\332A\004name\202\323\344\223\002A\".google.clo" + + "ud.aiplatform.v1beta1.CreateTrainingPipe" + + "lineRequest\0321.google.cloud.aiplatform.v1" + + "beta1.TrainingPipeline\"p\332A\030parent,traini" + + "ng_pipeline\202\323\344\223\002O\":/v1beta1/{parent=proj" + + "ects/*/locations/*}/trainingPipelines:\021t" + + "raining_pipeline\022\320\001\n\023GetTrainingPipeline" + + "\022;.google.cloud.aiplatform.v1beta1.GetTr" + + "ainingPipelineRequest\0321.google.cloud.aip" + + "latform.v1beta1.TrainingPipeline\"I\332A\004nam" + + "e\202\323\344\223\002<\022:/v1beta1/{name=projects/*/locat" + + "ions/*/trainingPipelines/*}\022\343\001\n\025ListTrai" + + "ningPipelines\022=.google.cloud.aiplatform." + + "v1beta1.ListTrainingPipelinesRequest\032>.g" + + "oogle.cloud.aiplatform.v1beta1.ListTrain" + + "ingPipelinesResponse\"K\332A\006parent\202\323\344\223\002<\022:/" + + "v1beta1/{parent=projects/*/locations/*}/" + + "trainingPipelines\022\365\001\n\026DeleteTrainingPipe" + + "line\022>.google.cloud.aiplatform.v1beta1.D" + + "eleteTrainingPipelineRequest\032\035.google.lo" + + "ngrunning.Operation\"|\312A0\n\025google.protobu" + + "f.Empty\022\027DeleteOperationMetadata\332A\004name\202" + + "\323\344\223\002<*:/v1beta1/{name=projects/*/locatio" + + "ns/*/trainingPipelines/*}\022\305\001\n\026CancelTrai" + + "ningPipeline\022>.google.cloud.aiplatform.v" + + "1beta1.CancelTrainingPipelineRequest\032\026.g" + + "oogle.protobuf.Empty\"S\332A\004name\202\323\344\223\002F\"A/v1" + + "beta1/{name=projects/*/locations/*/train" + + "ingPipelines/*}:cancel:\001*\022\357\001\n\021CreatePipe" + + "lineJob\0229.google.cloud.aiplatform.v1beta" + + "1.CreatePipelineJobRequest\032,.google.clou" + + "d.aiplatform.v1beta1.PipelineJob\"q\332A#par" + + "ent,pipeline_job,pipeline_job_id\202\323\344\223\002E\"5" + + "/v1beta1/{parent=projects/*/locations/*}" + + "/pipelineJobs:\014pipeline_job\022\274\001\n\016GetPipel" + + "ineJob\0226.google.cloud.aiplatform.v1beta1" + + ".GetPipelineJobRequest\032,.google.cloud.ai" + + "platform.v1beta1.PipelineJob\"D\332A\004name\202\323\344" + + "\223\0027\0225/v1beta1/{name=projects/*/locations" + + "/*/pipelineJobs/*}\022\317\001\n\020ListPipelineJobs\022" + + "8.google.cloud.aiplatform.v1beta1.ListPi" + + "pelineJobsRequest\0329.google.cloud.aiplatf" + + "orm.v1beta1.ListPipelineJobsResponse\"F\332A" + + "\006parent\202\323\344\223\0027\0225/v1beta1/{parent=projects" + + "/*/locations/*}/pipelineJobs\022\346\001\n\021DeleteP" + + "ipelineJob\0229.google.cloud.aiplatform.v1b" + + "eta1.DeletePipelineJobRequest\032\035.google.l" + + "ongrunning.Operation\"w\312A0\n\025google.protob" + + "uf.Empty\022\027DeleteOperationMetadata\332A\004name" + + "\202\323\344\223\0027*5/v1beta1/{name=projects/*/locati" + + "ons/*/pipelineJobs/*}\022\224\002\n\027BatchDeletePip" + + "elineJobs\022?.google.cloud.aiplatform.v1be" + + "ta1.BatchDeletePipelineJobsRequest\032\035.goo" + + "gle.longrunning.Operation\"\230\001\312A:\n\037BatchDe" + + "letePipelineJobsResponse\022\027DeleteOperatio" + + "nMetadata\332A\014parent,names\202\323\344\223\002F\"A/v1beta1" + + "/{parent=projects/*/locations/*}/pipelin" + + "eJobs:batchDelete:\001*\022\266\001\n\021CancelPipelineJ" + + "ob\0229.google.cloud.aiplatform.v1beta1.Can" + + "celPipelineJobRequest\032\026.google.protobuf." + + "Empty\"N\332A\004name\202\323\344\223\002A\" - * 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; @@ -337,7 +338,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; @@ -347,7 +351,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; @@ -357,7 +363,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; @@ -380,7 +387,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; @@ -390,7 +398,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; @@ -400,7 +411,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; @@ -410,7 +423,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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SafetyRating.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SafetyRating.java index 1eed2a44c2f8..3f2acf231119 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SafetyRating.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/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.v1beta1.SafetyRating.HarmProbability) } + /** + * + * + *
+   * Harm severity levels.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.SafetyRating.HarmSeverity) + } + public static final int CATEGORY_FIELD_NUMBER = 1; private int category_ = 0; /** @@ -347,6 +549,83 @@ public com.google.cloud.aiplatform.v1beta1.SafetyRating.HarmProbability getProba : 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.v1beta1.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.v1beta1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SafetyRating.HarmSeverity getSeverity() { + com.google.cloud.aiplatform.v1beta1.SafetyRating.HarmSeverity result = + com.google.cloud.aiplatform.v1beta1.SafetyRating.HarmSeverity.forNumber(severity_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.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; /** @@ -393,6 +672,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.v1beta1.SafetyRating.HarmSeverity.HARM_SEVERITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, severity_); + } + if (java.lang.Float.floatToRawIntBits(severityScore_) != 0) { + output.writeFloat(7, severityScore_); + } getUnknownFields().writeTo(output); } @@ -415,6 +705,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.v1beta1.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; @@ -433,6 +734,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; @@ -449,6 +755,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(); @@ -592,6 +904,9 @@ public Builder clear() { bitField0_ = 0; category_ = 0; probability_ = 0; + probabilityScore_ = 0F; + severity_ = 0; + severityScore_ = 0F; blocked_ = false; return this; } @@ -636,6 +951,15 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SafetyRating resu 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_; } } @@ -692,6 +1016,15 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.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()); } @@ -736,9 +1069,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)) { @@ -963,6 +1314,215 @@ 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.v1beta1.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.v1beta1.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.v1beta1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SafetyRating.HarmSeverity getSeverity() { + com.google.cloud.aiplatform.v1beta1.SafetyRating.HarmSeverity result = + com.google.cloud.aiplatform.v1beta1.SafetyRating.HarmSeverity.forNumber(severity_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.SafetyRating.HarmSeverity.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Harm severity levels in the content.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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_; /** * @@ -996,7 +1556,7 @@ public boolean getBlocked() { public Builder setBlocked(boolean value) { blocked_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1013,7 +1573,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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SafetyRatingOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SafetyRatingOrBuilder.java index 9667c2033d88..653b13410702 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SafetyRatingOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SafetyRatingOrBuilder.java @@ -82,6 +82,61 @@ public interface SafetyRatingOrBuilder */ com.google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The severity. + */ + com.google.cloud.aiplatform.v1beta1.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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java index 17fdc8e6aeed..0ab6ecd8fc8c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Tool.java @@ -28,7 +28,8 @@ * 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. A Tool object should contain exactly - * one type of Tool. + * one type of Tool (e.g FunctionDeclaration, Retrieval or + * GoogleSearchRetrieval). * * * Protobuf type {@code google.cloud.aiplatform.v1beta1.Tool} @@ -78,14 +79,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.
    * 
* * @@ -101,14 +102,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.
    * 
* * @@ -124,14 +125,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.
    * 
* * @@ -146,14 +147,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.
    * 
* * @@ -169,14 +170,14 @@ public com.google.cloud.aiplatform.v1beta1.FunctionDeclaration getFunctionDeclar * * *
-   * 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.
    * 
* * @@ -195,9 +196,10 @@ public com.google.cloud.aiplatform.v1beta1.FunctionDeclaration getFunctionDeclar * * *
-   * Optional. 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.
+   * 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.
    * 
* * @@ -214,9 +216,10 @@ public boolean hasRetrieval() { * * *
-   * Optional. 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.
+   * 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.
    * 
* * @@ -235,9 +238,10 @@ public com.google.cloud.aiplatform.v1beta1.Retrieval getRetrieval() { * * *
-   * Optional. 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.
+   * 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.
    * 
* * @@ -257,7 +261,8 @@ public com.google.cloud.aiplatform.v1beta1.RetrievalOrBuilder getRetrievalOrBuil * * *
-   * Optional. Specialized retrieval tool that is powered by Google search.
+   * Optional. GoogleSearchRetrieval tool type.
+   * Specialized retrieval tool that is powered by Google search.
    * 
* * @@ -274,7 +279,8 @@ public boolean hasGoogleSearchRetrieval() { * * *
-   * Optional. Specialized retrieval tool that is powered by Google search.
+   * Optional. GoogleSearchRetrieval tool type.
+   * Specialized retrieval tool that is powered by Google search.
    * 
* * @@ -293,7 +299,8 @@ public com.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval getGoogleSearch * * *
-   * Optional. Specialized retrieval tool that is powered by Google search.
+   * Optional. GoogleSearchRetrieval tool type.
+   * Specialized retrieval tool that is powered by Google search.
    * 
* * @@ -507,7 +514,8 @@ 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. A Tool object should contain exactly - * one type of Tool. + * one type of Tool (e.g FunctionDeclaration, Retrieval or + * GoogleSearchRetrieval). * * * Protobuf type {@code google.cloud.aiplatform.v1beta1.Tool} @@ -806,14 +814,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.
      * 
* * @@ -832,14 +840,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.
      * 
* * @@ -857,14 +865,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.
      * 
* * @@ -883,14 +891,14 @@ public com.google.cloud.aiplatform.v1beta1.FunctionDeclaration getFunctionDeclar * * *
-     * 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.
      * 
* * @@ -915,14 +923,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.
      * 
* * @@ -945,14 +953,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.
      * 
* * @@ -977,14 +985,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.
      * 
* * @@ -1009,14 +1017,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.
      * 
* * @@ -1038,14 +1046,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.
      * 
* * @@ -1068,14 +1076,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.
      * 
* * @@ -1098,14 +1106,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.
      * 
* * @@ -1126,14 +1134,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.
      * 
* * @@ -1154,14 +1162,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.
      * 
* * @@ -1176,14 +1184,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.
      * 
* * @@ -1202,14 +1210,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.
      * 
* * @@ -1229,14 +1237,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.
      * 
* * @@ -1252,14 +1260,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.
      * 
* * @@ -1276,14 +1284,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.
      * 
* * @@ -1325,9 +1333,10 @@ public Builder removeFunctionDeclarations(int index) { * * *
-     * Optional. 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.
+     * 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.
      * 
* * @@ -1343,9 +1352,10 @@ public boolean hasRetrieval() { * * *
-     * Optional. 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.
+     * 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.
      * 
* * @@ -1367,9 +1377,10 @@ public com.google.cloud.aiplatform.v1beta1.Retrieval getRetrieval() { * * *
-     * Optional. 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.
+     * 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.
      * 
* * @@ -1393,9 +1404,10 @@ public Builder setRetrieval(com.google.cloud.aiplatform.v1beta1.Retrieval value) * * *
-     * Optional. 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.
+     * 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.
      * 
* * @@ -1417,9 +1429,10 @@ public Builder setRetrieval( * * *
-     * Optional. 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.
+     * 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.
      * 
* * @@ -1448,9 +1461,10 @@ public Builder mergeRetrieval(com.google.cloud.aiplatform.v1beta1.Retrieval valu * * *
-     * Optional. 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.
+     * 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.
      * 
* * @@ -1471,9 +1485,10 @@ public Builder clearRetrieval() { * * *
-     * Optional. 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.
+     * 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.
      * 
* * @@ -1489,9 +1504,10 @@ public com.google.cloud.aiplatform.v1beta1.Retrieval.Builder getRetrievalBuilder * * *
-     * Optional. 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.
+     * 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.
      * 
* * @@ -1511,9 +1527,10 @@ public com.google.cloud.aiplatform.v1beta1.RetrievalOrBuilder getRetrievalOrBuil * * *
-     * Optional. 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.
+     * 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.
      * 
* * @@ -1547,7 +1564,8 @@ public com.google.cloud.aiplatform.v1beta1.RetrievalOrBuilder getRetrievalOrBuil * * *
-     * Optional. Specialized retrieval tool that is powered by Google search.
+     * Optional. GoogleSearchRetrieval tool type.
+     * Specialized retrieval tool that is powered by Google search.
      * 
* * @@ -1563,7 +1581,8 @@ public boolean hasGoogleSearchRetrieval() { * * *
-     * Optional. Specialized retrieval tool that is powered by Google search.
+     * Optional. GoogleSearchRetrieval tool type.
+     * Specialized retrieval tool that is powered by Google search.
      * 
* * @@ -1585,7 +1604,8 @@ public com.google.cloud.aiplatform.v1beta1.GoogleSearchRetrieval getGoogleSearch * * *
-     * Optional. Specialized retrieval tool that is powered by Google search.
+     * Optional. GoogleSearchRetrieval tool type.
+     * Specialized retrieval tool that is powered by Google search.
      * 
* * @@ -1610,7 +1630,8 @@ public Builder setGoogleSearchRetrieval( * * *
-     * Optional. Specialized retrieval tool that is powered by Google search.
+     * Optional. GoogleSearchRetrieval tool type.
+     * Specialized retrieval tool that is powered by Google search.
      * 
* * @@ -1632,7 +1653,8 @@ public Builder setGoogleSearchRetrieval( * * *
-     * Optional. Specialized retrieval tool that is powered by Google search.
+     * Optional. GoogleSearchRetrieval tool type.
+     * Specialized retrieval tool that is powered by Google search.
      * 
* * @@ -1663,7 +1685,8 @@ public Builder mergeGoogleSearchRetrieval( * * *
-     * Optional. Specialized retrieval tool that is powered by Google search.
+     * Optional. GoogleSearchRetrieval tool type.
+     * Specialized retrieval tool that is powered by Google search.
      * 
* * @@ -1684,7 +1707,8 @@ public Builder clearGoogleSearchRetrieval() { * * *
-     * Optional. Specialized retrieval tool that is powered by Google search.
+     * Optional. GoogleSearchRetrieval tool type.
+     * Specialized retrieval tool that is powered by Google search.
      * 
* * @@ -1701,7 +1725,8 @@ public Builder clearGoogleSearchRetrieval() { * * *
-     * Optional. Specialized retrieval tool that is powered by Google search.
+     * Optional. GoogleSearchRetrieval tool type.
+     * Specialized retrieval tool that is powered by Google search.
      * 
* * @@ -1722,7 +1747,8 @@ public Builder clearGoogleSearchRetrieval() { * * *
-     * Optional. Specialized retrieval tool that is powered by Google search.
+     * Optional. GoogleSearchRetrieval tool type.
+     * Specialized retrieval tool that is powered by Google search.
      * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolOrBuilder.java index bffa7de62e9a..2677778cd8b8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolOrBuilder.java @@ -28,14 +28,14 @@ public interface ToolOrBuilder * * *
-   * 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.
    * 
* * @@ -48,14 +48,14 @@ public interface ToolOrBuilder * * *
-   * 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.
    * 
* * @@ -67,14 +67,14 @@ public interface ToolOrBuilder * * *
-   * 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.
    * 
* * @@ -86,14 +86,14 @@ public interface ToolOrBuilder * * *
-   * 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.
    * 
* * @@ -106,14 +106,14 @@ public interface ToolOrBuilder * * *
-   * 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.
    * 
* * @@ -127,9 +127,10 @@ com.google.cloud.aiplatform.v1beta1.FunctionDeclarationOrBuilder getFunctionDecl * * *
-   * Optional. 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.
+   * 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.
    * 
* * @@ -143,9 +144,10 @@ com.google.cloud.aiplatform.v1beta1.FunctionDeclarationOrBuilder getFunctionDecl * * *
-   * Optional. 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.
+   * 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.
    * 
* * @@ -159,9 +161,10 @@ com.google.cloud.aiplatform.v1beta1.FunctionDeclarationOrBuilder getFunctionDecl * * *
-   * Optional. 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.
+   * 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.
    * 
* * @@ -174,7 +177,8 @@ com.google.cloud.aiplatform.v1beta1.FunctionDeclarationOrBuilder getFunctionDecl * * *
-   * Optional. Specialized retrieval tool that is powered by Google search.
+   * Optional. GoogleSearchRetrieval tool type.
+   * Specialized retrieval tool that is powered by Google search.
    * 
* * @@ -188,7 +192,8 @@ com.google.cloud.aiplatform.v1beta1.FunctionDeclarationOrBuilder getFunctionDecl * * *
-   * Optional. Specialized retrieval tool that is powered by Google search.
+   * Optional. GoogleSearchRetrieval tool type.
+   * Specialized retrieval tool that is powered by Google search.
    * 
* * @@ -202,7 +207,8 @@ com.google.cloud.aiplatform.v1beta1.FunctionDeclarationOrBuilder getFunctionDecl * * *
-   * Optional. Specialized retrieval tool that is powered by Google search.
+   * Optional. GoogleSearchRetrieval tool type.
+   * Specialized retrieval tool that is powered by Google search.
    * 
* * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java index 8290f7ddf80a..dd5e9a9b9ea6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ToolProto.java @@ -67,41 +67,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n*google/cloud/aiplatform/v1beta1/tool.p" + "roto\022\037google.cloud.aiplatform.v1beta1\032\037g" - + "oogle/api/field_behavior.proto\032-google/c" - + "loud/aiplatform/v1beta1/openapi.proto\032\034g" - + "oogle/protobuf/struct.proto\"\202\002\n\004Tool\022X\n\025" - + "function_declarations\030\001 \003(\01324.google.clo" - + "ud.aiplatform.v1beta1.FunctionDeclaratio" - + "nB\003\340A\001\022B\n\tretrieval\030\002 \001(\0132*.google.cloud" - + ".aiplatform.v1beta1.RetrievalB\003\340A\001\022\\\n\027go" - + "ogle_search_retrieval\030\003 \001(\01326.google.clo" - + "ud.aiplatform.v1beta1.GoogleSearchRetrie" - + "valB\003\340A\001\"\204\001\n\023FunctionDeclaration\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022@\n" - + "\nparameters\030\003 \001(\0132\'.google.cloud.aiplatf" - + "orm.v1beta1.SchemaB\003\340A\001\"M\n\014FunctionCall\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\002\022*\n\004args\030\002 \001(\0132\027.googl" - + "e.protobuf.StructB\003\340A\001\"U\n\020FunctionRespon" - + "se\022\021\n\004name\030\001 \001(\tB\003\340A\002\022.\n\010response\030\002 \001(\0132" - + "\027.google.protobuf.StructB\003\340A\002\"\204\001\n\tRetrie" - + "val\022K\n\020vertex_ai_search\030\002 \001(\0132/.google.c" - + "loud.aiplatform.v1beta1.VertexAISearchH\000" - + "\022 \n\023disable_attribution\030\003 \001(\010B\003\340A\001B\010\n\006so" - + "urce\"(\n\016VertexAISearch\022\026\n\tdatastore\030\001 \001(" - + "\tB\003\340A\002\"9\n\025GoogleSearchRetrieval\022 \n\023disab" - + "le_attribution\030\001 \001(\010B\003\340A\001B\340\001\n#com.google" - + ".cloud.aiplatform.v1beta1B\tToolProtoP\001ZC" - + "cloud.google.com/go/aiplatform/apiv1beta" - + "1/aiplatformpb;aiplatformpb\252\002\037Google.Clo" - + "ud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIP" - + "latform\\V1beta1\352\002\"Google::Cloud::AIPlatf" - + "orm::V1beta1b\006proto3" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032-google/cloud/aiplatfo" + + "rm/v1beta1/openapi.proto\032\034google/protobu" + + "f/struct.proto\"\202\002\n\004Tool\022X\n\025function_decl" + + "arations\030\001 \003(\01324.google.cloud.aiplatform" + + ".v1beta1.FunctionDeclarationB\003\340A\001\022B\n\tret" + + "rieval\030\002 \001(\0132*.google.cloud.aiplatform.v" + + "1beta1.RetrievalB\003\340A\001\022\\\n\027google_search_r" + + "etrieval\030\003 \001(\01326.google.cloud.aiplatform" + + ".v1beta1.GoogleSearchRetrievalB\003\340A\001\"\204\001\n\023" + + "FunctionDeclaration\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030" + + "\n\013description\030\002 \001(\tB\003\340A\001\022@\n\nparameters\030\003" + + " \001(\0132\'.google.cloud.aiplatform.v1beta1.S" + + "chemaB\003\340A\001\"M\n\014FunctionCall\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\002\022*\n\004args\030\002 \001(\0132\027.google.protobuf.St" + + "ructB\003\340A\001\"U\n\020FunctionResponse\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\002\022.\n\010response\030\002 \001(\0132\027.google.prot" + + "obuf.StructB\003\340A\002\"\204\001\n\tRetrieval\022K\n\020vertex" + + "_ai_search\030\002 \001(\0132/.google.cloud.aiplatfo" + + "rm.v1beta1.VertexAISearchH\000\022 \n\023disable_a" + + "ttribution\030\003 \001(\010B\003\340A\001B\010\n\006source\"(\n\016Verte" + + "xAISearch\022\026\n\tdatastore\030\001 \001(\tB\003\340A\002\"9\n\025Goo" + + "gleSearchRetrieval\022 \n\023disable_attributio" + + "n\030\001 \001(\010B\003\340A\001B\340\001\n#com.google.cloud.aiplat" + + "form.v1beta1B\tToolProtoP\001ZCcloud.google." + + "com/go/aiplatform/apiv1beta1/aiplatformp" + + "b;aiplatformpb\252\002\037Google.Cloud.AIPlatform" + + ".V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1bet" + + "a1\352\002\"Google::Cloud::AIPlatform::V1beta1b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.cloud.aiplatform.v1beta1.OpenApiProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); @@ -167,6 +169,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.cloud.aiplatform.v1beta1.OpenApiProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceOperationMetadata.java index c90cadc9e85b..8a8dae213aeb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceOperationMetadata.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceOperationMetadata.java @@ -40,7 +40,9 @@ private UpdatePersistentResourceOperationMetadata( super(builder); } - private UpdatePersistentResourceOperationMetadata() {} + private UpdatePersistentResourceOperationMetadata() { + progressMessage_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -116,6 +118,57 @@ public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMe : genericMetadata_; } + public static final int PROGRESS_MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object progressMessage_ = ""; + /** + * + * + *
+   * Progress Message for Update LRO
+   * 
+ * + * string progress_message = 2; + * + * @return The progressMessage. + */ + @java.lang.Override + public java.lang.String getProgressMessage() { + java.lang.Object ref = progressMessage_; + 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(); + progressMessage_ = s; + return s; + } + } + /** + * + * + *
+   * Progress Message for Update LRO
+   * 
+ * + * string progress_message = 2; + * + * @return The bytes for progressMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProgressMessageBytes() { + java.lang.Object ref = progressMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + progressMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -133,6 +186,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getGenericMetadata()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(progressMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, progressMessage_); + } getUnknownFields().writeTo(output); } @@ -145,6 +201,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(progressMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, progressMessage_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -166,6 +225,7 @@ public boolean equals(final java.lang.Object obj) { if (hasGenericMetadata()) { if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; } + if (!getProgressMessage().equals(other.getProgressMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,6 +241,8 @@ public int hashCode() { hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; hash = (53 * hash) + getGenericMetadata().hashCode(); } + hash = (37 * hash) + PROGRESS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getProgressMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -343,6 +405,7 @@ public Builder clear() { genericMetadataBuilder_.dispose(); genericMetadataBuilder_ = null; } + progressMessage_ = ""; return this; } @@ -390,6 +453,9 @@ private void buildPartial0( genericMetadataBuilder_ == null ? genericMetadata_ : genericMetadataBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.progressMessage_ = progressMessage_; + } result.bitField0_ |= to_bitField0_; } @@ -447,6 +513,11 @@ public Builder mergeFrom( if (other.hasGenericMetadata()) { mergeGenericMetadata(other.getGenericMetadata()); } + if (!other.getProgressMessage().isEmpty()) { + progressMessage_ = other.progressMessage_; + bitField0_ |= 0x00000002; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -479,6 +550,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + progressMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -690,6 +767,112 @@ public Builder clearGenericMetadata() { return genericMetadataBuilder_; } + private java.lang.Object progressMessage_ = ""; + /** + * + * + *
+     * Progress Message for Update LRO
+     * 
+ * + * string progress_message = 2; + * + * @return The progressMessage. + */ + public java.lang.String getProgressMessage() { + java.lang.Object ref = progressMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + progressMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Progress Message for Update LRO
+     * 
+ * + * string progress_message = 2; + * + * @return The bytes for progressMessage. + */ + public com.google.protobuf.ByteString getProgressMessageBytes() { + java.lang.Object ref = progressMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + progressMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Progress Message for Update LRO
+     * 
+ * + * string progress_message = 2; + * + * @param value The progressMessage to set. + * @return This builder for chaining. + */ + public Builder setProgressMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + progressMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Progress Message for Update LRO
+     * 
+ * + * string progress_message = 2; + * + * @return This builder for chaining. + */ + public Builder clearProgressMessage() { + progressMessage_ = getDefaultInstance().getProgressMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Progress Message for Update LRO
+     * 
+ * + * string progress_message = 2; + * + * @param value The bytes for progressMessage to set. + * @return This builder for chaining. + */ + public Builder setProgressMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + progressMessage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @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-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceOperationMetadataOrBuilder.java index fbb06b063b03..a0723a841107 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceOperationMetadataOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdatePersistentResourceOperationMetadataOrBuilder.java @@ -59,4 +59,29 @@ public interface UpdatePersistentResourceOperationMetadataOrBuilder */ com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder(); + + /** + * + * + *
+   * Progress Message for Update LRO
+   * 
+ * + * string progress_message = 2; + * + * @return The progressMessage. + */ + java.lang.String getProgressMessage(); + /** + * + * + *
+   * Progress Message for Update LRO
+   * 
+ * + * string progress_message = 2; + * + * @return The bytes for progressMessage. + */ + com.google.protobuf.ByteString getProgressMessageBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto index b5df1dbaa361..4aa98bfef1c3 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto @@ -201,12 +201,39 @@ message SafetyRating { HIGH = 4; } + // Harm severity levels. + enum HarmSeverity { + // Harm severity unspecified. + HARM_SEVERITY_UNSPECIFIED = 0; + + // Negligible level of harm severity. + HARM_SEVERITY_NEGLIGIBLE = 1; + + // Low level of harm severity. + HARM_SEVERITY_LOW = 2; + + // Medium level of harm severity. + HARM_SEVERITY_MEDIUM = 3; + + // High level of harm severity. + HARM_SEVERITY_HIGH = 4; + } + // Output only. Harm category. HarmCategory category = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Harm probability levels in the content. HarmProbability probability = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Harm probability score. + float probability_score = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Harm severity levels in the content. + HarmSeverity severity = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Harm severity score. + float severity_score = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Indicates whether the content was filtered out because of this // rating. bool blocked = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -265,6 +292,18 @@ message Candidate { // All other reasons that stopped the token generation OTHER = 5; + + // The token generation was stopped as the response was flagged for the + // terms which are included from the terminology blocklist. + BLOCKLIST = 6; + + // The token generation was stopped as the response was flagged for + // the prohibited contents. + PROHIBITED_CONTENT = 7; + + // The token generation was stopped as the response was flagged for + // Sensitive Personally Identifiable Information (SPII) contents. + SPII = 8; } // Output only. Index of the candidate. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto index 7bac1f0deedc..a20529fcaa95 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/dataset_version.proto @@ -18,6 +18,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -52,4 +53,15 @@ message DatasetVersion { // Output only. Name of the associated BigQuery dataset. string big_query_dataset_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // 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; + + // Required. Output only. Additional information about the DatasetVersion. + google.protobuf.Value metadata = 8 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = REQUIRED + ]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint_service.proto index ed53e165258f..06654326abfd 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint_service.proto @@ -218,12 +218,14 @@ message ListEndpointsRequest { // * `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: // // * `endpoint=1` // * `displayName="myDisplayName"` // * `labels.myKey="myValue"` + // * `baseModelName="text-bison"` string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The standard list page size. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_group.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_group.proto index 93f1e062b44f..df1588fc3dc5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_group.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_group.proto @@ -47,8 +47,8 @@ message FeatureGroup { (google.api.field_behavior) = REQUIRED ]; - // 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-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view.proto index e24188e27ce3..aa9f82e30d04 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view.proto @@ -41,8 +41,7 @@ message FeatureView { // trigger based on FeatureView.SyncConfig. string uri = 1 [(google.api.field_behavior) = REQUIRED]; - // 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]; } @@ -58,8 +57,12 @@ message FeatureView { string cron = 1; } - // Configuration for vector search. + // Deprecated. Use + // [IndexConfig][google.cloud.aiplatform.v1beta1.FeatureView.IndexConfig] + // instead. message VectorSearchConfig { + option deprecated = true; + message BruteForceConfig {} message TreeAHConfig { @@ -145,6 +148,9 @@ message FeatureView { // Required. List of features that need to be synced to Online Store. repeated FeatureGroup feature_groups = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The project number of the parent project of the Feature Groups. + optional int64 project_number = 2 [(google.api.field_behavior) = OPTIONAL]; } // Service agent type used during data sync. @@ -209,12 +215,11 @@ message FeatureView { // FeatureView are made ready for online serving. SyncConfig sync_config = 7; - // Optional. Configuration for vector search. It contains the required - // configurations to create an index from source data, so that approximate - // nearest neighbor (a.k.a ANN) algorithms search can be performed during - // online serving. + // Optional. Deprecated: please use + // [FeatureView.index_config][google.cloud.aiplatform.v1beta1.FeatureView.index_config] + // instead. VectorSearchConfig vector_search_config = 8 - [(google.api.field_behavior) = OPTIONAL]; + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; // Optional. Service agent type used during data sync. By default, the Vertex // AI Service Agent is used. When using an IAM Policy to isolate this diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view_sync.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view_sync.proto index 4f2514fe67a8..c204d9da3fca 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view_sync.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_view_sync.proto @@ -38,6 +38,16 @@ message FeatureViewSync { pattern: "projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/feature_view_sync" }; + // Summary from the Sync job. For continuous syncs, the summary is updated + // periodically. For batch syncs, it gets updated on completion of the sync. + message SyncSummary { + // Output only. Total number of rows synced. + int64 row_synced = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. BigQuery slot milliseconds consumed for the sync job. + int64 total_slot = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Identifier. Name of the FeatureViewSync. Format: // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; @@ -54,4 +64,7 @@ message FeatureViewSync { // Output only. Final status of the FeatureViewSync. google.rpc.Status final_status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Summary of the sync job. + SyncSummary sync_summary = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto index 2f191141a626..dcf3b83720e2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/index.proto @@ -168,6 +168,9 @@ message IndexDatapoint { // Datapoints are eligible iff their value is > the query's. GREATER = 5; + + // Datapoints are eligible iff their value is != the query's. + NOT_EQUAL = 6; } // The type of Value must be consistent for all datapoints with a given diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto index 900cd8c0d2a6..89e8d9f9c86d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model.proto @@ -104,6 +104,18 @@ message Model { ]; } + // User input field to specify the base model source. Currently it only + // supports specifing the Model Garden models and Genie models. + message BaseModelSource { + oneof source { + // Source information of Model Garden models. + ModelGardenSource model_garden_source = 1; + + // Information about the base model of Genie models. + GenieSource genie_source = 2; + } + } + // Identifies a type of Model's prediction resources. enum DeploymentResourcesType { // Should not be used. @@ -411,6 +423,11 @@ message Model { // is // `projects/{project}/locations/{location}/metadataStores/{metadata_store}/artifacts/{artifact}`. string metadata_artifact = 44 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. User input field to specify the base model source. Currently it + // only supports specifing the Model Garden models and Genie models. + BaseModelSource base_model_source = 50 + [(google.api.field_behavior) = OPTIONAL]; } // Contains information about the Large Model. @@ -421,6 +438,20 @@ message LargeModelReference { string name = 1 [(google.api.field_behavior) = REQUIRED]; } +// Contains information about the source of the models generated from Model +// Garden. +message ModelGardenSource { + // Required. The model garden source model resource name. + string public_model_name = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Contains information about the source of the models generated from Generative +// AI Studio. +message GenieSource { + // Required. The public base model URI. + string base_model_uri = 1 [(google.api.field_behavior) = REQUIRED]; +} + // Contains the schemata used in Model's predictions and explanations via // [PredictionService.Predict][google.cloud.aiplatform.v1beta1.PredictionService.Predict], // [PredictionService.Explain][google.cloud.aiplatform.v1beta1.PredictionService.Explain] diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto index 04552c013e67..483bd69ad995 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/model_service.proto @@ -358,12 +358,14 @@ message ListModelsRequest { // * `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; // The standard list page size. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource_service.proto index 2213921ccbbe..d68d30c10cbb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/persistent_resource_service.proto @@ -129,12 +129,18 @@ message CreatePersistentResourceRequest { message CreatePersistentResourceOperationMetadata { // Operation metadata for PersistentResource. GenericOperationMetadata generic_metadata = 1; + + // Progress Message for Create LRO + string progress_message = 2; } // Details of operations that perform update PersistentResource. message UpdatePersistentResourceOperationMetadata { // Operation metadata for PersistentResource. GenericOperationMetadata generic_metadata = 1; + + // Progress Message for Update LRO + string progress_message = 2; } // Request message for diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto index b97931f7b084..b794e2c58bc1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -213,6 +213,9 @@ message PipelineJob { // Output only. The schedule resource name. // Only returned if the Pipeline is created by Schedule API. string schedule_name = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Whether to do component level validations before job creation. + bool preflight_validations = 26 [(google.api.field_behavior) = OPTIONAL]; } // Pipeline template metadata if diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto index 116acce396c2..053de0821207 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/pipeline_service.proto @@ -357,10 +357,6 @@ message CreatePipelineJobRequest { // This value should be less than 128 characters, and valid characters // are `/[a-z][0-9]-/`. string pipeline_job_id = 3; - - // Optional. Whether to do component level validations before job creation. - // Currently we only support Google First Party Component/Pipelines. - bool preflight_validations = 4 [(google.api.field_behavior) = OPTIONAL]; } // Request message for diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/publisher_model.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/publisher_model.proto index 98e556fba3c0..eef50dadcf92 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/publisher_model.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/publisher_model.proto @@ -253,16 +253,23 @@ message PublisherModel { // The model launch stage is unspecified. LAUNCH_STAGE_UNSPECIFIED = 0; - // 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; - // 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; - // 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; - // 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-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto index 98f105eb4da0..a88b2f132268 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tool.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/openapi.proto"; import "google/protobuf/struct.proto"; @@ -33,25 +34,28 @@ option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; // 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. A Tool object should contain exactly -// one type of Tool. +// one type of Tool (e.g FunctionDeclaration, Retrieval or +// GoogleSearchRetrieval). message Tool { - // 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. repeated FunctionDeclaration function_declarations = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. 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. + // 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. Retrieval retrieval = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Specialized retrieval tool that is powered by Google search. + // Optional. GoogleSearchRetrieval tool type. + // Specialized retrieval tool that is powered by Google search. GoogleSearchRetrieval google_search_retrieval = 3 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/AsyncBatchCancelPipelineJobs.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/AsyncBatchCancelPipelineJobs.java new file mode 100644 index 000000000000..f446015ec12a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/AsyncBatchCancelPipelineJobs.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncBatchCancelPipelineJobs { + + public static void main(String[] args) throws Exception { + asyncBatchCancelPipelineJobs(); + } + + public static void asyncBatchCancelPipelineJobs() throws Exception { + // 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()) + .build(); + ApiFuture future = + pipelineServiceClient.batchCancelPipelineJobsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/AsyncBatchCancelPipelineJobsLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/AsyncBatchCancelPipelineJobsLRO.java new file mode 100644 index 000000000000..152432b532e5 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/AsyncBatchCancelPipelineJobsLRO.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +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.LocationName; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import java.util.ArrayList; + +public class AsyncBatchCancelPipelineJobsLRO { + + public static void main(String[] args) throws Exception { + asyncBatchCancelPipelineJobsLRO(); + } + + public static void asyncBatchCancelPipelineJobsLRO() throws Exception { + // 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()) + .build(); + OperationFuture + future = + pipelineServiceClient.batchCancelPipelineJobsOperationCallable().futureCall(request); + // Do something. + BatchCancelPipelineJobsResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/SyncBatchCancelPipelineJobs.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/SyncBatchCancelPipelineJobs.java new file mode 100644 index 000000000000..65f36e0b830c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/SyncBatchCancelPipelineJobs.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_sync] +import com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsRequest; +import com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import java.util.ArrayList; + +public class SyncBatchCancelPipelineJobs { + + public static void main(String[] args) throws Exception { + syncBatchCancelPipelineJobs(); + } + + public static void syncBatchCancelPipelineJobs() throws Exception { + // 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()) + .build(); + BatchCancelPipelineJobsResponse response = + pipelineServiceClient.batchCancelPipelineJobsAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/SyncBatchCancelPipelineJobsLocationnameListstring.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/SyncBatchCancelPipelineJobsLocationnameListstring.java new file mode 100644 index 000000000000..715ae60b2631 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/SyncBatchCancelPipelineJobsLocationnameListstring.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_LocationnameListstring_sync] +import com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCancelPipelineJobsLocationnameListstring { + + public static void main(String[] args) throws Exception { + syncBatchCancelPipelineJobsLocationnameListstring(); + } + + public static void syncBatchCancelPipelineJobsLocationnameListstring() throws Exception { + // 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 names = new ArrayList<>(); + BatchCancelPipelineJobsResponse response = + pipelineServiceClient.batchCancelPipelineJobsAsync(parent, names).get(); + } + } +} +// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_LocationnameListstring_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/SyncBatchCancelPipelineJobsStringListstring.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/SyncBatchCancelPipelineJobsStringListstring.java new file mode 100644 index 000000000000..7fd13f3ddf1a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchcancelpipelinejobs/SyncBatchCancelPipelineJobsStringListstring.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_StringListstring_sync] +import com.google.cloud.aiplatform.v1.BatchCancelPipelineJobsResponse; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCancelPipelineJobsStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchCancelPipelineJobsStringListstring(); + } + + public static void syncBatchCancelPipelineJobsStringListstring() throws Exception { + // 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 names = new ArrayList<>(); + BatchCancelPipelineJobsResponse response = + pipelineServiceClient.batchCancelPipelineJobsAsync(parent, names).get(); + } + } +} +// [END aiplatform_v1_generated_PipelineService_BatchCancelPipelineJobs_StringListstring_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/AsyncBatchDeletePipelineJobs.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/AsyncBatchDeletePipelineJobs.java new file mode 100644 index 000000000000..dbd91dc6f7d9 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/AsyncBatchDeletePipelineJobs.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_PipelineService_BatchDeletePipelineJobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncBatchDeletePipelineJobs { + + public static void main(String[] args) throws Exception { + asyncBatchDeletePipelineJobs(); + } + + public static void asyncBatchDeletePipelineJobs() throws Exception { + // 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()) + .build(); + ApiFuture future = + pipelineServiceClient.batchDeletePipelineJobsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1_generated_PipelineService_BatchDeletePipelineJobs_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/AsyncBatchDeletePipelineJobsLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/AsyncBatchDeletePipelineJobsLRO.java new file mode 100644 index 000000000000..2a411b2341a3 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/AsyncBatchDeletePipelineJobsLRO.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_PipelineService_BatchDeletePipelineJobs_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest; +import com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse; +import com.google.cloud.aiplatform.v1.DeleteOperationMetadata; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import java.util.ArrayList; + +public class AsyncBatchDeletePipelineJobsLRO { + + public static void main(String[] args) throws Exception { + asyncBatchDeletePipelineJobsLRO(); + } + + public static void asyncBatchDeletePipelineJobsLRO() throws Exception { + // 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()) + .build(); + OperationFuture future = + pipelineServiceClient.batchDeletePipelineJobsOperationCallable().futureCall(request); + // Do something. + BatchDeletePipelineJobsResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_PipelineService_BatchDeletePipelineJobs_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/SyncBatchDeletePipelineJobs.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/SyncBatchDeletePipelineJobs.java new file mode 100644 index 000000000000..84ca839dbb7a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/SyncBatchDeletePipelineJobs.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_PipelineService_BatchDeletePipelineJobs_sync] +import com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsRequest; +import com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import java.util.ArrayList; + +public class SyncBatchDeletePipelineJobs { + + public static void main(String[] args) throws Exception { + syncBatchDeletePipelineJobs(); + } + + public static void syncBatchDeletePipelineJobs() throws Exception { + // 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()) + .build(); + BatchDeletePipelineJobsResponse response = + pipelineServiceClient.batchDeletePipelineJobsAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_PipelineService_BatchDeletePipelineJobs_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/SyncBatchDeletePipelineJobsLocationnameListstring.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/SyncBatchDeletePipelineJobsLocationnameListstring.java new file mode 100644 index 000000000000..6f20936c5293 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/SyncBatchDeletePipelineJobsLocationnameListstring.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_PipelineService_BatchDeletePipelineJobs_LocationnameListstring_sync] +import com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeletePipelineJobsLocationnameListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeletePipelineJobsLocationnameListstring(); + } + + public static void syncBatchDeletePipelineJobsLocationnameListstring() throws Exception { + // 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 names = new ArrayList<>(); + BatchDeletePipelineJobsResponse response = + pipelineServiceClient.batchDeletePipelineJobsAsync(parent, names).get(); + } + } +} +// [END aiplatform_v1_generated_PipelineService_BatchDeletePipelineJobs_LocationnameListstring_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/SyncBatchDeletePipelineJobsStringListstring.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/SyncBatchDeletePipelineJobsStringListstring.java new file mode 100644 index 000000000000..3e00e75cf570 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/pipelineservice/batchdeletepipelinejobs/SyncBatchDeletePipelineJobsStringListstring.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_PipelineService_BatchDeletePipelineJobs_StringListstring_sync] +import com.google.cloud.aiplatform.v1.BatchDeletePipelineJobsResponse; +import com.google.cloud.aiplatform.v1.LocationName; +import com.google.cloud.aiplatform.v1.PipelineServiceClient; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeletePipelineJobsStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeletePipelineJobsStringListstring(); + } + + public static void syncBatchDeletePipelineJobsStringListstring() throws Exception { + // 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 names = new ArrayList<>(); + BatchDeletePipelineJobsResponse response = + pipelineServiceClient.batchDeletePipelineJobsAsync(parent, names).get(); + } + } +} +// [END aiplatform_v1_generated_PipelineService_BatchDeletePipelineJobs_StringListstring_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/pipelineservice/createpipelinejob/AsyncCreatePipelineJob.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/pipelineservice/createpipelinejob/AsyncCreatePipelineJob.java index 6770f9866d59..88b0ec447392 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/pipelineservice/createpipelinejob/AsyncCreatePipelineJob.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/pipelineservice/createpipelinejob/AsyncCreatePipelineJob.java @@ -41,7 +41,6 @@ public static void asyncCreatePipelineJob() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPipelineJob(PipelineJob.newBuilder().build()) .setPipelineJobId("pipelineJobId-1711315914") - .setPreflightValidations(true) .build(); ApiFuture future = pipelineServiceClient.createPipelineJobCallable().futureCall(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/pipelineservice/createpipelinejob/SyncCreatePipelineJob.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/pipelineservice/createpipelinejob/SyncCreatePipelineJob.java index fbca01fd9bc0..cf762cc60854 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/pipelineservice/createpipelinejob/SyncCreatePipelineJob.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/pipelineservice/createpipelinejob/SyncCreatePipelineJob.java @@ -40,7 +40,6 @@ public static void syncCreatePipelineJob() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPipelineJob(PipelineJob.newBuilder().build()) .setPipelineJobId("pipelineJobId-1711315914") - .setPreflightValidations(true) .build(); PipelineJob response = pipelineServiceClient.createPipelineJob(request); } diff --git a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/AppHubClient.java b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/AppHubClient.java index 773dce43db22..d901e36e0237 100644 --- a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/AppHubClient.java +++ b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/AppHubClient.java @@ -50,8 +50,7 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: The AppHub services allows users to enable toplogy and telemetry - * configuration. + * Service Description: The App Hub API allows you to manage App Hub resources. * *

This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -81,7 +80,7 @@ * * *

LookupServiceProjectAttachment - *

Looks up a service project attachment. You can call this API from either a host or service project. + *

Lists a service project attachment for a given service project. You can call this API from any project to find if it is attached to a host project. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    @@ -100,7 +99,7 @@ * * *

    ListServiceProjectAttachments - *

    List service projects attached to the host project. + *

    Lists service projects attached to the host project. * *

    Request object method variants only take one parameter, a request object, which must be constructed before the call.

    *
      @@ -140,7 +139,7 @@ * * *

      GetServiceProjectAttachment - *

      Gets a service project attached to the host project. + *

      Gets a service project attachment. * *

      Request object method variants only take one parameter, a request object, which must be constructed before the call.

      *
        @@ -159,7 +158,7 @@ * * *

        DeleteServiceProjectAttachment - *

        Deletes a service project attached to the host project. + *

        Deletes a service project attachment. * *

        Request object method variants only take one parameter, a request object, which must be constructed before the call.

        *
          @@ -179,7 +178,7 @@ * * *

          DetachServiceProjectAttachment - *

          Detaches a service project from a host project. You can call this API from either a host or service project. + *

          Detaches a service project from a host project. You can call this API from any service project without needing access to the host project that it is attached to. * *

          Request object method variants only take one parameter, a request object, which must be constructed before the call.

          *
            @@ -198,7 +197,7 @@ * * *

            ListDiscoveredServices - *

            Lists discovered services that can be added to an application in a host project and location. + *

            Lists Discovered Services that can be added to an Application in a host project and location. * *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            *
              @@ -218,7 +217,7 @@ * * *

              GetDiscoveredService - *

              Gets a discovered service in a host project and location. + *

              Gets a Discovered Service in a host project and location. * *

              Request object method variants only take one parameter, a request object, which must be constructed before the call.

              *
                @@ -237,7 +236,7 @@ * * *

                LookupDiscoveredService - *

                Looks up a discovered service in a host project and location and with a given resource URI. + *

                Lists a Discovered Service in a host project and location, with a given resource URI. * *

                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                *
                  @@ -256,7 +255,7 @@ * * *

                  ListServices - *

                  List Services in an Application. + *

                  Lists Services in an Application. * *

                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                  *
                    @@ -334,7 +333,7 @@ * * *

                    DeleteService - *

                    Deletes a Service in an Application. + *

                    Deletes a Service from an Application. * *

                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                    *
                      @@ -354,7 +353,7 @@ * * *

                      ListDiscoveredWorkloads - *

                      Lists discovered workloads that can be added to an application in a host project and location. + *

                      Lists Discovered Workloads that can be added to an Application in a host project and location. * *

                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                      *
                        @@ -374,7 +373,7 @@ * * *

                        GetDiscoveredWorkload - *

                        Gets a discovered workload in a host project and location. + *

                        Gets a Discovered Workload in a host project and location. * *

                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                        *
                          @@ -393,7 +392,7 @@ * * *

                          LookupDiscoveredWorkload - *

                          Looks up a discovered Workload in a host project and location and with a given resource URI. + *

                          Lists a Discovered Workload in a host project and location, with a given resource URI. * *

                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                          *
                            @@ -490,7 +489,7 @@ * * *

                            DeleteWorkload - *

                            Deletes a Workload in an Application. + *

                            Deletes a Workload from an Application. * *

                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                            *
                              @@ -807,8 +806,8 @@ public final OperationsClient getHttpJsonOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a service project attachment. You can call this API from either a host or service - * project. + * Lists a service project attachment for a given service project. You can call this API from any + * project to find if it is attached to a host project. * *

                              Sample code: * @@ -825,7 +824,9 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * } * - * @param name Required. Value for name. + * @param name Required. Service project ID and location to lookup service project attachment for. + * Only global location is supported. Expected format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LookupServiceProjectAttachmentResponse lookupServiceProjectAttachment( @@ -839,8 +840,8 @@ public final LookupServiceProjectAttachmentResponse lookupServiceProjectAttachme // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a service project attachment. You can call this API from either a host or service - * project. + * Lists a service project attachment for a given service project. You can call this API from any + * project to find if it is attached to a host project. * *

                              Sample code: * @@ -857,7 +858,9 @@ public final LookupServiceProjectAttachmentResponse lookupServiceProjectAttachme * } * } * - * @param name Required. Value for name. + * @param name Required. Service project ID and location to lookup service project attachment for. + * Only global location is supported. Expected format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LookupServiceProjectAttachmentResponse lookupServiceProjectAttachment(String name) { @@ -868,8 +871,8 @@ public final LookupServiceProjectAttachmentResponse lookupServiceProjectAttachme // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a service project attachment. You can call this API from either a host or service - * project. + * Lists a service project attachment for a given service project. You can call this API from any + * project to find if it is attached to a host project. * *

                              Sample code: * @@ -899,8 +902,8 @@ public final LookupServiceProjectAttachmentResponse lookupServiceProjectAttachme // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a service project attachment. You can call this API from either a host or service - * project. + * Lists a service project attachment for a given service project. You can call this API from any + * project to find if it is attached to a host project. * *

                              Sample code: * @@ -930,7 +933,7 @@ public final LookupServiceProjectAttachmentResponse lookupServiceProjectAttachme // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List service projects attached to the host project. + * Lists service projects attached to the host project. * *

                              Sample code: * @@ -949,7 +952,8 @@ public final LookupServiceProjectAttachmentResponse lookupServiceProjectAttachme * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Host project ID and location to list service project attachments. Only + * global location is supported. Expected format: `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListServiceProjectAttachmentsPagedResponse listServiceProjectAttachments( @@ -963,7 +967,7 @@ public final ListServiceProjectAttachmentsPagedResponse listServiceProjectAttach // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List service projects attached to the host project. + * Lists service projects attached to the host project. * *

                              Sample code: * @@ -982,7 +986,8 @@ public final ListServiceProjectAttachmentsPagedResponse listServiceProjectAttach * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Host project ID and location to list service project attachments. Only + * global location is supported. Expected format: `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListServiceProjectAttachmentsPagedResponse listServiceProjectAttachments( @@ -994,7 +999,7 @@ public final ListServiceProjectAttachmentsPagedResponse listServiceProjectAttach // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List service projects attached to the host project. + * Lists service projects attached to the host project. * *

                              Sample code: * @@ -1030,7 +1035,7 @@ public final ListServiceProjectAttachmentsPagedResponse listServiceProjectAttach // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List service projects attached to the host project. + * Lists service projects attached to the host project. * *

                              Sample code: * @@ -1066,7 +1071,7 @@ public final ListServiceProjectAttachmentsPagedResponse listServiceProjectAttach // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List service projects attached to the host project. + * Lists service projects attached to the host project. * *

                              Sample code: * @@ -1132,11 +1137,13 @@ public final ListServiceProjectAttachmentsPagedResponse listServiceProjectAttach * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Host project ID and location to which service project is being + * attached. Only global location is supported. Expected format: + * `projects/{project}/locations/{location}`. * @param serviceProjectAttachment Required. The resource being created. * @param serviceProjectAttachmentId Required. The service project attachment identifier must - * contain the project_id of the service project specified in the - * service_project_attachment.service_project field. Hint: "projects/{project_id}" + * contain the project id of the service project specified in the + * service_project_attachment.service_project field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -1178,11 +1185,13 @@ public final ListServiceProjectAttachmentsPagedResponse listServiceProjectAttach * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Host project ID and location to which service project is being + * attached. Only global location is supported. Expected format: + * `projects/{project}/locations/{location}`. * @param serviceProjectAttachment Required. The resource being created. * @param serviceProjectAttachmentId Required. The service project attachment identifier must - * contain the project_id of the service project specified in the - * service_project_attachment.service_project field. Hint: "projects/{project_id}" + * contain the project id of the service project specified in the + * service_project_attachment.service_project field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture @@ -1299,7 +1308,7 @@ public final ListServiceProjectAttachmentsPagedResponse listServiceProjectAttach // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a service project attached to the host project. + * Gets a service project attachment. * *

                              Sample code: * @@ -1317,7 +1326,9 @@ public final ListServiceProjectAttachmentsPagedResponse listServiceProjectAttach * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the service project attachment to retrieve. + * Expected format: + * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServiceProjectAttachment getServiceProjectAttachment( @@ -1331,7 +1342,7 @@ public final ServiceProjectAttachment getServiceProjectAttachment( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a service project attached to the host project. + * Gets a service project attachment. * *

                              Sample code: * @@ -1349,7 +1360,9 @@ public final ServiceProjectAttachment getServiceProjectAttachment( * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the service project attachment to retrieve. + * Expected format: + * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServiceProjectAttachment getServiceProjectAttachment(String name) { @@ -1360,7 +1373,7 @@ public final ServiceProjectAttachment getServiceProjectAttachment(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a service project attached to the host project. + * Gets a service project attachment. * *

                              Sample code: * @@ -1392,7 +1405,7 @@ public final ServiceProjectAttachment getServiceProjectAttachment( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a service project attached to the host project. + * Gets a service project attachment. * *

                              Sample code: * @@ -1424,7 +1437,7 @@ public final ServiceProjectAttachment getServiceProjectAttachment( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a service project attached to the host project. + * Deletes a service project attachment. * *

                              Sample code: * @@ -1442,7 +1455,9 @@ public final ServiceProjectAttachment getServiceProjectAttachment( * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the service project attachment to delete. + * Expected format: + * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteServiceProjectAttachmentAsync( @@ -1456,7 +1471,7 @@ public final OperationFuture deleteServiceProjectAttac // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a service project attached to the host project. + * Deletes a service project attachment. * *

                              Sample code: * @@ -1474,7 +1489,9 @@ public final OperationFuture deleteServiceProjectAttac * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the service project attachment to delete. + * Expected format: + * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteServiceProjectAttachmentAsync( @@ -1486,7 +1503,7 @@ public final OperationFuture deleteServiceProjectAttac // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a service project attached to the host project. + * Deletes a service project attachment. * *

                              Sample code: * @@ -1519,7 +1536,7 @@ public final OperationFuture deleteServiceProjectAttac // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a service project attached to the host project. + * Deletes a service project attachment. * *

                              Sample code: * @@ -1552,7 +1569,7 @@ public final OperationFuture deleteServiceProjectAttac // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a service project attached to the host project. + * Deletes a service project attachment. * *

                              Sample code: * @@ -1585,8 +1602,8 @@ public final OperationFuture deleteServiceProjectAttac // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Detaches a service project from a host project. You can call this API from either a host or - * service project. + * Detaches a service project from a host project. You can call this API from any service project + * without needing access to the host project that it is attached to. * *

                              Sample code: * @@ -1603,7 +1620,8 @@ public final OperationFuture deleteServiceProjectAttac * } * } * - * @param name Required. Value for name. + * @param name Required. Service project id and location to detach from a host project. Only + * global location is supported. Expected format: `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DetachServiceProjectAttachmentResponse detachServiceProjectAttachment( @@ -1617,8 +1635,8 @@ public final DetachServiceProjectAttachmentResponse detachServiceProjectAttachme // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Detaches a service project from a host project. You can call this API from either a host or - * service project. + * Detaches a service project from a host project. You can call this API from any service project + * without needing access to the host project that it is attached to. * *

                              Sample code: * @@ -1635,7 +1653,8 @@ public final DetachServiceProjectAttachmentResponse detachServiceProjectAttachme * } * } * - * @param name Required. Value for name. + * @param name Required. Service project id and location to detach from a host project. Only + * global location is supported. Expected format: `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DetachServiceProjectAttachmentResponse detachServiceProjectAttachment(String name) { @@ -1646,8 +1665,8 @@ public final DetachServiceProjectAttachmentResponse detachServiceProjectAttachme // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Detaches a service project from a host project. You can call this API from either a host or - * service project. + * Detaches a service project from a host project. You can call this API from any service project + * without needing access to the host project that it is attached to. * *

                              Sample code: * @@ -1677,8 +1696,8 @@ public final DetachServiceProjectAttachmentResponse detachServiceProjectAttachme // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Detaches a service project from a host project. You can call this API from either a host or - * service project. + * Detaches a service project from a host project. You can call this API from any service project + * without needing access to the host project that it is attached to. * *

                              Sample code: * @@ -1708,7 +1727,7 @@ public final DetachServiceProjectAttachmentResponse detachServiceProjectAttachme // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists discovered services that can be added to an application in a host project and location. + * Lists Discovered Services that can be added to an Application in a host project and location. * *

                              Sample code: * @@ -1726,7 +1745,8 @@ public final DetachServiceProjectAttachmentResponse detachServiceProjectAttachme * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Project and location to list Discovered Services on. Expected format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDiscoveredServicesPagedResponse listDiscoveredServices(LocationName parent) { @@ -1739,7 +1759,7 @@ public final ListDiscoveredServicesPagedResponse listDiscoveredServices(Location // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists discovered services that can be added to an application in a host project and location. + * Lists Discovered Services that can be added to an Application in a host project and location. * *

                              Sample code: * @@ -1757,7 +1777,8 @@ public final ListDiscoveredServicesPagedResponse listDiscoveredServices(Location * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Project and location to list Discovered Services on. Expected format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDiscoveredServicesPagedResponse listDiscoveredServices(String parent) { @@ -1768,7 +1789,7 @@ public final ListDiscoveredServicesPagedResponse listDiscoveredServices(String p // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists discovered services that can be added to an application in a host project and location. + * Lists Discovered Services that can be added to an Application in a host project and location. * *

                              Sample code: * @@ -1803,7 +1824,7 @@ public final ListDiscoveredServicesPagedResponse listDiscoveredServices( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists discovered services that can be added to an application in a host project and location. + * Lists Discovered Services that can be added to an Application in a host project and location. * *

                              Sample code: * @@ -1838,7 +1859,7 @@ public final ListDiscoveredServicesPagedResponse listDiscoveredServices( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists discovered services that can be added to an application in a host project and location. + * Lists Discovered Services that can be added to an Application in a host project and location. * *

                              Sample code: * @@ -1880,7 +1901,7 @@ public final ListDiscoveredServicesPagedResponse listDiscoveredServices( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a discovered service in a host project and location. + * Gets a Discovered Service in a host project and location. * *

                              Sample code: * @@ -1897,7 +1918,8 @@ public final ListDiscoveredServicesPagedResponse listDiscoveredServices( * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Discovered Service to fetch. Expected format: + * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DiscoveredService getDiscoveredService(DiscoveredServiceName name) { @@ -1910,7 +1932,7 @@ public final DiscoveredService getDiscoveredService(DiscoveredServiceName name) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a discovered service in a host project and location. + * Gets a Discovered Service in a host project and location. * *

                              Sample code: * @@ -1927,7 +1949,8 @@ public final DiscoveredService getDiscoveredService(DiscoveredServiceName name) * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Discovered Service to fetch. Expected format: + * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DiscoveredService getDiscoveredService(String name) { @@ -1938,7 +1961,7 @@ public final DiscoveredService getDiscoveredService(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a discovered service in a host project and location. + * Gets a Discovered Service in a host project and location. * *

                              Sample code: * @@ -1968,7 +1991,7 @@ public final DiscoveredService getDiscoveredService(GetDiscoveredServiceRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a discovered service in a host project and location. + * Gets a Discovered Service in a host project and location. * *

                              Sample code: * @@ -1999,7 +2022,7 @@ public final DiscoveredService getDiscoveredService(GetDiscoveredServiceRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a discovered service in a host project and location and with a given resource URI. + * Lists a Discovered Service in a host project and location, with a given resource URI. * *

                              Sample code: * @@ -2016,9 +2039,10 @@ public final DiscoveredService getDiscoveredService(GetDiscoveredServiceRequest * } * } * - * @param parent Required. Value for parent. - * @param uri Required. GCP resource URI to find service for Accepts both project number and - * project id and does translation when needed. + * @param parent Required. Host project ID and location to lookup Discovered Service in. Expected + * format: `projects/{project}/locations/{location}`. + * @param uri Required. Resource URI to find DiscoveredService for. Accepts both project number + * and project ID and does translation when needed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LookupDiscoveredServiceResponse lookupDiscoveredService( @@ -2033,7 +2057,7 @@ public final LookupDiscoveredServiceResponse lookupDiscoveredService( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a discovered service in a host project and location and with a given resource URI. + * Lists a Discovered Service in a host project and location, with a given resource URI. * *

                              Sample code: * @@ -2050,9 +2074,10 @@ public final LookupDiscoveredServiceResponse lookupDiscoveredService( * } * } * - * @param parent Required. Value for parent. - * @param uri Required. GCP resource URI to find service for Accepts both project number and - * project id and does translation when needed. + * @param parent Required. Host project ID and location to lookup Discovered Service in. Expected + * format: `projects/{project}/locations/{location}`. + * @param uri Required. Resource URI to find DiscoveredService for. Accepts both project number + * and project ID and does translation when needed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LookupDiscoveredServiceResponse lookupDiscoveredService(String parent, String uri) { @@ -2063,7 +2088,7 @@ public final LookupDiscoveredServiceResponse lookupDiscoveredService(String pare // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a discovered service in a host project and location and with a given resource URI. + * Lists a Discovered Service in a host project and location, with a given resource URI. * *

                              Sample code: * @@ -2093,7 +2118,7 @@ public final LookupDiscoveredServiceResponse lookupDiscoveredService( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a discovered service in a host project and location and with a given resource URI. + * Lists a Discovered Service in a host project and location, with a given resource URI. * *

                              Sample code: * @@ -2123,7 +2148,7 @@ public final LookupDiscoveredServiceResponse lookupDiscoveredService( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Services in an Application. + * Lists Services in an Application. * *

                              Sample code: * @@ -2141,7 +2166,8 @@ public final LookupDiscoveredServiceResponse lookupDiscoveredService( * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Fully qualified name of the parent Application to list Services for. + * Expected format: `projects/{project}/locations/{location}/applications/{application}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListServicesPagedResponse listServices(ApplicationName parent) { @@ -2154,7 +2180,7 @@ public final ListServicesPagedResponse listServices(ApplicationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Services in an Application. + * Lists Services in an Application. * *

                              Sample code: * @@ -2172,7 +2198,8 @@ public final ListServicesPagedResponse listServices(ApplicationName parent) { * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Fully qualified name of the parent Application to list Services for. + * Expected format: `projects/{project}/locations/{location}/applications/{application}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListServicesPagedResponse listServices(String parent) { @@ -2182,7 +2209,7 @@ public final ListServicesPagedResponse listServices(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Services in an Application. + * Lists Services in an Application. * *

                              Sample code: * @@ -2216,7 +2243,7 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Services in an Application. + * Lists Services in an Application. * *

                              Sample code: * @@ -2250,7 +2277,7 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * List Services in an Application. + * Lists Services in an Application. * *

                              Sample code: * @@ -2308,7 +2335,8 @@ public final UnaryCallable listServic * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Fully qualified name of the parent Application to create the Service + * in. Expected format: `projects/{project}/locations/{location}/applications/{application}`. * @param service Required. The resource being created. * @param serviceId Required. The Service identifier. Must contain only lowercase letters, numbers * or hyphens, with the first character a letter, the last a letter or a number, and a 63 @@ -2346,7 +2374,8 @@ public final OperationFuture createServiceAsync( * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Fully qualified name of the parent Application to create the Service + * in. Expected format: `projects/{project}/locations/{location}/applications/{application}`. * @param service Required. The resource being created. * @param serviceId Required. The Service identifier. Must contain only lowercase letters, numbers * or hyphens, with the first character a letter, the last a letter or a number, and a 63 @@ -2476,7 +2505,8 @@ public final UnaryCallable createServiceCallabl * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Service to fetch. Expected format: + * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Service getService(ServiceName name) { @@ -2504,7 +2534,8 @@ public final Service getService(ServiceName name) { * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Service to fetch. Expected format: + * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Service getService(String name) { @@ -2699,7 +2730,7 @@ public final UnaryCallable updateServiceCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Service in an Application. + * Deletes a Service from an Application. * *

                              Sample code: * @@ -2715,7 +2746,9 @@ public final UnaryCallable updateServiceCallabl * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Service to delete from an Application. + * Expected format: + * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteServiceAsync(ServiceName name) { @@ -2726,7 +2759,7 @@ public final OperationFuture deleteServiceAsync(Servic // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Service in an Application. + * Deletes a Service from an Application. * *

                              Sample code: * @@ -2743,7 +2776,9 @@ public final OperationFuture deleteServiceAsync(Servic * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Service to delete from an Application. + * Expected format: + * `projects/{project}/locations/{location}/applications/{application}/services/{service}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteServiceAsync(String name) { @@ -2753,7 +2788,7 @@ public final OperationFuture deleteServiceAsync(String // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Service in an Application. + * Deletes a Service from an Application. * *

                              Sample code: * @@ -2785,7 +2820,7 @@ public final OperationFuture deleteServiceAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Service in an Application. + * Deletes a Service from an Application. * *

                              Sample code: * @@ -2817,7 +2852,7 @@ public final OperationFuture deleteServiceAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Service in an Application. + * Deletes a Service from an Application. * *

                              Sample code: * @@ -2847,7 +2882,7 @@ public final UnaryCallable deleteServiceCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists discovered workloads that can be added to an application in a host project and location. + * Lists Discovered Workloads that can be added to an Application in a host project and location. * *

                              Sample code: * @@ -2865,7 +2900,8 @@ public final UnaryCallable deleteServiceCallabl * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Project and location to list Discovered Workloads on. Expected format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDiscoveredWorkloadsPagedResponse listDiscoveredWorkloads(LocationName parent) { @@ -2878,7 +2914,7 @@ public final ListDiscoveredWorkloadsPagedResponse listDiscoveredWorkloads(Locati // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists discovered workloads that can be added to an application in a host project and location. + * Lists Discovered Workloads that can be added to an Application in a host project and location. * *

                              Sample code: * @@ -2896,7 +2932,8 @@ public final ListDiscoveredWorkloadsPagedResponse listDiscoveredWorkloads(Locati * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Project and location to list Discovered Workloads on. Expected format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListDiscoveredWorkloadsPagedResponse listDiscoveredWorkloads(String parent) { @@ -2907,7 +2944,7 @@ public final ListDiscoveredWorkloadsPagedResponse listDiscoveredWorkloads(String // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists discovered workloads that can be added to an application in a host project and location. + * Lists Discovered Workloads that can be added to an Application in a host project and location. * *

                              Sample code: * @@ -2943,7 +2980,7 @@ public final ListDiscoveredWorkloadsPagedResponse listDiscoveredWorkloads( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists discovered workloads that can be added to an application in a host project and location. + * Lists Discovered Workloads that can be added to an Application in a host project and location. * *

                              Sample code: * @@ -2978,7 +3015,7 @@ public final ListDiscoveredWorkloadsPagedResponse listDiscoveredWorkloads( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists discovered workloads that can be added to an application in a host project and location. + * Lists Discovered Workloads that can be added to an Application in a host project and location. * *

                              Sample code: * @@ -3020,7 +3057,7 @@ public final ListDiscoveredWorkloadsPagedResponse listDiscoveredWorkloads( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a discovered workload in a host project and location. + * Gets a Discovered Workload in a host project and location. * *

                              Sample code: * @@ -3037,7 +3074,8 @@ public final ListDiscoveredWorkloadsPagedResponse listDiscoveredWorkloads( * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Discovered Workload to fetch. Expected + * format: `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DiscoveredWorkload getDiscoveredWorkload(DiscoveredWorkloadName name) { @@ -3050,7 +3088,7 @@ public final DiscoveredWorkload getDiscoveredWorkload(DiscoveredWorkloadName nam // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a discovered workload in a host project and location. + * Gets a Discovered Workload in a host project and location. * *

                              Sample code: * @@ -3067,7 +3105,8 @@ public final DiscoveredWorkload getDiscoveredWorkload(DiscoveredWorkloadName nam * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Discovered Workload to fetch. Expected + * format: `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final DiscoveredWorkload getDiscoveredWorkload(String name) { @@ -3078,7 +3117,7 @@ public final DiscoveredWorkload getDiscoveredWorkload(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a discovered workload in a host project and location. + * Gets a Discovered Workload in a host project and location. * *

                              Sample code: * @@ -3108,7 +3147,7 @@ public final DiscoveredWorkload getDiscoveredWorkload(GetDiscoveredWorkloadReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a discovered workload in a host project and location. + * Gets a Discovered Workload in a host project and location. * *

                              Sample code: * @@ -3139,7 +3178,7 @@ public final DiscoveredWorkload getDiscoveredWorkload(GetDiscoveredWorkloadReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a discovered Workload in a host project and location and with a given resource URI. + * Lists a Discovered Workload in a host project and location, with a given resource URI. * *

                              Sample code: * @@ -3157,9 +3196,10 @@ public final DiscoveredWorkload getDiscoveredWorkload(GetDiscoveredWorkloadReque * } * } * - * @param parent Required. Value for parent. - * @param uri Required. GCP resource URI to find workload for. Accepts both project number and - * project id and does translation when needed. + * @param parent Required. Host project ID and location to lookup Discovered Workload in. Expected + * format: `projects/{project}/locations/{location}`. + * @param uri Required. Resource URI to find Discovered Workload for. Accepts both project number + * and project ID and does translation when needed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LookupDiscoveredWorkloadResponse lookupDiscoveredWorkload( @@ -3174,7 +3214,7 @@ public final LookupDiscoveredWorkloadResponse lookupDiscoveredWorkload( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a discovered Workload in a host project and location and with a given resource URI. + * Lists a Discovered Workload in a host project and location, with a given resource URI. * *

                              Sample code: * @@ -3192,9 +3232,10 @@ public final LookupDiscoveredWorkloadResponse lookupDiscoveredWorkload( * } * } * - * @param parent Required. Value for parent. - * @param uri Required. GCP resource URI to find workload for. Accepts both project number and - * project id and does translation when needed. + * @param parent Required. Host project ID and location to lookup Discovered Workload in. Expected + * format: `projects/{project}/locations/{location}`. + * @param uri Required. Resource URI to find Discovered Workload for. Accepts both project number + * and project ID and does translation when needed. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LookupDiscoveredWorkloadResponse lookupDiscoveredWorkload( @@ -3206,7 +3247,7 @@ public final LookupDiscoveredWorkloadResponse lookupDiscoveredWorkload( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a discovered Workload in a host project and location and with a given resource URI. + * Lists a Discovered Workload in a host project and location, with a given resource URI. * *

                              Sample code: * @@ -3236,7 +3277,7 @@ public final LookupDiscoveredWorkloadResponse lookupDiscoveredWorkload( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Looks up a discovered Workload in a host project and location and with a given resource URI. + * Lists a Discovered Workload in a host project and location, with a given resource URI. * *

                              Sample code: * @@ -3284,7 +3325,8 @@ public final LookupDiscoveredWorkloadResponse lookupDiscoveredWorkload( * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Fully qualified name of the parent Application to list Workloads for. + * Expected format: `projects/{project}/locations/{location}/applications/{application}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListWorkloadsPagedResponse listWorkloads(ApplicationName parent) { @@ -3315,7 +3357,8 @@ public final ListWorkloadsPagedResponse listWorkloads(ApplicationName parent) { * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Fully qualified name of the parent Application to list Workloads for. + * Expected format: `projects/{project}/locations/{location}/applications/{application}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListWorkloadsPagedResponse listWorkloads(String parent) { @@ -3451,7 +3494,8 @@ public final UnaryCallable listWork * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Fully qualified name of the Application to create Workload in. Expected + * format: `projects/{project}/locations/{location}/applications/{application}`. * @param workload Required. The resource being created. * @param workloadId Required. The Workload identifier. Must contain only lowercase letters, * numbers or hyphens, with the first character a letter, the last a letter or a number, and a @@ -3489,7 +3533,8 @@ public final OperationFuture createWorkloadAsync( * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Fully qualified name of the Application to create Workload in. Expected + * format: `projects/{project}/locations/{location}/applications/{application}`. * @param workload Required. The resource being created. * @param workloadId Required. The Workload identifier. Must contain only lowercase letters, * numbers or hyphens, with the first character a letter, the last a letter or a number, and a @@ -3619,7 +3664,8 @@ public final UnaryCallable createWorkloadCalla * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Workload to fetch. Expected format: + * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Workload getWorkload(WorkloadName name) { @@ -3647,7 +3693,8 @@ public final Workload getWorkload(WorkloadName name) { * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Workload to fetch. Expected format: + * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Workload getWorkload(String name) { @@ -3842,7 +3889,7 @@ public final UnaryCallable updateWorkloadCalla // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Workload in an Application. + * Deletes a Workload from an Application. * *

                              Sample code: * @@ -3858,7 +3905,9 @@ public final UnaryCallable updateWorkloadCalla * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Workload to delete from an Application. + * Expected format: + * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteWorkloadAsync(WorkloadName name) { @@ -3869,7 +3918,7 @@ public final OperationFuture deleteWorkloadAsync(Workl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Workload in an Application. + * Deletes a Workload from an Application. * *

                              Sample code: * @@ -3886,7 +3935,9 @@ public final OperationFuture deleteWorkloadAsync(Workl * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Workload to delete from an Application. + * Expected format: + * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteWorkloadAsync(String name) { @@ -3896,7 +3947,7 @@ public final OperationFuture deleteWorkloadAsync(Strin // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Workload in an Application. + * Deletes a Workload from an Application. * *

                              Sample code: * @@ -3928,7 +3979,7 @@ public final OperationFuture deleteWorkloadAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Workload in an Application. + * Deletes a Workload from an Application. * *

                              Sample code: * @@ -3960,7 +4011,7 @@ public final OperationFuture deleteWorkloadAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a Workload in an Application. + * Deletes a Workload from an Application. * *

                              Sample code: * @@ -4008,7 +4059,8 @@ public final UnaryCallable deleteWorkloadCalla * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Project and location to list Applications on. Expected format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListApplicationsPagedResponse listApplications(LocationName parent) { @@ -4039,7 +4091,8 @@ public final ListApplicationsPagedResponse listApplications(LocationName parent) * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Project and location to list Applications on. Expected format: + * `projects/{project}/locations/{location}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListApplicationsPagedResponse listApplications(String parent) { @@ -4179,7 +4232,8 @@ public final ListApplicationsPagedResponse listApplications(ListApplicationsRequ * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Project and location to create Application in. Expected format: + * `projects/{project}/locations/{location}`. * @param application Required. The resource being created * @param applicationId Required. The Application identifier. Must contain only lowercase letters, * numbers or hyphens, with the first character a letter, the last a letter or a number, and a @@ -4218,7 +4272,8 @@ public final OperationFuture createApplicationAs * } * } * - * @param parent Required. Value for parent. + * @param parent Required. Project and location to create Application in. Expected format: + * `projects/{project}/locations/{location}`. * @param application Required. The resource being created * @param applicationId Required. The Application identifier. Must contain only lowercase letters, * numbers or hyphens, with the first character a letter, the last a letter or a number, and a @@ -4348,7 +4403,8 @@ public final UnaryCallable createApplicatio * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Application to fetch. Expected format: + * `projects/{project}/locations/{location}/applications/{application}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Application getApplication(ApplicationName name) { @@ -4375,7 +4431,8 @@ public final Application getApplication(ApplicationName name) { * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Application to fetch. Expected format: + * `projects/{project}/locations/{location}/applications/{application}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Application getApplication(String name) { @@ -4585,7 +4642,8 @@ public final UnaryCallable updateApplicatio * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Application to delete. Expected format: + * `projects/{project}/locations/{location}/applications/{application}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteApplicationAsync( @@ -4615,7 +4673,8 @@ public final OperationFuture deleteApplicationAsync( * } * } * - * @param name Required. Value for name. + * @param name Required. Fully qualified name of the Application to delete. Expected format: + * `projects/{project}/locations/{location}/applications/{application}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteApplicationAsync(String name) { diff --git a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/package-info.java b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/package-info.java index 8a8b9f6eb821..8ab28ebd1147 100644 --- a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/package-info.java +++ b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/package-info.java @@ -21,8 +21,7 @@ * *

                              ======================= AppHubClient ======================= * - *

                              Service Description: The AppHub services allows users to enable toplogy and telemetry - * configuration. + *

                              Service Description: The App Hub API allows you to manage App Hub resources. * *

                              Sample for AppHubClient: * diff --git a/java-apphub/grpc-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/AppHubGrpc.java b/java-apphub/grpc-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/AppHubGrpc.java index d5d15a7ce6c1..ef17d41d78c8 100644 --- a/java-apphub/grpc-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/AppHubGrpc.java +++ b/java-apphub/grpc-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/AppHubGrpc.java @@ -21,8 +21,7 @@ * * *

                              - * The AppHub services allows users to enable toplogy and telemetry
                              - * configuration.
                              + * The App Hub API allows you to manage App Hub resources.
                                * 
                              */ @javax.annotation.Generated( @@ -1313,8 +1312,7 @@ public AppHubFutureStub newStub( * * *
                              -   * The AppHub services allows users to enable toplogy and telemetry
                              -   * configuration.
                              +   * The App Hub API allows you to manage App Hub resources.
                                  * 
                              */ public interface AsyncService { @@ -1323,8 +1321,8 @@ public interface AsyncService { * * *
                              -     * Looks up a service project attachment. You can call this API from either a
                              -     * host or service project.
                              +     * Lists a service project attachment for a given service project. You can
                              +     * call this API from any project to find if it is attached to a host project.
                                    * 
                              */ default void lookupServiceProjectAttachment( @@ -1340,7 +1338,7 @@ default void lookupServiceProjectAttachment( * * *
                              -     * List service projects attached to the host project.
                              +     * Lists service projects attached to the host project.
                                    * 
                              */ default void listServiceProjectAttachments( @@ -1370,7 +1368,7 @@ default void createServiceProjectAttachment( * * *
                              -     * Gets a service project attached to the host project.
                              +     * Gets a service project attachment.
                                    * 
                              */ default void getServiceProjectAttachment( @@ -1385,7 +1383,7 @@ default void getServiceProjectAttachment( * * *
                              -     * Deletes a service project attached to the host project.
                              +     * Deletes a service project attachment.
                                    * 
                              */ default void deleteServiceProjectAttachment( @@ -1399,8 +1397,9 @@ default void deleteServiceProjectAttachment( * * *
                              -     * Detaches a service project from a host project. You can call this API from
                              -     * either a host or service project.
                              +     * Detaches a service project from a host project.
                              +     * You can call this API from any service project without needing access to
                              +     * the host project that it is attached to.
                                    * 
                              */ default void detachServiceProjectAttachment( @@ -1416,7 +1415,7 @@ default void detachServiceProjectAttachment( * * *
                              -     * Lists discovered services that can be added to an application in a host
                              +     * Lists Discovered Services that can be added to an Application in a host
                                    * project and location.
                                    * 
                              */ @@ -1432,7 +1431,7 @@ default void listDiscoveredServices( * * *
                              -     * Gets a discovered service in a host project and location.
                              +     * Gets a Discovered Service in a host project and location.
                                    * 
                              */ default void getDiscoveredService( @@ -1447,7 +1446,7 @@ default void getDiscoveredService( * * *
                              -     * Looks up a discovered service in a host project and location and with a
                              +     * Lists a Discovered Service in a host project and location, with a
                                    * given resource URI.
                                    * 
                              */ @@ -1463,7 +1462,7 @@ default void lookupDiscoveredService( * * *
                              -     * List Services in an Application.
                              +     * Lists Services in an Application.
                                    * 
                              */ default void listServices( @@ -1519,7 +1518,7 @@ default void updateService( * * *
                              -     * Deletes a Service in an Application.
                              +     * Deletes a Service from an Application.
                                    * 
                              */ default void deleteService( @@ -1533,7 +1532,7 @@ default void deleteService( * * *
                              -     * Lists discovered workloads that can be added to an application in a host
                              +     * Lists Discovered Workloads that can be added to an Application in a host
                                    * project and location.
                                    * 
                              */ @@ -1549,7 +1548,7 @@ default void listDiscoveredWorkloads( * * *
                              -     * Gets a discovered workload in a host project and location.
                              +     * Gets a Discovered Workload in a host project and location.
                                    * 
                              */ default void getDiscoveredWorkload( @@ -1564,7 +1563,7 @@ default void getDiscoveredWorkload( * * *
                              -     * Looks up a discovered Workload in a host project and location and with a
                              +     * Lists a Discovered Workload in a host project and location, with a
                                    * given resource URI.
                                    * 
                              */ @@ -1637,7 +1636,7 @@ default void updateWorkload( * * *
                              -     * Deletes a Workload in an Application.
                              +     * Deletes a Workload from an Application.
                                    * 
                              */ default void deleteWorkload( @@ -1723,8 +1722,7 @@ default void deleteApplication( * Base class for the server implementation of the service AppHub. * *
                              -   * The AppHub services allows users to enable toplogy and telemetry
                              -   * configuration.
                              +   * The App Hub API allows you to manage App Hub resources.
                                  * 
                              */ public abstract static class AppHubImplBase implements io.grpc.BindableService, AsyncService { @@ -1739,8 +1737,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * A stub to allow clients to do asynchronous rpc calls to service AppHub. * *
                              -   * The AppHub services allows users to enable toplogy and telemetry
                              -   * configuration.
                              +   * The App Hub API allows you to manage App Hub resources.
                                  * 
                              */ public static final class AppHubStub extends io.grpc.stub.AbstractAsyncStub { @@ -1757,8 +1754,8 @@ protected AppHubStub build(io.grpc.Channel channel, io.grpc.CallOptions callOpti * * *
                              -     * Looks up a service project attachment. You can call this API from either a
                              -     * host or service project.
                              +     * Lists a service project attachment for a given service project. You can
                              +     * call this API from any project to find if it is attached to a host project.
                                    * 
                              */ public void lookupServiceProjectAttachment( @@ -1776,7 +1773,7 @@ public void lookupServiceProjectAttachment( * * *
                              -     * List service projects attached to the host project.
                              +     * Lists service projects attached to the host project.
                                    * 
                              */ public void listServiceProjectAttachments( @@ -1810,7 +1807,7 @@ public void createServiceProjectAttachment( * * *
                              -     * Gets a service project attached to the host project.
                              +     * Gets a service project attachment.
                                    * 
                              */ public void getServiceProjectAttachment( @@ -1827,7 +1824,7 @@ public void getServiceProjectAttachment( * * *
                              -     * Deletes a service project attached to the host project.
                              +     * Deletes a service project attachment.
                                    * 
                              */ public void deleteServiceProjectAttachment( @@ -1843,8 +1840,9 @@ public void deleteServiceProjectAttachment( * * *
                              -     * Detaches a service project from a host project. You can call this API from
                              -     * either a host or service project.
                              +     * Detaches a service project from a host project.
                              +     * You can call this API from any service project without needing access to
                              +     * the host project that it is attached to.
                                    * 
                              */ public void detachServiceProjectAttachment( @@ -1862,7 +1860,7 @@ public void detachServiceProjectAttachment( * * *
                              -     * Lists discovered services that can be added to an application in a host
                              +     * Lists Discovered Services that can be added to an Application in a host
                                    * project and location.
                                    * 
                              */ @@ -1880,7 +1878,7 @@ public void listDiscoveredServices( * * *
                              -     * Gets a discovered service in a host project and location.
                              +     * Gets a Discovered Service in a host project and location.
                                    * 
                              */ public void getDiscoveredService( @@ -1897,7 +1895,7 @@ public void getDiscoveredService( * * *
                              -     * Looks up a discovered service in a host project and location and with a
                              +     * Lists a Discovered Service in a host project and location, with a
                                    * given resource URI.
                                    * 
                              */ @@ -1915,7 +1913,7 @@ public void lookupDiscoveredService( * * *
                              -     * List Services in an Application.
                              +     * Lists Services in an Application.
                                    * 
                              */ public void listServices( @@ -1978,7 +1976,7 @@ public void updateService( * * *
                              -     * Deletes a Service in an Application.
                              +     * Deletes a Service from an Application.
                                    * 
                              */ public void deleteService( @@ -1994,7 +1992,7 @@ public void deleteService( * * *
                              -     * Lists discovered workloads that can be added to an application in a host
                              +     * Lists Discovered Workloads that can be added to an Application in a host
                                    * project and location.
                                    * 
                              */ @@ -2012,7 +2010,7 @@ public void listDiscoveredWorkloads( * * *
                              -     * Gets a discovered workload in a host project and location.
                              +     * Gets a Discovered Workload in a host project and location.
                                    * 
                              */ public void getDiscoveredWorkload( @@ -2029,7 +2027,7 @@ public void getDiscoveredWorkload( * * *
                              -     * Looks up a discovered Workload in a host project and location and with a
                              +     * Lists a Discovered Workload in a host project and location, with a
                                    * given resource URI.
                                    * 
                              */ @@ -2112,7 +2110,7 @@ public void updateWorkload( * * *
                              -     * Deletes a Workload in an Application.
                              +     * Deletes a Workload from an Application.
                                    * 
                              */ public void deleteWorkload( @@ -2210,8 +2208,7 @@ public void deleteApplication( * A stub to allow clients to do synchronous rpc calls to service AppHub. * *
                              -   * The AppHub services allows users to enable toplogy and telemetry
                              -   * configuration.
                              +   * The App Hub API allows you to manage App Hub resources.
                                  * 
                              */ public static final class AppHubBlockingStub @@ -2229,8 +2226,8 @@ protected AppHubBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
                              -     * Looks up a service project attachment. You can call this API from either a
                              -     * host or service project.
                              +     * Lists a service project attachment for a given service project. You can
                              +     * call this API from any project to find if it is attached to a host project.
                                    * 
                              */ public com.google.cloud.apphub.v1.LookupServiceProjectAttachmentResponse @@ -2244,7 +2241,7 @@ protected AppHubBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
                              -     * List service projects attached to the host project.
                              +     * Lists service projects attached to the host project.
                                    * 
                              */ public com.google.cloud.apphub.v1.ListServiceProjectAttachmentsResponse @@ -2271,7 +2268,7 @@ public com.google.longrunning.Operation createServiceProjectAttachment( * * *
                              -     * Gets a service project attached to the host project.
                              +     * Gets a service project attachment.
                                    * 
                              */ public com.google.cloud.apphub.v1.ServiceProjectAttachment getServiceProjectAttachment( @@ -2284,7 +2281,7 @@ public com.google.cloud.apphub.v1.ServiceProjectAttachment getServiceProjectAtta * * *
                              -     * Deletes a service project attached to the host project.
                              +     * Deletes a service project attachment.
                                    * 
                              */ public com.google.longrunning.Operation deleteServiceProjectAttachment( @@ -2297,8 +2294,9 @@ public com.google.longrunning.Operation deleteServiceProjectAttachment( * * *
                              -     * Detaches a service project from a host project. You can call this API from
                              -     * either a host or service project.
                              +     * Detaches a service project from a host project.
                              +     * You can call this API from any service project without needing access to
                              +     * the host project that it is attached to.
                                    * 
                              */ public com.google.cloud.apphub.v1.DetachServiceProjectAttachmentResponse @@ -2312,7 +2310,7 @@ public com.google.longrunning.Operation deleteServiceProjectAttachment( * * *
                              -     * Lists discovered services that can be added to an application in a host
                              +     * Lists Discovered Services that can be added to an Application in a host
                                    * project and location.
                                    * 
                              */ @@ -2326,7 +2324,7 @@ public com.google.cloud.apphub.v1.ListDiscoveredServicesResponse listDiscoveredS * * *
                              -     * Gets a discovered service in a host project and location.
                              +     * Gets a Discovered Service in a host project and location.
                                    * 
                              */ public com.google.cloud.apphub.v1.DiscoveredService getDiscoveredService( @@ -2339,7 +2337,7 @@ public com.google.cloud.apphub.v1.DiscoveredService getDiscoveredService( * * *
                              -     * Looks up a discovered service in a host project and location and with a
                              +     * Lists a Discovered Service in a host project and location, with a
                                    * given resource URI.
                                    * 
                              */ @@ -2353,7 +2351,7 @@ public com.google.cloud.apphub.v1.LookupDiscoveredServiceResponse lookupDiscover * * *
                              -     * List Services in an Application.
                              +     * Lists Services in an Application.
                                    * 
                              */ public com.google.cloud.apphub.v1.ListServicesResponse listServices( @@ -2405,7 +2403,7 @@ public com.google.longrunning.Operation updateService( * * *
                              -     * Deletes a Service in an Application.
                              +     * Deletes a Service from an Application.
                                    * 
                              */ public com.google.longrunning.Operation deleteService( @@ -2418,7 +2416,7 @@ public com.google.longrunning.Operation deleteService( * * *
                              -     * Lists discovered workloads that can be added to an application in a host
                              +     * Lists Discovered Workloads that can be added to an Application in a host
                                    * project and location.
                                    * 
                              */ @@ -2432,7 +2430,7 @@ public com.google.cloud.apphub.v1.ListDiscoveredWorkloadsResponse listDiscovered * * *
                              -     * Gets a discovered workload in a host project and location.
                              +     * Gets a Discovered Workload in a host project and location.
                                    * 
                              */ public com.google.cloud.apphub.v1.DiscoveredWorkload getDiscoveredWorkload( @@ -2445,7 +2443,7 @@ public com.google.cloud.apphub.v1.DiscoveredWorkload getDiscoveredWorkload( * * *
                              -     * Looks up a discovered Workload in a host project and location and with a
                              +     * Lists a Discovered Workload in a host project and location, with a
                                    * given resource URI.
                                    * 
                              */ @@ -2511,7 +2509,7 @@ public com.google.longrunning.Operation updateWorkload( * * *
                              -     * Deletes a Workload in an Application.
                              +     * Deletes a Workload from an Application.
                                    * 
                              */ public com.google.longrunning.Operation deleteWorkload( @@ -2590,8 +2588,7 @@ public com.google.longrunning.Operation deleteApplication( * A stub to allow clients to do ListenableFuture-style rpc calls to service AppHub. * *
                              -   * The AppHub services allows users to enable toplogy and telemetry
                              -   * configuration.
                              +   * The App Hub API allows you to manage App Hub resources.
                                  * 
                              */ public static final class AppHubFutureStub @@ -2609,8 +2606,8 @@ protected AppHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                              -     * Looks up a service project attachment. You can call this API from either a
                              -     * host or service project.
                              +     * Lists a service project attachment for a given service project. You can
                              +     * call this API from any project to find if it is attached to a host project.
                                    * 
                              */ public com.google.common.util.concurrent.ListenableFuture< @@ -2626,7 +2623,7 @@ protected AppHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                              -     * List service projects attached to the host project.
                              +     * Lists service projects attached to the host project.
                                    * 
                              */ public com.google.common.util.concurrent.ListenableFuture< @@ -2657,7 +2654,7 @@ protected AppHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                              -     * Gets a service project attached to the host project.
                              +     * Gets a service project attachment.
                                    * 
                              */ public com.google.common.util.concurrent.ListenableFuture< @@ -2672,7 +2669,7 @@ protected AppHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                              -     * Deletes a service project attached to the host project.
                              +     * Deletes a service project attachment.
                                    * 
                              */ public com.google.common.util.concurrent.ListenableFuture @@ -2687,8 +2684,9 @@ protected AppHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                              -     * Detaches a service project from a host project. You can call this API from
                              -     * either a host or service project.
                              +     * Detaches a service project from a host project.
                              +     * You can call this API from any service project without needing access to
                              +     * the host project that it is attached to.
                                    * 
                              */ public com.google.common.util.concurrent.ListenableFuture< @@ -2704,7 +2702,7 @@ protected AppHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                              -     * Lists discovered services that can be added to an application in a host
                              +     * Lists Discovered Services that can be added to an Application in a host
                                    * project and location.
                                    * 
                              */ @@ -2719,7 +2717,7 @@ protected AppHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                              -     * Gets a discovered service in a host project and location.
                              +     * Gets a Discovered Service in a host project and location.
                                    * 
                              */ public com.google.common.util.concurrent.ListenableFuture< @@ -2733,7 +2731,7 @@ protected AppHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                              -     * Looks up a discovered service in a host project and location and with a
                              +     * Lists a Discovered Service in a host project and location, with a
                                    * given resource URI.
                                    * 
                              */ @@ -2748,7 +2746,7 @@ protected AppHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                              -     * List Services in an Application.
                              +     * Lists Services in an Application.
                                    * 
                              */ public com.google.common.util.concurrent.ListenableFuture< @@ -2801,7 +2799,7 @@ protected AppHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                              -     * Deletes a Service in an Application.
                              +     * Deletes a Service from an Application.
                                    * 
                              */ public com.google.common.util.concurrent.ListenableFuture @@ -2814,7 +2812,7 @@ protected AppHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                              -     * Lists discovered workloads that can be added to an application in a host
                              +     * Lists Discovered Workloads that can be added to an Application in a host
                                    * project and location.
                                    * 
                              */ @@ -2829,7 +2827,7 @@ protected AppHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                              -     * Gets a discovered workload in a host project and location.
                              +     * Gets a Discovered Workload in a host project and location.
                                    * 
                              */ public com.google.common.util.concurrent.ListenableFuture< @@ -2843,7 +2841,7 @@ protected AppHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                              -     * Looks up a discovered Workload in a host project and location and with a
                              +     * Lists a Discovered Workload in a host project and location, with a
                                    * given resource URI.
                                    * 
                              */ @@ -2912,7 +2910,7 @@ protected AppHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
                              -     * Deletes a Workload in an Application.
                              +     * Deletes a Workload from an Application.
                                    * 
                              */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApphubServiceProto.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApphubServiceProto.java index 89c03b95305c..6e83c567df9c 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApphubServiceProto.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApphubServiceProto.java @@ -201,298 +201,298 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032#google/longrunning/operations.proto\032\033g" + "oogle/protobuf/empty.proto\032 google/proto" + "buf/field_mask.proto\032\037google/protobuf/ti" - + "mestamp.proto\"m\n%LookupServiceProjectAtt" - + "achmentRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\022.ap" - + "phub.googleapis.com/ServiceProjectAttach" - + "ment\"~\n&LookupServiceProjectAttachmentRe" - + "sponse\022T\n\032service_project_attachment\030\001 \001" - + "(\01320.google.cloud.apphub.v1.ServiceProje" - + "ctAttachment\"\313\001\n$ListServiceProjectAttac" - + "hmentsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.a" - + "pphub.googleapis.com/ServiceProjectAttac" - + "hment\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" - + "ken\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010o" - + "rder_by\030\005 \001(\tB\003\340A\001\"\254\001\n%ListServiceProjec" - + "tAttachmentsResponse\022U\n\033service_project_" - + "attachments\030\001 \003(\01320.google.cloud.apphub." - + "v1.ServiceProjectAttachment\022\027\n\017next_page" - + "_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\217\002\n%Cr" - + "eateServiceProjectAttachmentRequest\022F\n\006p" - + "arent\030\001 \001(\tB6\340A\002\372A0\022.apphub.googleapis.c" - + "om/ServiceProjectAttachment\022*\n\035service_p" - + "roject_attachment_id\030\002 \001(\tB\003\340A\002\022Y\n\032servi" - + "ce_project_attachment\030\003 \001(\01320.google.clo" - + "ud.apphub.v1.ServiceProjectAttachmentB\003\340" - + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"j\n\"GetServic" - + "eProjectAttachmentRequest\022D\n\004name\030\001 \001(\tB" - + "6\340A\002\372A0\n.apphub.googleapis.com/ServicePr" - + "ojectAttachment\"\206\001\n%DeleteServiceProject" - + "AttachmentRequest\022D\n\004name\030\001 \001(\tB6\340A\002\372A0\n" - + ".apphub.googleapis.com/ServiceProjectAtt" - + "achment\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"m\n%Deta" - + "chServiceProjectAttachmentRequest\022D\n\004nam" - + "e\030\001 \001(\tB6\340A\002\372A0\022.apphub.googleapis.com/S" - + "erviceProjectAttachment\"(\n&DetachService" - + "ProjectAttachmentResponse\"\251\001\n\023ListServic" - + "esRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035apphu" - + "b.googleapis.com/Service\022\026\n\tpage_size\030\002 " - + "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006fil" - + "ter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"w\n" - + "\024ListServicesResponse\0221\n\010services\030\001 \003(\0132" - + "\037.google.cloud.apphub.v1.Service\022\027\n\017next" - + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\275" - + "\001\n\035ListDiscoveredServicesRequest\022?\n\006pare" - + "nt\030\001 \001(\tB/\340A\002\372A)\022\'apphub.googleapis.com/" - + "DiscoveredService\022\026\n\tpage_size\030\002 \001(\005B\003\340A" - + "\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001" - + "(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\226\001\n\036ListD" - + "iscoveredServicesResponse\022F\n\023discovered_" - + "services\030\001 \003(\0132).google.cloud.apphub.v1." - + "DiscoveredService\022\027\n\017next_page_token\030\002 \001" - + "(\t\022\023\n\013unreachable\030\003 \003(\t\"\266\001\n\024CreateServic" - + "eRequest\0225\n\006parent\030\001 \001(\tB%\340A\002\372A\037\022\035apphub" - + ".googleapis.com/Service\022\027\n\nservice_id\030\002 " - + "\001(\tB\003\340A\002\0225\n\007service\030\003 \001(\0132\037.google.cloud" - + ".apphub.v1.ServiceB\003\340A\002\022\027\n\nrequest_id\030\004 " - + "\001(\tB\003\340A\001\"H\n\021GetServiceRequest\0223\n\004name\030\001 " - + "\001(\tB%\340A\002\372A\037\n\035apphub.googleapis.com/Servi" - + "ce\"\\\n\033GetDiscoveredServiceRequest\022=\n\004nam" - + "e\030\001 \001(\tB/\340A\002\372A)\n\'apphub.googleapis.com/D" - + "iscoveredService\"s\n\036LookupDiscoveredServ" - + "iceRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\022\'apph" - + "ub.googleapis.com/DiscoveredService\022\020\n\003u" - + "ri\030\002 \001(\tB\003\340A\002\"h\n\037LookupDiscoveredService" - + "Response\022E\n\022discovered_service\030\001 \001(\0132).g" - + "oogle.cloud.apphub.v1.DiscoveredService\"" - + "\234\001\n\024UpdateServiceRequest\0224\n\013update_mask\030" - + "\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\0225" - + "\n\007service\030\002 \001(\0132\037.google.cloud.apphub.v1" - + ".ServiceB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"d" - + "\n\024DeleteServiceRequest\0223\n\004name\030\001 \001(\tB%\340A" - + "\002\372A\037\n\035apphub.googleapis.com/Service\022\027\n\nr" - + "equest_id\030\002 \001(\tB\003\340A\001\"\261\001\n\027ListApplication" - + "sRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!apphub" - + ".googleapis.com/Application\022\026\n\tpage_size" - + "\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006" - + "filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001" - + "\"\203\001\n\030ListApplicationsResponse\0229\n\014applica" - + "tions\030\001 \003(\0132#.google.cloud.apphub.v1.App" - + "lication\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unr" - + "eachable\030\003 \003(\t\"\312\001\n\030CreateApplicationRequ" - + "est\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!apphub.goog" - + "leapis.com/Application\022\033\n\016application_id" - + "\030\002 \001(\tB\003\340A\002\022=\n\013application\030\003 \001(\0132#.googl" - + "e.cloud.apphub.v1.ApplicationB\003\340A\002\022\027\n\nre" - + "quest_id\030\004 \001(\tB\003\340A\001\"P\n\025GetApplicationReq" - + "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!apphub.googl" - + "eapis.com/Application\"\250\001\n\030UpdateApplicat" - + "ionRequest\0224\n\013update_mask\030\001 \001(\0132\032.google" - + ".protobuf.FieldMaskB\003\340A\002\022=\n\013application\030" - + "\002 \001(\0132#.google.cloud.apphub.v1.Applicati" - + "onB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"l\n\030Dele" - + "teApplicationRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372" - + "A#\n!apphub.googleapis.com/Application\022\027\n" - + "\nrequest_id\030\002 \001(\tB\003\340A\001\"\253\001\n\024ListWorkloads" - + "Request\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036apphub." - + "googleapis.com/Workload\022\026\n\tpage_size\030\002 \001" - + "(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filt" - + "er\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"z\n\025" - + "ListWorkloadsResponse\0223\n\tworkloads\030\001 \003(\013" - + "2 .google.cloud.apphub.v1.Workload\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t" - + "\"\277\001\n\036ListDiscoveredWorkloadsRequest\022@\n\006p" - + "arent\030\001 \001(\tB0\340A\002\372A*\022(apphub.googleapis.c" - + "om/DiscoveredWorkload\022\026\n\tpage_size\030\002 \001(\005" - + "B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter" - + "\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\231\001\n\037L" - + "istDiscoveredWorkloadsResponse\022H\n\024discov" - + "ered_workloads\030\001 \003(\0132*.google.cloud.apph" - + "ub.v1.DiscoveredWorkload\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\273\001\n\025Creat" - + "eWorkloadRequest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A " - + "\022\036apphub.googleapis.com/Workload\022\030\n\013work" - + "load_id\030\002 \001(\tB\003\340A\002\0227\n\010workload\030\003 \001(\0132 .g" - + "oogle.cloud.apphub.v1.WorkloadB\003\340A\002\022\027\n\nr" - + "equest_id\030\004 \001(\tB\003\340A\001\"J\n\022GetWorkloadReque" - + "st\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036apphub.googlea" - + "pis.com/Workload\"^\n\034GetDiscoveredWorkloa" - + "dRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(apphub.g" - + "oogleapis.com/DiscoveredWorkload\"u\n\037Look" - + "upDiscoveredWorkloadRequest\022@\n\006parent\030\001 " - + "\001(\tB0\340A\002\372A*\022(apphub.googleapis.com/Disco" - + "veredWorkload\022\020\n\003uri\030\002 \001(\tB\003\340A\002\"k\n Looku" - + "pDiscoveredWorkloadResponse\022G\n\023discovere" - + "d_workload\030\001 \001(\0132*.google.cloud.apphub.v" - + "1.DiscoveredWorkload\"\237\001\n\025UpdateWorkloadR" - + "equest\0224\n\013update_mask\030\001 \001(\0132\032.google.pro" - + "tobuf.FieldMaskB\003\340A\002\0227\n\010workload\030\002 \001(\0132 " - + ".google.cloud.apphub.v1.WorkloadB\003\340A\002\022\027\n" - + "\nrequest_id\030\003 \001(\tB\003\340A\001\"f\n\025DeleteWorkload" - + "Request\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036apphub.go" - + "ogleapis.com/Workload\022\027\n\nrequest_id\030\002 \001(" - + "\tB\003\340A\001\"\200\002\n\021OperationMetadata\0224\n\013create_t" - + "ime\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004ve" - + "rb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340" - + "A\003\022#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003\022" - + "\030\n\013api_version\030\007 \001(\tB\003\340A\0032\247/\n\006AppHub\022\360\001\n" - + "\036LookupServiceProjectAttachment\022=.google" - + ".cloud.apphub.v1.LookupServiceProjectAtt" - + "achmentRequest\032>.google.cloud.apphub.v1." - + "LookupServiceProjectAttachmentResponse\"O" - + "\332A\004name\202\323\344\223\002B\022@/v1/{name=projects/*/loca" - + "tions/*}:lookupServiceProjectAttachment\022" - + "\354\001\n\035ListServiceProjectAttachments\022<.goog" - + "le.cloud.apphub.v1.ListServiceProjectAtt" - + "achmentsRequest\032=.google.cloud.apphub.v1" - + ".ListServiceProjectAttachmentsResponse\"N" - + "\332A\006parent\202\323\344\223\002?\022=/v1/{parent=projects/*/" - + "locations/*}/serviceProjectAttachments\022\324" - + "\002\n\036CreateServiceProjectAttachment\022=.goog" - + "le.cloud.apphub.v1.CreateServiceProjectA" - + "ttachmentRequest\032\035.google.longrunning.Op" - + "eration\"\323\001\312A-\n\030ServiceProjectAttachment\022" - + "\021OperationMetadata\332A?parent,service_proj" - + "ect_attachment,service_project_attachmen" - + "t_id\202\323\344\223\002[\"=/v1/{parent=projects/*/locat" - + "ions/*}/serviceProjectAttachments:\032servi" - + "ce_project_attachment\022\331\001\n\033GetServiceProj" - + "ectAttachment\022:.google.cloud.apphub.v1.G" - + "etServiceProjectAttachmentRequest\0320.goog" - + "le.cloud.apphub.v1.ServiceProjectAttachm" - + "ent\"L\332A\004name\202\323\344\223\002?\022=/v1/{name=projects/*" - + "/locations/*/serviceProjectAttachments/*" - + "}\022\371\001\n\036DeleteServiceProjectAttachment\022=.g" - + "oogle.cloud.apphub.v1.DeleteServiceProje" - + "ctAttachmentRequest\032\035.google.longrunning" - + ".Operation\"y\312A*\n\025google.protobuf.Empty\022\021" - + "OperationMetadata\332A\004name\202\323\344\223\002?*=/v1/{nam" - + "e=projects/*/locations/*/serviceProjectA" - + "ttachments/*}\022\363\001\n\036DetachServiceProjectAt" - + "tachment\022=.google.cloud.apphub.v1.Detach" - + "ServiceProjectAttachmentRequest\032>.google" - + ".cloud.apphub.v1.DetachServiceProjectAtt" - + "achmentResponse\"R\332A\004name\202\323\344\223\002E\"@/v1/{nam" - + "e=projects/*/locations/*}:detachServiceP" - + "rojectAttachment:\001*\022\320\001\n\026ListDiscoveredSe" - + "rvices\0225.google.cloud.apphub.v1.ListDisc" - + "overedServicesRequest\0326.google.cloud.app" - + "hub.v1.ListDiscoveredServicesResponse\"G\332" - + "A\006parent\202\323\344\223\0028\0226/v1/{parent=projects/*/l" - + "ocations/*}/discoveredServices\022\275\001\n\024GetDi" - + "scoveredService\0223.google.cloud.apphub.v1" - + ".GetDiscoveredServiceRequest\032).google.cl" - + "oud.apphub.v1.DiscoveredService\"E\332A\004name" - + "\202\323\344\223\0028\0226/v1/{name=projects/*/locations/*" - + "/discoveredServices/*}\022\336\001\n\027LookupDiscove" - + "redService\0226.google.cloud.apphub.v1.Look" - + "upDiscoveredServiceRequest\0327.google.clou" - + "d.apphub.v1.LookupDiscoveredServiceRespo" - + "nse\"R\332A\nparent,uri\202\323\344\223\002?\022=/v1/{parent=pr" - + "ojects/*/locations/*}/discoveredServices" - + ":lookup\022\267\001\n\014ListServices\022+.google.cloud." - + "apphub.v1.ListServicesRequest\032,.google.c" - + "loud.apphub.v1.ListServicesResponse\"L\332A\006" - + "parent\202\323\344\223\002=\022;/v1/{parent=projects/*/loc" - + "ations/*/applications/*}/services\022\346\001\n\rCr" - + "eateService\022,.google.cloud.apphub.v1.Cre" - + "ateServiceRequest\032\035.google.longrunning.O" - + "peration\"\207\001\312A\034\n\007Service\022\021OperationMetada" - + "ta\332A\031parent,service,service_id\202\323\344\223\002F\";/v" - + "1/{parent=projects/*/locations/*/applica" - + "tions/*}/services:\007service\022\244\001\n\nGetServic" - + "e\022).google.cloud.apphub.v1.GetServiceReq" - + "uest\032\037.google.cloud.apphub.v1.Service\"J\332" - + "A\004name\202\323\344\223\002=\022;/v1/{name=projects/*/locat" - + "ions/*/applications/*/services/*}\022\350\001\n\rUp" - + "dateService\022,.google.cloud.apphub.v1.Upd" - + "ateServiceRequest\032\035.google.longrunning.O" - + "peration\"\211\001\312A\034\n\007Service\022\021OperationMetada" - + "ta\332A\023service,update_mask\202\323\344\223\002N2C/v1/{ser" - + "vice.name=projects/*/locations/*/applica" - + "tions/*/services/*}:\007service\022\325\001\n\rDeleteS" - + "ervice\022,.google.cloud.apphub.v1.DeleteSe" - + "rviceRequest\032\035.google.longrunning.Operat" - + "ion\"w\312A*\n\025google.protobuf.Empty\022\021Operati" - + "onMetadata\332A\004name\202\323\344\223\002=*;/v1/{name=proje" - + "cts/*/locations/*/applications/*/service" - + "s/*}\022\324\001\n\027ListDiscoveredWorkloads\0226.googl" - + "e.cloud.apphub.v1.ListDiscoveredWorkload" - + "sRequest\0327.google.cloud.apphub.v1.ListDi" - + "scoveredWorkloadsResponse\"H\332A\006parent\202\323\344\223" - + "\0029\0227/v1/{parent=projects/*/locations/*}/" - + "discoveredWorkloads\022\301\001\n\025GetDiscoveredWor" - + "kload\0224.google.cloud.apphub.v1.GetDiscov" - + "eredWorkloadRequest\032*.google.cloud.apphu" - + "b.v1.DiscoveredWorkload\"F\332A\004name\202\323\344\223\0029\0227" - + "/v1/{name=projects/*/locations/*/discove" - + "redWorkloads/*}\022\342\001\n\030LookupDiscoveredWork" - + "load\0227.google.cloud.apphub.v1.LookupDisc" - + "overedWorkloadRequest\0328.google.cloud.app" - + "hub.v1.LookupDiscoveredWorkloadResponse\"" - + "S\332A\nparent,uri\202\323\344\223\002@\022>/v1/{parent=projec" - + "ts/*/locations/*}/discoveredWorkloads:lo" - + "okup\022\273\001\n\rListWorkloads\022,.google.cloud.ap" - + "phub.v1.ListWorkloadsRequest\032-.google.cl" - + "oud.apphub.v1.ListWorkloadsResponse\"M\332A\006" - + "parent\202\323\344\223\002>\022\022\n\004name\030\001 \001(\tB0\340A" + + "\002\372A*\n(apphub.googleapis.com/DiscoveredWo" + + "rkload\"u\n\037LookupDiscoveredWorkloadReques" + + "t\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(apphub.google" + + "apis.com/DiscoveredWorkload\022\020\n\003uri\030\002 \001(\t" + + "B\003\340A\002\"k\n LookupDiscoveredWorkloadRespons" + + "e\022G\n\023discovered_workload\030\001 \001(\0132*.google." + + "cloud.apphub.v1.DiscoveredWorkload\"\237\001\n\025U" + + "pdateWorkloadRequest\0224\n\013update_mask\030\001 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\0227\n\010wo" + + "rkload\030\002 \001(\0132 .google.cloud.apphub.v1.Wo" + + "rkloadB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"f\n\025" + + "DeleteWorkloadRequest\0224\n\004name\030\001 \001(\tB&\340A\002" + + "\372A \n\036apphub.googleapis.com/Workload\022\027\n\nr" + + "equest_id\030\002 \001(\tB\003\340A\001\"\200\002\n\021OperationMetada" + + "ta\0224\n\013create_time\030\001 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 " + + "\001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_me" + + "ssage\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancellati" + + "on\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032" + + "\247/\n\006AppHub\022\360\001\n\036LookupServiceProjectAttac" + + "hment\022=.google.cloud.apphub.v1.LookupSer" + + "viceProjectAttachmentRequest\032>.google.cl" + + "oud.apphub.v1.LookupServiceProjectAttach" + + "mentResponse\"O\332A\004name\202\323\344\223\002B\022@/v1/{name=p" + + "rojects/*/locations/*}:lookupServiceProj" + + "ectAttachment\022\354\001\n\035ListServiceProjectAtta" + + "chments\022<.google.cloud.apphub.v1.ListSer" + + "viceProjectAttachmentsRequest\032=.google.c" + + "loud.apphub.v1.ListServiceProjectAttachm" + + "entsResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{pare" + + "nt=projects/*/locations/*}/serviceProjec" + + "tAttachments\022\324\002\n\036CreateServiceProjectAtt" + + "achment\022=.google.cloud.apphub.v1.CreateS" + + "erviceProjectAttachmentRequest\032\035.google." + + "longrunning.Operation\"\323\001\312A-\n\030ServiceProj" + + "ectAttachment\022\021OperationMetadata\332A?paren" + + "t,service_project_attachment,service_pro" + + "ject_attachment_id\202\323\344\223\002[\"=/v1/{parent=pr" + + "ojects/*/locations/*}/serviceProjectAtta" + + "chments:\032service_project_attachment\022\331\001\n\033" + + "GetServiceProjectAttachment\022:.google.clo" + + "ud.apphub.v1.GetServiceProjectAttachment" + + "Request\0320.google.cloud.apphub.v1.Service" + + "ProjectAttachment\"L\332A\004name\202\323\344\223\002?\022=/v1/{n" + + "ame=projects/*/locations/*/serviceProjec" + + "tAttachments/*}\022\371\001\n\036DeleteServiceProject" + + "Attachment\022=.google.cloud.apphub.v1.Dele" + + "teServiceProjectAttachmentRequest\032\035.goog" + + "le.longrunning.Operation\"y\312A*\n\025google.pr" + "otobuf.Empty\022\021OperationMetadata\332A\004name\202\323" - + "\344\223\002>*.google.cloud.apphub.v1.DetachSer" + + "viceProjectAttachmentResponse\"R\332A\004name\202\323" + + "\344\223\002E\"@/v1/{name=projects/*/locations/*}:" + + "detachServiceProjectAttachment:\001*\022\320\001\n\026Li" + + "stDiscoveredServices\0225.google.cloud.apph" + + "ub.v1.ListDiscoveredServicesRequest\0326.go" + + "ogle.cloud.apphub.v1.ListDiscoveredServi" + + "cesResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1/{paren" + + "t=projects/*/locations/*}/discoveredServ" + + "ices\022\275\001\n\024GetDiscoveredService\0223.google.c" + + "loud.apphub.v1.GetDiscoveredServiceReque" + + "st\032).google.cloud.apphub.v1.DiscoveredSe" + + "rvice\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=projects" + + "/*/locations/*/discoveredServices/*}\022\336\001\n" + + "\027LookupDiscoveredService\0226.google.cloud." + + "apphub.v1.LookupDiscoveredServiceRequest" + + "\0327.google.cloud.apphub.v1.LookupDiscover" + + "edServiceResponse\"R\332A\nparent,uri\202\323\344\223\002?\022=" + + "/v1/{parent=projects/*/locations/*}/disc" + + "overedServices:lookup\022\267\001\n\014ListServices\022+" + + ".google.cloud.apphub.v1.ListServicesRequ" + + "est\032,.google.cloud.apphub.v1.ListService" + + "sResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{parent=" + + "projects/*/locations/*/applications/*}/s" + + "ervices\022\346\001\n\rCreateService\022,.google.cloud" + + ".apphub.v1.CreateServiceRequest\032\035.google" + + ".longrunning.Operation\"\207\001\312A\034\n\007Service\022\021O" + + "perationMetadata\332A\031parent,service,servic" + + "e_id\202\323\344\223\002F\";/v1/{parent=projects/*/locat" + + "ions/*/applications/*}/services:\007service" + + "\022\244\001\n\nGetService\022).google.cloud.apphub.v1" + + ".GetServiceRequest\032\037.google.cloud.apphub" + + ".v1.Service\"J\332A\004name\202\323\344\223\002=\022;/v1/{name=pr" + + "ojects/*/locations/*/applications/*/serv" + + "ices/*}\022\350\001\n\rUpdateService\022,.google.cloud" + + ".apphub.v1.UpdateServiceRequest\032\035.google" + + ".longrunning.Operation\"\211\001\312A\034\n\007Service\022\021O" + + "perationMetadata\332A\023service,update_mask\202\323" + + "\344\223\002N2C/v1/{service.name=projects/*/locat" + + "ions/*/applications/*/services/*}:\007servi" + + "ce\022\325\001\n\rDeleteService\022,.google.cloud.apph" + + "ub.v1.DeleteServiceRequest\032\035.google.long" + + "running.Operation\"w\312A*\n\025google.protobuf." + + "Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002=*;/" + + "v1/{name=projects/*/locations/*/applicat" + + "ions/*/services/*}\022\324\001\n\027ListDiscoveredWor" + + "kloads\0226.google.cloud.apphub.v1.ListDisc" + + "overedWorkloadsRequest\0327.google.cloud.ap" + + "phub.v1.ListDiscoveredWorkloadsResponse\"" + + "H\332A\006parent\202\323\344\223\0029\0227/v1/{parent=projects/*" + + "/locations/*}/discoveredWorkloads\022\301\001\n\025Ge" + + "tDiscoveredWorkload\0224.google.cloud.apphu" + + "b.v1.GetDiscoveredWorkloadRequest\032*.goog" + + "le.cloud.apphub.v1.DiscoveredWorkload\"F\332" + + "A\004name\202\323\344\223\0029\0227/v1/{name=projects/*/locat" + + "ions/*/discoveredWorkloads/*}\022\342\001\n\030Lookup" + + "DiscoveredWorkload\0227.google.cloud.apphub" + + ".v1.LookupDiscoveredWorkloadRequest\0328.go" + + "ogle.cloud.apphub.v1.LookupDiscoveredWor" + + "kloadResponse\"S\332A\nparent,uri\202\323\344\223\002@\022>/v1/" + + "{parent=projects/*/locations/*}/discover" + + "edWorkloads:lookup\022\273\001\n\rListWorkloads\022,.g" + + "oogle.cloud.apphub.v1.ListWorkloadsReque" + + "st\032-.google.cloud.apphub.v1.ListWorkload" + + "sResponse\"M\332A\006parent\202\323\344\223\002>\022\022* - * Required. Value for parent. + * Required. Project and location to create Application in. + * Expected format: `projects/{project}/locations/{location}`. * * * @@ -99,7 +100,8 @@ public java.lang.String getParent() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to create Application in.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -748,7 +750,8 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to create Application in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -772,7 +775,8 @@ public java.lang.String getParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to create Application in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -796,7 +800,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to create Application in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -819,7 +824,8 @@ public Builder setParent(java.lang.String value) { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to create Application in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -838,7 +844,8 @@ public Builder clearParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to create Application in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateApplicationRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateApplicationRequestOrBuilder.java index 6a044a6411aa..c9a4c3174fb3 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateApplicationRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateApplicationRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface CreateApplicationRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to create Application in.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -42,7 +43,8 @@ public interface CreateApplicationRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to create Application in.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceProjectAttachmentRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceProjectAttachmentRequest.java index 6cc8cb78090c..29988e924f8a 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceProjectAttachmentRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceProjectAttachmentRequest.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to which service project is being
                              +   * attached. Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -101,7 +103,9 @@ public java.lang.String getParent() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to which service project is being
                              +   * attached. Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -132,9 +136,8 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                                  * Required. The service project attachment identifier must contain the
                              -   * project_id of the service project specified in the
                              -   * service_project_attachment.service_project field. Hint:
                              -   * "projects/{project_id}"
                              +   * project id of the service project specified in the
                              +   * service_project_attachment.service_project field.
                                  * 
                              * * string service_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -159,9 +162,8 @@ public java.lang.String getServiceProjectAttachmentId() { * *
                                  * Required. The service project attachment identifier must contain the
                              -   * project_id of the service project specified in the
                              -   * service_project_attachment.service_project field. Hint:
                              -   * "projects/{project_id}"
                              +   * project id of the service project specified in the
                              +   * service_project_attachment.service_project field.
                                  * 
                              * * string service_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -765,7 +767,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to which service project is being
                              +     * attached. Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -789,7 +793,9 @@ public java.lang.String getParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to which service project is being
                              +     * attached. Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -813,7 +819,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to which service project is being
                              +     * attached. Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -836,7 +844,9 @@ public Builder setParent(java.lang.String value) { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to which service project is being
                              +     * attached. Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -855,7 +865,9 @@ public Builder clearParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to which service project is being
                              +     * attached. Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -882,9 +894,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
                                    * Required. The service project attachment identifier must contain the
                              -     * project_id of the service project specified in the
                              -     * service_project_attachment.service_project field. Hint:
                              -     * "projects/{project_id}"
                              +     * project id of the service project specified in the
                              +     * service_project_attachment.service_project field.
                                    * 
                              * * string service_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -908,9 +919,8 @@ public java.lang.String getServiceProjectAttachmentId() { * *
                                    * Required. The service project attachment identifier must contain the
                              -     * project_id of the service project specified in the
                              -     * service_project_attachment.service_project field. Hint:
                              -     * "projects/{project_id}"
                              +     * project id of the service project specified in the
                              +     * service_project_attachment.service_project field.
                                    * 
                              * * string service_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -934,9 +944,8 @@ public com.google.protobuf.ByteString getServiceProjectAttachmentIdBytes() { * *
                                    * Required. The service project attachment identifier must contain the
                              -     * project_id of the service project specified in the
                              -     * service_project_attachment.service_project field. Hint:
                              -     * "projects/{project_id}"
                              +     * project id of the service project specified in the
                              +     * service_project_attachment.service_project field.
                                    * 
                              * * string service_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -959,9 +968,8 @@ public Builder setServiceProjectAttachmentId(java.lang.String value) { * *
                                    * Required. The service project attachment identifier must contain the
                              -     * project_id of the service project specified in the
                              -     * service_project_attachment.service_project field. Hint:
                              -     * "projects/{project_id}"
                              +     * project id of the service project specified in the
                              +     * service_project_attachment.service_project field.
                                    * 
                              * * string service_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -980,9 +988,8 @@ public Builder clearServiceProjectAttachmentId() { * *
                                    * Required. The service project attachment identifier must contain the
                              -     * project_id of the service project specified in the
                              -     * service_project_attachment.service_project field. Hint:
                              -     * "projects/{project_id}"
                              +     * project id of the service project specified in the
                              +     * service_project_attachment.service_project field.
                                    * 
                              * * string service_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceProjectAttachmentRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceProjectAttachmentRequestOrBuilder.java index fdab6ee60dc8..c7796c258d60 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceProjectAttachmentRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceProjectAttachmentRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface CreateServiceProjectAttachmentRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to which service project is being
                              +   * attached. Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface CreateServiceProjectAttachmentRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to which service project is being
                              +   * attached. Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -58,9 +62,8 @@ public interface CreateServiceProjectAttachmentRequestOrBuilder * *
                                  * Required. The service project attachment identifier must contain the
                              -   * project_id of the service project specified in the
                              -   * service_project_attachment.service_project field. Hint:
                              -   * "projects/{project_id}"
                              +   * project id of the service project specified in the
                              +   * service_project_attachment.service_project field.
                                  * 
                              * * string service_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -74,9 +77,8 @@ public interface CreateServiceProjectAttachmentRequestOrBuilder * *
                                  * Required. The service project attachment identifier must contain the
                              -   * project_id of the service project specified in the
                              -   * service_project_attachment.service_project field. Hint:
                              -   * "projects/{project_id}"
                              +   * project id of the service project specified in the
                              +   * service_project_attachment.service_project field.
                                  * 
                              * * string service_project_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceRequest.java index 7f525e667fe8..2e5391b352f0 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceRequest.java @@ -74,7 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the parent Application to create the
                              +   * Service in. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -99,7 +101,9 @@ public java.lang.String getParent() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the parent Application to create the
                              +   * Service in. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -740,7 +744,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to create the
                              +     * Service in. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -764,7 +770,9 @@ public java.lang.String getParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to create the
                              +     * Service in. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -788,7 +796,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to create the
                              +     * Service in. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -811,7 +821,9 @@ public Builder setParent(java.lang.String value) { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to create the
                              +     * Service in. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -830,7 +842,9 @@ public Builder clearParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to create the
                              +     * Service in. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceRequestOrBuilder.java index 404a0d1079d3..0bb4d76b25a0 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateServiceRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface CreateServiceRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the parent Application to create the
                              +   * Service in. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface CreateServiceRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the parent Application to create the
                              +   * Service in. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateWorkloadRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateWorkloadRequest.java index d4495832ca96..95cd990b659b 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateWorkloadRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateWorkloadRequest.java @@ -74,7 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the Application to create Workload in.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -99,7 +101,9 @@ public java.lang.String getParent() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the Application to create Workload in.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -740,7 +744,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the Application to create Workload in.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -764,7 +770,9 @@ public java.lang.String getParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the Application to create Workload in.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -788,7 +796,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the Application to create Workload in.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -811,7 +821,9 @@ public Builder setParent(java.lang.String value) { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the Application to create Workload in.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -830,7 +842,9 @@ public Builder clearParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the Application to create Workload in.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateWorkloadRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateWorkloadRequestOrBuilder.java index 702ec8292427..fbd9d90d8e66 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateWorkloadRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/CreateWorkloadRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface CreateWorkloadRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the Application to create Workload in.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface CreateWorkloadRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the Application to create Workload in.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteApplicationRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteApplicationRequest.java index fa3eea2f3afc..53a3e589c578 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteApplicationRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteApplicationRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Application to delete.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -97,7 +99,9 @@ public java.lang.String getName() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Application to delete.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -565,7 +569,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Application to delete.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -589,7 +595,9 @@ public java.lang.String getName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Application to delete.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -613,7 +621,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Application to delete.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -636,7 +646,9 @@ public Builder setName(java.lang.String value) { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Application to delete.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -655,7 +667,9 @@ public Builder clearName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Application to delete.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteApplicationRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteApplicationRequestOrBuilder.java index 16b4379faa1e..f307d34884e9 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteApplicationRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteApplicationRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface DeleteApplicationRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Application to delete.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface DeleteApplicationRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Application to delete.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceProjectAttachmentRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceProjectAttachmentRequest.java index 0d1c6534979f..09c929fdd0be 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceProjectAttachmentRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceProjectAttachmentRequest.java @@ -74,7 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the service project attachment to delete.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                  * 
                              * * @@ -99,7 +101,9 @@ public java.lang.String getName() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the service project attachment to delete.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                  * 
                              * * @@ -572,7 +576,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the service project attachment to delete.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                    * 
                              * * @@ -596,7 +602,9 @@ public java.lang.String getName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the service project attachment to delete.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                    * 
                              * * @@ -620,7 +628,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the service project attachment to delete.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                    * 
                              * * @@ -643,7 +653,9 @@ public Builder setName(java.lang.String value) { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the service project attachment to delete.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                    * 
                              * * @@ -662,7 +674,9 @@ public Builder clearName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the service project attachment to delete.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceProjectAttachmentRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceProjectAttachmentRequestOrBuilder.java index bd8051fd9fba..7ce7010dee41 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceProjectAttachmentRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceProjectAttachmentRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface DeleteServiceProjectAttachmentRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the service project attachment to delete.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface DeleteServiceProjectAttachmentRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the service project attachment to delete.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceRequest.java index b48d52bced03..19697f02b571 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Service to delete from an
                              +   * Application. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                  * 
                              * * @@ -97,7 +99,9 @@ public java.lang.String getName() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Service to delete from an
                              +   * Application. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                  * 
                              * * @@ -565,7 +569,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Service to delete from an
                              +     * Application. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                    * 
                              * * @@ -589,7 +595,9 @@ public java.lang.String getName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Service to delete from an
                              +     * Application. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                    * 
                              * * @@ -613,7 +621,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Service to delete from an
                              +     * Application. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                    * 
                              * * @@ -636,7 +646,9 @@ public Builder setName(java.lang.String value) { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Service to delete from an
                              +     * Application. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                    * 
                              * * @@ -655,7 +667,9 @@ public Builder clearName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Service to delete from an
                              +     * Application. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceRequestOrBuilder.java index c28416a79fd6..8a013ce1298f 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteServiceRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface DeleteServiceRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Service to delete from an
                              +   * Application. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface DeleteServiceRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Service to delete from an
                              +   * Application. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteWorkloadRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteWorkloadRequest.java index 5c05bb5c526a..ed93f597427a 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteWorkloadRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteWorkloadRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Workload to delete from an
                              +   * Application. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                  * 
                              * * @@ -97,7 +99,9 @@ public java.lang.String getName() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Workload to delete from an
                              +   * Application. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                  * 
                              * * @@ -565,7 +569,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Workload to delete from an
                              +     * Application. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                    * 
                              * * @@ -589,7 +595,9 @@ public java.lang.String getName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Workload to delete from an
                              +     * Application. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                    * 
                              * * @@ -613,7 +621,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Workload to delete from an
                              +     * Application. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                    * 
                              * * @@ -636,7 +646,9 @@ public Builder setName(java.lang.String value) { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Workload to delete from an
                              +     * Application. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                    * 
                              * * @@ -655,7 +667,9 @@ public Builder clearName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Workload to delete from an
                              +     * Application. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteWorkloadRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteWorkloadRequestOrBuilder.java index 1b7c62754eea..b6c41f45d535 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteWorkloadRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DeleteWorkloadRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface DeleteWorkloadRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Workload to delete from an
                              +   * Application. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface DeleteWorkloadRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Workload to delete from an
                              +   * Application. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DetachServiceProjectAttachmentRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DetachServiceProjectAttachmentRequest.java index fd1b60582454..e1260721aad6 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DetachServiceProjectAttachmentRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DetachServiceProjectAttachmentRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for name.
                              +   * Required. Service project id and location to detach from a host project.
                              +   * Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -98,7 +100,9 @@ public java.lang.String getName() { * * *
                              -   * Required. Value for name.
                              +   * Required. Service project id and location to detach from a host project.
                              +   * Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -472,7 +476,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for name.
                              +     * Required. Service project id and location to detach from a host project.
                              +     * Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -496,7 +502,9 @@ public java.lang.String getName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Service project id and location to detach from a host project.
                              +     * Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -520,7 +528,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                              -     * Required. Value for name.
                              +     * Required. Service project id and location to detach from a host project.
                              +     * Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -543,7 +553,9 @@ public Builder setName(java.lang.String value) { * * *
                              -     * Required. Value for name.
                              +     * Required. Service project id and location to detach from a host project.
                              +     * Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -562,7 +574,9 @@ public Builder clearName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Service project id and location to detach from a host project.
                              +     * Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DetachServiceProjectAttachmentRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DetachServiceProjectAttachmentRequestOrBuilder.java index 521d20a2465b..63fd6625449b 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DetachServiceProjectAttachmentRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/DetachServiceProjectAttachmentRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface DetachServiceProjectAttachmentRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Service project id and location to detach from a host project.
                              +   * Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface DetachServiceProjectAttachmentRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Service project id and location to detach from a host project.
                              +   * Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetApplicationRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetApplicationRequest.java index cae0b5ab334a..b506fb9e4253 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetApplicationRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetApplicationRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Application to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -96,7 +98,9 @@ public java.lang.String getName() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Application to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -465,7 +469,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Application to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -489,7 +495,9 @@ public java.lang.String getName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Application to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -513,7 +521,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Application to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -536,7 +546,9 @@ public Builder setName(java.lang.String value) { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Application to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -555,7 +567,9 @@ public Builder clearName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Application to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetApplicationRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetApplicationRequestOrBuilder.java index 97fc545d31c8..24f8f705a12e 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetApplicationRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetApplicationRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface GetApplicationRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Application to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface GetApplicationRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Application to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredServiceRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredServiceRequest.java index 9d6742719a5d..798b9904c325 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredServiceRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredServiceRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Discovered Service to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`.
                                  * 
                              * * @@ -96,7 +98,9 @@ public java.lang.String getName() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Discovered Service to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`.
                                  * 
                              * * @@ -466,7 +470,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Discovered Service to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`.
                                    * 
                              * * @@ -490,7 +496,9 @@ public java.lang.String getName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Discovered Service to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`.
                                    * 
                              * * @@ -514,7 +522,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Discovered Service to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`.
                                    * 
                              * * @@ -537,7 +547,9 @@ public Builder setName(java.lang.String value) { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Discovered Service to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`.
                                    * 
                              * * @@ -556,7 +568,9 @@ public Builder clearName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Discovered Service to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredServiceRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredServiceRequestOrBuilder.java index 48f4ab79fe2b..144c496438a4 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredServiceRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredServiceRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface GetDiscoveredServiceRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Discovered Service to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface GetDiscoveredServiceRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Discovered Service to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredWorkloadRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredWorkloadRequest.java index ec54a03a6a8e..716732526f8a 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredWorkloadRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredWorkloadRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Discovered Workload to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`.
                                  * 
                              * * @@ -96,7 +98,9 @@ public java.lang.String getName() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Discovered Workload to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`.
                                  * 
                              * * @@ -466,7 +470,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Discovered Workload to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`.
                                    * 
                              * * @@ -490,7 +496,9 @@ public java.lang.String getName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Discovered Workload to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`.
                                    * 
                              * * @@ -514,7 +522,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Discovered Workload to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`.
                                    * 
                              * * @@ -537,7 +547,9 @@ public Builder setName(java.lang.String value) { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Discovered Workload to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`.
                                    * 
                              * * @@ -556,7 +568,9 @@ public Builder clearName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Discovered Workload to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredWorkloadRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredWorkloadRequestOrBuilder.java index 1c4f474cec1d..af88df1fb500 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredWorkloadRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetDiscoveredWorkloadRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface GetDiscoveredWorkloadRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Discovered Workload to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface GetDiscoveredWorkloadRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Discovered Workload to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceProjectAttachmentRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceProjectAttachmentRequest.java index 707834402687..57e5a6bb4ff7 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceProjectAttachmentRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceProjectAttachmentRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the service project attachment to
                              +   * retrieve. Expected format:
                              +   * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                  * 
                              * * @@ -97,7 +99,9 @@ public java.lang.String getName() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the service project attachment to
                              +   * retrieve. Expected format:
                              +   * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                  * 
                              * * @@ -470,7 +474,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the service project attachment to
                              +     * retrieve. Expected format:
                              +     * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                    * 
                              * * @@ -494,7 +500,9 @@ public java.lang.String getName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the service project attachment to
                              +     * retrieve. Expected format:
                              +     * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                    * 
                              * * @@ -518,7 +526,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the service project attachment to
                              +     * retrieve. Expected format:
                              +     * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                    * 
                              * * @@ -541,7 +551,9 @@ public Builder setName(java.lang.String value) { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the service project attachment to
                              +     * retrieve. Expected format:
                              +     * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                    * 
                              * * @@ -560,7 +572,9 @@ public Builder clearName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the service project attachment to
                              +     * retrieve. Expected format:
                              +     * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceProjectAttachmentRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceProjectAttachmentRequestOrBuilder.java index e5312832f306..0cbcb23dc87f 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceProjectAttachmentRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceProjectAttachmentRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface GetServiceProjectAttachmentRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the service project attachment to
                              +   * retrieve. Expected format:
                              +   * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface GetServiceProjectAttachmentRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the service project attachment to
                              +   * retrieve. Expected format:
                              +   * `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceRequest.java index 9cca3c7249f0..94e849997c0e 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Service to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                  * 
                              * * @@ -96,7 +98,9 @@ public java.lang.String getName() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Service to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                  * 
                              * * @@ -464,7 +468,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Service to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                    * 
                              * * @@ -488,7 +494,9 @@ public java.lang.String getName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Service to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                    * 
                              * * @@ -512,7 +520,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Service to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                    * 
                              * * @@ -535,7 +545,9 @@ public Builder setName(java.lang.String value) { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Service to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                    * 
                              * * @@ -554,7 +566,9 @@ public Builder clearName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Service to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceRequestOrBuilder.java index 3ed5c3212e5f..198a5cdf6e3f 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetServiceRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface GetServiceRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Service to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface GetServiceRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Service to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetWorkloadRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetWorkloadRequest.java index 80faa7656d01..a3d36b87b998 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetWorkloadRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetWorkloadRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Workload to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                  * 
                              * * @@ -96,7 +98,9 @@ public java.lang.String getName() { * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Workload to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                  * 
                              * * @@ -464,7 +468,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Workload to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                    * 
                              * * @@ -488,7 +494,9 @@ public java.lang.String getName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Workload to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                    * 
                              * * @@ -512,7 +520,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Workload to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                    * 
                              * * @@ -535,7 +545,9 @@ public Builder setName(java.lang.String value) { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Workload to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                    * 
                              * * @@ -554,7 +566,9 @@ public Builder clearName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Fully qualified name of the Workload to fetch.
                              +     * Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetWorkloadRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetWorkloadRequestOrBuilder.java index e8819c359b78..4e6f9b3635e3 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetWorkloadRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/GetWorkloadRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface GetWorkloadRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Workload to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface GetWorkloadRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Fully qualified name of the Workload to fetch.
                              +   * Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListApplicationsRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListApplicationsRequest.java index a4309b0a8152..2f4e8d6c915e 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListApplicationsRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListApplicationsRequest.java @@ -74,7 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to list Applications on.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -99,7 +100,8 @@ public java.lang.String getParent() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to list Applications on.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -199,7 +201,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -222,7 +224,7 @@ public java.lang.String getFilter() { * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -250,7 +252,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -273,7 +275,7 @@ public java.lang.String getOrderBy() { * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -734,7 +736,8 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Applications on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -758,7 +761,8 @@ public java.lang.String getParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Applications on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -782,7 +786,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Applications on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -805,7 +810,8 @@ public Builder setParent(java.lang.String value) { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Applications on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -824,7 +830,8 @@ public Builder clearParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Applications on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -1012,7 +1019,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1034,7 +1041,7 @@ public java.lang.String getFilter() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1056,7 +1063,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1077,7 +1084,7 @@ public Builder setFilter(java.lang.String value) { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1094,7 +1101,7 @@ public Builder clearFilter() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1118,7 +1125,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1140,7 +1147,7 @@ public java.lang.String getOrderBy() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1162,7 +1169,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1183,7 +1190,7 @@ public Builder setOrderBy(java.lang.String value) { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1200,7 +1207,7 @@ public Builder clearOrderBy() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListApplicationsRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListApplicationsRequestOrBuilder.java index fa41276e4585..cd65f32463eb 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListApplicationsRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListApplicationsRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface ListApplicationsRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to list Applications on.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -42,7 +43,8 @@ public interface ListApplicationsRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to list Applications on.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -96,7 +98,7 @@ public interface ListApplicationsRequestOrBuilder * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -108,7 +110,7 @@ public interface ListApplicationsRequestOrBuilder * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -121,7 +123,7 @@ public interface ListApplicationsRequestOrBuilder * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -133,7 +135,7 @@ public interface ListApplicationsRequestOrBuilder * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesRequest.java index 6505171ce9b0..560bf303f79b 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesRequest.java @@ -74,7 +74,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to list Discovered Services on.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -99,7 +100,8 @@ public java.lang.String getParent() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to list Discovered Services on.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -199,7 +201,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -222,7 +224,7 @@ public java.lang.String getFilter() { * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -250,7 +252,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -273,7 +275,7 @@ public java.lang.String getOrderBy() { * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -735,7 +737,8 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Discovered Services on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -759,7 +762,8 @@ public java.lang.String getParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Discovered Services on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -783,7 +787,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Discovered Services on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -806,7 +811,8 @@ public Builder setParent(java.lang.String value) { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Discovered Services on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -825,7 +831,8 @@ public Builder clearParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Discovered Services on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -1013,7 +1020,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1035,7 +1042,7 @@ public java.lang.String getFilter() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1057,7 +1064,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1078,7 +1085,7 @@ public Builder setFilter(java.lang.String value) { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1095,7 +1102,7 @@ public Builder clearFilter() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1119,7 +1126,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1141,7 +1148,7 @@ public java.lang.String getOrderBy() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1163,7 +1170,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1184,7 +1191,7 @@ public Builder setOrderBy(java.lang.String value) { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1201,7 +1208,7 @@ public Builder clearOrderBy() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesRequestOrBuilder.java index 803a573f8b02..818c3a52ded4 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface ListDiscoveredServicesRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to list Discovered Services on.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -42,7 +43,8 @@ public interface ListDiscoveredServicesRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to list Discovered Services on.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -96,7 +98,7 @@ public interface ListDiscoveredServicesRequestOrBuilder * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -108,7 +110,7 @@ public interface ListDiscoveredServicesRequestOrBuilder * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -121,7 +123,7 @@ public interface ListDiscoveredServicesRequestOrBuilder * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -133,7 +135,7 @@ public interface ListDiscoveredServicesRequestOrBuilder * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesResponse.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesResponse.java index bbc3f95ba418..74c4d96fdf75 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesResponse.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesResponse.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * List of discovered services.
                              +   * List of Discovered Services.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -87,7 +87,7 @@ public java.util.List getDiscovere * * *
                              -   * List of discovered services.
                              +   * List of Discovered Services.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -101,7 +101,7 @@ public java.util.List getDiscovere * * *
                              -   * List of discovered services.
                              +   * List of Discovered Services.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -114,7 +114,7 @@ public int getDiscoveredServicesCount() { * * *
                              -   * List of discovered services.
                              +   * List of Discovered Services.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -127,7 +127,7 @@ public com.google.cloud.apphub.v1.DiscoveredService getDiscoveredServices(int in * * *
                              -   * List of discovered services.
                              +   * List of Discovered Services.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -729,7 +729,7 @@ private void ensureDiscoveredServicesIsMutable() { * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -746,7 +746,7 @@ private void ensureDiscoveredServicesIsMutable() { * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -762,7 +762,7 @@ public int getDiscoveredServicesCount() { * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -778,7 +778,7 @@ public com.google.cloud.apphub.v1.DiscoveredService getDiscoveredServices(int in * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -801,7 +801,7 @@ public Builder setDiscoveredServices( * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -821,7 +821,7 @@ public Builder setDiscoveredServices( * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -843,7 +843,7 @@ public Builder addDiscoveredServices(com.google.cloud.apphub.v1.DiscoveredServic * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -866,7 +866,7 @@ public Builder addDiscoveredServices( * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -886,7 +886,7 @@ public Builder addDiscoveredServices( * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -906,7 +906,7 @@ public Builder addDiscoveredServices( * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -926,7 +926,7 @@ public Builder addAllDiscoveredServices( * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -945,7 +945,7 @@ public Builder clearDiscoveredServices() { * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -964,7 +964,7 @@ public Builder removeDiscoveredServices(int index) { * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -977,7 +977,7 @@ public com.google.cloud.apphub.v1.DiscoveredService.Builder getDiscoveredService * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -994,7 +994,7 @@ public com.google.cloud.apphub.v1.DiscoveredServiceOrBuilder getDiscoveredServic * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -1011,7 +1011,7 @@ public com.google.cloud.apphub.v1.DiscoveredServiceOrBuilder getDiscoveredServic * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -1024,7 +1024,7 @@ public com.google.cloud.apphub.v1.DiscoveredService.Builder addDiscoveredService * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -1038,7 +1038,7 @@ public com.google.cloud.apphub.v1.DiscoveredService.Builder addDiscoveredService * * *
                              -     * List of discovered services.
                              +     * List of Discovered Services.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesResponseOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesResponseOrBuilder.java index fd5c60db0f15..30aa7e0aa0f6 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesResponseOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredServicesResponseOrBuilder.java @@ -28,7 +28,7 @@ public interface ListDiscoveredServicesResponseOrBuilder * * *
                              -   * List of discovered services.
                              +   * List of Discovered Services.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -38,7 +38,7 @@ public interface ListDiscoveredServicesResponseOrBuilder * * *
                              -   * List of discovered services.
                              +   * List of Discovered Services.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -48,7 +48,7 @@ public interface ListDiscoveredServicesResponseOrBuilder * * *
                              -   * List of discovered services.
                              +   * List of Discovered Services.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -58,7 +58,7 @@ public interface ListDiscoveredServicesResponseOrBuilder * * *
                              -   * List of discovered services.
                              +   * List of Discovered Services.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; @@ -69,7 +69,7 @@ public interface ListDiscoveredServicesResponseOrBuilder * * *
                              -   * List of discovered services.
                              +   * List of Discovered Services.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredService discovered_services = 1; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsRequest.java index eebe59d654da..2c9d00ffe02f 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsRequest.java @@ -75,7 +75,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to list Discovered Workloads on.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -100,7 +101,8 @@ public java.lang.String getParent() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to list Discovered Workloads on.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -200,7 +202,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -223,7 +225,7 @@ public java.lang.String getFilter() { * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -251,7 +253,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -274,7 +276,7 @@ public java.lang.String getOrderBy() { * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -736,7 +738,8 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Discovered Workloads on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -760,7 +763,8 @@ public java.lang.String getParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Discovered Workloads on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -784,7 +788,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Discovered Workloads on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -807,7 +812,8 @@ public Builder setParent(java.lang.String value) { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Discovered Workloads on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -826,7 +832,8 @@ public Builder clearParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Project and location to list Discovered Workloads on.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -1014,7 +1021,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1036,7 +1043,7 @@ public java.lang.String getFilter() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1058,7 +1065,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1079,7 +1086,7 @@ public Builder setFilter(java.lang.String value) { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1096,7 +1103,7 @@ public Builder clearFilter() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1120,7 +1127,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1142,7 +1149,7 @@ public java.lang.String getOrderBy() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1164,7 +1171,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1185,7 +1192,7 @@ public Builder setOrderBy(java.lang.String value) { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1202,7 +1209,7 @@ public Builder clearOrderBy() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsRequestOrBuilder.java index 2bfb34086847..021fb8de16c3 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface ListDiscoveredWorkloadsRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to list Discovered Workloads on.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -42,7 +43,8 @@ public interface ListDiscoveredWorkloadsRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Project and location to list Discovered Workloads on.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -96,7 +98,7 @@ public interface ListDiscoveredWorkloadsRequestOrBuilder * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -108,7 +110,7 @@ public interface ListDiscoveredWorkloadsRequestOrBuilder * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -121,7 +123,7 @@ public interface ListDiscoveredWorkloadsRequestOrBuilder * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -133,7 +135,7 @@ public interface ListDiscoveredWorkloadsRequestOrBuilder * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsResponse.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsResponse.java index 679513befa13..892fc420faff 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsResponse.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsResponse.java @@ -74,7 +74,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * List of discovered workloads.
                              +   * List of Discovered Workloads.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -88,7 +88,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * List of discovered workloads.
                              +   * List of Discovered Workloads.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -102,7 +102,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * List of discovered workloads.
                              +   * List of Discovered Workloads.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -115,7 +115,7 @@ public int getDiscoveredWorkloadsCount() { * * *
                              -   * List of discovered workloads.
                              +   * List of Discovered Workloads.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -128,7 +128,7 @@ public com.google.cloud.apphub.v1.DiscoveredWorkload getDiscoveredWorkloads(int * * *
                              -   * List of discovered workloads.
                              +   * List of Discovered Workloads.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -730,7 +730,7 @@ private void ensureDiscoveredWorkloadsIsMutable() { * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -747,7 +747,7 @@ private void ensureDiscoveredWorkloadsIsMutable() { * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -763,7 +763,7 @@ public int getDiscoveredWorkloadsCount() { * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -779,7 +779,7 @@ public com.google.cloud.apphub.v1.DiscoveredWorkload getDiscoveredWorkloads(int * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -802,7 +802,7 @@ public Builder setDiscoveredWorkloads( * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -822,7 +822,7 @@ public Builder setDiscoveredWorkloads( * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -844,7 +844,7 @@ public Builder addDiscoveredWorkloads(com.google.cloud.apphub.v1.DiscoveredWorkl * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -867,7 +867,7 @@ public Builder addDiscoveredWorkloads( * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -887,7 +887,7 @@ public Builder addDiscoveredWorkloads( * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -907,7 +907,7 @@ public Builder addDiscoveredWorkloads( * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -927,7 +927,7 @@ public Builder addAllDiscoveredWorkloads( * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -946,7 +946,7 @@ public Builder clearDiscoveredWorkloads() { * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -965,7 +965,7 @@ public Builder removeDiscoveredWorkloads(int index) { * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -978,7 +978,7 @@ public com.google.cloud.apphub.v1.DiscoveredWorkload.Builder getDiscoveredWorklo * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -995,7 +995,7 @@ public com.google.cloud.apphub.v1.DiscoveredWorkloadOrBuilder getDiscoveredWorkl * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -1012,7 +1012,7 @@ public com.google.cloud.apphub.v1.DiscoveredWorkloadOrBuilder getDiscoveredWorkl * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -1025,7 +1025,7 @@ public com.google.cloud.apphub.v1.DiscoveredWorkload.Builder addDiscoveredWorklo * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -1039,7 +1039,7 @@ public com.google.cloud.apphub.v1.DiscoveredWorkload.Builder addDiscoveredWorklo * * *
                              -     * List of discovered workloads.
                              +     * List of Discovered Workloads.
                                    * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsResponseOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsResponseOrBuilder.java index 4d87488b4e7c..0da5318472a5 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsResponseOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListDiscoveredWorkloadsResponseOrBuilder.java @@ -28,7 +28,7 @@ public interface ListDiscoveredWorkloadsResponseOrBuilder * * *
                              -   * List of discovered workloads.
                              +   * List of Discovered Workloads.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -38,7 +38,7 @@ public interface ListDiscoveredWorkloadsResponseOrBuilder * * *
                              -   * List of discovered workloads.
                              +   * List of Discovered Workloads.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -48,7 +48,7 @@ public interface ListDiscoveredWorkloadsResponseOrBuilder * * *
                              -   * List of discovered workloads.
                              +   * List of Discovered Workloads.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -58,7 +58,7 @@ public interface ListDiscoveredWorkloadsResponseOrBuilder * * *
                              -   * List of discovered workloads.
                              +   * List of Discovered Workloads.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; @@ -69,7 +69,7 @@ public interface ListDiscoveredWorkloadsResponseOrBuilder * * *
                              -   * List of discovered workloads.
                              +   * List of Discovered Workloads.
                                  * 
                              * * repeated .google.cloud.apphub.v1.DiscoveredWorkload discovered_workloads = 1; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServiceProjectAttachmentsRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServiceProjectAttachmentsRequest.java index dd0e7f824dd2..509056726d3b 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServiceProjectAttachmentsRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServiceProjectAttachmentsRequest.java @@ -76,7 +76,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to list service project attachments.
                              +   * Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -101,7 +103,9 @@ public java.lang.String getParent() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to list service project attachments.
                              +   * Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -201,7 +205,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -224,7 +228,7 @@ public java.lang.String getFilter() { * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -252,7 +256,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -275,7 +279,7 @@ public java.lang.String getOrderBy() { * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -741,7 +745,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to list service project attachments.
                              +     * Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -765,7 +771,9 @@ public java.lang.String getParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to list service project attachments.
                              +     * Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -789,7 +797,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to list service project attachments.
                              +     * Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -812,7 +822,9 @@ public Builder setParent(java.lang.String value) { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to list service project attachments.
                              +     * Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -831,7 +843,9 @@ public Builder clearParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to list service project attachments.
                              +     * Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -1019,7 +1033,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1041,7 +1055,7 @@ public java.lang.String getFilter() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1063,7 +1077,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1084,7 +1098,7 @@ public Builder setFilter(java.lang.String value) { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1101,7 +1115,7 @@ public Builder clearFilter() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1125,7 +1139,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1147,7 +1161,7 @@ public java.lang.String getOrderBy() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1169,7 +1183,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1190,7 +1204,7 @@ public Builder setOrderBy(java.lang.String value) { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1207,7 +1221,7 @@ public Builder clearOrderBy() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServiceProjectAttachmentsRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServiceProjectAttachmentsRequestOrBuilder.java index c8cc94d20b75..193cee24d7b5 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServiceProjectAttachmentsRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServiceProjectAttachmentsRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface ListServiceProjectAttachmentsRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to list service project attachments.
                              +   * Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface ListServiceProjectAttachmentsRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to list service project attachments.
                              +   * Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -96,7 +100,7 @@ public interface ListServiceProjectAttachmentsRequestOrBuilder * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -108,7 +112,7 @@ public interface ListServiceProjectAttachmentsRequestOrBuilder * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -121,7 +125,7 @@ public interface ListServiceProjectAttachmentsRequestOrBuilder * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -133,7 +137,7 @@ public interface ListServiceProjectAttachmentsRequestOrBuilder * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServicesRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServicesRequest.java index 6c7fa4692b0b..ba2fe71e6abe 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServicesRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServicesRequest.java @@ -74,7 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the parent Application to list Services
                              +   * for. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -99,7 +101,9 @@ public java.lang.String getParent() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the parent Application to list Services
                              +   * for. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -733,7 +737,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to list Services
                              +     * for. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -757,7 +763,9 @@ public java.lang.String getParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to list Services
                              +     * for. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -781,7 +789,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to list Services
                              +     * for. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -804,7 +814,9 @@ public Builder setParent(java.lang.String value) { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to list Services
                              +     * for. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -823,7 +835,9 @@ public Builder clearParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to list Services
                              +     * for. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServicesRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServicesRequestOrBuilder.java index bcd71613ade6..752045b04395 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServicesRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListServicesRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface ListServicesRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the parent Application to list Services
                              +   * for. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface ListServicesRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the parent Application to list Services
                              +   * for. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListWorkloadsRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListWorkloadsRequest.java index f3830cd0c1f6..3fc891890d61 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListWorkloadsRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListWorkloadsRequest.java @@ -74,7 +74,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the parent Application to list Workloads
                              +   * for. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -99,7 +101,9 @@ public java.lang.String getParent() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the parent Application to list Workloads
                              +   * for. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -199,7 +203,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -222,7 +226,7 @@ public java.lang.String getFilter() { * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -250,7 +254,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -273,7 +277,7 @@ public java.lang.String getOrderBy() { * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -734,7 +738,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to list Workloads
                              +     * for. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -758,7 +764,9 @@ public java.lang.String getParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to list Workloads
                              +     * for. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -782,7 +790,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to list Workloads
                              +     * for. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -805,7 +815,9 @@ public Builder setParent(java.lang.String value) { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to list Workloads
                              +     * for. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -824,7 +836,9 @@ public Builder clearParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Fully qualified name of the parent Application to list Workloads
                              +     * for. Expected format:
                              +     * `projects/{project}/locations/{location}/applications/{application}`.
                                    * 
                              * * @@ -1012,7 +1026,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1034,7 +1048,7 @@ public java.lang.String getFilter() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1056,7 +1070,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1077,7 +1091,7 @@ public Builder setFilter(java.lang.String value) { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1094,7 +1108,7 @@ public Builder clearFilter() { * * *
                              -     * Optional. Filtering results
                              +     * Optional. Filtering results.
                                    * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1118,7 +1132,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1140,7 +1154,7 @@ public java.lang.String getOrderBy() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1162,7 +1176,7 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1183,7 +1197,7 @@ public Builder setOrderBy(java.lang.String value) { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1200,7 +1214,7 @@ public Builder clearOrderBy() { * * *
                              -     * Optional. Hint for how to order the results
                              +     * Optional. Hint for how to order the results.
                                    * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListWorkloadsRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListWorkloadsRequestOrBuilder.java index 50fcb8b458d8..8f1a419166b0 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListWorkloadsRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ListWorkloadsRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface ListWorkloadsRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the parent Application to list Workloads
                              +   * for. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface ListWorkloadsRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Fully qualified name of the parent Application to list Workloads
                              +   * for. Expected format:
                              +   * `projects/{project}/locations/{location}/applications/{application}`.
                                  * 
                              * * @@ -96,7 +100,7 @@ public interface ListWorkloadsRequestOrBuilder * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -108,7 +112,7 @@ public interface ListWorkloadsRequestOrBuilder * * *
                              -   * Optional. Filtering results
                              +   * Optional. Filtering results.
                                  * 
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -121,7 +125,7 @@ public interface ListWorkloadsRequestOrBuilder * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -133,7 +137,7 @@ public interface ListWorkloadsRequestOrBuilder * * *
                              -   * Optional. Hint for how to order the results
                              +   * Optional. Hint for how to order the results.
                                  * 
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceRequest.java index 9ce2ce7ca9d2..4b71442ebfed 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceRequest.java @@ -73,7 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to lookup Discovered Service in.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -98,7 +99,8 @@ public java.lang.String getParent() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to lookup Discovered Service in.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -128,8 +130,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                              -   * Required. GCP resource URI to find service for
                              -   * Accepts both project number and project id and does translation when
                              +   * Required. Resource URI to find DiscoveredService for.
                              +   * Accepts both project number and project ID and does translation when
                                  * needed.
                                  * 
                              * @@ -153,8 +155,8 @@ public java.lang.String getUri() { * * *
                              -   * Required. GCP resource URI to find service for
                              -   * Accepts both project number and project id and does translation when
                              +   * Required. Resource URI to find DiscoveredService for.
                              +   * Accepts both project number and project ID and does translation when
                                  * needed.
                                  * 
                              * @@ -547,7 +549,8 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to lookup Discovered Service in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -571,7 +574,8 @@ public java.lang.String getParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to lookup Discovered Service in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -595,7 +599,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to lookup Discovered Service in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -618,7 +623,8 @@ public Builder setParent(java.lang.String value) { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to lookup Discovered Service in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -637,7 +643,8 @@ public Builder clearParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to lookup Discovered Service in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -663,8 +670,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                              -     * Required. GCP resource URI to find service for
                              -     * Accepts both project number and project id and does translation when
                              +     * Required. Resource URI to find DiscoveredService for.
                              +     * Accepts both project number and project ID and does translation when
                                    * needed.
                                    * 
                              * @@ -687,8 +694,8 @@ public java.lang.String getUri() { * * *
                              -     * Required. GCP resource URI to find service for
                              -     * Accepts both project number and project id and does translation when
                              +     * Required. Resource URI to find DiscoveredService for.
                              +     * Accepts both project number and project ID and does translation when
                                    * needed.
                                    * 
                              * @@ -711,8 +718,8 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
                              -     * Required. GCP resource URI to find service for
                              -     * Accepts both project number and project id and does translation when
                              +     * Required. Resource URI to find DiscoveredService for.
                              +     * Accepts both project number and project ID and does translation when
                                    * needed.
                                    * 
                              * @@ -734,8 +741,8 @@ public Builder setUri(java.lang.String value) { * * *
                              -     * Required. GCP resource URI to find service for
                              -     * Accepts both project number and project id and does translation when
                              +     * Required. Resource URI to find DiscoveredService for.
                              +     * Accepts both project number and project ID and does translation when
                                    * needed.
                                    * 
                              * @@ -753,8 +760,8 @@ public Builder clearUri() { * * *
                              -     * Required. GCP resource URI to find service for
                              -     * Accepts both project number and project id and does translation when
                              +     * Required. Resource URI to find DiscoveredService for.
                              +     * Accepts both project number and project ID and does translation when
                                    * needed.
                                    * 
                              * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceRequestOrBuilder.java index 4338cabfa172..15215d1edf47 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface LookupDiscoveredServiceRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to lookup Discovered Service in.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -42,7 +43,8 @@ public interface LookupDiscoveredServiceRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to lookup Discovered Service in.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -57,8 +59,8 @@ public interface LookupDiscoveredServiceRequestOrBuilder * * *
                              -   * Required. GCP resource URI to find service for
                              -   * Accepts both project number and project id and does translation when
                              +   * Required. Resource URI to find DiscoveredService for.
                              +   * Accepts both project number and project ID and does translation when
                                  * needed.
                                  * 
                              * @@ -71,8 +73,8 @@ public interface LookupDiscoveredServiceRequestOrBuilder * * *
                              -   * Required. GCP resource URI to find service for
                              -   * Accepts both project number and project id and does translation when
                              +   * Required. Resource URI to find DiscoveredService for.
                              +   * Accepts both project number and project ID and does translation when
                                  * needed.
                                  * 
                              * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceResponse.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceResponse.java index ecd80883b5b8..c8e55349ab19 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceResponse.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceResponse.java @@ -69,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Discovered service if exists, empty otherwise.
                              +   * Discovered Service if exists, empty otherwise.
                                  * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; @@ -84,7 +84,7 @@ public boolean hasDiscoveredService() { * * *
                              -   * Discovered service if exists, empty otherwise.
                              +   * Discovered Service if exists, empty otherwise.
                                  * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; @@ -101,7 +101,7 @@ public com.google.cloud.apphub.v1.DiscoveredService getDiscoveredService() { * * *
                              -   * Discovered service if exists, empty otherwise.
                              +   * Discovered Service if exists, empty otherwise.
                                  * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; @@ -489,7 +489,7 @@ public Builder mergeFrom( * * *
                              -     * Discovered service if exists, empty otherwise.
                              +     * Discovered Service if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; @@ -503,7 +503,7 @@ public boolean hasDiscoveredService() { * * *
                              -     * Discovered service if exists, empty otherwise.
                              +     * Discovered Service if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; @@ -523,7 +523,7 @@ public com.google.cloud.apphub.v1.DiscoveredService getDiscoveredService() { * * *
                              -     * Discovered service if exists, empty otherwise.
                              +     * Discovered Service if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; @@ -545,7 +545,7 @@ public Builder setDiscoveredService(com.google.cloud.apphub.v1.DiscoveredService * * *
                              -     * Discovered service if exists, empty otherwise.
                              +     * Discovered Service if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; @@ -565,7 +565,7 @@ public Builder setDiscoveredService( * * *
                              -     * Discovered service if exists, empty otherwise.
                              +     * Discovered Service if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; @@ -593,7 +593,7 @@ public Builder mergeDiscoveredService(com.google.cloud.apphub.v1.DiscoveredServi * * *
                              -     * Discovered service if exists, empty otherwise.
                              +     * Discovered Service if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; @@ -612,7 +612,7 @@ public Builder clearDiscoveredService() { * * *
                              -     * Discovered service if exists, empty otherwise.
                              +     * Discovered Service if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; @@ -626,7 +626,7 @@ public com.google.cloud.apphub.v1.DiscoveredService.Builder getDiscoveredService * * *
                              -     * Discovered service if exists, empty otherwise.
                              +     * Discovered Service if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; @@ -644,7 +644,7 @@ public com.google.cloud.apphub.v1.DiscoveredServiceOrBuilder getDiscoveredServic * * *
                              -     * Discovered service if exists, empty otherwise.
                              +     * Discovered Service if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceResponseOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceResponseOrBuilder.java index c61c13248700..f0dcbff868d5 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceResponseOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredServiceResponseOrBuilder.java @@ -28,7 +28,7 @@ public interface LookupDiscoveredServiceResponseOrBuilder * * *
                              -   * Discovered service if exists, empty otherwise.
                              +   * Discovered Service if exists, empty otherwise.
                                  * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; @@ -40,7 +40,7 @@ public interface LookupDiscoveredServiceResponseOrBuilder * * *
                              -   * Discovered service if exists, empty otherwise.
                              +   * Discovered Service if exists, empty otherwise.
                                  * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; @@ -52,7 +52,7 @@ public interface LookupDiscoveredServiceResponseOrBuilder * * *
                              -   * Discovered service if exists, empty otherwise.
                              +   * Discovered Service if exists, empty otherwise.
                                  * 
                              * * .google.cloud.apphub.v1.DiscoveredService discovered_service = 1; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadRequest.java index 7be81544dc5a..588f386ee62a 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadRequest.java @@ -73,7 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to lookup Discovered Workload in.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -98,7 +99,8 @@ public java.lang.String getParent() { * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to lookup Discovered Workload in.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -128,8 +130,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                              -   * Required. GCP resource URI to find workload for.
                              -   * Accepts both project number and project id and does translation when
                              +   * Required. Resource URI to find Discovered Workload for.
                              +   * Accepts both project number and project ID and does translation when
                                  * needed.
                                  * 
                              * @@ -153,8 +155,8 @@ public java.lang.String getUri() { * * *
                              -   * Required. GCP resource URI to find workload for.
                              -   * Accepts both project number and project id and does translation when
                              +   * Required. Resource URI to find Discovered Workload for.
                              +   * Accepts both project number and project ID and does translation when
                                  * needed.
                                  * 
                              * @@ -547,7 +549,8 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to lookup Discovered Workload in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -571,7 +574,8 @@ public java.lang.String getParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to lookup Discovered Workload in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -595,7 +599,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to lookup Discovered Workload in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -618,7 +623,8 @@ public Builder setParent(java.lang.String value) { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to lookup Discovered Workload in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -637,7 +643,8 @@ public Builder clearParent() { * * *
                              -     * Required. Value for parent.
                              +     * Required. Host project ID and location to lookup Discovered Workload in.
                              +     * Expected format: `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -663,8 +670,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                              -     * Required. GCP resource URI to find workload for.
                              -     * Accepts both project number and project id and does translation when
                              +     * Required. Resource URI to find Discovered Workload for.
                              +     * Accepts both project number and project ID and does translation when
                                    * needed.
                                    * 
                              * @@ -687,8 +694,8 @@ public java.lang.String getUri() { * * *
                              -     * Required. GCP resource URI to find workload for.
                              -     * Accepts both project number and project id and does translation when
                              +     * Required. Resource URI to find Discovered Workload for.
                              +     * Accepts both project number and project ID and does translation when
                                    * needed.
                                    * 
                              * @@ -711,8 +718,8 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
                              -     * Required. GCP resource URI to find workload for.
                              -     * Accepts both project number and project id and does translation when
                              +     * Required. Resource URI to find Discovered Workload for.
                              +     * Accepts both project number and project ID and does translation when
                                    * needed.
                                    * 
                              * @@ -734,8 +741,8 @@ public Builder setUri(java.lang.String value) { * * *
                              -     * Required. GCP resource URI to find workload for.
                              -     * Accepts both project number and project id and does translation when
                              +     * Required. Resource URI to find Discovered Workload for.
                              +     * Accepts both project number and project ID and does translation when
                                    * needed.
                                    * 
                              * @@ -753,8 +760,8 @@ public Builder clearUri() { * * *
                              -     * Required. GCP resource URI to find workload for.
                              -     * Accepts both project number and project id and does translation when
                              +     * Required. Resource URI to find Discovered Workload for.
                              +     * Accepts both project number and project ID and does translation when
                                    * needed.
                                    * 
                              * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadRequestOrBuilder.java index 708a90480598..33613ed88ae5 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadRequestOrBuilder.java @@ -28,7 +28,8 @@ public interface LookupDiscoveredWorkloadRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to lookup Discovered Workload in.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -42,7 +43,8 @@ public interface LookupDiscoveredWorkloadRequestOrBuilder * * *
                              -   * Required. Value for parent.
                              +   * Required. Host project ID and location to lookup Discovered Workload in.
                              +   * Expected format: `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -57,8 +59,8 @@ public interface LookupDiscoveredWorkloadRequestOrBuilder * * *
                              -   * Required. GCP resource URI to find workload for.
                              -   * Accepts both project number and project id and does translation when
                              +   * Required. Resource URI to find Discovered Workload for.
                              +   * Accepts both project number and project ID and does translation when
                                  * needed.
                                  * 
                              * @@ -71,8 +73,8 @@ public interface LookupDiscoveredWorkloadRequestOrBuilder * * *
                              -   * Required. GCP resource URI to find workload for.
                              -   * Accepts both project number and project id and does translation when
                              +   * Required. Resource URI to find Discovered Workload for.
                              +   * Accepts both project number and project ID and does translation when
                                  * needed.
                                  * 
                              * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadResponse.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadResponse.java index a3a284062e2b..a1eb1936ab58 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadResponse.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadResponse.java @@ -69,7 +69,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Discovered workload if exists, empty otherwise.
                              +   * Discovered Workload if exists, empty otherwise.
                                  * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; @@ -84,7 +84,7 @@ public boolean hasDiscoveredWorkload() { * * *
                              -   * Discovered workload if exists, empty otherwise.
                              +   * Discovered Workload if exists, empty otherwise.
                                  * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; @@ -101,7 +101,7 @@ public com.google.cloud.apphub.v1.DiscoveredWorkload getDiscoveredWorkload() { * * *
                              -   * Discovered workload if exists, empty otherwise.
                              +   * Discovered Workload if exists, empty otherwise.
                                  * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; @@ -489,7 +489,7 @@ public Builder mergeFrom( * * *
                              -     * Discovered workload if exists, empty otherwise.
                              +     * Discovered Workload if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; @@ -503,7 +503,7 @@ public boolean hasDiscoveredWorkload() { * * *
                              -     * Discovered workload if exists, empty otherwise.
                              +     * Discovered Workload if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; @@ -523,7 +523,7 @@ public com.google.cloud.apphub.v1.DiscoveredWorkload getDiscoveredWorkload() { * * *
                              -     * Discovered workload if exists, empty otherwise.
                              +     * Discovered Workload if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; @@ -545,7 +545,7 @@ public Builder setDiscoveredWorkload(com.google.cloud.apphub.v1.DiscoveredWorklo * * *
                              -     * Discovered workload if exists, empty otherwise.
                              +     * Discovered Workload if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; @@ -565,7 +565,7 @@ public Builder setDiscoveredWorkload( * * *
                              -     * Discovered workload if exists, empty otherwise.
                              +     * Discovered Workload if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; @@ -593,7 +593,7 @@ public Builder mergeDiscoveredWorkload(com.google.cloud.apphub.v1.DiscoveredWork * * *
                              -     * Discovered workload if exists, empty otherwise.
                              +     * Discovered Workload if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; @@ -612,7 +612,7 @@ public Builder clearDiscoveredWorkload() { * * *
                              -     * Discovered workload if exists, empty otherwise.
                              +     * Discovered Workload if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; @@ -626,7 +626,7 @@ public com.google.cloud.apphub.v1.DiscoveredWorkload.Builder getDiscoveredWorklo * * *
                              -     * Discovered workload if exists, empty otherwise.
                              +     * Discovered Workload if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; @@ -644,7 +644,7 @@ public com.google.cloud.apphub.v1.DiscoveredWorkloadOrBuilder getDiscoveredWorkl * * *
                              -     * Discovered workload if exists, empty otherwise.
                              +     * Discovered Workload if exists, empty otherwise.
                                    * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadResponseOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadResponseOrBuilder.java index e3ac898c4844..866c7c1987d5 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadResponseOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupDiscoveredWorkloadResponseOrBuilder.java @@ -28,7 +28,7 @@ public interface LookupDiscoveredWorkloadResponseOrBuilder * * *
                              -   * Discovered workload if exists, empty otherwise.
                              +   * Discovered Workload if exists, empty otherwise.
                                  * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; @@ -40,7 +40,7 @@ public interface LookupDiscoveredWorkloadResponseOrBuilder * * *
                              -   * Discovered workload if exists, empty otherwise.
                              +   * Discovered Workload if exists, empty otherwise.
                                  * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; @@ -52,7 +52,7 @@ public interface LookupDiscoveredWorkloadResponseOrBuilder * * *
                              -   * Discovered workload if exists, empty otherwise.
                              +   * Discovered Workload if exists, empty otherwise.
                                  * 
                              * * .google.cloud.apphub.v1.DiscoveredWorkload discovered_workload = 1; diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupServiceProjectAttachmentRequest.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupServiceProjectAttachmentRequest.java index a37cdd12be07..34a0e6d20733 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupServiceProjectAttachmentRequest.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupServiceProjectAttachmentRequest.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                              -   * Required. Value for name.
                              +   * Required. Service project ID and location to lookup service project
                              +   * attachment for. Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -98,7 +100,9 @@ public java.lang.String getName() { * * *
                              -   * Required. Value for name.
                              +   * Required. Service project ID and location to lookup service project
                              +   * attachment for. Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -472,7 +476,9 @@ public Builder mergeFrom( * * *
                              -     * Required. Value for name.
                              +     * Required. Service project ID and location to lookup service project
                              +     * attachment for. Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -496,7 +502,9 @@ public java.lang.String getName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Service project ID and location to lookup service project
                              +     * attachment for. Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -520,7 +528,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                              -     * Required. Value for name.
                              +     * Required. Service project ID and location to lookup service project
                              +     * attachment for. Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -543,7 +553,9 @@ public Builder setName(java.lang.String value) { * * *
                              -     * Required. Value for name.
                              +     * Required. Service project ID and location to lookup service project
                              +     * attachment for. Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * @@ -562,7 +574,9 @@ public Builder clearName() { * * *
                              -     * Required. Value for name.
                              +     * Required. Service project ID and location to lookup service project
                              +     * attachment for. Only global location is supported. Expected format:
                              +     * `projects/{project}/locations/{location}`.
                                    * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupServiceProjectAttachmentRequestOrBuilder.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupServiceProjectAttachmentRequestOrBuilder.java index 995dec63ca23..d7055e0df949 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupServiceProjectAttachmentRequestOrBuilder.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/LookupServiceProjectAttachmentRequestOrBuilder.java @@ -28,7 +28,9 @@ public interface LookupServiceProjectAttachmentRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Service project ID and location to lookup service project
                              +   * attachment for. Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * @@ -42,7 +44,9 @@ public interface LookupServiceProjectAttachmentRequestOrBuilder * * *
                              -   * Required. Value for name.
                              +   * Required. Service project ID and location to lookup service project
                              +   * attachment for. Only global location is supported. Expected format:
                              +   * `projects/{project}/locations/{location}`.
                                  * 
                              * * diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/proto/google/cloud/apphub/v1/apphub_service.proto b/java-apphub/proto-google-cloud-apphub-v1/src/main/proto/google/cloud/apphub/v1/apphub_service.proto index 86fbb108276f..68b2a5b18913 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/proto/google/cloud/apphub/v1/apphub_service.proto +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/proto/google/cloud/apphub/v1/apphub_service.proto @@ -37,15 +37,14 @@ option java_package = "com.google.cloud.apphub.v1"; option php_namespace = "Google\\Cloud\\AppHub\\V1"; option ruby_package = "Google::Cloud::AppHub::V1"; -// The AppHub services allows users to enable toplogy and telemetry -// configuration. +// The App Hub API allows you to manage App Hub resources. service AppHub { option (google.api.default_host) = "apphub.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - // Looks up a service project attachment. You can call this API from either a - // host or service project. + // Lists a service project attachment for a given service project. You can + // call this API from any project to find if it is attached to a host project. rpc LookupServiceProjectAttachment(LookupServiceProjectAttachmentRequest) returns (LookupServiceProjectAttachmentResponse) { option (google.api.http) = { @@ -54,7 +53,7 @@ service AppHub { option (google.api.method_signature) = "name"; } - // List service projects attached to the host project. + // Lists service projects attached to the host project. rpc ListServiceProjectAttachments(ListServiceProjectAttachmentsRequest) returns (ListServiceProjectAttachmentsResponse) { option (google.api.http) = { @@ -78,7 +77,7 @@ service AppHub { }; } - // Gets a service project attached to the host project. + // Gets a service project attachment. rpc GetServiceProjectAttachment(GetServiceProjectAttachmentRequest) returns (ServiceProjectAttachment) { option (google.api.http) = { @@ -87,7 +86,7 @@ service AppHub { option (google.api.method_signature) = "name"; } - // Deletes a service project attached to the host project. + // Deletes a service project attachment. rpc DeleteServiceProjectAttachment(DeleteServiceProjectAttachmentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -100,8 +99,9 @@ service AppHub { }; } - // Detaches a service project from a host project. You can call this API from - // either a host or service project. + // Detaches a service project from a host project. + // You can call this API from any service project without needing access to + // the host project that it is attached to. rpc DetachServiceProjectAttachment(DetachServiceProjectAttachmentRequest) returns (DetachServiceProjectAttachmentResponse) { option (google.api.http) = { @@ -111,7 +111,7 @@ service AppHub { option (google.api.method_signature) = "name"; } - // Lists discovered services that can be added to an application in a host + // Lists Discovered Services that can be added to an Application in a host // project and location. rpc ListDiscoveredServices(ListDiscoveredServicesRequest) returns (ListDiscoveredServicesResponse) { @@ -121,7 +121,7 @@ service AppHub { option (google.api.method_signature) = "parent"; } - // Gets a discovered service in a host project and location. + // Gets a Discovered Service in a host project and location. rpc GetDiscoveredService(GetDiscoveredServiceRequest) returns (DiscoveredService) { option (google.api.http) = { @@ -130,7 +130,7 @@ service AppHub { option (google.api.method_signature) = "name"; } - // Looks up a discovered service in a host project and location and with a + // Lists a Discovered Service in a host project and location, with a // given resource URI. rpc LookupDiscoveredService(LookupDiscoveredServiceRequest) returns (LookupDiscoveredServiceResponse) { @@ -140,7 +140,7 @@ service AppHub { option (google.api.method_signature) = "parent,uri"; } - // List Services in an Application. + // Lists Services in an Application. rpc ListServices(ListServicesRequest) returns (ListServicesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/applications/*}/services" @@ -184,7 +184,7 @@ service AppHub { }; } - // Deletes a Service in an Application. + // Deletes a Service from an Application. rpc DeleteService(DeleteServiceRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -197,7 +197,7 @@ service AppHub { }; } - // Lists discovered workloads that can be added to an application in a host + // Lists Discovered Workloads that can be added to an Application in a host // project and location. rpc ListDiscoveredWorkloads(ListDiscoveredWorkloadsRequest) returns (ListDiscoveredWorkloadsResponse) { @@ -207,7 +207,7 @@ service AppHub { option (google.api.method_signature) = "parent"; } - // Gets a discovered workload in a host project and location. + // Gets a Discovered Workload in a host project and location. rpc GetDiscoveredWorkload(GetDiscoveredWorkloadRequest) returns (DiscoveredWorkload) { option (google.api.http) = { @@ -216,7 +216,7 @@ service AppHub { option (google.api.method_signature) = "name"; } - // Looks up a discovered Workload in a host project and location and with a + // Lists a Discovered Workload in a host project and location, with a // given resource URI. rpc LookupDiscoveredWorkload(LookupDiscoveredWorkloadRequest) returns (LookupDiscoveredWorkloadResponse) { @@ -270,7 +270,7 @@ service AppHub { }; } - // Deletes a Workload in an Application. + // Deletes a Workload from an Application. rpc DeleteWorkload(DeleteWorkloadRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -344,11 +344,13 @@ service AppHub { // Request for LookupServiceProjectAttachment. message LookupServiceProjectAttachmentRequest { - // Required. Value for name. + // Required. Service project ID and location to lookup service project + // attachment for. Only global location is supported. Expected format: + // `projects/{project}/locations/{location}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - child_type: "apphub.googleapis.com/ServiceProjectAttachment" + type: "locations.googleapis.com/Location" } ]; } @@ -361,7 +363,9 @@ message LookupServiceProjectAttachmentResponse { // Request for ListServiceProjectAttachments. message ListServiceProjectAttachmentsRequest { - // Required. Value for parent. + // Required. Host project ID and location to list service project attachments. + // Only global location is supported. Expected format: + // `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -376,10 +380,10 @@ message ListServiceProjectAttachmentsRequest { // Optional. A token identifying a page of results the server should return. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Filtering results + // Optional. Filtering results. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Hint for how to order the results + // Optional. Hint for how to order the results. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -397,7 +401,9 @@ message ListServiceProjectAttachmentsResponse { // Request for CreateServiceProjectAttachment. message CreateServiceProjectAttachmentRequest { - // Required. Value for parent. + // Required. Host project ID and location to which service project is being + // attached. Only global location is supported. Expected format: + // `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -406,9 +412,8 @@ message CreateServiceProjectAttachmentRequest { ]; // Required. The service project attachment identifier must contain the - // project_id of the service project specified in the - // service_project_attachment.service_project field. Hint: - // "projects/{project_id}" + // project id of the service project specified in the + // service_project_attachment.service_project field. string service_project_attachment_id = 2 [(google.api.field_behavior) = REQUIRED]; @@ -434,7 +439,9 @@ message CreateServiceProjectAttachmentRequest { // Request for GetServiceProjectAttachment. message GetServiceProjectAttachmentRequest { - // Required. Value for name. + // Required. Fully qualified name of the service project attachment to + // retrieve. Expected format: + // `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -445,7 +452,9 @@ message GetServiceProjectAttachmentRequest { // Request for DeleteServiceProjectAttachment. message DeleteServiceProjectAttachmentRequest { - // Required. Value for name. + // Required. Fully qualified name of the service project attachment to delete. + // Expected format: + // `projects/{project}/locations/{location}/serviceProjectAttachments/{serviceProjectAttachment}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -471,11 +480,13 @@ message DeleteServiceProjectAttachmentRequest { // Request for DetachServiceProjectAttachment. message DetachServiceProjectAttachmentRequest { - // Required. Value for name. + // Required. Service project id and location to detach from a host project. + // Only global location is supported. Expected format: + // `projects/{project}/locations/{location}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - child_type: "apphub.googleapis.com/ServiceProjectAttachment" + type: "locations.googleapis.com/Location" } ]; } @@ -485,7 +496,9 @@ message DetachServiceProjectAttachmentResponse {} // Request for ListServices. message ListServicesRequest { - // Required. Value for parent. + // Required. Fully qualified name of the parent Application to list Services + // for. Expected format: + // `projects/{project}/locations/{location}/applications/{application}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -521,7 +534,8 @@ message ListServicesResponse { // Request for ListDiscoveredServices. message ListDiscoveredServicesRequest { - // Required. Value for parent. + // Required. Project and location to list Discovered Services on. + // Expected format: `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -536,16 +550,16 @@ message ListDiscoveredServicesRequest { // Optional. A token identifying a page of results the server should return. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Filtering results + // Optional. Filtering results. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Hint for how to order the results + // Optional. Hint for how to order the results. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response for ListDiscoveredServices. message ListDiscoveredServicesResponse { - // List of discovered services. + // List of Discovered Services. repeated DiscoveredService discovered_services = 1; // A token identifying a page of results the server should return. @@ -557,7 +571,9 @@ message ListDiscoveredServicesResponse { // Request for CreateService. message CreateServiceRequest { - // Required. Value for parent. + // Required. Fully qualified name of the parent Application to create the + // Service in. Expected format: + // `projects/{project}/locations/{location}/applications/{application}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -592,7 +608,9 @@ message CreateServiceRequest { // Request for GetService. message GetServiceRequest { - // Required. Value for name. + // Required. Fully qualified name of the Service to fetch. + // Expected format: + // `projects/{project}/locations/{location}/applications/{application}/services/{service}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "apphub.googleapis.com/Service" } @@ -601,7 +619,9 @@ message GetServiceRequest { // Request for GetDiscoveredService. message GetDiscoveredServiceRequest { - // Required. Value for name. + // Required. Fully qualified name of the Discovered Service to fetch. + // Expected format: + // `projects/{project}/locations/{location}/discoveredServices/{discoveredService}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -612,7 +632,8 @@ message GetDiscoveredServiceRequest { // Request for LookupDiscoveredService. message LookupDiscoveredServiceRequest { - // Required. Value for parent. + // Required. Host project ID and location to lookup Discovered Service in. + // Expected format: `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -620,15 +641,15 @@ message LookupDiscoveredServiceRequest { } ]; - // Required. GCP resource URI to find service for - // Accepts both project number and project id and does translation when + // Required. Resource URI to find DiscoveredService for. + // Accepts both project number and project ID and does translation when // needed. string uri = 2 [(google.api.field_behavior) = REQUIRED]; } // Response for LookupDiscoveredService. message LookupDiscoveredServiceResponse { - // Discovered service if exists, empty otherwise. + // Discovered Service if exists, empty otherwise. DiscoveredService discovered_service = 1; } @@ -667,7 +688,9 @@ message UpdateServiceRequest { // Request for DeleteService. message DeleteServiceRequest { - // Required. Value for name. + // Required. Fully qualified name of the Service to delete from an + // Application. Expected format: + // `projects/{project}/locations/{location}/applications/{application}/services/{service}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "apphub.googleapis.com/Service" } @@ -691,7 +714,8 @@ message DeleteServiceRequest { // Request for ListApplications. message ListApplicationsRequest { - // Required. Value for parent. + // Required. Project and location to list Applications on. + // Expected format: `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -706,10 +730,10 @@ message ListApplicationsRequest { // Optional. A token identifying a page of results the server should return. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Filtering results + // Optional. Filtering results. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Hint for how to order the results + // Optional. Hint for how to order the results. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -727,7 +751,8 @@ message ListApplicationsResponse { // Request for CreateApplication. message CreateApplicationRequest { - // Required. Value for parent. + // Required. Project and location to create Application in. + // Expected format: `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -762,7 +787,9 @@ message CreateApplicationRequest { // Request for GetApplication. message GetApplicationRequest { - // Required. Value for name. + // Required. Fully qualified name of the Application to fetch. + // Expected format: + // `projects/{project}/locations/{location}/applications/{application}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -806,7 +833,9 @@ message UpdateApplicationRequest { // Request for DeleteApplication. message DeleteApplicationRequest { - // Required. Value for name. + // Required. Fully qualified name of the Application to delete. + // Expected format: + // `projects/{project}/locations/{location}/applications/{application}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -832,7 +861,9 @@ message DeleteApplicationRequest { // Request for ListWorkloads. message ListWorkloadsRequest { - // Required. Value for parent. + // Required. Fully qualified name of the parent Application to list Workloads + // for. Expected format: + // `projects/{project}/locations/{location}/applications/{application}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -847,10 +878,10 @@ message ListWorkloadsRequest { // Optional. A token identifying a page of results the server should return. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Filtering results + // Optional. Filtering results. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Hint for how to order the results + // Optional. Hint for how to order the results. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -868,7 +899,8 @@ message ListWorkloadsResponse { // Request for ListDiscoveredWorkloads. message ListDiscoveredWorkloadsRequest { - // Required. Value for parent. + // Required. Project and location to list Discovered Workloads on. + // Expected format: `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -883,16 +915,16 @@ message ListDiscoveredWorkloadsRequest { // Optional. A token identifying a page of results the server should return. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Filtering results + // Optional. Filtering results. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Hint for how to order the results + // Optional. Hint for how to order the results. string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response for ListDiscoveredWorkloads. message ListDiscoveredWorkloadsResponse { - // List of discovered workloads. + // List of Discovered Workloads. repeated DiscoveredWorkload discovered_workloads = 1; // A token identifying a page of results the server should return. @@ -904,7 +936,9 @@ message ListDiscoveredWorkloadsResponse { // Request for CreateWorkload. message CreateWorkloadRequest { - // Required. Value for parent. + // Required. Fully qualified name of the Application to create Workload in. + // Expected format: + // `projects/{project}/locations/{location}/applications/{application}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -939,7 +973,9 @@ message CreateWorkloadRequest { // Request for GetWorkload. message GetWorkloadRequest { - // Required. Value for name. + // Required. Fully qualified name of the Workload to fetch. + // Expected format: + // `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "apphub.googleapis.com/Workload" } @@ -948,7 +984,9 @@ message GetWorkloadRequest { // Request for GetDiscoveredWorkload. message GetDiscoveredWorkloadRequest { - // Required. Value for name. + // Required. Fully qualified name of the Discovered Workload to fetch. + // Expected format: + // `projects/{project}/locations/{location}/discoveredWorkloads/{discoveredWorkload}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -959,7 +997,8 @@ message GetDiscoveredWorkloadRequest { // Request for LookupDiscoveredWorkload. message LookupDiscoveredWorkloadRequest { - // Required. Value for parent. + // Required. Host project ID and location to lookup Discovered Workload in. + // Expected format: `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -967,15 +1006,15 @@ message LookupDiscoveredWorkloadRequest { } ]; - // Required. GCP resource URI to find workload for. - // Accepts both project number and project id and does translation when + // Required. Resource URI to find Discovered Workload for. + // Accepts both project number and project ID and does translation when // needed. string uri = 2 [(google.api.field_behavior) = REQUIRED]; } // Response for LookupDiscoveredWorkload. message LookupDiscoveredWorkloadResponse { - // Discovered workload if exists, empty otherwise. + // Discovered Workload if exists, empty otherwise. DiscoveredWorkload discovered_workload = 1; } @@ -1014,7 +1053,9 @@ message UpdateWorkloadRequest { // Request for DeleteWorkload. message DeleteWorkloadRequest { - // Required. Value for name. + // Required. Fully qualified name of the Workload to delete from an + // Application. Expected format: + // `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "apphub.googleapis.com/Workload" } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java index 0cac67c092c7..edd6f134c52d 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/AssetServiceClient.java @@ -468,18 +468,49 @@ * * *

                              AnalyzeOrgPolicyGovernedAssets - *

                              Analyzes organization policies governed assets (Google Cloud resources or policies) under a scope. This RPC supports custom constraints and the following 10 canned constraints: + *

                              Analyzes organization policies governed assets (Google Cloud resources or policies) under a scope. This RPC supports custom constraints and the following canned constraints: *

                                - *
                              • storage.uniformBucketLevelAccess - *
                              • iam.disableServiceAccountKeyCreation - *
                              • iam.allowedPolicyMemberDomains - *
                              • compute.vmExternalIpAccess - *
                              • appengine.enforceServiceAccountActAsCheck - *
                              • gcp.resourceLocations - *
                              • compute.trustedImageProjects - *
                              • compute.skipDefaultNetworkCreation - *
                              • compute.requireOsLogin - *
                              • compute.disableNestedVirtualization + *
                              • constraints/ainotebooks.accessMode + *
                              • constraints/ainotebooks.disableFileDownloads + *
                              • constraints/ainotebooks.disableRootAccess + *
                              • constraints/ainotebooks.disableTerminal + *
                              • constraints/ainotebooks.environmentOptions + *
                              • constraints/ainotebooks.requireAutoUpgradeSchedule + *
                              • constraints/ainotebooks.restrictVpcNetworks + *
                              • constraints/compute.disableGuestAttributesAccess + *
                              • constraints/compute.disableInstanceDataAccessApis + *
                              • constraints/compute.disableNestedVirtualization + *
                              • constraints/compute.disableSerialPortAccess + *
                              • constraints/compute.disableSerialPortLogging + *
                              • constraints/compute.disableVpcExternalIpv6 + *
                              • constraints/compute.requireOsLogin + *
                              • constraints/compute.requireShieldedVm + *
                              • constraints/compute.restrictLoadBalancerCreationForTypes + *
                              • constraints/compute.restrictProtocolForwardingCreationForTypes + *
                              • constraints/compute.restrictXpnProjectLienRemoval + *
                              • constraints/compute.setNewProjectDefaultToZonalDNSOnly + *
                              • constraints/compute.skipDefaultNetworkCreation + *
                              • constraints/compute.trustedImageProjects + *
                              • constraints/compute.vmCanIpForward + *
                              • constraints/compute.vmExternalIpAccess + *
                              • constraints/gcp.detailedAuditLoggingMode + *
                              • constraints/gcp.resourceLocations + *
                              • constraints/iam.allowedPolicyMemberDomains + *
                              • constraints/iam.automaticIamGrantsForDefaultServiceAccounts + *
                              • constraints/iam.disableServiceAccountCreation + *
                              • constraints/iam.disableServiceAccountKeyCreation + *
                              • constraints/iam.disableServiceAccountKeyUpload + *
                              • constraints/iam.restrictCrossProjectServiceAccountLienRemoval + *
                              • constraints/iam.serviceAccountKeyExpiryHours + *
                              • constraints/resourcemanager.accessBoundaries + *
                              • constraints/resourcemanager.allowedExportDestinations + *
                              • constraints/sql.restrictAuthorizedNetworks + *
                              • constraints/sql.restrictNoncompliantDiagnosticDataAccess + *
                              • constraints/sql.restrictNoncompliantResourceCreation + *
                              • constraints/sql.restrictPublicIp + *
                              • constraints/storage.publicAccessPrevention + *
                              • constraints/storage.restrictAuthTypes + *
                              • constraints/storage.uniformBucketLevelAccess *
                              *

                              This RPC only returns either resources of types [supported by search APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types) or IAM policies. * @@ -3503,19 +3534,50 @@ public final AnalyzeOrgPolicyGovernedContainersPagedResponse analyzeOrgPolicyGov // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Analyzes organization policies governed assets (Google Cloud resources or policies) under a - * scope. This RPC supports custom constraints and the following 10 canned constraints: + * scope. This RPC supports custom constraints and the following canned constraints: * *

                                - *
                              • storage.uniformBucketLevelAccess - *
                              • iam.disableServiceAccountKeyCreation - *
                              • iam.allowedPolicyMemberDomains - *
                              • compute.vmExternalIpAccess - *
                              • appengine.enforceServiceAccountActAsCheck - *
                              • gcp.resourceLocations - *
                              • compute.trustedImageProjects - *
                              • compute.skipDefaultNetworkCreation - *
                              • compute.requireOsLogin - *
                              • compute.disableNestedVirtualization + *
                              • constraints/ainotebooks.accessMode + *
                              • constraints/ainotebooks.disableFileDownloads + *
                              • constraints/ainotebooks.disableRootAccess + *
                              • constraints/ainotebooks.disableTerminal + *
                              • constraints/ainotebooks.environmentOptions + *
                              • constraints/ainotebooks.requireAutoUpgradeSchedule + *
                              • constraints/ainotebooks.restrictVpcNetworks + *
                              • constraints/compute.disableGuestAttributesAccess + *
                              • constraints/compute.disableInstanceDataAccessApis + *
                              • constraints/compute.disableNestedVirtualization + *
                              • constraints/compute.disableSerialPortAccess + *
                              • constraints/compute.disableSerialPortLogging + *
                              • constraints/compute.disableVpcExternalIpv6 + *
                              • constraints/compute.requireOsLogin + *
                              • constraints/compute.requireShieldedVm + *
                              • constraints/compute.restrictLoadBalancerCreationForTypes + *
                              • constraints/compute.restrictProtocolForwardingCreationForTypes + *
                              • constraints/compute.restrictXpnProjectLienRemoval + *
                              • constraints/compute.setNewProjectDefaultToZonalDNSOnly + *
                              • constraints/compute.skipDefaultNetworkCreation + *
                              • constraints/compute.trustedImageProjects + *
                              • constraints/compute.vmCanIpForward + *
                              • constraints/compute.vmExternalIpAccess + *
                              • constraints/gcp.detailedAuditLoggingMode + *
                              • constraints/gcp.resourceLocations + *
                              • constraints/iam.allowedPolicyMemberDomains + *
                              • constraints/iam.automaticIamGrantsForDefaultServiceAccounts + *
                              • constraints/iam.disableServiceAccountCreation + *
                              • constraints/iam.disableServiceAccountKeyCreation + *
                              • constraints/iam.disableServiceAccountKeyUpload + *
                              • constraints/iam.restrictCrossProjectServiceAccountLienRemoval + *
                              • constraints/iam.serviceAccountKeyExpiryHours + *
                              • constraints/resourcemanager.accessBoundaries + *
                              • constraints/resourcemanager.allowedExportDestinations + *
                              • constraints/sql.restrictAuthorizedNetworks + *
                              • constraints/sql.restrictNoncompliantDiagnosticDataAccess + *
                              • constraints/sql.restrictNoncompliantResourceCreation + *
                              • constraints/sql.restrictPublicIp + *
                              • constraints/storage.publicAccessPrevention + *
                              • constraints/storage.restrictAuthTypes + *
                              • constraints/storage.uniformBucketLevelAccess *
                              * *

                              This RPC only returns either resources of types [supported by search @@ -3593,19 +3655,50 @@ public final AnalyzeOrgPolicyGovernedAssetsPagedResponse analyzeOrgPolicyGoverne // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Analyzes organization policies governed assets (Google Cloud resources or policies) under a - * scope. This RPC supports custom constraints and the following 10 canned constraints: + * scope. This RPC supports custom constraints and the following canned constraints: * *

                                - *
                              • storage.uniformBucketLevelAccess - *
                              • iam.disableServiceAccountKeyCreation - *
                              • iam.allowedPolicyMemberDomains - *
                              • compute.vmExternalIpAccess - *
                              • appengine.enforceServiceAccountActAsCheck - *
                              • gcp.resourceLocations - *
                              • compute.trustedImageProjects - *
                              • compute.skipDefaultNetworkCreation - *
                              • compute.requireOsLogin - *
                              • compute.disableNestedVirtualization + *
                              • constraints/ainotebooks.accessMode + *
                              • constraints/ainotebooks.disableFileDownloads + *
                              • constraints/ainotebooks.disableRootAccess + *
                              • constraints/ainotebooks.disableTerminal + *
                              • constraints/ainotebooks.environmentOptions + *
                              • constraints/ainotebooks.requireAutoUpgradeSchedule + *
                              • constraints/ainotebooks.restrictVpcNetworks + *
                              • constraints/compute.disableGuestAttributesAccess + *
                              • constraints/compute.disableInstanceDataAccessApis + *
                              • constraints/compute.disableNestedVirtualization + *
                              • constraints/compute.disableSerialPortAccess + *
                              • constraints/compute.disableSerialPortLogging + *
                              • constraints/compute.disableVpcExternalIpv6 + *
                              • constraints/compute.requireOsLogin + *
                              • constraints/compute.requireShieldedVm + *
                              • constraints/compute.restrictLoadBalancerCreationForTypes + *
                              • constraints/compute.restrictProtocolForwardingCreationForTypes + *
                              • constraints/compute.restrictXpnProjectLienRemoval + *
                              • constraints/compute.setNewProjectDefaultToZonalDNSOnly + *
                              • constraints/compute.skipDefaultNetworkCreation + *
                              • constraints/compute.trustedImageProjects + *
                              • constraints/compute.vmCanIpForward + *
                              • constraints/compute.vmExternalIpAccess + *
                              • constraints/gcp.detailedAuditLoggingMode + *
                              • constraints/gcp.resourceLocations + *
                              • constraints/iam.allowedPolicyMemberDomains + *
                              • constraints/iam.automaticIamGrantsForDefaultServiceAccounts + *
                              • constraints/iam.disableServiceAccountCreation + *
                              • constraints/iam.disableServiceAccountKeyCreation + *
                              • constraints/iam.disableServiceAccountKeyUpload + *
                              • constraints/iam.restrictCrossProjectServiceAccountLienRemoval + *
                              • constraints/iam.serviceAccountKeyExpiryHours + *
                              • constraints/resourcemanager.accessBoundaries + *
                              • constraints/resourcemanager.allowedExportDestinations + *
                              • constraints/sql.restrictAuthorizedNetworks + *
                              • constraints/sql.restrictNoncompliantDiagnosticDataAccess + *
                              • constraints/sql.restrictNoncompliantResourceCreation + *
                              • constraints/sql.restrictPublicIp + *
                              • constraints/storage.publicAccessPrevention + *
                              • constraints/storage.restrictAuthTypes + *
                              • constraints/storage.uniformBucketLevelAccess *
                              * *

                              This RPC only returns either resources of types [supported by search @@ -3646,19 +3739,50 @@ public final AnalyzeOrgPolicyGovernedAssetsPagedResponse analyzeOrgPolicyGoverne // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Analyzes organization policies governed assets (Google Cloud resources or policies) under a - * scope. This RPC supports custom constraints and the following 10 canned constraints: + * scope. This RPC supports custom constraints and the following canned constraints: * *

                                - *
                              • storage.uniformBucketLevelAccess - *
                              • iam.disableServiceAccountKeyCreation - *
                              • iam.allowedPolicyMemberDomains - *
                              • compute.vmExternalIpAccess - *
                              • appengine.enforceServiceAccountActAsCheck - *
                              • gcp.resourceLocations - *
                              • compute.trustedImageProjects - *
                              • compute.skipDefaultNetworkCreation - *
                              • compute.requireOsLogin - *
                              • compute.disableNestedVirtualization + *
                              • constraints/ainotebooks.accessMode + *
                              • constraints/ainotebooks.disableFileDownloads + *
                              • constraints/ainotebooks.disableRootAccess + *
                              • constraints/ainotebooks.disableTerminal + *
                              • constraints/ainotebooks.environmentOptions + *
                              • constraints/ainotebooks.requireAutoUpgradeSchedule + *
                              • constraints/ainotebooks.restrictVpcNetworks + *
                              • constraints/compute.disableGuestAttributesAccess + *
                              • constraints/compute.disableInstanceDataAccessApis + *
                              • constraints/compute.disableNestedVirtualization + *
                              • constraints/compute.disableSerialPortAccess + *
                              • constraints/compute.disableSerialPortLogging + *
                              • constraints/compute.disableVpcExternalIpv6 + *
                              • constraints/compute.requireOsLogin + *
                              • constraints/compute.requireShieldedVm + *
                              • constraints/compute.restrictLoadBalancerCreationForTypes + *
                              • constraints/compute.restrictProtocolForwardingCreationForTypes + *
                              • constraints/compute.restrictXpnProjectLienRemoval + *
                              • constraints/compute.setNewProjectDefaultToZonalDNSOnly + *
                              • constraints/compute.skipDefaultNetworkCreation + *
                              • constraints/compute.trustedImageProjects + *
                              • constraints/compute.vmCanIpForward + *
                              • constraints/compute.vmExternalIpAccess + *
                              • constraints/gcp.detailedAuditLoggingMode + *
                              • constraints/gcp.resourceLocations + *
                              • constraints/iam.allowedPolicyMemberDomains + *
                              • constraints/iam.automaticIamGrantsForDefaultServiceAccounts + *
                              • constraints/iam.disableServiceAccountCreation + *
                              • constraints/iam.disableServiceAccountKeyCreation + *
                              • constraints/iam.disableServiceAccountKeyUpload + *
                              • constraints/iam.restrictCrossProjectServiceAccountLienRemoval + *
                              • constraints/iam.serviceAccountKeyExpiryHours + *
                              • constraints/resourcemanager.accessBoundaries + *
                              • constraints/resourcemanager.allowedExportDestinations + *
                              • constraints/sql.restrictAuthorizedNetworks + *
                              • constraints/sql.restrictNoncompliantDiagnosticDataAccess + *
                              • constraints/sql.restrictNoncompliantResourceCreation + *
                              • constraints/sql.restrictPublicIp + *
                              • constraints/storage.publicAccessPrevention + *
                              • constraints/storage.restrictAuthTypes + *
                              • constraints/storage.uniformBucketLevelAccess *
                              * *

                              This RPC only returns either resources of types [supported by search @@ -3700,19 +3824,50 @@ public final AnalyzeOrgPolicyGovernedAssetsPagedResponse analyzeOrgPolicyGoverne // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Analyzes organization policies governed assets (Google Cloud resources or policies) under a - * scope. This RPC supports custom constraints and the following 10 canned constraints: + * scope. This RPC supports custom constraints and the following canned constraints: * *

                                - *
                              • storage.uniformBucketLevelAccess - *
                              • iam.disableServiceAccountKeyCreation - *
                              • iam.allowedPolicyMemberDomains - *
                              • compute.vmExternalIpAccess - *
                              • appengine.enforceServiceAccountActAsCheck - *
                              • gcp.resourceLocations - *
                              • compute.trustedImageProjects - *
                              • compute.skipDefaultNetworkCreation - *
                              • compute.requireOsLogin - *
                              • compute.disableNestedVirtualization + *
                              • constraints/ainotebooks.accessMode + *
                              • constraints/ainotebooks.disableFileDownloads + *
                              • constraints/ainotebooks.disableRootAccess + *
                              • constraints/ainotebooks.disableTerminal + *
                              • constraints/ainotebooks.environmentOptions + *
                              • constraints/ainotebooks.requireAutoUpgradeSchedule + *
                              • constraints/ainotebooks.restrictVpcNetworks + *
                              • constraints/compute.disableGuestAttributesAccess + *
                              • constraints/compute.disableInstanceDataAccessApis + *
                              • constraints/compute.disableNestedVirtualization + *
                              • constraints/compute.disableSerialPortAccess + *
                              • constraints/compute.disableSerialPortLogging + *
                              • constraints/compute.disableVpcExternalIpv6 + *
                              • constraints/compute.requireOsLogin + *
                              • constraints/compute.requireShieldedVm + *
                              • constraints/compute.restrictLoadBalancerCreationForTypes + *
                              • constraints/compute.restrictProtocolForwardingCreationForTypes + *
                              • constraints/compute.restrictXpnProjectLienRemoval + *
                              • constraints/compute.setNewProjectDefaultToZonalDNSOnly + *
                              • constraints/compute.skipDefaultNetworkCreation + *
                              • constraints/compute.trustedImageProjects + *
                              • constraints/compute.vmCanIpForward + *
                              • constraints/compute.vmExternalIpAccess + *
                              • constraints/gcp.detailedAuditLoggingMode + *
                              • constraints/gcp.resourceLocations + *
                              • constraints/iam.allowedPolicyMemberDomains + *
                              • constraints/iam.automaticIamGrantsForDefaultServiceAccounts + *
                              • constraints/iam.disableServiceAccountCreation + *
                              • constraints/iam.disableServiceAccountKeyCreation + *
                              • constraints/iam.disableServiceAccountKeyUpload + *
                              • constraints/iam.restrictCrossProjectServiceAccountLienRemoval + *
                              • constraints/iam.serviceAccountKeyExpiryHours + *
                              • constraints/resourcemanager.accessBoundaries + *
                              • constraints/resourcemanager.allowedExportDestinations + *
                              • constraints/sql.restrictAuthorizedNetworks + *
                              • constraints/sql.restrictNoncompliantDiagnosticDataAccess + *
                              • constraints/sql.restrictNoncompliantResourceCreation + *
                              • constraints/sql.restrictPublicIp + *
                              • constraints/storage.publicAccessPrevention + *
                              • constraints/storage.restrictAuthTypes + *
                              • constraints/storage.uniformBucketLevelAccess *
                              * *

                              This RPC only returns either resources of types [supported by search diff --git a/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java b/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java index 3b25fe6f613d..48b86c07fb43 100644 --- a/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java +++ b/java-asset/grpc-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceGrpc.java @@ -1491,17 +1491,48 @@ default void analyzeOrgPolicyGovernedContainers( *

                                    * Analyzes organization policies governed assets (Google Cloud resources or
                                    * policies) under a scope. This RPC supports custom constraints and the
                              -     * following 10 canned constraints:
                              -     * * storage.uniformBucketLevelAccess
                              -     * * iam.disableServiceAccountKeyCreation
                              -     * * iam.allowedPolicyMemberDomains
                              -     * * compute.vmExternalIpAccess
                              -     * * appengine.enforceServiceAccountActAsCheck
                              -     * * gcp.resourceLocations
                              -     * * compute.trustedImageProjects
                              -     * * compute.skipDefaultNetworkCreation
                              -     * * compute.requireOsLogin
                              -     * * compute.disableNestedVirtualization
                              +     * following canned constraints:
                              +     * * constraints/ainotebooks.accessMode
                              +     * * constraints/ainotebooks.disableFileDownloads
                              +     * * constraints/ainotebooks.disableRootAccess
                              +     * * constraints/ainotebooks.disableTerminal
                              +     * * constraints/ainotebooks.environmentOptions
                              +     * * constraints/ainotebooks.requireAutoUpgradeSchedule
                              +     * * constraints/ainotebooks.restrictVpcNetworks
                              +     * * constraints/compute.disableGuestAttributesAccess
                              +     * * constraints/compute.disableInstanceDataAccessApis
                              +     * * constraints/compute.disableNestedVirtualization
                              +     * * constraints/compute.disableSerialPortAccess
                              +     * * constraints/compute.disableSerialPortLogging
                              +     * * constraints/compute.disableVpcExternalIpv6
                              +     * * constraints/compute.requireOsLogin
                              +     * * constraints/compute.requireShieldedVm
                              +     * * constraints/compute.restrictLoadBalancerCreationForTypes
                              +     * * constraints/compute.restrictProtocolForwardingCreationForTypes
                              +     * * constraints/compute.restrictXpnProjectLienRemoval
                              +     * * constraints/compute.setNewProjectDefaultToZonalDNSOnly
                              +     * * constraints/compute.skipDefaultNetworkCreation
                              +     * * constraints/compute.trustedImageProjects
                              +     * * constraints/compute.vmCanIpForward
                              +     * * constraints/compute.vmExternalIpAccess
                              +     * * constraints/gcp.detailedAuditLoggingMode
                              +     * * constraints/gcp.resourceLocations
                              +     * * constraints/iam.allowedPolicyMemberDomains
                              +     * * constraints/iam.automaticIamGrantsForDefaultServiceAccounts
                              +     * * constraints/iam.disableServiceAccountCreation
                              +     * * constraints/iam.disableServiceAccountKeyCreation
                              +     * * constraints/iam.disableServiceAccountKeyUpload
                              +     * * constraints/iam.restrictCrossProjectServiceAccountLienRemoval
                              +     * * constraints/iam.serviceAccountKeyExpiryHours
                              +     * * constraints/resourcemanager.accessBoundaries
                              +     * * constraints/resourcemanager.allowedExportDestinations
                              +     * * constraints/sql.restrictAuthorizedNetworks
                              +     * * constraints/sql.restrictNoncompliantDiagnosticDataAccess
                              +     * * constraints/sql.restrictNoncompliantResourceCreation
                              +     * * constraints/sql.restrictPublicIp
                              +     * * constraints/storage.publicAccessPrevention
                              +     * * constraints/storage.restrictAuthTypes
                              +     * * constraints/storage.uniformBucketLevelAccess
                                    * This RPC only returns either resources of types [supported by search
                                    * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                                    * or IAM policies.
                              @@ -1956,17 +1987,48 @@ public void analyzeOrgPolicyGovernedContainers(
                                    * 
                                    * Analyzes organization policies governed assets (Google Cloud resources or
                                    * policies) under a scope. This RPC supports custom constraints and the
                              -     * following 10 canned constraints:
                              -     * * storage.uniformBucketLevelAccess
                              -     * * iam.disableServiceAccountKeyCreation
                              -     * * iam.allowedPolicyMemberDomains
                              -     * * compute.vmExternalIpAccess
                              -     * * appengine.enforceServiceAccountActAsCheck
                              -     * * gcp.resourceLocations
                              -     * * compute.trustedImageProjects
                              -     * * compute.skipDefaultNetworkCreation
                              -     * * compute.requireOsLogin
                              -     * * compute.disableNestedVirtualization
                              +     * following canned constraints:
                              +     * * constraints/ainotebooks.accessMode
                              +     * * constraints/ainotebooks.disableFileDownloads
                              +     * * constraints/ainotebooks.disableRootAccess
                              +     * * constraints/ainotebooks.disableTerminal
                              +     * * constraints/ainotebooks.environmentOptions
                              +     * * constraints/ainotebooks.requireAutoUpgradeSchedule
                              +     * * constraints/ainotebooks.restrictVpcNetworks
                              +     * * constraints/compute.disableGuestAttributesAccess
                              +     * * constraints/compute.disableInstanceDataAccessApis
                              +     * * constraints/compute.disableNestedVirtualization
                              +     * * constraints/compute.disableSerialPortAccess
                              +     * * constraints/compute.disableSerialPortLogging
                              +     * * constraints/compute.disableVpcExternalIpv6
                              +     * * constraints/compute.requireOsLogin
                              +     * * constraints/compute.requireShieldedVm
                              +     * * constraints/compute.restrictLoadBalancerCreationForTypes
                              +     * * constraints/compute.restrictProtocolForwardingCreationForTypes
                              +     * * constraints/compute.restrictXpnProjectLienRemoval
                              +     * * constraints/compute.setNewProjectDefaultToZonalDNSOnly
                              +     * * constraints/compute.skipDefaultNetworkCreation
                              +     * * constraints/compute.trustedImageProjects
                              +     * * constraints/compute.vmCanIpForward
                              +     * * constraints/compute.vmExternalIpAccess
                              +     * * constraints/gcp.detailedAuditLoggingMode
                              +     * * constraints/gcp.resourceLocations
                              +     * * constraints/iam.allowedPolicyMemberDomains
                              +     * * constraints/iam.automaticIamGrantsForDefaultServiceAccounts
                              +     * * constraints/iam.disableServiceAccountCreation
                              +     * * constraints/iam.disableServiceAccountKeyCreation
                              +     * * constraints/iam.disableServiceAccountKeyUpload
                              +     * * constraints/iam.restrictCrossProjectServiceAccountLienRemoval
                              +     * * constraints/iam.serviceAccountKeyExpiryHours
                              +     * * constraints/resourcemanager.accessBoundaries
                              +     * * constraints/resourcemanager.allowedExportDestinations
                              +     * * constraints/sql.restrictAuthorizedNetworks
                              +     * * constraints/sql.restrictNoncompliantDiagnosticDataAccess
                              +     * * constraints/sql.restrictNoncompliantResourceCreation
                              +     * * constraints/sql.restrictPublicIp
                              +     * * constraints/storage.publicAccessPrevention
                              +     * * constraints/storage.restrictAuthTypes
                              +     * * constraints/storage.uniformBucketLevelAccess
                                    * This RPC only returns either resources of types [supported by search
                                    * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                                    * or IAM policies.
                              @@ -2344,17 +2406,48 @@ public com.google.cloud.asset.v1.AnalyzeOrgPoliciesResponse analyzeOrgPolicies(
                                    * 
                                    * Analyzes organization policies governed assets (Google Cloud resources or
                                    * policies) under a scope. This RPC supports custom constraints and the
                              -     * following 10 canned constraints:
                              -     * * storage.uniformBucketLevelAccess
                              -     * * iam.disableServiceAccountKeyCreation
                              -     * * iam.allowedPolicyMemberDomains
                              -     * * compute.vmExternalIpAccess
                              -     * * appengine.enforceServiceAccountActAsCheck
                              -     * * gcp.resourceLocations
                              -     * * compute.trustedImageProjects
                              -     * * compute.skipDefaultNetworkCreation
                              -     * * compute.requireOsLogin
                              -     * * compute.disableNestedVirtualization
                              +     * following canned constraints:
                              +     * * constraints/ainotebooks.accessMode
                              +     * * constraints/ainotebooks.disableFileDownloads
                              +     * * constraints/ainotebooks.disableRootAccess
                              +     * * constraints/ainotebooks.disableTerminal
                              +     * * constraints/ainotebooks.environmentOptions
                              +     * * constraints/ainotebooks.requireAutoUpgradeSchedule
                              +     * * constraints/ainotebooks.restrictVpcNetworks
                              +     * * constraints/compute.disableGuestAttributesAccess
                              +     * * constraints/compute.disableInstanceDataAccessApis
                              +     * * constraints/compute.disableNestedVirtualization
                              +     * * constraints/compute.disableSerialPortAccess
                              +     * * constraints/compute.disableSerialPortLogging
                              +     * * constraints/compute.disableVpcExternalIpv6
                              +     * * constraints/compute.requireOsLogin
                              +     * * constraints/compute.requireShieldedVm
                              +     * * constraints/compute.restrictLoadBalancerCreationForTypes
                              +     * * constraints/compute.restrictProtocolForwardingCreationForTypes
                              +     * * constraints/compute.restrictXpnProjectLienRemoval
                              +     * * constraints/compute.setNewProjectDefaultToZonalDNSOnly
                              +     * * constraints/compute.skipDefaultNetworkCreation
                              +     * * constraints/compute.trustedImageProjects
                              +     * * constraints/compute.vmCanIpForward
                              +     * * constraints/compute.vmExternalIpAccess
                              +     * * constraints/gcp.detailedAuditLoggingMode
                              +     * * constraints/gcp.resourceLocations
                              +     * * constraints/iam.allowedPolicyMemberDomains
                              +     * * constraints/iam.automaticIamGrantsForDefaultServiceAccounts
                              +     * * constraints/iam.disableServiceAccountCreation
                              +     * * constraints/iam.disableServiceAccountKeyCreation
                              +     * * constraints/iam.disableServiceAccountKeyUpload
                              +     * * constraints/iam.restrictCrossProjectServiceAccountLienRemoval
                              +     * * constraints/iam.serviceAccountKeyExpiryHours
                              +     * * constraints/resourcemanager.accessBoundaries
                              +     * * constraints/resourcemanager.allowedExportDestinations
                              +     * * constraints/sql.restrictAuthorizedNetworks
                              +     * * constraints/sql.restrictNoncompliantDiagnosticDataAccess
                              +     * * constraints/sql.restrictNoncompliantResourceCreation
                              +     * * constraints/sql.restrictPublicIp
                              +     * * constraints/storage.publicAccessPrevention
                              +     * * constraints/storage.restrictAuthTypes
                              +     * * constraints/storage.uniformBucketLevelAccess
                                    * This RPC only returns either resources of types [supported by search
                                    * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                                    * or IAM policies.
                              @@ -2742,17 +2835,48 @@ public com.google.common.util.concurrent.ListenableFuture
                                    * Analyzes organization policies governed assets (Google Cloud resources or
                                    * policies) under a scope. This RPC supports custom constraints and the
                              -     * following 10 canned constraints:
                              -     * * storage.uniformBucketLevelAccess
                              -     * * iam.disableServiceAccountKeyCreation
                              -     * * iam.allowedPolicyMemberDomains
                              -     * * compute.vmExternalIpAccess
                              -     * * appengine.enforceServiceAccountActAsCheck
                              -     * * gcp.resourceLocations
                              -     * * compute.trustedImageProjects
                              -     * * compute.skipDefaultNetworkCreation
                              -     * * compute.requireOsLogin
                              -     * * compute.disableNestedVirtualization
                              +     * following canned constraints:
                              +     * * constraints/ainotebooks.accessMode
                              +     * * constraints/ainotebooks.disableFileDownloads
                              +     * * constraints/ainotebooks.disableRootAccess
                              +     * * constraints/ainotebooks.disableTerminal
                              +     * * constraints/ainotebooks.environmentOptions
                              +     * * constraints/ainotebooks.requireAutoUpgradeSchedule
                              +     * * constraints/ainotebooks.restrictVpcNetworks
                              +     * * constraints/compute.disableGuestAttributesAccess
                              +     * * constraints/compute.disableInstanceDataAccessApis
                              +     * * constraints/compute.disableNestedVirtualization
                              +     * * constraints/compute.disableSerialPortAccess
                              +     * * constraints/compute.disableSerialPortLogging
                              +     * * constraints/compute.disableVpcExternalIpv6
                              +     * * constraints/compute.requireOsLogin
                              +     * * constraints/compute.requireShieldedVm
                              +     * * constraints/compute.restrictLoadBalancerCreationForTypes
                              +     * * constraints/compute.restrictProtocolForwardingCreationForTypes
                              +     * * constraints/compute.restrictXpnProjectLienRemoval
                              +     * * constraints/compute.setNewProjectDefaultToZonalDNSOnly
                              +     * * constraints/compute.skipDefaultNetworkCreation
                              +     * * constraints/compute.trustedImageProjects
                              +     * * constraints/compute.vmCanIpForward
                              +     * * constraints/compute.vmExternalIpAccess
                              +     * * constraints/gcp.detailedAuditLoggingMode
                              +     * * constraints/gcp.resourceLocations
                              +     * * constraints/iam.allowedPolicyMemberDomains
                              +     * * constraints/iam.automaticIamGrantsForDefaultServiceAccounts
                              +     * * constraints/iam.disableServiceAccountCreation
                              +     * * constraints/iam.disableServiceAccountKeyCreation
                              +     * * constraints/iam.disableServiceAccountKeyUpload
                              +     * * constraints/iam.restrictCrossProjectServiceAccountLienRemoval
                              +     * * constraints/iam.serviceAccountKeyExpiryHours
                              +     * * constraints/resourcemanager.accessBoundaries
                              +     * * constraints/resourcemanager.allowedExportDestinations
                              +     * * constraints/sql.restrictAuthorizedNetworks
                              +     * * constraints/sql.restrictNoncompliantDiagnosticDataAccess
                              +     * * constraints/sql.restrictNoncompliantResourceCreation
                              +     * * constraints/sql.restrictPublicIp
                              +     * * constraints/storage.publicAccessPrevention
                              +     * * constraints/storage.restrictAuthTypes
                              +     * * constraints/storage.uniformBucketLevelAccess
                                    * This RPC only returns either resources of types [supported by search
                                    * APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                                    * or IAM policies.
                              diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeOrgPoliciesResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeOrgPoliciesResponse.java
                              index d2edbbd71335..3e16b19675e8 100644
                              --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeOrgPoliciesResponse.java
                              +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeOrgPoliciesResponse.java
                              @@ -193,6 +193,123 @@ public interface OrgPolicyResultOrBuilder
                                    * repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 2;
                                    */
                                   com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder getPolicyBundleOrBuilder(int index);
                              +
                              +    /**
                              +     *
                              +     *
                              +     * 
                              +     * The project that this consolidated policy belongs to, in the format of
                              +     * projects/{PROJECT_NUMBER}. This field is available when the consolidated
                              +     * policy belongs to a project.
                              +     * 
                              + * + * string project = 3; + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
                              +     * The project that this consolidated policy belongs to, in the format of
                              +     * projects/{PROJECT_NUMBER}. This field is available when the consolidated
                              +     * policy belongs to a project.
                              +     * 
                              + * + * string project = 3; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
                              +     * The folder(s) that this consolidated policy belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +     * policy belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 4; + * + * @return A list containing the folders. + */ + java.util.List getFoldersList(); + /** + * + * + *
                              +     * The folder(s) that this consolidated policy belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +     * policy belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 4; + * + * @return The count of folders. + */ + int getFoldersCount(); + /** + * + * + *
                              +     * The folder(s) that this consolidated policy belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +     * policy belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 4; + * + * @param index The index of the element to return. + * @return The folders at the given index. + */ + java.lang.String getFolders(int index); + /** + * + * + *
                              +     * The folder(s) that this consolidated policy belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +     * policy belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 4; + * + * @param index The index of the value to return. + * @return The bytes of the folders at the given index. + */ + com.google.protobuf.ByteString getFoldersBytes(int index); + + /** + * + * + *
                              +     * The organization that this consolidated policy belongs to, in the format
                              +     * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +     * consolidated policy belongs (directly or cascadingly) to an organization.
                              +     * 
                              + * + * string organization = 5; + * + * @return The organization. + */ + java.lang.String getOrganization(); + /** + * + * + *
                              +     * The organization that this consolidated policy belongs to, in the format
                              +     * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +     * consolidated policy belongs (directly or cascadingly) to an organization.
                              +     * 
                              + * + * string organization = 5; + * + * @return The bytes for organization. + */ + com.google.protobuf.ByteString getOrganizationBytes(); } /** * @@ -215,6 +332,9 @@ private OrgPolicyResult(com.google.protobuf.GeneratedMessageV3.Builder builde private OrgPolicyResult() { policyBundle_ = java.util.Collections.emptyList(); + project_ = ""; + folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + organization_ = ""; } @java.lang.Override @@ -398,6 +518,188 @@ public com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder getPolicyBundleOrBui return policyBundle_.get(index); } + public static final int PROJECT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
                              +     * The project that this consolidated policy belongs to, in the format of
                              +     * projects/{PROJECT_NUMBER}. This field is available when the consolidated
                              +     * policy belongs to a project.
                              +     * 
                              + * + * string project = 3; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + * + * + *
                              +     * The project that this consolidated policy belongs to, in the format of
                              +     * projects/{PROJECT_NUMBER}. This field is available when the consolidated
                              +     * policy belongs to a project.
                              +     * 
                              + * + * string project = 3; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FOLDERS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList folders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
                              +     * The folder(s) that this consolidated policy belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +     * policy belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 4; + * + * @return A list containing the folders. + */ + public com.google.protobuf.ProtocolStringList getFoldersList() { + return folders_; + } + /** + * + * + *
                              +     * The folder(s) that this consolidated policy belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +     * policy belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 4; + * + * @return The count of folders. + */ + public int getFoldersCount() { + return folders_.size(); + } + /** + * + * + *
                              +     * The folder(s) that this consolidated policy belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +     * policy belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 4; + * + * @param index The index of the element to return. + * @return The folders at the given index. + */ + public java.lang.String getFolders(int index) { + return folders_.get(index); + } + /** + * + * + *
                              +     * The folder(s) that this consolidated policy belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +     * policy belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 4; + * + * @param index The index of the value to return. + * @return The bytes of the folders at the given index. + */ + public com.google.protobuf.ByteString getFoldersBytes(int index) { + return folders_.getByteString(index); + } + + public static final int ORGANIZATION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object organization_ = ""; + /** + * + * + *
                              +     * The organization that this consolidated policy belongs to, in the format
                              +     * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +     * consolidated policy belongs (directly or cascadingly) to an organization.
                              +     * 
                              + * + * string organization = 5; + * + * @return The organization. + */ + @java.lang.Override + public java.lang.String getOrganization() { + java.lang.Object ref = organization_; + 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(); + organization_ = s; + return s; + } + } + /** + * + * + *
                              +     * The organization that this consolidated policy belongs to, in the format
                              +     * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +     * consolidated policy belongs (directly or cascadingly) to an organization.
                              +     * 
                              + * + * string organization = 5; + * + * @return The bytes for organization. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrganizationBytes() { + java.lang.Object ref = organization_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + organization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -418,6 +720,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < policyBundle_.size(); i++) { output.writeMessage(2, policyBundle_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, project_); + } + for (int i = 0; i < folders_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, folders_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, organization_); + } getUnknownFields().writeTo(output); } @@ -434,6 +745,20 @@ public int getSerializedSize() { for (int i = 0; i < policyBundle_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, policyBundle_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, project_); + } + { + int dataSize = 0; + for (int i = 0; i < folders_.size(); i++) { + dataSize += computeStringSizeNoTag(folders_.getRaw(i)); + } + size += dataSize; + size += 1 * getFoldersList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, organization_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -455,6 +780,9 @@ public boolean equals(final java.lang.Object obj) { if (!getConsolidatedPolicy().equals(other.getConsolidatedPolicy())) return false; } if (!getPolicyBundleList().equals(other.getPolicyBundleList())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getFoldersList().equals(other.getFoldersList())) return false; + if (!getOrganization().equals(other.getOrganization())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -474,6 +802,14 @@ public int hashCode() { hash = (37 * hash) + POLICY_BUNDLE_FIELD_NUMBER; hash = (53 * hash) + getPolicyBundleList().hashCode(); } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (getFoldersCount() > 0) { + hash = (37 * hash) + FOLDERS_FIELD_NUMBER; + hash = (53 * hash) + getFoldersList().hashCode(); + } + hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER; + hash = (53 * hash) + getOrganization().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -640,6 +976,9 @@ public Builder clear() { policyBundleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); + project_ = ""; + folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + organization_ = ""; return this; } @@ -702,6 +1041,16 @@ private void buildPartial0( : consolidatedPolicyBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + folders_.makeImmutable(); + result.folders_ = folders_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.organization_ = organization_; + } result.bitField0_ |= to_bitField0_; } @@ -786,6 +1135,26 @@ public Builder mergeFrom( } } } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.folders_.isEmpty()) { + if (folders_.isEmpty()) { + folders_ = other.folders_; + bitField0_ |= 0x00000008; + } else { + ensureFoldersIsMutable(); + folders_.addAll(other.folders_); + } + onChanged(); + } + if (!other.getOrganization().isEmpty()) { + organization_ = other.organization_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -832,6 +1201,25 @@ public Builder mergeFrom( } break; } // case 18 + case 26: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFoldersIsMutable(); + folders_.add(s); + break; + } // case 34 + case 42: + { + organization_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1519,6 +1907,430 @@ public com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder addPolicyBundleBuilde return policyBundleBuilder_; } + private java.lang.Object project_ = ""; + /** + * + * + *
                              +       * The project that this consolidated policy belongs to, in the format of
                              +       * projects/{PROJECT_NUMBER}. This field is available when the consolidated
                              +       * policy belongs to a project.
                              +       * 
                              + * + * string project = 3; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                              +       * The project that this consolidated policy belongs to, in the format of
                              +       * projects/{PROJECT_NUMBER}. This field is available when the consolidated
                              +       * policy belongs to a project.
                              +       * 
                              + * + * string project = 3; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                              +       * The project that this consolidated policy belongs to, in the format of
                              +       * projects/{PROJECT_NUMBER}. This field is available when the consolidated
                              +       * policy belongs to a project.
                              +       * 
                              + * + * string project = 3; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The project that this consolidated policy belongs to, in the format of
                              +       * projects/{PROJECT_NUMBER}. This field is available when the consolidated
                              +       * policy belongs to a project.
                              +       * 
                              + * + * string project = 3; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                              +       * The project that this consolidated policy belongs to, in the format of
                              +       * projects/{PROJECT_NUMBER}. This field is available when the consolidated
                              +       * policy belongs to a project.
                              +       * 
                              + * + * string project = 3; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList folders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFoldersIsMutable() { + if (!folders_.isModifiable()) { + folders_ = new com.google.protobuf.LazyStringArrayList(folders_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
                              +       * The folder(s) that this consolidated policy belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +       * policy belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 4; + * + * @return A list containing the folders. + */ + public com.google.protobuf.ProtocolStringList getFoldersList() { + folders_.makeImmutable(); + return folders_; + } + /** + * + * + *
                              +       * The folder(s) that this consolidated policy belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +       * policy belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 4; + * + * @return The count of folders. + */ + public int getFoldersCount() { + return folders_.size(); + } + /** + * + * + *
                              +       * The folder(s) that this consolidated policy belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +       * policy belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 4; + * + * @param index The index of the element to return. + * @return The folders at the given index. + */ + public java.lang.String getFolders(int index) { + return folders_.get(index); + } + /** + * + * + *
                              +       * The folder(s) that this consolidated policy belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +       * policy belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 4; + * + * @param index The index of the value to return. + * @return The bytes of the folders at the given index. + */ + public com.google.protobuf.ByteString getFoldersBytes(int index) { + return folders_.getByteString(index); + } + /** + * + * + *
                              +       * The folder(s) that this consolidated policy belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +       * policy belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 4; + * + * @param index The index to set the value at. + * @param value The folders to set. + * @return This builder for chaining. + */ + public Builder setFolders(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFoldersIsMutable(); + folders_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The folder(s) that this consolidated policy belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +       * policy belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 4; + * + * @param value The folders to add. + * @return This builder for chaining. + */ + public Builder addFolders(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFoldersIsMutable(); + folders_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The folder(s) that this consolidated policy belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +       * policy belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 4; + * + * @param values The folders to add. + * @return This builder for chaining. + */ + public Builder addAllFolders(java.lang.Iterable values) { + ensureFoldersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The folder(s) that this consolidated policy belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +       * policy belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 4; + * + * @return This builder for chaining. + */ + public Builder clearFolders() { + folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The folder(s) that this consolidated policy belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the consolidated
                              +       * policy belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 4; + * + * @param value The bytes of the folders to add. + * @return This builder for chaining. + */ + public Builder addFoldersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFoldersIsMutable(); + folders_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object organization_ = ""; + /** + * + * + *
                              +       * The organization that this consolidated policy belongs to, in the format
                              +       * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * consolidated policy belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 5; + * + * @return The organization. + */ + public java.lang.String getOrganization() { + java.lang.Object ref = organization_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organization_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                              +       * The organization that this consolidated policy belongs to, in the format
                              +       * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * consolidated policy belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 5; + * + * @return The bytes for organization. + */ + public com.google.protobuf.ByteString getOrganizationBytes() { + java.lang.Object ref = organization_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + organization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                              +       * The organization that this consolidated policy belongs to, in the format
                              +       * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * consolidated policy belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 5; + * + * @param value The organization to set. + * @return This builder for chaining. + */ + public Builder setOrganization(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + organization_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The organization that this consolidated policy belongs to, in the format
                              +       * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * consolidated policy belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 5; + * + * @return This builder for chaining. + */ + public Builder clearOrganization() { + organization_ = getDefaultInstance().getOrganization(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                              +       * The organization that this consolidated policy belongs to, in the format
                              +       * of organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * consolidated policy belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 5; + * + * @param value The bytes for organization to set. + * @return This builder for chaining. + */ + public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeOrgPolicyGovernedAssetsResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeOrgPolicyGovernedAssetsResponse.java index 9f72a96c5f5e..22387302fd77 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeOrgPolicyGovernedAssetsResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeOrgPolicyGovernedAssetsResponse.java @@ -248,6 +248,95 @@ public interface GovernedResourceOrBuilder * @return The bytes for organization. */ com.google.protobuf.ByteString getOrganizationBytes(); + + /** + * + * + *
                              +     * The asset type of the
                              +     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name]
                              +     * Example:
                              +     * `cloudresourcemanager.googleapis.com/Project`
                              +     * See [Cloud Asset Inventory Supported Asset
                              +     * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +     * for all supported asset types.
                              +     * 
                              + * + * string asset_type = 8; + * + * @return The assetType. + */ + java.lang.String getAssetType(); + /** + * + * + *
                              +     * The asset type of the
                              +     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name]
                              +     * Example:
                              +     * `cloudresourcemanager.googleapis.com/Project`
                              +     * See [Cloud Asset Inventory Supported Asset
                              +     * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +     * for all supported asset types.
                              +     * 
                              + * + * string asset_type = 8; + * + * @return The bytes for assetType. + */ + com.google.protobuf.ByteString getAssetTypeBytes(); + + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + java.util.List getEffectiveTagsList(); + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + com.google.cloud.asset.v1.EffectiveTagDetails getEffectiveTags(int index); + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + int getEffectiveTagsCount(); + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + java.util.List + getEffectiveTagsOrBuilderList(); + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + com.google.cloud.asset.v1.EffectiveTagDetailsOrBuilder getEffectiveTagsOrBuilder(int index); } /** * @@ -276,6 +365,8 @@ private GovernedResource() { project_ = ""; folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); organization_ = ""; + assetType_ = ""; + effectiveTags_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -595,6 +686,141 @@ public com.google.protobuf.ByteString getOrganizationBytes() { } } + public static final int ASSET_TYPE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object assetType_ = ""; + /** + * + * + *
                              +     * The asset type of the
                              +     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name]
                              +     * Example:
                              +     * `cloudresourcemanager.googleapis.com/Project`
                              +     * See [Cloud Asset Inventory Supported Asset
                              +     * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +     * for all supported asset types.
                              +     * 
                              + * + * string asset_type = 8; + * + * @return The assetType. + */ + @java.lang.Override + public java.lang.String getAssetType() { + java.lang.Object ref = assetType_; + 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(); + assetType_ = s; + return s; + } + } + /** + * + * + *
                              +     * The asset type of the
                              +     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name]
                              +     * Example:
                              +     * `cloudresourcemanager.googleapis.com/Project`
                              +     * See [Cloud Asset Inventory Supported Asset
                              +     * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +     * for all supported asset types.
                              +     * 
                              + * + * string asset_type = 8; + * + * @return The bytes for assetType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssetTypeBytes() { + java.lang.Object ref = assetType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECTIVE_TAGS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List effectiveTags_; + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + @java.lang.Override + public java.util.List getEffectiveTagsList() { + return effectiveTags_; + } + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + @java.lang.Override + public java.util.List + getEffectiveTagsOrBuilderList() { + return effectiveTags_; + } + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + @java.lang.Override + public int getEffectiveTagsCount() { + return effectiveTags_.size(); + } + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + @java.lang.Override + public com.google.cloud.asset.v1.EffectiveTagDetails getEffectiveTags(int index) { + return effectiveTags_.get(index); + } + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + @java.lang.Override + public com.google.cloud.asset.v1.EffectiveTagDetailsOrBuilder getEffectiveTagsOrBuilder( + int index) { + return effectiveTags_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -624,6 +850,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, organization_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, assetType_); + } + for (int i = 0; i < effectiveTags_.size(); i++) { + output.writeMessage(9, effectiveTags_.get(i)); + } getUnknownFields().writeTo(output); } @@ -653,6 +885,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, organization_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, assetType_); + } + for (int i = 0; i < effectiveTags_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, effectiveTags_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -676,6 +914,8 @@ public boolean equals(final java.lang.Object obj) { if (!getProject().equals(other.getProject())) return false; if (!getFoldersList().equals(other.getFoldersList())) return false; if (!getOrganization().equals(other.getOrganization())) return false; + if (!getAssetType().equals(other.getAssetType())) return false; + if (!getEffectiveTagsList().equals(other.getEffectiveTagsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -699,6 +939,12 @@ public int hashCode() { } hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER; hash = (53 * hash) + getOrganization().hashCode(); + hash = (37 * hash) + ASSET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAssetType().hashCode(); + if (getEffectiveTagsCount() > 0) { + hash = (37 * hash) + EFFECTIVE_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveTagsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -858,6 +1104,14 @@ public Builder clear() { project_ = ""; folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); organization_ = ""; + assetType_ = ""; + if (effectiveTagsBuilder_ == null) { + effectiveTags_ = java.util.Collections.emptyList(); + } else { + effectiveTags_ = null; + effectiveTagsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); return this; } @@ -891,6 +1145,7 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource result = new com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource( this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -898,6 +1153,20 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource + result) { + if (effectiveTagsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + effectiveTags_ = java.util.Collections.unmodifiableList(effectiveTags_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.effectiveTags_ = effectiveTags_; + } else { + result.effectiveTags_ = effectiveTagsBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource result) { @@ -918,6 +1187,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000010) != 0)) { result.organization_ = organization_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.assetType_ = assetType_; + } } @java.lang.Override @@ -1004,6 +1276,38 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; onChanged(); } + if (!other.getAssetType().isEmpty()) { + assetType_ = other.assetType_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (effectiveTagsBuilder_ == null) { + if (!other.effectiveTags_.isEmpty()) { + if (effectiveTags_.isEmpty()) { + effectiveTags_ = other.effectiveTags_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureEffectiveTagsIsMutable(); + effectiveTags_.addAll(other.effectiveTags_); + } + onChanged(); + } + } else { + if (!other.effectiveTags_.isEmpty()) { + if (effectiveTagsBuilder_.isEmpty()) { + effectiveTagsBuilder_.dispose(); + effectiveTagsBuilder_ = null; + effectiveTags_ = other.effectiveTags_; + bitField0_ = (bitField0_ & ~0x00000040); + effectiveTagsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEffectiveTagsFieldBuilder() + : null; + } else { + effectiveTagsBuilder_.addAllMessages(other.effectiveTags_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1061,6 +1365,26 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 58 + case 66: + { + assetType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 74: + { + com.google.cloud.asset.v1.EffectiveTagDetails m = + input.readMessage( + com.google.cloud.asset.v1.EffectiveTagDetails.parser(), + extensionRegistry); + if (effectiveTagsBuilder_ == null) { + ensureEffectiveTagsIsMutable(); + effectiveTags_.add(m); + } else { + effectiveTagsBuilder_.addMessage(m); + } + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1603,142 +1927,638 @@ public Builder clearFolders() { * * *
                              -       * The folder(s) that this resource belongs to, in the format of
                              -       * folders/{FOLDER_NUMBER}. This field is available when the resource
                              -       * belongs (directly or cascadingly) to one or more folders.
                              +       * The folder(s) that this resource belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +       * belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 6; + * + * @param value The bytes of the folders to add. + * @return This builder for chaining. + */ + public Builder addFoldersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFoldersIsMutable(); + folders_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object organization_ = ""; + /** + * + * + *
                              +       * The organization that this resource belongs to, in the format of
                              +       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * resource belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 7; + * + * @return The organization. + */ + public java.lang.String getOrganization() { + java.lang.Object ref = organization_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organization_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                              +       * The organization that this resource belongs to, in the format of
                              +       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * resource belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 7; + * + * @return The bytes for organization. + */ + public com.google.protobuf.ByteString getOrganizationBytes() { + java.lang.Object ref = organization_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + organization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                              +       * The organization that this resource belongs to, in the format of
                              +       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * resource belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 7; + * + * @param value The organization to set. + * @return This builder for chaining. + */ + public Builder setOrganization(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + organization_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The organization that this resource belongs to, in the format of
                              +       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * resource belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 7; + * + * @return This builder for chaining. + */ + public Builder clearOrganization() { + organization_ = getDefaultInstance().getOrganization(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                              +       * The organization that this resource belongs to, in the format of
                              +       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * resource belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 7; + * + * @param value The bytes for organization to set. + * @return This builder for chaining. + */ + public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object assetType_ = ""; + /** + * + * + *
                              +       * The asset type of the
                              +       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name]
                              +       * Example:
                              +       * `cloudresourcemanager.googleapis.com/Project`
                              +       * See [Cloud Asset Inventory Supported Asset
                              +       * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +       * for all supported asset types.
                              +       * 
                              + * + * string asset_type = 8; + * + * @return The assetType. + */ + public java.lang.String getAssetType() { + java.lang.Object ref = assetType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                              +       * The asset type of the
                              +       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name]
                              +       * Example:
                              +       * `cloudresourcemanager.googleapis.com/Project`
                              +       * See [Cloud Asset Inventory Supported Asset
                              +       * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +       * for all supported asset types.
                              +       * 
                              + * + * string asset_type = 8; + * + * @return The bytes for assetType. + */ + public com.google.protobuf.ByteString getAssetTypeBytes() { + java.lang.Object ref = assetType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                              +       * The asset type of the
                              +       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name]
                              +       * Example:
                              +       * `cloudresourcemanager.googleapis.com/Project`
                              +       * See [Cloud Asset Inventory Supported Asset
                              +       * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +       * for all supported asset types.
                              +       * 
                              + * + * string asset_type = 8; + * + * @param value The assetType to set. + * @return This builder for chaining. + */ + public Builder setAssetType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assetType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The asset type of the
                              +       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name]
                              +       * Example:
                              +       * `cloudresourcemanager.googleapis.com/Project`
                              +       * See [Cloud Asset Inventory Supported Asset
                              +       * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +       * for all supported asset types.
                              +       * 
                              + * + * string asset_type = 8; + * + * @return This builder for chaining. + */ + public Builder clearAssetType() { + assetType_ = getDefaultInstance().getAssetType(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
                              +       * The asset type of the
                              +       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name]
                              +       * Example:
                              +       * `cloudresourcemanager.googleapis.com/Project`
                              +       * See [Cloud Asset Inventory Supported Asset
                              +       * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +       * for all supported asset types.
                              +       * 
                              + * + * string asset_type = 8; + * + * @param value The bytes for assetType to set. + * @return This builder for chaining. + */ + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.util.List effectiveTags_ = + java.util.Collections.emptyList(); + + private void ensureEffectiveTagsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + effectiveTags_ = + new java.util.ArrayList( + effectiveTags_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.EffectiveTagDetails, + com.google.cloud.asset.v1.EffectiveTagDetails.Builder, + com.google.cloud.asset.v1.EffectiveTagDetailsOrBuilder> + effectiveTagsBuilder_; + + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + public java.util.List getEffectiveTagsList() { + if (effectiveTagsBuilder_ == null) { + return java.util.Collections.unmodifiableList(effectiveTags_); + } else { + return effectiveTagsBuilder_.getMessageList(); + } + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + public int getEffectiveTagsCount() { + if (effectiveTagsBuilder_ == null) { + return effectiveTags_.size(); + } else { + return effectiveTagsBuilder_.getCount(); + } + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + public com.google.cloud.asset.v1.EffectiveTagDetails getEffectiveTags(int index) { + if (effectiveTagsBuilder_ == null) { + return effectiveTags_.get(index); + } else { + return effectiveTagsBuilder_.getMessage(index); + } + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + public Builder setEffectiveTags( + int index, com.google.cloud.asset.v1.EffectiveTagDetails value) { + if (effectiveTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveTagsIsMutable(); + effectiveTags_.set(index, value); + onChanged(); + } else { + effectiveTagsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + public Builder setEffectiveTags( + int index, com.google.cloud.asset.v1.EffectiveTagDetails.Builder builderForValue) { + if (effectiveTagsBuilder_ == null) { + ensureEffectiveTagsIsMutable(); + effectiveTags_.set(index, builderForValue.build()); + onChanged(); + } else { + effectiveTagsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + public Builder addEffectiveTags(com.google.cloud.asset.v1.EffectiveTagDetails value) { + if (effectiveTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveTagsIsMutable(); + effectiveTags_.add(value); + onChanged(); + } else { + effectiveTagsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + public Builder addEffectiveTags( + int index, com.google.cloud.asset.v1.EffectiveTagDetails value) { + if (effectiveTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveTagsIsMutable(); + effectiveTags_.add(index, value); + onChanged(); + } else { + effectiveTagsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + public Builder addEffectiveTags( + com.google.cloud.asset.v1.EffectiveTagDetails.Builder builderForValue) { + if (effectiveTagsBuilder_ == null) { + ensureEffectiveTagsIsMutable(); + effectiveTags_.add(builderForValue.build()); + onChanged(); + } else { + effectiveTagsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + public Builder addEffectiveTags( + int index, com.google.cloud.asset.v1.EffectiveTagDetails.Builder builderForValue) { + if (effectiveTagsBuilder_ == null) { + ensureEffectiveTagsIsMutable(); + effectiveTags_.add(index, builderForValue.build()); + onChanged(); + } else { + effectiveTagsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + public Builder addAllEffectiveTags( + java.lang.Iterable values) { + if (effectiveTagsBuilder_ == null) { + ensureEffectiveTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, effectiveTags_); + onChanged(); + } else { + effectiveTagsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + public Builder clearEffectiveTags() { + if (effectiveTagsBuilder_ == null) { + effectiveTags_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + effectiveTagsBuilder_.clear(); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                                      * 
                              * - * repeated string folders = 6; - * - * @param value The bytes of the folders to add. - * @return This builder for chaining. + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; */ - public Builder addFoldersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder removeEffectiveTags(int index) { + if (effectiveTagsBuilder_ == null) { + ensureEffectiveTagsIsMutable(); + effectiveTags_.remove(index); + onChanged(); + } else { + effectiveTagsBuilder_.remove(index); } - checkByteStringIsUtf8(value); - ensureFoldersIsMutable(); - folders_.add(value); - bitField0_ |= 0x00000008; - onChanged(); return this; } - - private java.lang.Object organization_ = ""; /** * * *
                              -       * The organization that this resource belongs to, in the format of
                              -       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              -       * resource belongs (directly or cascadingly) to an organization.
                              +       * The effective tags on this resource.
                                      * 
                              * - * string organization = 7; + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; + */ + public com.google.cloud.asset.v1.EffectiveTagDetails.Builder getEffectiveTagsBuilder( + int index) { + return getEffectiveTagsFieldBuilder().getBuilder(index); + } + /** * - * @return The organization. + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; */ - public java.lang.String getOrganization() { - java.lang.Object ref = organization_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - organization_ = s; - return s; + public com.google.cloud.asset.v1.EffectiveTagDetailsOrBuilder getEffectiveTagsOrBuilder( + int index) { + if (effectiveTagsBuilder_ == null) { + return effectiveTags_.get(index); } else { - return (java.lang.String) ref; + return effectiveTagsBuilder_.getMessageOrBuilder(index); } } /** * * *
                              -       * The organization that this resource belongs to, in the format of
                              -       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              -       * resource belongs (directly or cascadingly) to an organization.
                              +       * The effective tags on this resource.
                                      * 
                              * - * string organization = 7; - * - * @return The bytes for organization. + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; */ - public com.google.protobuf.ByteString getOrganizationBytes() { - java.lang.Object ref = organization_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - organization_ = b; - return b; + public java.util.List + getEffectiveTagsOrBuilderList() { + if (effectiveTagsBuilder_ != null) { + return effectiveTagsBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(effectiveTags_); } } /** * * *
                              -       * The organization that this resource belongs to, in the format of
                              -       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              -       * resource belongs (directly or cascadingly) to an organization.
                              +       * The effective tags on this resource.
                                      * 
                              * - * string organization = 7; - * - * @param value The organization to set. - * @return This builder for chaining. + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; */ - public Builder setOrganization(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - organization_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; + public com.google.cloud.asset.v1.EffectiveTagDetails.Builder addEffectiveTagsBuilder() { + return getEffectiveTagsFieldBuilder() + .addBuilder(com.google.cloud.asset.v1.EffectiveTagDetails.getDefaultInstance()); } /** * * *
                              -       * The organization that this resource belongs to, in the format of
                              -       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              -       * resource belongs (directly or cascadingly) to an organization.
                              +       * The effective tags on this resource.
                                      * 
                              * - * string organization = 7; - * - * @return This builder for chaining. + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; */ - public Builder clearOrganization() { - organization_ = getDefaultInstance().getOrganization(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; + public com.google.cloud.asset.v1.EffectiveTagDetails.Builder addEffectiveTagsBuilder( + int index) { + return getEffectiveTagsFieldBuilder() + .addBuilder(index, com.google.cloud.asset.v1.EffectiveTagDetails.getDefaultInstance()); } /** * * *
                              -       * The organization that this resource belongs to, in the format of
                              -       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              -       * resource belongs (directly or cascadingly) to an organization.
                              +       * The effective tags on this resource.
                                      * 
                              * - * string organization = 7; - * - * @param value The bytes for organization to set. - * @return This builder for chaining. + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 9; */ - public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List + getEffectiveTagsBuilderList() { + return getEffectiveTagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.EffectiveTagDetails, + com.google.cloud.asset.v1.EffectiveTagDetails.Builder, + com.google.cloud.asset.v1.EffectiveTagDetailsOrBuilder> + getEffectiveTagsFieldBuilder() { + if (effectiveTagsBuilder_ == null) { + effectiveTagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.EffectiveTagDetails, + com.google.cloud.asset.v1.EffectiveTagDetails.Builder, + com.google.cloud.asset.v1.EffectiveTagDetailsOrBuilder>( + effectiveTags_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + effectiveTags_ = null; } - checkByteStringIsUtf8(value); - organization_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; + return effectiveTagsBuilder_; } @java.lang.Override @@ -2001,6 +2821,43 @@ public interface GovernedIamPolicyOrBuilder * @return The bytes for organization. */ com.google.protobuf.ByteString getOrganizationBytes(); + + /** + * + * + *
                              +     * The asset type of the
                              +     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
                              +     * Example:
                              +     * `cloudresourcemanager.googleapis.com/Project`
                              +     * See [Cloud Asset Inventory Supported Asset
                              +     * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +     * for all supported asset types.
                              +     * 
                              + * + * string asset_type = 8; + * + * @return The assetType. + */ + java.lang.String getAssetType(); + /** + * + * + *
                              +     * The asset type of the
                              +     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
                              +     * Example:
                              +     * `cloudresourcemanager.googleapis.com/Project`
                              +     * See [Cloud Asset Inventory Supported Asset
                              +     * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +     * for all supported asset types.
                              +     * 
                              + * + * string asset_type = 8; + * + * @return The bytes for assetType. + */ + com.google.protobuf.ByteString getAssetTypeBytes(); } /** * @@ -2028,6 +2885,7 @@ private GovernedIamPolicy() { project_ = ""; folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); organization_ = ""; + assetType_ = ""; } @java.lang.Override @@ -2343,6 +3201,69 @@ public com.google.protobuf.ByteString getOrganizationBytes() { } } + public static final int ASSET_TYPE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object assetType_ = ""; + /** + * + * + *
                              +     * The asset type of the
                              +     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
                              +     * Example:
                              +     * `cloudresourcemanager.googleapis.com/Project`
                              +     * See [Cloud Asset Inventory Supported Asset
                              +     * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +     * for all supported asset types.
                              +     * 
                              + * + * string asset_type = 8; + * + * @return The assetType. + */ + @java.lang.Override + public java.lang.String getAssetType() { + java.lang.Object ref = assetType_; + 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(); + assetType_ = s; + return s; + } + } + /** + * + * + *
                              +     * The asset type of the
                              +     * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
                              +     * Example:
                              +     * `cloudresourcemanager.googleapis.com/Project`
                              +     * See [Cloud Asset Inventory Supported Asset
                              +     * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +     * for all supported asset types.
                              +     * 
                              + * + * string asset_type = 8; + * + * @return The bytes for assetType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssetTypeBytes() { + java.lang.Object ref = assetType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2372,6 +3293,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, organization_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, assetType_); + } getUnknownFields().writeTo(output); } @@ -2401,6 +3325,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, organization_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assetType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, assetType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2427,6 +3354,7 @@ public boolean equals(final java.lang.Object obj) { if (!getProject().equals(other.getProject())) return false; if (!getFoldersList().equals(other.getFoldersList())) return false; if (!getOrganization().equals(other.getOrganization())) return false; + if (!getAssetType().equals(other.getAssetType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2452,6 +3380,8 @@ public int hashCode() { } hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER; hash = (53 * hash) + getOrganization().hashCode(); + hash = (37 * hash) + ASSET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAssetType().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2625,6 +3555,7 @@ public Builder clear() { project_ = ""; folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); organization_ = ""; + assetType_ = ""; return this; } @@ -2687,6 +3618,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000010) != 0)) { result.organization_ = organization_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.assetType_ = assetType_; + } result.bitField0_ |= to_bitField0_; } @@ -2773,6 +3707,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; onChanged(); } + if (!other.getAssetType().isEmpty()) { + assetType_ = other.assetType_; + bitField0_ |= 0x00000020; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2830,6 +3769,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 58 + case 66: + { + assetType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3585,6 +4530,142 @@ public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object assetType_ = ""; + /** + * + * + *
                              +       * The asset type of the
                              +       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
                              +       * Example:
                              +       * `cloudresourcemanager.googleapis.com/Project`
                              +       * See [Cloud Asset Inventory Supported Asset
                              +       * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +       * for all supported asset types.
                              +       * 
                              + * + * string asset_type = 8; + * + * @return The assetType. + */ + public java.lang.String getAssetType() { + java.lang.Object ref = assetType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assetType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                              +       * The asset type of the
                              +       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
                              +       * Example:
                              +       * `cloudresourcemanager.googleapis.com/Project`
                              +       * See [Cloud Asset Inventory Supported Asset
                              +       * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +       * for all supported asset types.
                              +       * 
                              + * + * string asset_type = 8; + * + * @return The bytes for assetType. + */ + public com.google.protobuf.ByteString getAssetTypeBytes() { + java.lang.Object ref = assetType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assetType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                              +       * The asset type of the
                              +       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
                              +       * Example:
                              +       * `cloudresourcemanager.googleapis.com/Project`
                              +       * See [Cloud Asset Inventory Supported Asset
                              +       * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +       * for all supported asset types.
                              +       * 
                              + * + * string asset_type = 8; + * + * @param value The assetType to set. + * @return This builder for chaining. + */ + public Builder setAssetType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assetType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The asset type of the
                              +       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
                              +       * Example:
                              +       * `cloudresourcemanager.googleapis.com/Project`
                              +       * See [Cloud Asset Inventory Supported Asset
                              +       * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +       * for all supported asset types.
                              +       * 
                              + * + * string asset_type = 8; + * + * @return This builder for chaining. + */ + public Builder clearAssetType() { + assetType_ = getDefaultInstance().getAssetType(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
                              +       * The asset type of the
                              +       * [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource].
                              +       * Example:
                              +       * `cloudresourcemanager.googleapis.com/Project`
                              +       * See [Cloud Asset Inventory Supported Asset
                              +       * Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
                              +       * for all supported asset types.
                              +       * 
                              + * + * string asset_type = 8; + * + * @param value The bytes for assetType to set. + * @return This builder for chaining. + */ + public Builder setAssetTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assetType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeOrgPolicyGovernedContainersResponse.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeOrgPolicyGovernedContainersResponse.java index d5ffe608f793..058dbc3cf81a 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeOrgPolicyGovernedContainersResponse.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzeOrgPolicyGovernedContainersResponse.java @@ -255,6 +255,175 @@ public interface GovernedContainerOrBuilder * repeated .google.cloud.asset.v1.AnalyzerOrgPolicy policy_bundle = 4; */ com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder getPolicyBundleOrBuilder(int index); + + /** + * + * + *
                              +     * The project that this resource belongs to, in the format of
                              +     * projects/{PROJECT_NUMBER}. This field is available when the resource
                              +     * belongs to a project.
                              +     * 
                              + * + * string project = 5; + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
                              +     * The project that this resource belongs to, in the format of
                              +     * projects/{PROJECT_NUMBER}. This field is available when the resource
                              +     * belongs to a project.
                              +     * 
                              + * + * string project = 5; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
                              +     * The folder(s) that this resource belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +     * belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 6; + * + * @return A list containing the folders. + */ + java.util.List getFoldersList(); + /** + * + * + *
                              +     * The folder(s) that this resource belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +     * belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 6; + * + * @return The count of folders. + */ + int getFoldersCount(); + /** + * + * + *
                              +     * The folder(s) that this resource belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +     * belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 6; + * + * @param index The index of the element to return. + * @return The folders at the given index. + */ + java.lang.String getFolders(int index); + /** + * + * + *
                              +     * The folder(s) that this resource belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +     * belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 6; + * + * @param index The index of the value to return. + * @return The bytes of the folders at the given index. + */ + com.google.protobuf.ByteString getFoldersBytes(int index); + + /** + * + * + *
                              +     * The organization that this resource belongs to, in the format of
                              +     * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +     * resource belongs (directly or cascadingly) to an organization.
                              +     * 
                              + * + * string organization = 7; + * + * @return The organization. + */ + java.lang.String getOrganization(); + /** + * + * + *
                              +     * The organization that this resource belongs to, in the format of
                              +     * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +     * resource belongs (directly or cascadingly) to an organization.
                              +     * 
                              + * + * string organization = 7; + * + * @return The bytes for organization. + */ + com.google.protobuf.ByteString getOrganizationBytes(); + + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + java.util.List getEffectiveTagsList(); + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + com.google.cloud.asset.v1.EffectiveTagDetails getEffectiveTags(int index); + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + int getEffectiveTagsCount(); + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + java.util.List + getEffectiveTagsOrBuilderList(); + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + com.google.cloud.asset.v1.EffectiveTagDetailsOrBuilder getEffectiveTagsOrBuilder(int index); } /** * @@ -282,6 +451,10 @@ private GovernedContainer() { fullResourceName_ = ""; parent_ = ""; policyBundle_ = java.util.Collections.emptyList(); + project_ = ""; + folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + organization_ = ""; + effectiveTags_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -579,80 +752,367 @@ public com.google.cloud.asset.v1.AnalyzerOrgPolicyOrBuilder getPolicyBundleOrBui return policyBundle_.get(index); } - private byte memoizedIsInitialized = -1; + public static final int PROJECT_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
                              +     * The project that this resource belongs to, in the format of
                              +     * projects/{PROJECT_NUMBER}. This field is available when the resource
                              +     * belongs to a project.
                              +     * 
                              + * + * string project = 5; + * + * @return The project. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } } - + /** + * + * + *
                              +     * The project that this resource belongs to, in the format of
                              +     * projects/{PROJECT_NUMBER}. This field is available when the resource
                              +     * belongs to a project.
                              +     * 
                              + * + * string project = 5; + * + * @return The bytes for project. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getConsolidatedPolicy()); - } - for (int i = 0; i < policyBundle_.size(); i++) { - output.writeMessage(4, policyBundle_.get(i)); + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - getUnknownFields().writeTo(output); } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static final int FOLDERS_FIELD_NUMBER = 6; - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConsolidatedPolicy()); - } - for (int i = 0; i < policyBundle_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, policyBundle_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList folders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
                              +     * The folder(s) that this resource belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +     * belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 6; + * + * @return A list containing the folders. + */ + public com.google.protobuf.ProtocolStringList getFoldersList() { + return folders_; + } + /** + * + * + *
                              +     * The folder(s) that this resource belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +     * belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 6; + * + * @return The count of folders. + */ + public int getFoldersCount() { + return folders_.size(); + } + /** + * + * + *
                              +     * The folder(s) that this resource belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +     * belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 6; + * + * @param index The index of the element to return. + * @return The folders at the given index. + */ + public java.lang.String getFolders(int index) { + return folders_.get(index); + } + /** + * + * + *
                              +     * The folder(s) that this resource belongs to, in the format of
                              +     * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +     * belongs (directly or cascadingly) to one or more folders.
                              +     * 
                              + * + * repeated string folders = 6; + * + * @param index The index of the value to return. + * @return The bytes of the folders at the given index. + */ + public com.google.protobuf.ByteString getFoldersBytes(int index) { + return folders_.getByteString(index); } + public static final int ORGANIZATION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object organization_ = ""; + /** + * + * + *
                              +     * The organization that this resource belongs to, in the format of
                              +     * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +     * resource belongs (directly or cascadingly) to an organization.
                              +     * 
                              + * + * string organization = 7; + * + * @return The organization. + */ @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public java.lang.String getOrganization() { + java.lang.Object ref = organization_; + 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(); + organization_ = s; + return s; } - if (!(obj - instanceof - com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer)) { - return super.equals(obj); + } + /** + * + * + *
                              +     * The organization that this resource belongs to, in the format of
                              +     * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +     * resource belongs (directly or cascadingly) to an organization.
                              +     * 
                              + * + * string organization = 7; + * + * @return The bytes for organization. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrganizationBytes() { + java.lang.Object ref = organization_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + organization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer other = - (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer) - obj; + } - if (!getFullResourceName().equals(other.getFullResourceName())) return false; + public static final int EFFECTIVE_TAGS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List effectiveTags_; + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + @java.lang.Override + public java.util.List getEffectiveTagsList() { + return effectiveTags_; + } + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + @java.lang.Override + public java.util.List + getEffectiveTagsOrBuilderList() { + return effectiveTags_; + } + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + @java.lang.Override + public int getEffectiveTagsCount() { + return effectiveTags_.size(); + } + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + @java.lang.Override + public com.google.cloud.asset.v1.EffectiveTagDetails getEffectiveTags(int index) { + return effectiveTags_.get(index); + } + /** + * + * + *
                              +     * The effective tags on this resource.
                              +     * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + @java.lang.Override + public com.google.cloud.asset.v1.EffectiveTagDetailsOrBuilder getEffectiveTagsOrBuilder( + int index) { + return effectiveTags_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getConsolidatedPolicy()); + } + for (int i = 0; i < policyBundle_.size(); i++) { + output.writeMessage(4, policyBundle_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, project_); + } + for (int i = 0; i < folders_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, folders_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, organization_); + } + for (int i = 0; i < effectiveTags_.size(); i++) { + output.writeMessage(8, effectiveTags_.get(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(fullResourceName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConsolidatedPolicy()); + } + for (int i = 0; i < policyBundle_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, policyBundle_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, project_); + } + { + int dataSize = 0; + for (int i = 0; i < folders_.size(); i++) { + dataSize += computeStringSizeNoTag(folders_.getRaw(i)); + } + size += dataSize; + size += 1 * getFoldersList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, organization_); + } + for (int i = 0; i < effectiveTags_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, effectiveTags_.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.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer)) { + return super.equals(obj); + } + com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer other = + (com.google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer) + obj; + + if (!getFullResourceName().equals(other.getFullResourceName())) return false; if (!getParent().equals(other.getParent())) return false; if (hasConsolidatedPolicy() != other.hasConsolidatedPolicy()) return false; if (hasConsolidatedPolicy()) { if (!getConsolidatedPolicy().equals(other.getConsolidatedPolicy())) return false; } if (!getPolicyBundleList().equals(other.getPolicyBundleList())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getFoldersList().equals(other.getFoldersList())) return false; + if (!getOrganization().equals(other.getOrganization())) return false; + if (!getEffectiveTagsList().equals(other.getEffectiveTagsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -676,6 +1136,18 @@ public int hashCode() { hash = (37 * hash) + POLICY_BUNDLE_FIELD_NUMBER; hash = (53 * hash) + getPolicyBundleList().hashCode(); } + hash = (37 * hash) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (getFoldersCount() > 0) { + hash = (37 * hash) + FOLDERS_FIELD_NUMBER; + hash = (53 * hash) + getFoldersList().hashCode(); + } + hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER; + hash = (53 * hash) + getOrganization().hashCode(); + if (getEffectiveTagsCount() > 0) { + hash = (37 * hash) + EFFECTIVE_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveTagsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -847,6 +1319,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConsolidatedPolicyFieldBuilder(); getPolicyBundleFieldBuilder(); + getEffectiveTagsFieldBuilder(); } } @@ -868,6 +1341,16 @@ public Builder clear() { policyBundleBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); + project_ = ""; + folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + organization_ = ""; + if (effectiveTagsBuilder_ == null) { + effectiveTags_ = java.util.Collections.emptyList(); + } else { + effectiveTags_ = null; + effectiveTagsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); return this; } @@ -922,6 +1405,15 @@ private void buildPartialRepeatedFields( } else { result.policyBundle_ = policyBundleBuilder_.build(); } + if (effectiveTagsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + effectiveTags_ = java.util.Collections.unmodifiableList(effectiveTags_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.effectiveTags_ = effectiveTags_; + } else { + result.effectiveTags_ = effectiveTagsBuilder_.build(); + } } private void buildPartial0( @@ -942,6 +1434,16 @@ private void buildPartial0( : consolidatedPolicyBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + folders_.makeImmutable(); + result.folders_ = folders_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.organization_ = organization_; + } result.bitField0_ |= to_bitField0_; } @@ -1042,6 +1544,53 @@ public Builder mergeFrom( } } } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.folders_.isEmpty()) { + if (folders_.isEmpty()) { + folders_ = other.folders_; + bitField0_ |= 0x00000020; + } else { + ensureFoldersIsMutable(); + folders_.addAll(other.folders_); + } + onChanged(); + } + if (!other.getOrganization().isEmpty()) { + organization_ = other.organization_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (effectiveTagsBuilder_ == null) { + if (!other.effectiveTags_.isEmpty()) { + if (effectiveTags_.isEmpty()) { + effectiveTags_ = other.effectiveTags_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureEffectiveTagsIsMutable(); + effectiveTags_.addAll(other.effectiveTags_); + } + onChanged(); + } + } else { + if (!other.effectiveTags_.isEmpty()) { + if (effectiveTagsBuilder_.isEmpty()) { + effectiveTagsBuilder_.dispose(); + effectiveTagsBuilder_ = null; + effectiveTags_ = other.effectiveTags_; + bitField0_ = (bitField0_ & ~0x00000080); + effectiveTagsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEffectiveTagsFieldBuilder() + : null; + } else { + effectiveTagsBuilder_.addAllMessages(other.effectiveTags_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1100,6 +1649,39 @@ public Builder mergeFrom( } break; } // case 34 + case 42: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFoldersIsMutable(); + folders_.add(s); + break; + } // case 50 + case 58: + { + organization_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.cloud.asset.v1.EffectiveTagDetails m = + input.readMessage( + com.google.cloud.asset.v1.EffectiveTagDetails.parser(), + extensionRegistry); + if (effectiveTagsBuilder_ == null) { + ensureEffectiveTagsIsMutable(); + effectiveTags_.add(m); + } else { + effectiveTagsBuilder_.addMessage(m); + } + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2024,6 +2606,790 @@ public com.google.cloud.asset.v1.AnalyzerOrgPolicy.Builder addPolicyBundleBuilde return policyBundleBuilder_; } + private java.lang.Object project_ = ""; + /** + * + * + *
                              +       * The project that this resource belongs to, in the format of
                              +       * projects/{PROJECT_NUMBER}. This field is available when the resource
                              +       * belongs to a project.
                              +       * 
                              + * + * string project = 5; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                              +       * The project that this resource belongs to, in the format of
                              +       * projects/{PROJECT_NUMBER}. This field is available when the resource
                              +       * belongs to a project.
                              +       * 
                              + * + * string project = 5; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                              +       * The project that this resource belongs to, in the format of
                              +       * projects/{PROJECT_NUMBER}. This field is available when the resource
                              +       * belongs to a project.
                              +       * 
                              + * + * string project = 5; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The project that this resource belongs to, in the format of
                              +       * projects/{PROJECT_NUMBER}. This field is available when the resource
                              +       * belongs to a project.
                              +       * 
                              + * + * string project = 5; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                              +       * The project that this resource belongs to, in the format of
                              +       * projects/{PROJECT_NUMBER}. This field is available when the resource
                              +       * belongs to a project.
                              +       * 
                              + * + * string project = 5; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList folders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFoldersIsMutable() { + if (!folders_.isModifiable()) { + folders_ = new com.google.protobuf.LazyStringArrayList(folders_); + } + bitField0_ |= 0x00000020; + } + /** + * + * + *
                              +       * The folder(s) that this resource belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +       * belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 6; + * + * @return A list containing the folders. + */ + public com.google.protobuf.ProtocolStringList getFoldersList() { + folders_.makeImmutable(); + return folders_; + } + /** + * + * + *
                              +       * The folder(s) that this resource belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +       * belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 6; + * + * @return The count of folders. + */ + public int getFoldersCount() { + return folders_.size(); + } + /** + * + * + *
                              +       * The folder(s) that this resource belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +       * belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 6; + * + * @param index The index of the element to return. + * @return The folders at the given index. + */ + public java.lang.String getFolders(int index) { + return folders_.get(index); + } + /** + * + * + *
                              +       * The folder(s) that this resource belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +       * belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 6; + * + * @param index The index of the value to return. + * @return The bytes of the folders at the given index. + */ + public com.google.protobuf.ByteString getFoldersBytes(int index) { + return folders_.getByteString(index); + } + /** + * + * + *
                              +       * The folder(s) that this resource belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +       * belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 6; + * + * @param index The index to set the value at. + * @param value The folders to set. + * @return This builder for chaining. + */ + public Builder setFolders(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFoldersIsMutable(); + folders_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The folder(s) that this resource belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +       * belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 6; + * + * @param value The folders to add. + * @return This builder for chaining. + */ + public Builder addFolders(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFoldersIsMutable(); + folders_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The folder(s) that this resource belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +       * belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 6; + * + * @param values The folders to add. + * @return This builder for chaining. + */ + public Builder addAllFolders(java.lang.Iterable values) { + ensureFoldersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, folders_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The folder(s) that this resource belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +       * belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 6; + * + * @return This builder for chaining. + */ + public Builder clearFolders() { + folders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The folder(s) that this resource belongs to, in the format of
                              +       * folders/{FOLDER_NUMBER}. This field is available when the resource
                              +       * belongs (directly or cascadingly) to one or more folders.
                              +       * 
                              + * + * repeated string folders = 6; + * + * @param value The bytes of the folders to add. + * @return This builder for chaining. + */ + public Builder addFoldersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFoldersIsMutable(); + folders_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object organization_ = ""; + /** + * + * + *
                              +       * The organization that this resource belongs to, in the format of
                              +       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * resource belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 7; + * + * @return The organization. + */ + public java.lang.String getOrganization() { + java.lang.Object ref = organization_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organization_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                              +       * The organization that this resource belongs to, in the format of
                              +       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * resource belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 7; + * + * @return The bytes for organization. + */ + public com.google.protobuf.ByteString getOrganizationBytes() { + java.lang.Object ref = organization_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + organization_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                              +       * The organization that this resource belongs to, in the format of
                              +       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * resource belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 7; + * + * @param value The organization to set. + * @return This builder for chaining. + */ + public Builder setOrganization(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + organization_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The organization that this resource belongs to, in the format of
                              +       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * resource belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 7; + * + * @return This builder for chaining. + */ + public Builder clearOrganization() { + organization_ = getDefaultInstance().getOrganization(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
                              +       * The organization that this resource belongs to, in the format of
                              +       * organizations/{ORGANIZATION_NUMBER}. This field is available when the
                              +       * resource belongs (directly or cascadingly) to an organization.
                              +       * 
                              + * + * string organization = 7; + * + * @param value The bytes for organization to set. + * @return This builder for chaining. + */ + public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + organization_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List effectiveTags_ = + java.util.Collections.emptyList(); + + private void ensureEffectiveTagsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + effectiveTags_ = + new java.util.ArrayList( + effectiveTags_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.EffectiveTagDetails, + com.google.cloud.asset.v1.EffectiveTagDetails.Builder, + com.google.cloud.asset.v1.EffectiveTagDetailsOrBuilder> + effectiveTagsBuilder_; + + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public java.util.List getEffectiveTagsList() { + if (effectiveTagsBuilder_ == null) { + return java.util.Collections.unmodifiableList(effectiveTags_); + } else { + return effectiveTagsBuilder_.getMessageList(); + } + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public int getEffectiveTagsCount() { + if (effectiveTagsBuilder_ == null) { + return effectiveTags_.size(); + } else { + return effectiveTagsBuilder_.getCount(); + } + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public com.google.cloud.asset.v1.EffectiveTagDetails getEffectiveTags(int index) { + if (effectiveTagsBuilder_ == null) { + return effectiveTags_.get(index); + } else { + return effectiveTagsBuilder_.getMessage(index); + } + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public Builder setEffectiveTags( + int index, com.google.cloud.asset.v1.EffectiveTagDetails value) { + if (effectiveTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveTagsIsMutable(); + effectiveTags_.set(index, value); + onChanged(); + } else { + effectiveTagsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public Builder setEffectiveTags( + int index, com.google.cloud.asset.v1.EffectiveTagDetails.Builder builderForValue) { + if (effectiveTagsBuilder_ == null) { + ensureEffectiveTagsIsMutable(); + effectiveTags_.set(index, builderForValue.build()); + onChanged(); + } else { + effectiveTagsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public Builder addEffectiveTags(com.google.cloud.asset.v1.EffectiveTagDetails value) { + if (effectiveTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveTagsIsMutable(); + effectiveTags_.add(value); + onChanged(); + } else { + effectiveTagsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public Builder addEffectiveTags( + int index, com.google.cloud.asset.v1.EffectiveTagDetails value) { + if (effectiveTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEffectiveTagsIsMutable(); + effectiveTags_.add(index, value); + onChanged(); + } else { + effectiveTagsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public Builder addEffectiveTags( + com.google.cloud.asset.v1.EffectiveTagDetails.Builder builderForValue) { + if (effectiveTagsBuilder_ == null) { + ensureEffectiveTagsIsMutable(); + effectiveTags_.add(builderForValue.build()); + onChanged(); + } else { + effectiveTagsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public Builder addEffectiveTags( + int index, com.google.cloud.asset.v1.EffectiveTagDetails.Builder builderForValue) { + if (effectiveTagsBuilder_ == null) { + ensureEffectiveTagsIsMutable(); + effectiveTags_.add(index, builderForValue.build()); + onChanged(); + } else { + effectiveTagsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public Builder addAllEffectiveTags( + java.lang.Iterable values) { + if (effectiveTagsBuilder_ == null) { + ensureEffectiveTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, effectiveTags_); + onChanged(); + } else { + effectiveTagsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public Builder clearEffectiveTags() { + if (effectiveTagsBuilder_ == null) { + effectiveTags_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + effectiveTagsBuilder_.clear(); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public Builder removeEffectiveTags(int index) { + if (effectiveTagsBuilder_ == null) { + ensureEffectiveTagsIsMutable(); + effectiveTags_.remove(index); + onChanged(); + } else { + effectiveTagsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public com.google.cloud.asset.v1.EffectiveTagDetails.Builder getEffectiveTagsBuilder( + int index) { + return getEffectiveTagsFieldBuilder().getBuilder(index); + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public com.google.cloud.asset.v1.EffectiveTagDetailsOrBuilder getEffectiveTagsOrBuilder( + int index) { + if (effectiveTagsBuilder_ == null) { + return effectiveTags_.get(index); + } else { + return effectiveTagsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public java.util.List + getEffectiveTagsOrBuilderList() { + if (effectiveTagsBuilder_ != null) { + return effectiveTagsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(effectiveTags_); + } + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public com.google.cloud.asset.v1.EffectiveTagDetails.Builder addEffectiveTagsBuilder() { + return getEffectiveTagsFieldBuilder() + .addBuilder(com.google.cloud.asset.v1.EffectiveTagDetails.getDefaultInstance()); + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public com.google.cloud.asset.v1.EffectiveTagDetails.Builder addEffectiveTagsBuilder( + int index) { + return getEffectiveTagsFieldBuilder() + .addBuilder(index, com.google.cloud.asset.v1.EffectiveTagDetails.getDefaultInstance()); + } + /** + * + * + *
                              +       * The effective tags on this resource.
                              +       * 
                              + * + * repeated .google.cloud.asset.v1.EffectiveTagDetails effective_tags = 8; + */ + public java.util.List + getEffectiveTagsBuilderList() { + return getEffectiveTagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.EffectiveTagDetails, + com.google.cloud.asset.v1.EffectiveTagDetails.Builder, + com.google.cloud.asset.v1.EffectiveTagDetailsOrBuilder> + getEffectiveTagsFieldBuilder() { + if (effectiveTagsBuilder_ == null) { + effectiveTagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.asset.v1.EffectiveTagDetails, + com.google.cloud.asset.v1.EffectiveTagDetails.Builder, + com.google.cloud.asset.v1.EffectiveTagDetailsOrBuilder>( + effectiveTags_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + effectiveTags_ = null; + } + return effectiveTagsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzerOrgPolicy.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzerOrgPolicy.java index 5ed67a0f9b11..fa3f6863361d 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzerOrgPolicy.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AnalyzerOrgPolicy.java @@ -229,6 +229,68 @@ public interface RuleOrBuilder */ com.google.type.ExprOrBuilder getConditionOrBuilder(); + /** + * + * + *
                              +     * The condition evaluation result for this rule.
                              +     * Only populated if it meets all the following criteria:
                              +     * * there is a
                              +     * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +     * defined for this rule
                              +     * * this rule is within a consolidated_policy
                              +     * * the consolidated_policy is within
                              +     *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +     *   or
                              +     *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +     * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + * + * @return Whether the conditionEvaluation field is set. + */ + boolean hasConditionEvaluation(); + /** + * + * + *
                              +     * The condition evaluation result for this rule.
                              +     * Only populated if it meets all the following criteria:
                              +     * * there is a
                              +     * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +     * defined for this rule
                              +     * * this rule is within a consolidated_policy
                              +     * * the consolidated_policy is within
                              +     *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +     *   or
                              +     *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +     * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + * + * @return The conditionEvaluation. + */ + com.google.cloud.asset.v1.ConditionEvaluation getConditionEvaluation(); + /** + * + * + *
                              +     * The condition evaluation result for this rule.
                              +     * Only populated if it meets all the following criteria:
                              +     * * there is a
                              +     * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +     * defined for this rule
                              +     * * this rule is within a consolidated_policy
                              +     * * the consolidated_policy is within
                              +     *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +     *   or
                              +     *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +     * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + */ + com.google.cloud.asset.v1.ConditionEvaluationOrBuilder getConditionEvaluationOrBuilder(); + com.google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.KindCase getKindCase(); } /** @@ -1647,6 +1709,84 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { return condition_ == null ? com.google.type.Expr.getDefaultInstance() : condition_; } + public static final int CONDITION_EVALUATION_FIELD_NUMBER = 8; + private com.google.cloud.asset.v1.ConditionEvaluation conditionEvaluation_; + /** + * + * + *
                              +     * The condition evaluation result for this rule.
                              +     * Only populated if it meets all the following criteria:
                              +     * * there is a
                              +     * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +     * defined for this rule
                              +     * * this rule is within a consolidated_policy
                              +     * * the consolidated_policy is within
                              +     *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +     *   or
                              +     *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +     * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + * + * @return Whether the conditionEvaluation field is set. + */ + @java.lang.Override + public boolean hasConditionEvaluation() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                              +     * The condition evaluation result for this rule.
                              +     * Only populated if it meets all the following criteria:
                              +     * * there is a
                              +     * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +     * defined for this rule
                              +     * * this rule is within a consolidated_policy
                              +     * * the consolidated_policy is within
                              +     *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +     *   or
                              +     *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +     * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + * + * @return The conditionEvaluation. + */ + @java.lang.Override + public com.google.cloud.asset.v1.ConditionEvaluation getConditionEvaluation() { + return conditionEvaluation_ == null + ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance() + : conditionEvaluation_; + } + /** + * + * + *
                              +     * The condition evaluation result for this rule.
                              +     * Only populated if it meets all the following criteria:
                              +     * * there is a
                              +     * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +     * defined for this rule
                              +     * * this rule is within a consolidated_policy
                              +     * * the consolidated_policy is within
                              +     *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +     *   or
                              +     *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +     * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + */ + @java.lang.Override + public com.google.cloud.asset.v1.ConditionEvaluationOrBuilder + getConditionEvaluationOrBuilder() { + return conditionEvaluation_ == null + ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance() + : conditionEvaluation_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1677,6 +1817,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(7, getCondition()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getConditionEvaluation()); + } getUnknownFields().writeTo(output); } @@ -1709,6 +1852,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCondition()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getConditionEvaluation()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1729,6 +1876,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCondition()) { if (!getCondition().equals(other.getCondition())) return false; } + if (hasConditionEvaluation() != other.hasConditionEvaluation()) return false; + if (hasConditionEvaluation()) { + if (!getConditionEvaluation().equals(other.getConditionEvaluation())) return false; + } if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { case 3: @@ -1761,6 +1912,10 @@ public int hashCode() { hash = (37 * hash) + CONDITION_FIELD_NUMBER; hash = (53 * hash) + getCondition().hashCode(); } + if (hasConditionEvaluation()) { + hash = (37 * hash) + CONDITION_EVALUATION_FIELD_NUMBER; + hash = (53 * hash) + getConditionEvaluation().hashCode(); + } switch (kindCase_) { case 3: hash = (37 * hash) + VALUES_FIELD_NUMBER; @@ -1927,6 +2082,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConditionFieldBuilder(); + getConditionEvaluationFieldBuilder(); } } @@ -1942,6 +2098,11 @@ public Builder clear() { conditionBuilder_.dispose(); conditionBuilder_ = null; } + conditionEvaluation_ = null; + if (conditionEvaluationBuilder_ != null) { + conditionEvaluationBuilder_.dispose(); + conditionEvaluationBuilder_ = null; + } kindCase_ = 0; kind_ = null; return this; @@ -1986,6 +2147,13 @@ private void buildPartial0(com.google.cloud.asset.v1.AnalyzerOrgPolicy.Rule resu result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.conditionEvaluation_ = + conditionEvaluationBuilder_ == null + ? conditionEvaluation_ + : conditionEvaluationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -2048,6 +2216,9 @@ public Builder mergeFrom(com.google.cloud.asset.v1.AnalyzerOrgPolicy.Rule other) if (other.hasCondition()) { mergeCondition(other.getCondition()); } + if (other.hasConditionEvaluation()) { + mergeConditionEvaluation(other.getConditionEvaluation()); + } switch (other.getKindCase()) { case VALUES: { @@ -2130,6 +2301,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 58 + case 66: + { + input.readMessage( + getConditionEvaluationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2790,6 +2968,275 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { return conditionBuilder_; } + private com.google.cloud.asset.v1.ConditionEvaluation conditionEvaluation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.ConditionEvaluation, + com.google.cloud.asset.v1.ConditionEvaluation.Builder, + com.google.cloud.asset.v1.ConditionEvaluationOrBuilder> + conditionEvaluationBuilder_; + /** + * + * + *
                              +       * The condition evaluation result for this rule.
                              +       * Only populated if it meets all the following criteria:
                              +       * * there is a
                              +       * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +       * defined for this rule
                              +       * * this rule is within a consolidated_policy
                              +       * * the consolidated_policy is within
                              +       *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +       *   or
                              +       *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +       * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + * + * @return Whether the conditionEvaluation field is set. + */ + public boolean hasConditionEvaluation() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
                              +       * The condition evaluation result for this rule.
                              +       * Only populated if it meets all the following criteria:
                              +       * * there is a
                              +       * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +       * defined for this rule
                              +       * * this rule is within a consolidated_policy
                              +       * * the consolidated_policy is within
                              +       *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +       *   or
                              +       *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +       * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + * + * @return The conditionEvaluation. + */ + public com.google.cloud.asset.v1.ConditionEvaluation getConditionEvaluation() { + if (conditionEvaluationBuilder_ == null) { + return conditionEvaluation_ == null + ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance() + : conditionEvaluation_; + } else { + return conditionEvaluationBuilder_.getMessage(); + } + } + /** + * + * + *
                              +       * The condition evaluation result for this rule.
                              +       * Only populated if it meets all the following criteria:
                              +       * * there is a
                              +       * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +       * defined for this rule
                              +       * * this rule is within a consolidated_policy
                              +       * * the consolidated_policy is within
                              +       *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +       *   or
                              +       *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +       * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + */ + public Builder setConditionEvaluation(com.google.cloud.asset.v1.ConditionEvaluation value) { + if (conditionEvaluationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conditionEvaluation_ = value; + } else { + conditionEvaluationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The condition evaluation result for this rule.
                              +       * Only populated if it meets all the following criteria:
                              +       * * there is a
                              +       * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +       * defined for this rule
                              +       * * this rule is within a consolidated_policy
                              +       * * the consolidated_policy is within
                              +       *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +       *   or
                              +       *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +       * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + */ + public Builder setConditionEvaluation( + com.google.cloud.asset.v1.ConditionEvaluation.Builder builderForValue) { + if (conditionEvaluationBuilder_ == null) { + conditionEvaluation_ = builderForValue.build(); + } else { + conditionEvaluationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                              +       * The condition evaluation result for this rule.
                              +       * Only populated if it meets all the following criteria:
                              +       * * there is a
                              +       * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +       * defined for this rule
                              +       * * this rule is within a consolidated_policy
                              +       * * the consolidated_policy is within
                              +       *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +       *   or
                              +       *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +       * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + */ + public Builder mergeConditionEvaluation(com.google.cloud.asset.v1.ConditionEvaluation value) { + if (conditionEvaluationBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && conditionEvaluation_ != null + && conditionEvaluation_ + != com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance()) { + getConditionEvaluationBuilder().mergeFrom(value); + } else { + conditionEvaluation_ = value; + } + } else { + conditionEvaluationBuilder_.mergeFrom(value); + } + if (conditionEvaluation_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
                              +       * The condition evaluation result for this rule.
                              +       * Only populated if it meets all the following criteria:
                              +       * * there is a
                              +       * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +       * defined for this rule
                              +       * * this rule is within a consolidated_policy
                              +       * * the consolidated_policy is within
                              +       *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +       *   or
                              +       *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +       * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + */ + public Builder clearConditionEvaluation() { + bitField0_ = (bitField0_ & ~0x00000020); + conditionEvaluation_ = null; + if (conditionEvaluationBuilder_ != null) { + conditionEvaluationBuilder_.dispose(); + conditionEvaluationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                              +       * The condition evaluation result for this rule.
                              +       * Only populated if it meets all the following criteria:
                              +       * * there is a
                              +       * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +       * defined for this rule
                              +       * * this rule is within a consolidated_policy
                              +       * * the consolidated_policy is within
                              +       *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +       *   or
                              +       *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +       * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + */ + public com.google.cloud.asset.v1.ConditionEvaluation.Builder getConditionEvaluationBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getConditionEvaluationFieldBuilder().getBuilder(); + } + /** + * + * + *
                              +       * The condition evaluation result for this rule.
                              +       * Only populated if it meets all the following criteria:
                              +       * * there is a
                              +       * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +       * defined for this rule
                              +       * * this rule is within a consolidated_policy
                              +       * * the consolidated_policy is within
                              +       *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +       *   or
                              +       *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +       * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + */ + public com.google.cloud.asset.v1.ConditionEvaluationOrBuilder + getConditionEvaluationOrBuilder() { + if (conditionEvaluationBuilder_ != null) { + return conditionEvaluationBuilder_.getMessageOrBuilder(); + } else { + return conditionEvaluation_ == null + ? com.google.cloud.asset.v1.ConditionEvaluation.getDefaultInstance() + : conditionEvaluation_; + } + } + /** + * + * + *
                              +       * The condition evaluation result for this rule.
                              +       * Only populated if it meets all the following criteria:
                              +       * * there is a
                              +       * [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition]
                              +       * defined for this rule
                              +       * * this rule is within a consolidated_policy
                              +       * * the consolidated_policy is within
                              +       *   [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer]
                              +       *   or
                              +       *   [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource]
                              +       * 
                              + * + * .google.cloud.asset.v1.ConditionEvaluation condition_evaluation = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.ConditionEvaluation, + com.google.cloud.asset.v1.ConditionEvaluation.Builder, + com.google.cloud.asset.v1.ConditionEvaluationOrBuilder> + getConditionEvaluationFieldBuilder() { + if (conditionEvaluationBuilder_ == null) { + conditionEvaluationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.asset.v1.ConditionEvaluation, + com.google.cloud.asset.v1.ConditionEvaluation.Builder, + com.google.cloud.asset.v1.ConditionEvaluationOrBuilder>( + getConditionEvaluation(), getParentForChildren(), isClean()); + conditionEvaluation_ = null; + } + return conditionEvaluationBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java index 2b15112327b2..49c91dfaeb57 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java +++ b/java-asset/proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/AssetServiceProto.java @@ -638,218 +638,227 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tchGetEffectiveIamPoliciesResponse.Effec" + "tiveIamPolicy.PolicyInfo\032N\n\nPolicyInfo\022\031" + "\n\021attached_resource\030\001 \001(\t\022%\n\006policy\030\002 \001(" - + "\0132\025.google.iam.v1.Policy\"\262\003\n\021AnalyzerOrg" + + "\0132\025.google.iam.v1.Policy\"\374\003\n\021AnalyzerOrg" + "Policy\022\031\n\021attached_resource\030\001 \001(\t\022\030\n\020app" + "lied_resource\030\005 \001(\t\022<\n\005rules\030\002 \003(\0132-.goo" + "gle.cloud.asset.v1.AnalyzerOrgPolicy.Rul" + "e\022\033\n\023inherit_from_parent\030\003 \001(\010\022\r\n\005reset\030" - + "\004 \001(\010\032\375\001\n\004Rule\022L\n\006values\030\003 \001(\0132:.google." + + "\004 \001(\010\032\307\002\n\004Rule\022L\n\006values\030\003 \001(\0132:.google." + "cloud.asset.v1.AnalyzerOrgPolicy.Rule.St" + "ringValuesH\000\022\023\n\tallow_all\030\004 \001(\010H\000\022\022\n\010den" + "y_all\030\005 \001(\010H\000\022\021\n\007enforce\030\006 \001(\010H\000\022$\n\tcond" - + "ition\030\007 \001(\0132\021.google.type.Expr\032=\n\014String" - + "Values\022\026\n\016allowed_values\030\001 \003(\t\022\025\n\rdenied" - + "_values\030\002 \003(\tB\006\n\004kind\"\221\n\n\033AnalyzerOrgPol" - + "icyConstraint\022b\n\031google_defined_constrai" - + "nt\030\001 \001(\0132=.google.cloud.asset.v1.Analyze" - + "rOrgPolicyConstraint.ConstraintH\000\022`\n\021cus" - + "tom_constraint\030\002 \001(\0132C.google.cloud.asse" - + "t.v1.AnalyzerOrgPolicyConstraint.CustomC" - + "onstraintH\000\032\277\004\n\nConstraint\022\014\n\004name\030\001 \001(\t" - + "\022\024\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 " - + "\001(\t\022k\n\022constraint_default\030\004 \001(\0162O.google" - + ".cloud.asset.v1.AnalyzerOrgPolicyConstra" - + "int.Constraint.ConstraintDefault\022g\n\017list" - + "_constraint\030\005 \001(\0132L.google.cloud.asset.v" - + "1.AnalyzerOrgPolicyConstraint.Constraint" - + ".ListConstraintH\000\022m\n\022boolean_constraint\030" - + "\006 \001(\0132O.google.cloud.asset.v1.AnalyzerOr" - + "gPolicyConstraint.Constraint.BooleanCons" - + "traintH\000\032=\n\016ListConstraint\022\023\n\013supports_i" - + "n\030\001 \001(\010\022\026\n\016supports_under\030\002 \001(\010\032\023\n\021Boole" - + "anConstraint\"L\n\021ConstraintDefault\022\"\n\036CON" - + "STRAINT_DEFAULT_UNSPECIFIED\020\000\022\t\n\005ALLOW\020\001" - + "\022\010\n\004DENY\020\002B\021\n\017constraint_type\032\320\003\n\020Custom" - + "Constraint\022\014\n\004name\030\001 \001(\t\022\026\n\016resource_typ" - + "es\030\002 \003(\t\022d\n\014method_types\030\003 \003(\0162N.google." - + "cloud.asset.v1.AnalyzerOrgPolicyConstrai" - + "nt.CustomConstraint.MethodType\022\021\n\tcondit" - + "ion\030\004 \001(\t\022c\n\013action_type\030\005 \001(\0162N.google." - + "cloud.asset.v1.AnalyzerOrgPolicyConstrai" - + "nt.CustomConstraint.ActionType\022\024\n\014displa" - + "y_name\030\006 \001(\t\022\023\n\013description\030\007 \001(\t\"M\n\nMet" - + "hodType\022\033\n\027METHOD_TYPE_UNSPECIFIED\020\000\022\n\n\006" - + "CREATE\020\001\022\n\n\006UPDATE\020\002\022\n\n\006DELETE\020\003\">\n\nActi" - + "onType\022\033\n\027ACTION_TYPE_UNSPECIFIED\020\000\022\t\n\005A" - + "LLOW\020\001\022\010\n\004DENY\020\002B\027\n\025constraint_definitio" - + "n\"\222\001\n\031AnalyzeOrgPoliciesRequest\022\022\n\005scope" - + "\030\001 \001(\tB\003\340A\002\022\027\n\nconstraint\030\002 \001(\tB\003\340A\002\022\016\n\006" - + "filter\030\003 \001(\t\022\026\n\tpage_size\030\004 \001(\005H\000\210\001\001\022\022\n\n" - + "page_token\030\005 \001(\tB\014\n\n_page_size\"\370\002\n\032Analy" - + "zeOrgPoliciesResponse\022]\n\022org_policy_resu" - + "lts\030\001 \003(\0132A.google.cloud.asset.v1.Analyz" - + "eOrgPoliciesResponse.OrgPolicyResult\022F\n\n" - + "constraint\030\002 \001(\01322.google.cloud.asset.v1" - + ".AnalyzerOrgPolicyConstraint\022\027\n\017next_pag" - + "e_token\030\003 \001(\t\032\231\001\n\017OrgPolicyResult\022E\n\023con" - + "solidated_policy\030\001 \001(\0132(.google.cloud.as" - + "set.v1.AnalyzerOrgPolicy\022?\n\rpolicy_bundl" - + "e\030\002 \003(\0132(.google.cloud.asset.v1.Analyzer" - + "OrgPolicy\"\242\001\n)AnalyzeOrgPolicyGovernedCo" - + "ntainersRequest\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\027\n\nc" - + "onstraint\030\002 \001(\tB\003\340A\002\022\016\n\006filter\030\003 \001(\t\022\026\n\t" - + "page_size\030\004 \001(\005H\000\210\001\001\022\022\n\npage_token\030\005 \001(\t" - + "B\014\n\n_page_size\"\311\003\n*AnalyzeOrgPolicyGover" - + "nedContainersResponse\022p\n\023governed_contai" - + "ners\030\001 \003(\0132S.google.cloud.asset.v1.Analy" - + "zeOrgPolicyGovernedContainersResponse.Go" - + "vernedContainer\022F\n\nconstraint\030\002 \001(\01322.go" - + "ogle.cloud.asset.v1.AnalyzerOrgPolicyCon" - + "straint\022\027\n\017next_page_token\030\003 \001(\t\032\307\001\n\021Gov" - + "ernedContainer\022\032\n\022full_resource_name\030\001 \001" - + "(\t\022\016\n\006parent\030\002 \001(\t\022E\n\023consolidated_polic" - + "y\030\003 \001(\0132(.google.cloud.asset.v1.Analyzer" - + "OrgPolicy\022?\n\rpolicy_bundle\030\004 \003(\0132(.googl" - + "e.cloud.asset.v1.AnalyzerOrgPolicy\"\236\001\n%A" - + "nalyzeOrgPolicyGovernedAssetsRequest\022\022\n\005" - + "scope\030\001 \001(\tB\003\340A\002\022\027\n\nconstraint\030\002 \001(\tB\003\340A" - + "\002\022\016\n\006filter\030\003 \001(\t\022\026\n\tpage_size\030\004 \001(\005H\000\210\001" - + "\001\022\022\n\npage_token\030\005 \001(\tB\014\n\n_page_size\"\200\007\n&" - + "AnalyzeOrgPolicyGovernedAssetsResponse\022d" - + "\n\017governed_assets\030\001 \003(\0132K.google.cloud.a" - + "sset.v1.AnalyzeOrgPolicyGovernedAssetsRe" - + "sponse.GovernedAsset\022F\n\nconstraint\030\002 \001(\013" - + "22.google.cloud.asset.v1.AnalyzerOrgPoli" - + "cyConstraint\022\027\n\017next_page_token\030\003 \001(\t\032v\n" - + "\020GovernedResource\022\032\n\022full_resource_name\030" - + "\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\017\n\007project\030\005 \001(\t\022\017" - + "\n\007folders\030\006 \003(\t\022\024\n\014organization\030\007 \001(\t\032\215\001" - + "\n\021GovernedIamPolicy\022\031\n\021attached_resource" - + "\030\001 \001(\t\022%\n\006policy\030\002 \001(\0132\025.google.iam.v1.P" - + "olicy\022\017\n\007project\030\005 \001(\t\022\017\n\007folders\030\006 \003(\t\022" - + "\024\n\014organization\030\007 \001(\t\032\206\003\n\rGovernedAsset\022" - + "k\n\021governed_resource\030\001 \001(\0132N.google.clou" - + "d.asset.v1.AnalyzeOrgPolicyGovernedAsset" - + "sResponse.GovernedResourceH\000\022n\n\023governed" - + "_iam_policy\030\002 \001(\0132O.google.cloud.asset.v" - + "1.AnalyzeOrgPolicyGovernedAssetsResponse" - + ".GovernedIamPolicyH\000\022E\n\023consolidated_pol" - + "icy\030\003 \001(\0132(.google.cloud.asset.v1.Analyz" - + "erOrgPolicy\022?\n\rpolicy_bundle\030\004 \003(\0132(.goo" - + "gle.cloud.asset.v1.AnalyzerOrgPolicyB\020\n\016" - + "governed_asset*\220\001\n\013ContentType\022\034\n\030CONTEN" - + "T_TYPE_UNSPECIFIED\020\000\022\014\n\010RESOURCE\020\001\022\016\n\nIA" - + "M_POLICY\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACCESS_POL" - + "ICY\020\005\022\020\n\014OS_INVENTORY\020\006\022\020\n\014RELATIONSHIP\020" - + "\0072\321 \n\014AssetService\022\336\001\n\014ExportAssets\022*.go" - + "ogle.cloud.asset.v1.ExportAssetsRequest\032" - + "\035.google.longrunning.Operation\"\202\001\312AW\n*go" - + "ogle.cloud.asset.v1.ExportAssetsResponse" - + "\022)google.cloud.asset.v1.ExportAssetsRequ" - + "est\202\323\344\223\002\"\"\035/v1/{parent=*/*}:exportAssets" - + ":\001*\022\213\001\n\nListAssets\022(.google.cloud.asset." - + "v1.ListAssetsRequest\032).google.cloud.asse" - + "t.v1.ListAssetsResponse\"(\332A\006parent\202\323\344\223\002\031" - + "\022\027/v1/{parent=*/*}/assets\022\262\001\n\025BatchGetAs" - + "setsHistory\0223.google.cloud.asset.v1.Batc" - + "hGetAssetsHistoryRequest\0324.google.cloud." - + "asset.v1.BatchGetAssetsHistoryResponse\"." - + "\202\323\344\223\002(\022&/v1/{parent=*/*}:batchGetAssetsH" - + "istory\022\177\n\nCreateFeed\022(.google.cloud.asse" - + "t.v1.CreateFeedRequest\032\033.google.cloud.as" - + "set.v1.Feed\"*\332A\006parent\202\323\344\223\002\033\"\026/v1/{paren" - + "t=*/*}/feeds:\001*\022t\n\007GetFeed\022%.google.clou" - + "d.asset.v1.GetFeedRequest\032\033.google.cloud" - + ".asset.v1.Feed\"%\332A\004name\202\323\344\223\002\030\022\026/v1/{name" - + "=*/*/feeds/*}\022\207\001\n\tListFeeds\022\'.google.clo" - + "ud.asset.v1.ListFeedsRequest\032(.google.cl" - + "oud.asset.v1.ListFeedsResponse\"\'\332A\006paren" - + "t\202\323\344\223\002\030\022\026/v1/{parent=*/*}/feeds\022\202\001\n\nUpda" - + "teFeed\022(.google.cloud.asset.v1.UpdateFee" - + "dRequest\032\033.google.cloud.asset.v1.Feed\"-\332" - + "A\004feed\202\323\344\223\002 2\033/v1/{feed.name=*/*/feeds/*" - + "}:\001*\022u\n\nDeleteFeed\022(.google.cloud.asset." - + "v1.DeleteFeedRequest\032\026.google.protobuf.E" - + "mpty\"%\332A\004name\202\323\344\223\002\030*\026/v1/{name=*/*/feeds" - + "/*}\022\277\001\n\022SearchAllResources\0220.google.clou" - + "d.asset.v1.SearchAllResourcesRequest\0321.g", - "oogle.cloud.asset.v1.SearchAllResourcesR" - + "esponse\"D\332A\027scope,query,asset_types\202\323\344\223\002" - + "$\022\"/v1/{scope=*/*}:searchAllResources\022\273\001" - + "\n\024SearchAllIamPolicies\0222.google.cloud.as" - + "set.v1.SearchAllIamPoliciesRequest\0323.goo" - + "gle.cloud.asset.v1.SearchAllIamPoliciesR" - + "esponse\":\332A\013scope,query\202\323\344\223\002&\022$/v1/{scop" - + "e=*/*}:searchAllIamPolicies\022\254\001\n\020AnalyzeI" - + "amPolicy\022..google.cloud.asset.v1.Analyze" - + "IamPolicyRequest\032/.google.cloud.asset.v1" - + ".AnalyzeIamPolicyResponse\"7\202\323\344\223\0021\022//v1/{" - + "analysis_query.scope=*/*}:analyzeIamPoli" - + "cy\022\270\002\n\033AnalyzeIamPolicyLongrunning\0229.goo" - + "gle.cloud.asset.v1.AnalyzeIamPolicyLongr" - + "unningRequest\032\035.google.longrunning.Opera" - + "tion\"\276\001\312Av\n9google.cloud.asset.v1.Analyz" - + "eIamPolicyLongrunningResponse\0229google.cl" - + "oud.asset.v1.AnalyzeIamPolicyLongrunning" - + "Metadata\202\323\344\223\002?\":/v1/{analysis_query.scop" - + "e=*/*}:analyzeIamPolicyLongrunning:\001*\022\214\001" - + "\n\013AnalyzeMove\022).google.cloud.asset.v1.An" - + "alyzeMoveRequest\032*.google.cloud.asset.v1" - + ".AnalyzeMoveResponse\"&\202\323\344\223\002 \022\036/v1/{resou" - + "rce=*/*}:analyzeMove\022\215\001\n\013QueryAssets\022).g" - + "oogle.cloud.asset.v1.QueryAssetsRequest\032" - + "*.google.cloud.asset.v1.QueryAssetsRespo" - + "nse\"\'\202\323\344\223\002!\"\034/v1/{parent=*/*}:queryAsset" - + "s:\001*\022\275\001\n\020CreateSavedQuery\022..google.cloud" - + ".asset.v1.CreateSavedQueryRequest\032!.goog" - + "le.cloud.asset.v1.SavedQuery\"V\332A!parent," - + "saved_query,saved_query_id\202\323\344\223\002,\"\035/v1/{p" - + "arent=*/*}/savedQueries:\013saved_query\022\215\001\n" - + "\rGetSavedQuery\022+.google.cloud.asset.v1.G" - + "etSavedQueryRequest\032!.google.cloud.asset" - + ".v1.SavedQuery\",\332A\004name\202\323\344\223\002\037\022\035/v1/{name" - + "=*/*/savedQueries/*}\022\243\001\n\020ListSavedQuerie" - + "s\022..google.cloud.asset.v1.ListSavedQueri" - + "esRequest\032/.google.cloud.asset.v1.ListSa" - + "vedQueriesResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v1" - + "/{parent=*/*}/savedQueries\022\277\001\n\020UpdateSav" - + "edQuery\022..google.cloud.asset.v1.UpdateSa" - + "vedQueryRequest\032!.google.cloud.asset.v1." - + "SavedQuery\"X\332A\027saved_query,update_mask\202\323" - + "\344\223\00282)/v1/{saved_query.name=*/*/savedQue" - + "ries/*}:\013saved_query\022\210\001\n\020DeleteSavedQuer" - + "y\022..google.cloud.asset.v1.DeleteSavedQue" - + "ryRequest\032\026.google.protobuf.Empty\",\332A\004na" - + "me\202\323\344\223\002\037*\035/v1/{name=*/*/savedQueries/*}\022" - + "\316\001\n\034BatchGetEffectiveIamPolicies\022:.googl" - + "e.cloud.asset.v1.BatchGetEffectiveIamPol" - + "iciesRequest\032;.google.cloud.asset.v1.Bat" - + "chGetEffectiveIamPoliciesResponse\"5\202\323\344\223\002" - + "/\022-/v1/{scope=*/*}/effectiveIamPolicies:" - + "batchGet\022\277\001\n\022AnalyzeOrgPolicies\0220.google" - + ".cloud.asset.v1.AnalyzeOrgPoliciesReques" - + "t\0321.google.cloud.asset.v1.AnalyzeOrgPoli" - + "ciesResponse\"D\332A\027scope,constraint,filter" - + "\202\323\344\223\002$\022\"/v1/{scope=*/*}:analyzeOrgPolici" - + "es\022\377\001\n\"AnalyzeOrgPolicyGovernedContainer" - + "s\022@.google.cloud.asset.v1.AnalyzeOrgPoli" - + "cyGovernedContainersRequest\032A.google.clo" - + "ud.asset.v1.AnalyzeOrgPolicyGovernedCont" - + "ainersResponse\"T\332A\027scope,constraint,filt" - + "er\202\323\344\223\0024\0222/v1/{scope=*/*}:analyzeOrgPoli" - + "cyGovernedContainers\022\357\001\n\036AnalyzeOrgPolic" - + "yGovernedAssets\022<.google.cloud.asset.v1." - + "AnalyzeOrgPolicyGovernedAssetsRequest\032=." + + "ition\030\007 \001(\0132\021.google.type.Expr\022H\n\024condit" + + "ion_evaluation\030\010 \001(\0132*.google.cloud.asse" + + "t.v1.ConditionEvaluation\032=\n\014StringValues" + + "\022\026\n\016allowed_values\030\001 \003(\t\022\025\n\rdenied_value" + + "s\030\002 \003(\tB\006\n\004kind\"\221\n\n\033AnalyzerOrgPolicyCon" + + "straint\022b\n\031google_defined_constraint\030\001 \001" + + "(\0132=.google.cloud.asset.v1.AnalyzerOrgPo" + + "licyConstraint.ConstraintH\000\022`\n\021custom_co" + + "nstraint\030\002 \001(\0132C.google.cloud.asset.v1.A" + + "nalyzerOrgPolicyConstraint.CustomConstra" + + "intH\000\032\277\004\n\nConstraint\022\014\n\004name\030\001 \001(\t\022\024\n\014di" + + "splay_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022k\n" + + "\022constraint_default\030\004 \001(\0162O.google.cloud" + + ".asset.v1.AnalyzerOrgPolicyConstraint.Co" + + "nstraint.ConstraintDefault\022g\n\017list_const" + + "raint\030\005 \001(\0132L.google.cloud.asset.v1.Anal" + + "yzerOrgPolicyConstraint.Constraint.ListC" + + "onstraintH\000\022m\n\022boolean_constraint\030\006 \001(\0132" + + "O.google.cloud.asset.v1.AnalyzerOrgPolic" + + "yConstraint.Constraint.BooleanConstraint" + + "H\000\032=\n\016ListConstraint\022\023\n\013supports_in\030\001 \001(" + + "\010\022\026\n\016supports_under\030\002 \001(\010\032\023\n\021BooleanCons" + + "traint\"L\n\021ConstraintDefault\022\"\n\036CONSTRAIN" + + "T_DEFAULT_UNSPECIFIED\020\000\022\t\n\005ALLOW\020\001\022\010\n\004DE" + + "NY\020\002B\021\n\017constraint_type\032\320\003\n\020CustomConstr" + + "aint\022\014\n\004name\030\001 \001(\t\022\026\n\016resource_types\030\002 \003" + + "(\t\022d\n\014method_types\030\003 \003(\0162N.google.cloud." + + "asset.v1.AnalyzerOrgPolicyConstraint.Cus" + + "tomConstraint.MethodType\022\021\n\tcondition\030\004 " + + "\001(\t\022c\n\013action_type\030\005 \001(\0162N.google.cloud." + + "asset.v1.AnalyzerOrgPolicyConstraint.Cus" + + "tomConstraint.ActionType\022\024\n\014display_name" + + "\030\006 \001(\t\022\023\n\013description\030\007 \001(\t\"M\n\nMethodTyp" + + "e\022\033\n\027METHOD_TYPE_UNSPECIFIED\020\000\022\n\n\006CREATE" + + "\020\001\022\n\n\006UPDATE\020\002\022\n\n\006DELETE\020\003\">\n\nActionType" + + "\022\033\n\027ACTION_TYPE_UNSPECIFIED\020\000\022\t\n\005ALLOW\020\001" + + "\022\010\n\004DENY\020\002B\027\n\025constraint_definition\"\222\001\n\031" + + "AnalyzeOrgPoliciesRequest\022\022\n\005scope\030\001 \001(\t" + + "B\003\340A\002\022\027\n\nconstraint\030\002 \001(\tB\003\340A\002\022\016\n\006filter" + + "\030\003 \001(\t\022\026\n\tpage_size\030\004 \001(\005H\000\210\001\001\022\022\n\npage_t" + + "oken\030\005 \001(\tB\014\n\n_page_size\"\260\003\n\032AnalyzeOrgP" + + "oliciesResponse\022]\n\022org_policy_results\030\001 " + + "\003(\0132A.google.cloud.asset.v1.AnalyzeOrgPo" + + "liciesResponse.OrgPolicyResult\022F\n\nconstr" + + "aint\030\002 \001(\01322.google.cloud.asset.v1.Analy" + + "zerOrgPolicyConstraint\022\027\n\017next_page_toke" + + "n\030\003 \001(\t\032\321\001\n\017OrgPolicyResult\022E\n\023consolida" + + "ted_policy\030\001 \001(\0132(.google.cloud.asset.v1" + + ".AnalyzerOrgPolicy\022?\n\rpolicy_bundle\030\002 \003(" + + "\0132(.google.cloud.asset.v1.AnalyzerOrgPol" + + "icy\022\017\n\007project\030\003 \001(\t\022\017\n\007folders\030\004 \003(\t\022\024\n" + + "\014organization\030\005 \001(\t\"\242\001\n)AnalyzeOrgPolicy" + + "GovernedContainersRequest\022\022\n\005scope\030\001 \001(\t" + + "B\003\340A\002\022\027\n\nconstraint\030\002 \001(\tB\003\340A\002\022\016\n\006filter" + + "\030\003 \001(\t\022\026\n\tpage_size\030\004 \001(\005H\000\210\001\001\022\022\n\npage_t" + + "oken\030\005 \001(\tB\014\n\n_page_size\"\305\004\n*AnalyzeOrgP" + + "olicyGovernedContainersResponse\022p\n\023gover" + + "ned_containers\030\001 \003(\0132S.google.cloud.asse" + + "t.v1.AnalyzeOrgPolicyGovernedContainersR" + + "esponse.GovernedContainer\022F\n\nconstraint\030" + + "\002 \001(\01322.google.cloud.asset.v1.AnalyzerOr" + + "gPolicyConstraint\022\027\n\017next_page_token\030\003 \001" + + "(\t\032\303\002\n\021GovernedContainer\022\032\n\022full_resourc" + + "e_name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022E\n\023consolid" + + "ated_policy\030\003 \001(\0132(.google.cloud.asset.v" + + "1.AnalyzerOrgPolicy\022?\n\rpolicy_bundle\030\004 \003" + + "(\0132(.google.cloud.asset.v1.AnalyzerOrgPo" + + "licy\022\017\n\007project\030\005 \001(\t\022\017\n\007folders\030\006 \003(\t\022\024" + + "\n\014organization\030\007 \001(\t\022B\n\016effective_tags\030\010" + + " \003(\0132*.google.cloud.asset.v1.EffectiveTa" + + "gDetails\"\236\001\n%AnalyzeOrgPolicyGovernedAss" + + "etsRequest\022\022\n\005scope\030\001 \001(\tB\003\340A\002\022\027\n\nconstr" + + "aint\030\002 \001(\tB\003\340A\002\022\016\n\006filter\030\003 \001(\t\022\026\n\tpage_" + + "size\030\004 \001(\005H\000\210\001\001\022\022\n\npage_token\030\005 \001(\tB\014\n\n_" + + "page_size\"\355\007\n&AnalyzeOrgPolicyGovernedAs" + + "setsResponse\022d\n\017governed_assets\030\001 \003(\0132K." + "google.cloud.asset.v1.AnalyzeOrgPolicyGo" - + "vernedAssetsResponse\"P\332A\027scope,constrain" - + "t,filter\202\323\344\223\0020\022./v1/{scope=*/*}:analyzeO" - + "rgPolicyGovernedAssets\032M\312A\031cloudasset.go" - + "ogleapis.com\322A.https://www.googleapis.co" - + "m/auth/cloud-platformB\221\001\n\031com.google.clo" - + "ud.asset.v1B\021AssetServiceProtoP\001Z/cloud." - + "google.com/go/asset/apiv1/assetpb;assetp" - + "b\252\002\025Google.Cloud.Asset.V1\312\002\025Google\\Cloud" - + "\\Asset\\V1b\006proto3" + + "vernedAssetsResponse.GovernedAsset\022F\n\nco" + + "nstraint\030\002 \001(\01322.google.cloud.asset.v1.A" + + "nalyzerOrgPolicyConstraint\022\027\n\017next_page_" + + "token\030\003 \001(\t\032\316\001\n\020GovernedResource\022\032\n\022full" + + "_resource_name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\017\n\007" + + "project\030\005 \001(\t\022\017\n\007folders\030\006 \003(\t\022\024\n\014organi" + + "zation\030\007 \001(\t\022\022\n\nasset_type\030\010 \001(\t\022B\n\016effe" + + "ctive_tags\030\t \003(\0132*.google.cloud.asset.v1" + + ".EffectiveTagDetails\032\241\001\n\021GovernedIamPoli" + + "cy\022\031\n\021attached_resource\030\001 \001(\t\022%\n\006policy\030" + + "\002 \001(\0132\025.google.iam.v1.Policy\022\017\n\007project\030" + + "\005 \001(\t\022\017\n\007folders\030\006 \003(\t\022\024\n\014organization\030\007" + + " \001(\t\022\022\n\nasset_type\030\010 \001(\t\032\206\003\n\rGovernedAss" + + "et\022k\n\021governed_resource\030\001 \001(\0132N.google.c" + + "loud.asset.v1.AnalyzeOrgPolicyGovernedAs" + + "setsResponse.GovernedResourceH\000\022n\n\023gover" + + "ned_iam_policy\030\002 \001(\0132O.google.cloud.asse" + + "t.v1.AnalyzeOrgPolicyGovernedAssetsRespo" + + "nse.GovernedIamPolicyH\000\022E\n\023consolidated_" + + "policy\030\003 \001(\0132(.google.cloud.asset.v1.Ana" + + "lyzerOrgPolicy\022?\n\rpolicy_bundle\030\004 \003(\0132(." + + "google.cloud.asset.v1.AnalyzerOrgPolicyB" + + "\020\n\016governed_asset*\220\001\n\013ContentType\022\034\n\030CON" + + "TENT_TYPE_UNSPECIFIED\020\000\022\014\n\010RESOURCE\020\001\022\016\n" + + "\nIAM_POLICY\020\002\022\016\n\nORG_POLICY\020\004\022\021\n\rACCESS_" + + "POLICY\020\005\022\020\n\014OS_INVENTORY\020\006\022\020\n\014RELATIONSH" + + "IP\020\0072\321 \n\014AssetService\022\336\001\n\014ExportAssets\022*" + + ".google.cloud.asset.v1.ExportAssetsReque" + + "st\032\035.google.longrunning.Operation\"\202\001\312AW\n" + + "*google.cloud.asset.v1.ExportAssetsRespo" + + "nse\022)google.cloud.asset.v1.ExportAssetsR" + + "equest\202\323\344\223\002\"\"\035/v1/{parent=*/*}:exportAss" + + "ets:\001*\022\213\001\n\nListAssets\022(.google.cloud.ass" + + "et.v1.ListAssetsRequest\032).google.cloud.a" + + "sset.v1.ListAssetsResponse\"(\332A\006parent\202\323\344" + + "\223\002\031\022\027/v1/{parent=*/*}/assets\022\262\001\n\025BatchGe" + + "tAssetsHistory\0223.google.cloud.asset.v1.B" + + "atchGetAssetsHistoryRequest\0324.google.clo" + + "ud.asset.v1.BatchGetAssetsHistoryRespons" + + "e\".\202\323\344\223\002(\022&/v1/{parent=*/*}:batchGetAsse" + + "tsHistory\022\177\n\nCreateFeed\022(.google.cloud.a" + + "sset.v1.CreateFeedRequest\032\033.google.cloud" + + ".asset.v1.Feed\"*\332A\006parent\202\323\344\223\002\033\"\026/v1/{pa" + + "rent=*/*}/feeds:\001*\022t\n\007GetFeed\022%.google.c" + + "loud.asset.v1.GetFeedRequest\032\033.google.cl" + + "oud.asset.v1.Feed\"%\332A\004name\202\323\344\223\002\030\022\026/v1/{n" + + "ame=*/*/feeds/*}\022\207\001\n\tListFeeds\022\'.google." + + "cloud.asset.v1.ListFeedsRequest\032(.google" + + ".cloud.asset.v1.ListFeedsResponse\"\'\332A\006pa", + "rent\202\323\344\223\002\030\022\026/v1/{parent=*/*}/feeds\022\202\001\n\nU" + + "pdateFeed\022(.google.cloud.asset.v1.Update" + + "FeedRequest\032\033.google.cloud.asset.v1.Feed" + + "\"-\332A\004feed\202\323\344\223\002 2\033/v1/{feed.name=*/*/feed" + + "s/*}:\001*\022u\n\nDeleteFeed\022(.google.cloud.ass" + + "et.v1.DeleteFeedRequest\032\026.google.protobu" + + "f.Empty\"%\332A\004name\202\323\344\223\002\030*\026/v1/{name=*/*/fe" + + "eds/*}\022\277\001\n\022SearchAllResources\0220.google.c" + + "loud.asset.v1.SearchAllResourcesRequest\032" + + "1.google.cloud.asset.v1.SearchAllResourc" + + "esResponse\"D\332A\027scope,query,asset_types\202\323" + + "\344\223\002$\022\"/v1/{scope=*/*}:searchAllResources" + + "\022\273\001\n\024SearchAllIamPolicies\0222.google.cloud" + + ".asset.v1.SearchAllIamPoliciesRequest\0323." + + "google.cloud.asset.v1.SearchAllIamPolici" + + "esResponse\":\332A\013scope,query\202\323\344\223\002&\022$/v1/{s" + + "cope=*/*}:searchAllIamPolicies\022\254\001\n\020Analy" + + "zeIamPolicy\022..google.cloud.asset.v1.Anal" + + "yzeIamPolicyRequest\032/.google.cloud.asset" + + ".v1.AnalyzeIamPolicyResponse\"7\202\323\344\223\0021\022//v" + + "1/{analysis_query.scope=*/*}:analyzeIamP" + + "olicy\022\270\002\n\033AnalyzeIamPolicyLongrunning\0229." + + "google.cloud.asset.v1.AnalyzeIamPolicyLo" + + "ngrunningRequest\032\035.google.longrunning.Op" + + "eration\"\276\001\312Av\n9google.cloud.asset.v1.Ana" + + "lyzeIamPolicyLongrunningResponse\0229google" + + ".cloud.asset.v1.AnalyzeIamPolicyLongrunn" + + "ingMetadata\202\323\344\223\002?\":/v1/{analysis_query.s" + + "cope=*/*}:analyzeIamPolicyLongrunning:\001*" + + "\022\214\001\n\013AnalyzeMove\022).google.cloud.asset.v1" + + ".AnalyzeMoveRequest\032*.google.cloud.asset" + + ".v1.AnalyzeMoveResponse\"&\202\323\344\223\002 \022\036/v1/{re" + + "source=*/*}:analyzeMove\022\215\001\n\013QueryAssets\022" + + ").google.cloud.asset.v1.QueryAssetsReque" + + "st\032*.google.cloud.asset.v1.QueryAssetsRe" + + "sponse\"\'\202\323\344\223\002!\"\034/v1/{parent=*/*}:queryAs" + + "sets:\001*\022\275\001\n\020CreateSavedQuery\022..google.cl" + + "oud.asset.v1.CreateSavedQueryRequest\032!.g" + + "oogle.cloud.asset.v1.SavedQuery\"V\332A!pare" + + "nt,saved_query,saved_query_id\202\323\344\223\002,\"\035/v1" + + "/{parent=*/*}/savedQueries:\013saved_query\022" + + "\215\001\n\rGetSavedQuery\022+.google.cloud.asset.v" + + "1.GetSavedQueryRequest\032!.google.cloud.as" + + "set.v1.SavedQuery\",\332A\004name\202\323\344\223\002\037\022\035/v1/{n" + + "ame=*/*/savedQueries/*}\022\243\001\n\020ListSavedQue" + + "ries\022..google.cloud.asset.v1.ListSavedQu" + + "eriesRequest\032/.google.cloud.asset.v1.Lis" + + "tSavedQueriesResponse\".\332A\006parent\202\323\344\223\002\037\022\035" + + "/v1/{parent=*/*}/savedQueries\022\277\001\n\020Update" + + "SavedQuery\022..google.cloud.asset.v1.Updat" + + "eSavedQueryRequest\032!.google.cloud.asset." + + "v1.SavedQuery\"X\332A\027saved_query,update_mas" + + "k\202\323\344\223\00282)/v1/{saved_query.name=*/*/saved" + + "Queries/*}:\013saved_query\022\210\001\n\020DeleteSavedQ" + + "uery\022..google.cloud.asset.v1.DeleteSaved" + + "QueryRequest\032\026.google.protobuf.Empty\",\332A" + + "\004name\202\323\344\223\002\037*\035/v1/{name=*/*/savedQueries/" + + "*}\022\316\001\n\034BatchGetEffectiveIamPolicies\022:.go" + + "ogle.cloud.asset.v1.BatchGetEffectiveIam" + + "PoliciesRequest\032;.google.cloud.asset.v1." + + "BatchGetEffectiveIamPoliciesResponse\"5\202\323" + + "\344\223\002/\022-/v1/{scope=*/*}/effectiveIamPolici" + + "es:batchGet\022\277\001\n\022AnalyzeOrgPolicies\0220.goo" + + "gle.cloud.asset.v1.AnalyzeOrgPoliciesReq" + + "uest\0321.google.cloud.asset.v1.AnalyzeOrgP" + + "oliciesResponse\"D\332A\027scope,constraint,fil" + + "ter\202\323\344\223\002$\022\"/v1/{scope=*/*}:analyzeOrgPol" + + "icies\022\377\001\n\"AnalyzeOrgPolicyGovernedContai" + + "ners\022@.google.cloud.asset.v1.AnalyzeOrgP" + + "olicyGovernedContainersRequest\032A.google." + + "cloud.asset.v1.AnalyzeOrgPolicyGovernedC" + + "ontainersResponse\"T\332A\027scope,constraint,f" + + "ilter\202\323\344\223\0024\0222/v1/{scope=*/*}:analyzeOrgP" + + "olicyGovernedContainers\022\357\001\n\036AnalyzeOrgPo" + + "licyGovernedAssets\022<.google.cloud.asset." + + "v1.AnalyzeOrgPolicyGovernedAssetsRequest" + + "\032=.google.cloud.asset.v1.AnalyzeOrgPolic" + + "yGovernedAssetsResponse\"P\332A\027scope,constr" + + "aint,filter\202\323\344\223\0020\022./v1/{scope=*/*}:analy" + + "zeOrgPolicyGovernedAssets\032M\312A\031cloudasset" + + ".googleapis.com\322A.https://www.googleapis" + + ".com/auth/cloud-platformB\221\001\n\031com.google." + + "cloud.asset.v1B\021AssetServiceProtoP\001Z/clo" + + "ud.google.com/go/asset/apiv1/assetpb;ass" + + "etpb\252\002\025Google.Cloud.Asset.V1\312\002\025Google\\Cl" + + "oud\\Asset\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1468,7 +1477,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_AnalyzerOrgPolicy_Rule_descriptor, new java.lang.String[] { - "Values", "AllowAll", "DenyAll", "Enforce", "Condition", "Kind", + "Values", + "AllowAll", + "DenyAll", + "Enforce", + "Condition", + "ConditionEvaluation", + "Kind", }); internal_static_google_cloud_asset_v1_AnalyzerOrgPolicy_Rule_StringValues_descriptor = internal_static_google_cloud_asset_v1_AnalyzerOrgPolicy_Rule_descriptor @@ -1562,7 +1577,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_AnalyzeOrgPoliciesResponse_OrgPolicyResult_descriptor, new java.lang.String[] { - "ConsolidatedPolicy", "PolicyBundle", + "ConsolidatedPolicy", "PolicyBundle", "Project", "Folders", "Organization", }); internal_static_google_cloud_asset_v1_AnalyzeOrgPolicyGovernedContainersRequest_descriptor = getDescriptor().getMessageTypes().get(56); @@ -1588,7 +1603,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_AnalyzeOrgPolicyGovernedContainersResponse_GovernedContainer_descriptor, new java.lang.String[] { - "FullResourceName", "Parent", "ConsolidatedPolicy", "PolicyBundle", + "FullResourceName", + "Parent", + "ConsolidatedPolicy", + "PolicyBundle", + "Project", + "Folders", + "Organization", + "EffectiveTags", }); internal_static_google_cloud_asset_v1_AnalyzeOrgPolicyGovernedAssetsRequest_descriptor = getDescriptor().getMessageTypes().get(58); @@ -1614,7 +1636,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_AnalyzeOrgPolicyGovernedAssetsResponse_GovernedResource_descriptor, new java.lang.String[] { - "FullResourceName", "Parent", "Project", "Folders", "Organization", + "FullResourceName", + "Parent", + "Project", + "Folders", + "Organization", + "AssetType", + "EffectiveTags", }); internal_static_google_cloud_asset_v1_AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy_descriptor = internal_static_google_cloud_asset_v1_AnalyzeOrgPolicyGovernedAssetsResponse_descriptor @@ -1624,7 +1652,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_asset_v1_AnalyzeOrgPolicyGovernedAssetsResponse_GovernedIamPolicy_descriptor, new java.lang.String[] { - "AttachedResource", "Policy", "Project", "Folders", "Organization", + "AttachedResource", "Policy", "Project", "Folders", "Organization", "AssetType", }); internal_static_google_cloud_asset_v1_AnalyzeOrgPolicyGovernedAssetsResponse_GovernedAsset_descriptor = internal_static_google_cloud_asset_v1_AnalyzeOrgPolicyGovernedAssetsResponse_descriptor diff --git a/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto b/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto index d87a37167dfd..31cb20e548fc 100644 --- a/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto +++ b/java-asset/proto-google-cloud-asset-v1/src/main/proto/google/cloud/asset/v1/asset_service.proto @@ -291,18 +291,49 @@ service AssetService { // Analyzes organization policies governed assets (Google Cloud resources or // policies) under a scope. This RPC supports custom constraints and the - // following 10 canned constraints: - // - // * storage.uniformBucketLevelAccess - // * iam.disableServiceAccountKeyCreation - // * iam.allowedPolicyMemberDomains - // * compute.vmExternalIpAccess - // * appengine.enforceServiceAccountActAsCheck - // * gcp.resourceLocations - // * compute.trustedImageProjects - // * compute.skipDefaultNetworkCreation - // * compute.requireOsLogin - // * compute.disableNestedVirtualization + // following canned constraints: + // + // * constraints/ainotebooks.accessMode + // * constraints/ainotebooks.disableFileDownloads + // * constraints/ainotebooks.disableRootAccess + // * constraints/ainotebooks.disableTerminal + // * constraints/ainotebooks.environmentOptions + // * constraints/ainotebooks.requireAutoUpgradeSchedule + // * constraints/ainotebooks.restrictVpcNetworks + // * constraints/compute.disableGuestAttributesAccess + // * constraints/compute.disableInstanceDataAccessApis + // * constraints/compute.disableNestedVirtualization + // * constraints/compute.disableSerialPortAccess + // * constraints/compute.disableSerialPortLogging + // * constraints/compute.disableVpcExternalIpv6 + // * constraints/compute.requireOsLogin + // * constraints/compute.requireShieldedVm + // * constraints/compute.restrictLoadBalancerCreationForTypes + // * constraints/compute.restrictProtocolForwardingCreationForTypes + // * constraints/compute.restrictXpnProjectLienRemoval + // * constraints/compute.setNewProjectDefaultToZonalDNSOnly + // * constraints/compute.skipDefaultNetworkCreation + // * constraints/compute.trustedImageProjects + // * constraints/compute.vmCanIpForward + // * constraints/compute.vmExternalIpAccess + // * constraints/gcp.detailedAuditLoggingMode + // * constraints/gcp.resourceLocations + // * constraints/iam.allowedPolicyMemberDomains + // * constraints/iam.automaticIamGrantsForDefaultServiceAccounts + // * constraints/iam.disableServiceAccountCreation + // * constraints/iam.disableServiceAccountKeyCreation + // * constraints/iam.disableServiceAccountKeyUpload + // * constraints/iam.restrictCrossProjectServiceAccountLienRemoval + // * constraints/iam.serviceAccountKeyExpiryHours + // * constraints/resourcemanager.accessBoundaries + // * constraints/resourcemanager.allowedExportDestinations + // * constraints/sql.restrictAuthorizedNetworks + // * constraints/sql.restrictNoncompliantDiagnosticDataAccess + // * constraints/sql.restrictNoncompliantResourceCreation + // * constraints/sql.restrictPublicIp + // * constraints/storage.publicAccessPrevention + // * constraints/storage.restrictAuthTypes + // * constraints/storage.uniformBucketLevelAccess // // This RPC only returns either resources of types [supported by search // APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types) @@ -2170,6 +2201,18 @@ message AnalyzerOrgPolicy { // The evaluating condition for this rule. google.type.Expr condition = 7; + + // The condition evaluation result for this rule. + // Only populated if it meets all the following criteria: + // * there is a + // [condition][google.cloud.asset.v1.AnalyzerOrgPolicy.Rule.condition] + // defined for this rule + // * this rule is within a consolidated_policy + // * the consolidated_policy is within + // [AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedContainersResponse.GovernedContainer] + // or + // [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource] + ConditionEvaluation condition_evaluation = 8; } // The [full resource name] @@ -2405,6 +2448,21 @@ message AnalyzeOrgPoliciesResponse { // If the constraint is defined with default policy, it will also appear in // the list. repeated AnalyzerOrgPolicy policy_bundle = 2; + + // The project that this consolidated policy belongs to, in the format of + // projects/{PROJECT_NUMBER}. This field is available when the consolidated + // policy belongs to a project. + string project = 3; + + // The folder(s) that this consolidated policy belongs to, in the format of + // folders/{FOLDER_NUMBER}. This field is available when the consolidated + // policy belongs (directly or cascadingly) to one or more folders. + repeated string folders = 4; + + // The organization that this consolidated policy belongs to, in the format + // of organizations/{ORGANIZATION_NUMBER}. This field is available when the + // consolidated policy belongs (directly or cascadingly) to an organization. + string organization = 5; } // The organization policies under the @@ -2491,6 +2549,24 @@ message AnalyzeOrgPolicyGovernedContainersResponse { // If the constraint is defined with default policy, it will also appear in // the list. repeated AnalyzerOrgPolicy policy_bundle = 4; + + // The project that this resource belongs to, in the format of + // projects/{PROJECT_NUMBER}. This field is available when the resource + // belongs to a project. + string project = 5; + + // The folder(s) that this resource belongs to, in the format of + // folders/{FOLDER_NUMBER}. This field is available when the resource + // belongs (directly or cascadingly) to one or more folders. + repeated string folders = 6; + + // The organization that this resource belongs to, in the format of + // organizations/{ORGANIZATION_NUMBER}. This field is available when the + // resource belongs (directly or cascadingly) to an organization. + string organization = 7; + + // The effective tags on this resource. + repeated EffectiveTagDetails effective_tags = 8; } // The list of the analyzed governed containers. @@ -2589,6 +2665,18 @@ message AnalyzeOrgPolicyGovernedAssetsResponse { // organizations/{ORGANIZATION_NUMBER}. This field is available when the // resource belongs (directly or cascadingly) to an organization. string organization = 7; + + // The asset type of the + // [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name] + // Example: + // `cloudresourcemanager.googleapis.com/Project` + // See [Cloud Asset Inventory Supported Asset + // Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + // for all supported asset types. + string asset_type = 8; + + // The effective tags on this resource. + repeated EffectiveTagDetails effective_tags = 9; } // The IAM policies governed by the organization policies of the @@ -2619,6 +2707,15 @@ message AnalyzeOrgPolicyGovernedAssetsResponse { // organizations/{ORGANIZATION_NUMBER}. This field is available when the // IAM policy belongs (directly or cascadingly) to an organization. string organization = 7; + + // The asset type of the + // [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource]. + // Example: + // `cloudresourcemanager.googleapis.com/Project` + // See [Cloud Asset Inventory Supported Asset + // Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) + // for all supported asset types. + string asset_type = 8; } // Represents a Google Cloud asset(resource or IAM policy) governed by the diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/ListQuotaPreferencesRequest.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/ListQuotaPreferencesRequest.java index 6532e81b0ab5..3196bf2aa349 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/ListQuotaPreferencesRequest.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/ListQuotaPreferencesRequest.java @@ -221,11 +221,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * create/update time range. * * Example filters: - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED` - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED AND - * creation_time>2022-12-03T10:30:00` - * - * If no filter is provided, returns all pending quota preferences. + * `reconciling=true AND request_type=CLOUD_CONSOLE`, + * `reconciling=true OR creation_time>2022-12-03T10:30:00` *
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -252,11 +249,8 @@ public java.lang.String getFilter() { * create/update time range. * * Example filters: - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED` - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED AND - * creation_time>2022-12-03T10:30:00` - * - * If no filter is provided, returns all pending quota preferences. + * `reconciling=true AND request_type=CLOUD_CONSOLE`, + * `reconciling=true OR creation_time>2022-12-03T10:30:00` *
                              * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -288,8 +282,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * by create time. * * Example orders: - * `type` - * `state, create_time` + * `quota_id`, + * `service, create_time` *
                              * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -316,8 +310,8 @@ public java.lang.String getOrderBy() { * by create time. * * Example orders: - * `type` - * `state, create_time` + * `quota_id`, + * `service, create_time` * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1106,11 +1100,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * create/update time range. * * Example filters: - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED` - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED AND - * creation_time>2022-12-03T10:30:00` - * - * If no filter is provided, returns all pending quota preferences. + * `reconciling=true AND request_type=CLOUD_CONSOLE`, + * `reconciling=true OR creation_time>2022-12-03T10:30:00` * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1136,11 +1127,8 @@ public java.lang.String getFilter() { * create/update time range. * * Example filters: - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED` - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED AND - * creation_time>2022-12-03T10:30:00` - * - * If no filter is provided, returns all pending quota preferences. + * `reconciling=true AND request_type=CLOUD_CONSOLE`, + * `reconciling=true OR creation_time>2022-12-03T10:30:00` * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1166,11 +1154,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * create/update time range. * * Example filters: - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED` - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED AND - * creation_time>2022-12-03T10:30:00` - * - * If no filter is provided, returns all pending quota preferences. + * `reconciling=true AND request_type=CLOUD_CONSOLE`, + * `reconciling=true OR creation_time>2022-12-03T10:30:00` * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1195,11 +1180,8 @@ public Builder setFilter(java.lang.String value) { * create/update time range. * * Example filters: - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED` - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED AND - * creation_time>2022-12-03T10:30:00` - * - * If no filter is provided, returns all pending quota preferences. + * `reconciling=true AND request_type=CLOUD_CONSOLE`, + * `reconciling=true OR creation_time>2022-12-03T10:30:00` * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1220,11 +1202,8 @@ public Builder clearFilter() { * create/update time range. * * Example filters: - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED` - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED AND - * creation_time>2022-12-03T10:30:00` - * - * If no filter is provided, returns all pending quota preferences. + * `reconciling=true AND request_type=CLOUD_CONSOLE`, + * `reconciling=true OR creation_time>2022-12-03T10:30:00` * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1252,8 +1231,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * by create time. * * Example orders: - * `type` - * `state, create_time` + * `quota_id`, + * `service, create_time` * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1279,8 +1258,8 @@ public java.lang.String getOrderBy() { * by create time. * * Example orders: - * `type` - * `state, create_time` + * `quota_id`, + * `service, create_time` * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1306,8 +1285,8 @@ public com.google.protobuf.ByteString getOrderByBytes() { * by create time. * * Example orders: - * `type` - * `state, create_time` + * `quota_id`, + * `service, create_time` * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1332,8 +1311,8 @@ public Builder setOrderBy(java.lang.String value) { * by create time. * * Example orders: - * `type` - * `state, create_time` + * `quota_id`, + * `service, create_time` * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1354,8 +1333,8 @@ public Builder clearOrderBy() { * by create time. * * Example orders: - * `type` - * `state, create_time` + * `quota_id`, + * `service, create_time` * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/ListQuotaPreferencesRequestOrBuilder.java b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/ListQuotaPreferencesRequestOrBuilder.java index 2e8afc93d146..7474a29c441b 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/ListQuotaPreferencesRequestOrBuilder.java +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/java/com/google/api/cloudquotas/v1/ListQuotaPreferencesRequestOrBuilder.java @@ -118,11 +118,8 @@ public interface ListQuotaPreferencesRequestOrBuilder * create/update time range. * * Example filters: - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED` - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED AND - * creation_time>2022-12-03T10:30:00` - * - * If no filter is provided, returns all pending quota preferences. + * `reconciling=true AND request_type=CLOUD_CONSOLE`, + * `reconciling=true OR creation_time>2022-12-03T10:30:00` * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -138,11 +135,8 @@ public interface ListQuotaPreferencesRequestOrBuilder * create/update time range. * * Example filters: - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED` - * `state=PENDING OR state=PENDING_PARTIALLY_GRANTED AND - * creation_time>2022-12-03T10:30:00` - * - * If no filter is provided, returns all pending quota preferences. + * `reconciling=true AND request_type=CLOUD_CONSOLE`, + * `reconciling=true OR creation_time>2022-12-03T10:30:00` * * * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -159,8 +153,8 @@ public interface ListQuotaPreferencesRequestOrBuilder * by create time. * * Example orders: - * `type` - * `state, create_time` + * `quota_id`, + * `service, create_time` * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -176,8 +170,8 @@ public interface ListQuotaPreferencesRequestOrBuilder * by create time. * * Example orders: - * `type` - * `state, create_time` + * `quota_id`, + * `service, create_time` * * * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/proto/google/api/cloudquotas/v1/cloudquotas.proto b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/proto/google/api/cloudquotas/v1/cloudquotas.proto index 2d35f2d095ca..67270252c8bb 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/proto/google/api/cloudquotas/v1/cloudquotas.proto +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/src/main/proto/google/api/cloudquotas/v1/cloudquotas.proto @@ -231,19 +231,16 @@ message ListQuotaPreferencesRequest { // create/update time range. // // Example filters: - // `state=PENDING OR state=PENDING_PARTIALLY_GRANTED` - // `state=PENDING OR state=PENDING_PARTIALLY_GRANTED AND - // creation_time>2022-12-03T10:30:00` - // - // If no filter is provided, returns all pending quota preferences. + // `reconciling=true AND request_type=CLOUD_CONSOLE`, + // `reconciling=true OR creation_time>2022-12-03T10:30:00` string filter = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. How to order of the results. By default, the results are ordered // by create time. // // Example orders: - // `type` - // `state, create_time` + // `quota_id`, + // `service, create_time` string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java index 4f4d30f7bb10..4a48dddd179a 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/package-info.java @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Google Compute Engine API + * + *

                              The interfaces provided are listed below, along with usage samples. * *

                              ======================= AcceleratorTypesClient ======================= * diff --git a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json index 848a324bd450..14d27f8b23d4 100644 --- a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json +++ b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1/reflect-config.json @@ -3176,6 +3176,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1.SecondaryBootDisk", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.SecondaryBootDisk$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1.SecondaryBootDisk$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1.SecurityBulletinEvent", "queryAllDeclaredConstructors": true, diff --git a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json index 5d33485a1cba..43694781dcf5 100644 --- a/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json +++ b/java-container/google-cloud-container/src/main/resources/META-INF/native-image/com.google.cloud.container.v1beta1/reflect-config.json @@ -3536,6 +3536,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.container.v1beta1.SecretManagerConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.container.v1beta1.SecretManagerConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.container.v1beta1.SecurityBulletinEvent", "queryAllDeclaredConstructors": true, diff --git a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java index 175bbce937ce..6b3a01f524d1 100644 --- a/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java +++ b/java-container/google-cloud-container/src/test/java/com/google/cloud/container/v1beta1/ClusterManagerClientTest.java @@ -108,6 +108,7 @@ import com.google.container.v1beta1.ResourceManagerTags; import com.google.container.v1beta1.ResourceUsageExportConfig; import com.google.container.v1beta1.RollbackNodePoolUpgradeRequest; +import com.google.container.v1beta1.SecretManagerConfig; import com.google.container.v1beta1.SecurityPostureConfig; import com.google.container.v1beta1.ServerConfig; import com.google.container.v1beta1.SetAddonsConfigRequest; @@ -316,6 +317,7 @@ public void getClusterTest() throws Exception { .setFleet(Fleet.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .setEnterpriseConfig(EnterpriseConfig.newBuilder().build()) + .setSecretManagerConfig(SecretManagerConfig.newBuilder().build()) .build(); mockClusterManager.addResponse(expectedResponse); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java index 9d5aaa00da55..4ce8cc4249d2 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java @@ -190,7 +190,7 @@ public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscal * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1200 + * google/container/v1/cluster_service.proto;l=1203 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Override @@ -213,7 +213,7 @@ public boolean hasKubernetesDashboard() { * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1200 + * google/container/v1/cluster_service.proto;l=1203 * @return The kubernetesDashboard. */ @java.lang.Override @@ -1928,7 +1928,7 @@ public Builder clearHorizontalPodAutoscaling() { * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1200 + * google/container/v1/cluster_service.proto;l=1203 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Deprecated @@ -1950,7 +1950,7 @@ public boolean hasKubernetesDashboard() { * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1200 + * google/container/v1/cluster_service.proto;l=1203 * @return The kubernetesDashboard. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java index 9914747e4359..08d9da15af84 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java @@ -118,7 +118,7 @@ public interface AddonsConfigOrBuilder * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1200 + * google/container/v1/cluster_service.proto;l=1203 * @return Whether the kubernetesDashboard field is set. */ @java.lang.Deprecated @@ -138,7 +138,7 @@ public interface AddonsConfigOrBuilder * * * @deprecated google.container.v1.AddonsConfig.kubernetes_dashboard is deprecated. See - * google/container/v1/cluster_service.proto;l=1200 + * google/container/v1/cluster_service.proto;l=1203 * @return The kubernetesDashboard. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java index 97139e20645b..37fd07446ce4 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java @@ -310,7 +310,7 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3940 + * deprecated. See google/container/v1/cluster_service.proto;l=3946 * @return The minCpuPlatform. */ @java.lang.Override @@ -346,7 +346,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3940 + * deprecated. See google/container/v1/cluster_service.proto;l=3946 * @return The bytes for minCpuPlatform. */ @java.lang.Override @@ -1963,7 +1963,7 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3940 + * deprecated. See google/container/v1/cluster_service.proto;l=3946 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -1998,7 +1998,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3940 + * deprecated. See google/container/v1/cluster_service.proto;l=3946 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated @@ -2033,7 +2033,7 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3940 + * deprecated. See google/container/v1/cluster_service.proto;l=3946 * @param value The minCpuPlatform to set. * @return This builder for chaining. */ @@ -2067,7 +2067,7 @@ public Builder setMinCpuPlatform(java.lang.String value) { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3940 + * deprecated. See google/container/v1/cluster_service.proto;l=3946 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2097,7 +2097,7 @@ public Builder clearMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3940 + * deprecated. See google/container/v1/cluster_service.proto;l=3946 * @param value The bytes for minCpuPlatform to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java index 3c560577fda5..11554d60f513 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -190,7 +190,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3940 + * deprecated. See google/container/v1/cluster_service.proto;l=3946 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -215,7 +215,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1/cluster_service.proto;l=3940 + * deprecated. See google/container/v1/cluster_service.proto;l=3946 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java index 699d7d35e349..1abe51147618 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java @@ -238,7 +238,7 @@ private EvaluationMode(int value) { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1454 + * google/container/v1/cluster_service.proto;l=1457 * @return The enabled. */ @java.lang.Override @@ -664,7 +664,7 @@ public Builder mergeFrom( * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1454 + * google/container/v1/cluster_service.proto;l=1457 * @return The enabled. */ @java.lang.Override @@ -684,7 +684,7 @@ public boolean getEnabled() { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1454 + * google/container/v1/cluster_service.proto;l=1457 * @param value The enabled to set. * @return This builder for chaining. */ @@ -708,7 +708,7 @@ public Builder setEnabled(boolean value) { * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1454 + * google/container/v1/cluster_service.proto;l=1457 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java index 1d8ac8602c2c..fa7cade74976 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java @@ -36,7 +36,7 @@ public interface BinaryAuthorizationOrBuilder * bool enabled = 1 [deprecated = true]; * * @deprecated google.container.v1.BinaryAuthorization.enabled is deprecated. See - * google/container/v1/cluster_service.proto;l=1454 + * google/container/v1/cluster_service.proto;l=1457 * @return The enabled. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java index cb508f159148..6368fcba49ca 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3115 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3115 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3121 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3121 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3119 + * google/container/v1/cluster_service.proto;l=3125 * @return The operationId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3119 + * google/container/v1/cluster_service.proto;l=3125 * @return The bytes for operationId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3115 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3115 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3115 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3115 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3115 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3121 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3121 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3121 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3121 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3121 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3119 + * google/container/v1/cluster_service.proto;l=3125 * @return The operationId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3119 + * google/container/v1/cluster_service.proto;l=3125 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3119 + * google/container/v1/cluster_service.proto;l=3125 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setOperationId(java.lang.String value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3119 + * google/container/v1/cluster_service.proto;l=3125 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3119 + * google/container/v1/cluster_service.proto;l=3125 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java index 01f55b4e095b..0f25e04a9140 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CancelOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3115 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CancelOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3109 + * google/container/v1/cluster_service.proto;l=3115 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3121 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3115 + * google/container/v1/cluster_service.proto;l=3121 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface CancelOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3119 + * google/container/v1/cluster_service.proto;l=3125 * @return The operationId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface CancelOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3119 + * google/container/v1/cluster_service.proto;l=3125 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java index d7283009e262..0811ccccc77a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java @@ -492,7 +492,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1683 + * google/container/v1/cluster_service.proto;l=1686 * @return The initialNodeCount. */ @java.lang.Override @@ -523,7 +523,7 @@ public int getInitialNodeCount() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1696 + * google/container/v1/cluster_service.proto;l=1699 * @return Whether the nodeConfig field is set. */ @java.lang.Override @@ -551,7 +551,7 @@ public boolean hasNodeConfig() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1696 + * google/container/v1/cluster_service.proto;l=1699 * @return The nodeConfig. */ @java.lang.Override @@ -2591,7 +2591,7 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1867 + * google/container/v1/cluster_service.proto;l=1870 * @return The zone. */ @java.lang.Override @@ -2619,7 +2619,7 @@ public java.lang.String getZone() { * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1867 + * google/container/v1/cluster_service.proto;l=1870 * @return The bytes for zone. */ @java.lang.Override @@ -2841,7 +2841,7 @@ public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1900 + * google/container/v1/cluster_service.proto;l=1903 * @return The currentNodeVersion. */ @java.lang.Override @@ -2871,7 +2871,7 @@ public java.lang.String getCurrentNodeVersion() { * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1900 + * google/container/v1/cluster_service.proto;l=1903 * @return The bytes for currentNodeVersion. */ @java.lang.Override @@ -2992,7 +2992,7 @@ public com.google.container.v1.Cluster.Status getStatus() { * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1912 + * google/container/v1/cluster_service.proto;l=1915 * @return The statusMessage. */ @java.lang.Override @@ -3020,7 +3020,7 @@ public java.lang.String getStatusMessage() { * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1912 + * google/container/v1/cluster_service.proto;l=1915 * @return The bytes for statusMessage. */ @java.lang.Override @@ -3132,7 +3132,7 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -3149,7 +3149,7 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -3166,7 +3166,7 @@ public int getInstanceGroupUrlsCount() { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -3184,7 +3184,7 @@ public java.lang.String getInstanceGroupUrls(int index) { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -3206,7 +3206,7 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * int32 current_node_count = 112 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1932 + * google/container/v1/cluster_service.proto;l=1935 * @return The currentNodeCount. */ @java.lang.Override @@ -6798,7 +6798,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1683 + * google/container/v1/cluster_service.proto;l=1686 * @return The initialNodeCount. */ @java.lang.Override @@ -6825,7 +6825,7 @@ public int getInitialNodeCount() { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1683 + * google/container/v1/cluster_service.proto;l=1686 * @param value The initialNodeCount to set. * @return This builder for chaining. */ @@ -6856,7 +6856,7 @@ public Builder setInitialNodeCount(int value) { * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1683 + * google/container/v1/cluster_service.proto;l=1686 * @return This builder for chaining. */ @java.lang.Deprecated @@ -6893,7 +6893,7 @@ public Builder clearInitialNodeCount() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1696 + * google/container/v1/cluster_service.proto;l=1699 * @return Whether the nodeConfig field is set. */ @java.lang.Deprecated @@ -6920,7 +6920,7 @@ public boolean hasNodeConfig() { * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1696 + * google/container/v1/cluster_service.proto;l=1699 * @return The nodeConfig. */ @java.lang.Deprecated @@ -13596,7 +13596,7 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1867 + * google/container/v1/cluster_service.proto;l=1870 * @return The zone. */ @java.lang.Deprecated @@ -13623,7 +13623,7 @@ public java.lang.String getZone() { * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1867 + * google/container/v1/cluster_service.proto;l=1870 * @return The bytes for zone. */ @java.lang.Deprecated @@ -13650,7 +13650,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1867 + * google/container/v1/cluster_service.proto;l=1870 * @param value The zone to set. * @return This builder for chaining. */ @@ -13676,7 +13676,7 @@ public Builder setZone(java.lang.String value) { * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1867 + * google/container/v1/cluster_service.proto;l=1870 * @return This builder for chaining. */ @java.lang.Deprecated @@ -13698,7 +13698,7 @@ public Builder clearZone() { * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1867 + * google/container/v1/cluster_service.proto;l=1870 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -14132,7 +14132,7 @@ public Builder setCurrentMasterVersionBytes(com.google.protobuf.ByteString value * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1900 + * google/container/v1/cluster_service.proto;l=1903 * @return The currentNodeVersion. */ @java.lang.Deprecated @@ -14161,7 +14161,7 @@ public java.lang.String getCurrentNodeVersion() { * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1900 + * google/container/v1/cluster_service.proto;l=1903 * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated @@ -14190,7 +14190,7 @@ public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1900 + * google/container/v1/cluster_service.proto;l=1903 * @param value The currentNodeVersion to set. * @return This builder for chaining. */ @@ -14218,7 +14218,7 @@ public Builder setCurrentNodeVersion(java.lang.String value) { * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1900 + * google/container/v1/cluster_service.proto;l=1903 * @return This builder for chaining. */ @java.lang.Deprecated @@ -14242,7 +14242,7 @@ public Builder clearCurrentNodeVersion() { * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1900 + * google/container/v1/cluster_service.proto;l=1903 * @param value The bytes for currentNodeVersion to set. * @return This builder for chaining. */ @@ -14472,7 +14472,7 @@ public Builder clearStatus() { * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1912 + * google/container/v1/cluster_service.proto;l=1915 * @return The statusMessage. */ @java.lang.Deprecated @@ -14499,7 +14499,7 @@ public java.lang.String getStatusMessage() { * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1912 + * google/container/v1/cluster_service.proto;l=1915 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -14526,7 +14526,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1912 + * google/container/v1/cluster_service.proto;l=1915 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -14552,7 +14552,7 @@ public Builder setStatusMessage(java.lang.String value) { * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1912 + * google/container/v1/cluster_service.proto;l=1915 * @return This builder for chaining. */ @java.lang.Deprecated @@ -14574,7 +14574,7 @@ public Builder clearStatusMessage() { * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1912 + * google/container/v1/cluster_service.proto;l=1915 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ @@ -14797,7 +14797,7 @@ private void ensureInstanceGroupUrlsIsMutable() { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -14815,7 +14815,7 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -14832,7 +14832,7 @@ public int getInstanceGroupUrlsCount() { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -14850,7 +14850,7 @@ public java.lang.String getInstanceGroupUrls(int index) { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -14868,7 +14868,7 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @param index The index to set the value at. * @param value The instanceGroupUrls to set. * @return This builder for chaining. @@ -14894,7 +14894,7 @@ public Builder setInstanceGroupUrls(int index, java.lang.String value) { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @param value The instanceGroupUrls to add. * @return This builder for chaining. */ @@ -14919,7 +14919,7 @@ public Builder addInstanceGroupUrls(java.lang.String value) { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @param values The instanceGroupUrls to add. * @return This builder for chaining. */ @@ -14941,7 +14941,7 @@ public Builder addAllInstanceGroupUrls(java.lang.Iterable valu * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @return This builder for chaining. */ @java.lang.Deprecated @@ -14962,7 +14962,7 @@ public Builder clearInstanceGroupUrls() { * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @param value The bytes of the instanceGroupUrls to add. * @return This builder for chaining. */ @@ -14991,7 +14991,7 @@ public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { * int32 current_node_count = 112 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1932 + * google/container/v1/cluster_service.proto;l=1935 * @return The currentNodeCount. */ @java.lang.Override @@ -15010,7 +15010,7 @@ public int getCurrentNodeCount() { * int32 current_node_count = 112 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1932 + * google/container/v1/cluster_service.proto;l=1935 * @param value The currentNodeCount to set. * @return This builder for chaining. */ @@ -15033,7 +15033,7 @@ public Builder setCurrentNodeCount(int value) { * int32 current_node_count = 112 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1932 + * google/container/v1/cluster_service.proto;l=1935 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java index 7f6a6a0f34b9..8f4cb2e2d76d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java @@ -105,7 +105,7 @@ public interface ClusterOrBuilder * int32 initial_node_count = 3 [deprecated = true]; * * @deprecated google.container.v1.Cluster.initial_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1683 + * google/container/v1/cluster_service.proto;l=1686 * @return The initialNodeCount. */ @java.lang.Deprecated @@ -131,7 +131,7 @@ public interface ClusterOrBuilder * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1696 + * google/container/v1/cluster_service.proto;l=1699 * @return Whether the nodeConfig field is set. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface ClusterOrBuilder * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; * * @deprecated google.container.v1.Cluster.node_config is deprecated. See - * google/container/v1/cluster_service.proto;l=1696 + * google/container/v1/cluster_service.proto;l=1699 * @return The nodeConfig. */ @java.lang.Deprecated @@ -1553,7 +1553,7 @@ java.lang.String getResourceLabelsOrDefault( * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1867 + * google/container/v1/cluster_service.proto;l=1870 * @return The zone. */ @java.lang.Deprecated @@ -1570,7 +1570,7 @@ java.lang.String getResourceLabelsOrDefault( * string zone = 101 [deprecated = true]; * * @deprecated google.container.v1.Cluster.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=1867 + * google/container/v1/cluster_service.proto;l=1870 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1699,7 +1699,7 @@ java.lang.String getResourceLabelsOrDefault( * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1900 + * google/container/v1/cluster_service.proto;l=1903 * @return The currentNodeVersion. */ @java.lang.Deprecated @@ -1718,7 +1718,7 @@ java.lang.String getResourceLabelsOrDefault( * string current_node_version = 105 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_version is deprecated. See - * google/container/v1/cluster_service.proto;l=1900 + * google/container/v1/cluster_service.proto;l=1903 * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated @@ -1788,7 +1788,7 @@ java.lang.String getResourceLabelsOrDefault( * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1912 + * google/container/v1/cluster_service.proto;l=1915 * @return The statusMessage. */ @java.lang.Deprecated @@ -1805,7 +1805,7 @@ java.lang.String getResourceLabelsOrDefault( * string status_message = 108 [deprecated = true]; * * @deprecated google.container.v1.Cluster.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=1912 + * google/container/v1/cluster_service.proto;l=1915 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -1870,7 +1870,7 @@ java.lang.String getResourceLabelsOrDefault( * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated @@ -1885,7 +1885,7 @@ java.lang.String getResourceLabelsOrDefault( * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @return The count of instanceGroupUrls. */ @java.lang.Deprecated @@ -1900,7 +1900,7 @@ java.lang.String getResourceLabelsOrDefault( * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @param index The index of the element to return. * @return The instanceGroupUrls at the given index. */ @@ -1916,7 +1916,7 @@ java.lang.String getResourceLabelsOrDefault( * repeated string instance_group_urls = 111 [deprecated = true]; * * @deprecated google.container.v1.Cluster.instance_group_urls is deprecated. See - * google/container/v1/cluster_service.proto;l=1928 + * google/container/v1/cluster_service.proto;l=1931 * @param index The index of the value to return. * @return The bytes of the instanceGroupUrls at the given index. */ @@ -1934,7 +1934,7 @@ java.lang.String getResourceLabelsOrDefault( * int32 current_node_count = 112 [deprecated = true]; * * @deprecated google.container.v1.Cluster.current_node_count is deprecated. See - * google/container/v1/cluster_service.proto;l=1932 + * google/container/v1/cluster_service.proto;l=1935 * @return The currentNodeCount. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java index 0cb05a7d2351..4115d24ad218 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java @@ -768,6 +768,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_EnterpriseConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_EnterpriseConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_SecondaryBootDisk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1_SecondaryBootDisk_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -803,7 +807,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "lValue\022\034\n\024cpu_cfs_quota_period\030\003 \001(\t\022\026\n\016" + "pod_pids_limit\030\004 \001(\003\0223\n&insecure_kubelet" + "_readonly_port_enabled\030\007 \001(\010H\000\210\001\001B)\n\'_in" - + "secure_kubelet_readonly_port_enabled\"\316\017\n" + + "secure_kubelet_readonly_port_enabled\"\224\020\n" + "\nNodeConfig\022\024\n\014machine_type\030\001 \001(\t\022\024\n\014dis" + "k_size_gb\030\002 \001(\005\022\024\n\014oauth_scopes\030\003 \003(\t\022\027\n" + "\017service_account\030\t \001(\t\022?\n\010metadata\030\004 \003(\013" @@ -849,1192 +853,1203 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle.container.v1.SoleTenantConfig\022G\n\025r" + "esource_manager_tags\030- \001(\0132(.google.cont" + "ainer.v1.ResourceManagerTags\022(\n\033enable_c" - + "onfidential_storage\030. \001(\010B\003\340A\001\032/\n\rMetada" - + "taEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032" - + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\016\n\014_fast_socket\"M\n" - + "\027AdvancedMachineFeatures\022\035\n\020threads_per_" - + "core\030\001 \001(\003H\000\210\001\001B\023\n\021_threads_per_core\"\263\006\n" - + "\021NodeNetworkConfig\022\035\n\020create_pod_range\030\004" - + " \001(\010B\003\340A\004\022\021\n\tpod_range\030\005 \001(\t\022\033\n\023pod_ipv4" - + "_cidr_block\030\006 \001(\t\022!\n\024enable_private_node" - + "s\030\t \001(\010H\000\210\001\001\022h\n\032network_performance_conf" - + "ig\030\013 \001(\0132?.google.container.v1.NodeNetwo" - + "rkConfig.NetworkPerformanceConfigH\001\210\001\001\022V" - + "\n\035pod_cidr_overprovision_config\030\r \001(\0132/." - + "google.container.v1.PodCIDROverprovision" - + "Config\022Y\n\037additional_node_network_config" - + "s\030\016 \003(\01320.google.container.v1.Additional" - + "NodeNetworkConfig\022W\n\036additional_pod_netw" - + "ork_configs\030\017 \003(\0132/.google.container.v1." - + "AdditionalPodNetworkConfig\022\'\n\032pod_ipv4_r" - + "ange_utilization\030\020 \001(\001B\003\340A\003\032\324\001\n\030NetworkP" - + "erformanceConfig\022n\n\033total_egress_bandwid" - + "th_tier\030\001 \001(\0162D.google.container.v1.Node" - + "NetworkConfig.NetworkPerformanceConfig.T" - + "ierH\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\n" - + "\n\006TIER_1\020\001B\036\n\034_total_egress_bandwidth_ti" - + "erB\027\n\025_enable_private_nodesB\035\n\033_network_" - + "performance_config\"B\n\033AdditionalNodeNetw" - + "orkConfig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork" - + "\030\002 \001(\t\"\253\001\n\032AdditionalPodNetworkConfig\022\022\n" - + "\nsubnetwork\030\001 \001(\t\022\033\n\023secondary_pod_range" - + "\030\002 \001(\t\022F\n\021max_pods_per_node\030\003 \001(\0132&.goog" - + "le.container.v1.MaxPodsConstraintH\000\210\001\001B\024" - + "\n\022_max_pods_per_node\"Y\n\026ShieldedInstance" - + "Config\022\032\n\022enable_secure_boot\030\001 \001(\010\022#\n\033en" - + "able_integrity_monitoring\030\002 \001(\010\"k\n\rSandb" - + "oxConfig\0225\n\004type\030\002 \001(\0162\'.google.containe" - + "r.v1.SandboxConfig.Type\"#\n\004Type\022\017\n\013UNSPE" - + "CIFIED\020\000\022\n\n\006GVISOR\020\001\"\035\n\nGcfsConfig\022\017\n\007en" - + "abled\030\001 \001(\010\"\337\001\n\023ReservationAffinity\022O\n\030c" - + "onsume_reservation_type\030\001 \001(\0162-.google.c" - + "ontainer.v1.ReservationAffinity.Type\022\013\n\003" - + "key\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"Z\n\004Type\022\017\n\013UNS" - + "PECIFIED\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RE" - + "SERVATION\020\002\022\030\n\024SPECIFIC_RESERVATION\020\003\"\226\002" - + "\n\020SoleTenantConfig\022K\n\017node_affinities\030\001 " - + "\003(\01322.google.container.v1.SoleTenantConf" - + "ig.NodeAffinity\032\264\001\n\014NodeAffinity\022\013\n\003key\030" - + "\001 \001(\t\022M\n\010operator\030\002 \001(\0162;.google.contain" - + "er.v1.SoleTenantConfig.NodeAffinity.Oper" - + "ator\022\016\n\006values\030\003 \003(\t\"8\n\010Operator\022\030\n\024OPER" - + "ATOR_UNSPECIFIED\020\000\022\006\n\002IN\020\001\022\n\n\006NOT_IN\020\002\"\271" - + "\001\n\tNodeTaint\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + "\0225\n\006effect\030\003 \001(\0162%.google.container.v1.N" - + "odeTaint.Effect\"Y\n\006Effect\022\026\n\022EFFECT_UNSP" - + "ECIFIED\020\000\022\017\n\013NO_SCHEDULE\020\001\022\026\n\022PREFER_NO_" - + "SCHEDULE\020\002\022\016\n\nNO_EXECUTE\020\003\"<\n\nNodeTaints" - + "\022.\n\006taints\030\001 \003(\0132\036.google.container.v1.N" - + "odeTaint\"x\n\nNodeLabels\022;\n\006labels\030\001 \003(\0132+" - + ".google.container.v1.NodeLabels.LabelsEn" - + "try\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001\"\200\001\n\016ResourceLabels\022?\n\006labels\030" - + "\001 \003(\0132/.google.container.v1.ResourceLabe" - + "ls.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\033\n\013NetworkTags\022\014\n\004" - + "tags\030\001 \003(\t\"\331\001\n\nMasterAuth\022\024\n\010username\030\001 " - + "\001(\tB\002\030\001\022\024\n\010password\030\002 \001(\tB\002\030\001\022O\n\031client_" - + "certificate_config\030\003 \001(\0132,.google.contai" - + "ner.v1.ClientCertificateConfig\022\036\n\026cluste" - + "r_ca_certificate\030d \001(\t\022\032\n\022client_certifi" - + "cate\030e \001(\t\022\022\n\nclient_key\030f \001(\t\";\n\027Client" - + "CertificateConfig\022 \n\030issue_client_certif" - + "icate\030\001 \001(\010\"\254\007\n\014AddonsConfig\022C\n\023http_loa" - + "d_balancing\030\001 \001(\0132&.google.container.v1." - + "HttpLoadBalancing\022Q\n\032horizontal_pod_auto" - + "scaling\030\002 \001(\0132-.google.container.v1.Hori" - + "zontalPodAutoscaling\022J\n\024kubernetes_dashb" - + "oard\030\003 \001(\0132(.google.container.v1.Kuberne" - + "tesDashboardB\002\030\001\022G\n\025network_policy_confi" - + "g\030\004 \001(\0132(.google.container.v1.NetworkPol" - + "icyConfig\022=\n\020cloud_run_config\030\007 \001(\0132#.go" - + "ogle.container.v1.CloudRunConfig\022=\n\020dns_" - + "cache_config\030\010 \001(\0132#.google.container.v1" - + ".DnsCacheConfig\022K\n\027config_connector_conf" - + "ig\030\n \001(\0132*.google.container.v1.ConfigCon" - + "nectorConfig\022d\n%gce_persistent_disk_csi_" - + "driver_config\030\013 \001(\01325.google.container.v" - + "1.GcePersistentDiskCsiDriverConfig\022Y\n\037gc" - + "p_filestore_csi_driver_config\030\016 \001(\01320.go" - + "ogle.container.v1.GcpFilestoreCsiDriverC" - + "onfig\022J\n\027gke_backup_agent_config\030\020 \001(\0132)" - + ".google.container.v1.GkeBackupAgentConfi" - + "g\022O\n\032gcs_fuse_csi_driver_config\030\021 \001(\0132+." - + "google.container.v1.GcsFuseCsiDriverConf" - + "ig\022F\n\022stateful_ha_config\030\022 \001(\0132%.google." - + "container.v1.StatefulHAConfigB\003\340A\001\"%\n\021Ht" - + "tpLoadBalancing\022\020\n\010disabled\030\001 \001(\010\",\n\030Hor" - + "izontalPodAutoscaling\022\020\n\010disabled\030\001 \001(\010\"" - + "\'\n\023KubernetesDashboard\022\020\n\010disabled\030\001 \001(\010" - + "\"\'\n\023NetworkPolicyConfig\022\020\n\010disabled\030\001 \001(" - + "\010\"!\n\016DnsCacheConfig\022\017\n\007enabled\030\001 \001(\010\"9\n&" - + "PrivateClusterMasterGlobalAccessConfig\022\017" - + "\n\007enabled\030\001 \001(\010\"\305\002\n\024PrivateClusterConfig" - + "\022\034\n\024enable_private_nodes\030\001 \001(\010\022\037\n\027enable" - + "_private_endpoint\030\002 \001(\010\022\036\n\026master_ipv4_c" - + "idr_block\030\003 \001(\t\022\030\n\020private_endpoint\030\004 \001(" - + "\t\022\027\n\017public_endpoint\030\005 \001(\t\022\024\n\014peering_na" - + "me\030\007 \001(\t\022`\n\033master_global_access_config\030" - + "\010 \001(\0132;.google.container.v1.PrivateClust" - + "erMasterGlobalAccessConfig\022#\n\033private_en" - + "dpoint_subnetwork\030\n \001(\t\"D\n\031Authenticator" - + "GroupsConfig\022\017\n\007enabled\030\001 \001(\010\022\026\n\016securit" - + "y_group\030\002 \001(\t\"\356\001\n\016CloudRunConfig\022\020\n\010disa" - + "bled\030\001 \001(\010\022P\n\022load_balancer_type\030\003 \001(\01624" - + ".google.container.v1.CloudRunConfig.Load" - + "BalancerType\"x\n\020LoadBalancerType\022\"\n\036LOAD" - + "_BALANCER_TYPE_UNSPECIFIED\020\000\022\037\n\033LOAD_BAL" - + "ANCER_TYPE_EXTERNAL\020\001\022\037\n\033LOAD_BALANCER_T" - + "YPE_INTERNAL\020\002\"(\n\025ConfigConnectorConfig\022" - + "\017\n\007enabled\030\001 \001(\010\"3\n GcePersistentDiskCsi" - + "DriverConfig\022\017\n\007enabled\030\001 \001(\010\".\n\033GcpFile" - + "storeCsiDriverConfig\022\017\n\007enabled\030\001 \001(\010\")\n" - + "\026GcsFuseCsiDriverConfig\022\017\n\007enabled\030\001 \001(\010" - + "\"\'\n\024GkeBackupAgentConfig\022\017\n\007enabled\030\001 \001(" - + "\010\"#\n\020StatefulHAConfig\022\017\n\007enabled\030\001 \001(\010\"\216" - + "\002\n\036MasterAuthorizedNetworksConfig\022\017\n\007ena" - + "bled\030\001 \001(\010\022R\n\013cidr_blocks\030\002 \003(\0132=.google" - + ".container.v1.MasterAuthorizedNetworksCo" - + "nfig.CidrBlock\022,\n\037gcp_public_cidrs_acces" - + "s_enabled\030\003 \001(\010H\000\210\001\001\0325\n\tCidrBlock\022\024\n\014dis" - + "play_name\030\001 \001(\t\022\022\n\ncidr_block\030\002 \001(\tB\"\n _" - + "gcp_public_cidrs_access_enabled\"\035\n\nLegac" - + "yAbac\022\017\n\007enabled\030\001 \001(\010\"\221\001\n\rNetworkPolicy" - + "\022=\n\010provider\030\001 \001(\0162+.google.container.v1" - + ".NetworkPolicy.Provider\022\017\n\007enabled\030\002 \001(\010" - + "\"0\n\010Provider\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\n" - + "\n\006CALICO\020\001\"\343\001\n\023BinaryAuthorization\022\023\n\007en" - + "abled\030\001 \001(\010B\002\030\001\022P\n\017evaluation_mode\030\002 \001(\016" - + "27.google.container.v1.BinaryAuthorizati" - + "on.EvaluationMode\"e\n\016EvaluationMode\022\037\n\033E" - + "VALUATION_MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED" - + "\020\001\022$\n PROJECT_SINGLETON_POLICY_ENFORCE\020\002" - + "\"-\n\032PodCIDROverprovisionConfig\022\017\n\007disabl" - + "e\030\001 \001(\010\"\275\006\n\022IPAllocationPolicy\022\026\n\016use_ip" - + "_aliases\030\001 \001(\010\022\031\n\021create_subnetwork\030\002 \001(" - + "\010\022\027\n\017subnetwork_name\030\003 \001(\t\022\035\n\021cluster_ip" - + "v4_cidr\030\004 \001(\tB\002\030\001\022\032\n\016node_ipv4_cidr\030\005 \001(" - + "\tB\002\030\001\022\036\n\022services_ipv4_cidr\030\006 \001(\tB\002\030\001\022$\n" - + "\034cluster_secondary_range_name\030\007 \001(\t\022%\n\035s" - + "ervices_secondary_range_name\030\010 \001(\t\022\037\n\027cl" - + "uster_ipv4_cidr_block\030\t \001(\t\022\034\n\024node_ipv4" - + "_cidr_block\030\n \001(\t\022 \n\030services_ipv4_cidr_" - + "block\030\013 \001(\t\022\033\n\023tpu_ipv4_cidr_block\030\r \001(\t" - + "\022\022\n\nuse_routes\030\017 \001(\010\0222\n\nstack_type\030\020 \001(\016" - + "2\036.google.container.v1.StackType\022=\n\020ipv6" - + "_access_type\030\021 \001(\0162#.google.container.v1" - + ".IPv6AccessType\022V\n\035pod_cidr_overprovisio" - + "n_config\030\025 \001(\0132/.google.container.v1.Pod" - + "CIDROverprovisionConfig\022#\n\026subnet_ipv6_c" - + "idr_block\030\026 \001(\tB\003\340A\003\022%\n\030services_ipv6_ci" - + "dr_block\030\027 \001(\tB\003\340A\003\022Y\n\034additional_pod_ra" - + "nges_config\030\030 \001(\0132..google.container.v1." - + "AdditionalPodRangesConfigB\003\340A\003\022/\n\"defaul" - + "t_pod_ipv4_range_utilization\030\031 \001(\001B\003\340A\003\"" - + "\231\033\n\007Cluster\022\014\n\004name\030\001 \001(\t\022\023\n\013description" - + "\030\002 \001(\t\022\036\n\022initial_node_count\030\003 \001(\005B\002\030\001\0228" - + "\n\013node_config\030\004 \001(\0132\037.google.container.v" - + "1.NodeConfigB\002\030\001\0224\n\013master_auth\030\005 \001(\0132\037." - + "google.container.v1.MasterAuth\022\027\n\017loggin" - + "g_service\030\006 \001(\t\022\032\n\022monitoring_service\030\007 " - + "\001(\t\022\017\n\007network\030\010 \001(\t\022\031\n\021cluster_ipv4_cid" - + "r\030\t \001(\t\0228\n\raddons_config\030\n \001(\0132!.google." - + "container.v1.AddonsConfig\022\022\n\nsubnetwork\030" - + "\013 \001(\t\0221\n\nnode_pools\030\014 \003(\0132\035.google.conta" - + "iner.v1.NodePool\022\021\n\tlocations\030\r \003(\t\022\037\n\027e" - + "nable_kubernetes_alpha\030\016 \001(\010\022I\n\017resource" - + "_labels\030\017 \003(\01320.google.container.v1.Clus" - + "ter.ResourceLabelsEntry\022\031\n\021label_fingerp" - + "rint\030\020 \001(\t\0224\n\013legacy_abac\030\022 \001(\0132\037.google" - + ".container.v1.LegacyAbac\022:\n\016network_poli" - + "cy\030\023 \001(\0132\".google.container.v1.NetworkPo" - + "licy\022E\n\024ip_allocation_policy\030\024 \001(\0132\'.goo" - + "gle.container.v1.IPAllocationPolicy\022^\n!m" - + "aster_authorized_networks_config\030\026 \001(\01323" - + ".google.container.v1.MasterAuthorizedNet" - + "worksConfig\022B\n\022maintenance_policy\030\027 \001(\0132" - + "&.google.container.v1.MaintenancePolicy\022" - + "F\n\024binary_authorization\030\030 \001(\0132(.google.c" - + "ontainer.v1.BinaryAuthorization\022<\n\013autos" - + "caling\030\032 \001(\0132\'.google.container.v1.Clust" - + "erAutoscaling\022:\n\016network_config\030\033 \001(\0132\"." - + "google.container.v1.NetworkConfig\022K\n\033def" - + "ault_max_pods_constraint\030\036 \001(\0132&.google." - + "container.v1.MaxPodsConstraint\022T\n\034resour" - + "ce_usage_export_config\030! \001(\0132..google.co" - + "ntainer.v1.ResourceUsageExportConfig\022S\n\033" - + "authenticator_groups_config\030\" \001(\0132..goog" - + "le.container.v1.AuthenticatorGroupsConfi" - + "g\022I\n\026private_cluster_config\030% \001(\0132).goog" - + "le.container.v1.PrivateClusterConfig\022D\n\023" - + "database_encryption\030& \001(\0132\'.google.conta" - + "iner.v1.DatabaseEncryption\022M\n\030vertical_p" - + "od_autoscaling\030\' \001(\0132+.google.container." - + "v1.VerticalPodAutoscaling\022:\n\016shielded_no" - + "des\030( \001(\0132\".google.container.v1.Shielded" - + "Nodes\022<\n\017release_channel\030) \001(\0132#.google." - + "container.v1.ReleaseChannel\022M\n\030workload_" - + "identity_config\030+ \001(\0132+.google.container" - + ".v1.WorkloadIdentityConfig\022@\n\021mesh_certi" - + "ficates\030C \001(\0132%.google.container.v1.Mesh" - + "Certificates\022I\n\026cost_management_config\030-" - + " \001(\0132).google.container.v1.CostManagemen" - + "tConfig\022D\n\023notification_config\0301 \001(\0132\'.g" - + "oogle.container.v1.NotificationConfig\022B\n" - + "\022confidential_nodes\0302 \001(\0132&.google.conta" - + "iner.v1.ConfidentialNodes\022K\n\027identity_se" - + "rvice_config\0306 \001(\0132*.google.container.v1" - + ".IdentityServiceConfig\022\021\n\tself_link\030d \001(" - + "\t\022\020\n\004zone\030e \001(\tB\002\030\001\022\020\n\010endpoint\030f \001(\t\022\037\n" - + "\027initial_cluster_version\030g \001(\t\022\036\n\026curren" - + "t_master_version\030h \001(\t\022 \n\024current_node_v" - + "ersion\030i \001(\tB\002\030\001\022\023\n\013create_time\030j \001(\t\0223\n" - + "\006status\030k \001(\0162#.google.container.v1.Clus" - + "ter.Status\022\032\n\016status_message\030l \001(\tB\002\030\001\022\033" - + "\n\023node_ipv4_cidr_size\030m \001(\005\022\032\n\022services_" - + "ipv4_cidr\030n \001(\t\022\037\n\023instance_group_urls\030o" - + " \003(\tB\002\030\001\022\036\n\022current_node_count\030p \001(\005B\002\030\001" - + "\022\023\n\013expire_time\030q \001(\t\022\020\n\010location\030r \001(\t\022" - + "\022\n\nenable_tpu\030s \001(\010\022\033\n\023tpu_ipv4_cidr_blo" - + "ck\030t \001(\t\0228\n\nconditions\030v \003(\0132$.google.co" - + "ntainer.v1.StatusCondition\0222\n\tautopilot\030" - + "\200\001 \001(\0132\036.google.container.v1.Autopilot\022\020" - + "\n\002id\030\201\001 \001(\tB\003\340A\003\022G\n\022node_pool_defaults\030\203" - + "\001 \001(\0132%.google.container.v1.NodePoolDefa" - + "ultsH\000\210\001\001\022;\n\016logging_config\030\204\001 \001(\0132\".goo" - + "gle.container.v1.LoggingConfig\022A\n\021monito" - + "ring_config\030\205\001 \001(\0132%.google.container.v1" - + ".MonitoringConfig\022G\n\025node_pool_auto_conf" - + "ig\030\210\001 \001(\0132\'.google.container.v1.NodePool" - + "AutoConfig\022\r\n\004etag\030\213\001 \001(\t\022*\n\005fleet\030\214\001 \001(" - + "\0132\032.google.container.v1.Fleet\022L\n\027securit" - + "y_posture_config\030\221\001 \001(\0132*.google.contain" - + "er.v1.SecurityPostureConfig\022D\n\024enable_k8" - + "s_beta_apis\030\217\001 \001(\0132%.google.container.v1" - + ".K8sBetaAPIConfig\022A\n\021enterprise_config\030\225" - + "\001 \001(\0132%.google.container.v1.EnterpriseCo" - + "nfig\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022\026\n\022STATUS_" - + "UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNI" - + "NG\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004\022\t\n\005E" - + "RROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_node_pool_defau" - + "lts\"(\n\020K8sBetaAPIConfig\022\024\n\014enabled_apis\030" - + "\001 \003(\t\"\236\003\n\025SecurityPostureConfig\022B\n\004mode\030" - + "\001 \001(\0162/.google.container.v1.SecurityPost" - + "ureConfig.ModeH\000\210\001\001\022]\n\022vulnerability_mod" - + "e\030\002 \001(\0162<.google.container.v1.SecurityPo" - + "stureConfig.VulnerabilityModeH\001\210\001\001\"5\n\004Mo" - + "de\022\024\n\020MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t" - + "\n\005BASIC\020\002\"\212\001\n\021VulnerabilityMode\022\"\n\036VULNE" - + "RABILITY_MODE_UNSPECIFIED\020\000\022\032\n\026VULNERABI" - + "LITY_DISABLED\020\001\022\027\n\023VULNERABILITY_BASIC\020\002" - + "\022\034\n\030VULNERABILITY_ENTERPRISE\020\003B\007\n\005_modeB" - + "\025\n\023_vulnerability_mode\"\225\001\n\022NodePoolAutoC" - + "onfig\0226\n\014network_tags\030\001 \001(\0132 .google.con" - + "tainer.v1.NetworkTags\022G\n\025resource_manage" - + "r_tags\030\002 \001(\0132(.google.container.v1.Resou" - + "rceManagerTags\"Y\n\020NodePoolDefaults\022E\n\024no" - + "de_config_defaults\030\001 \001(\0132\'.google.contai" - + "ner.v1.NodeConfigDefaults\"\216\001\n\022NodeConfig" - + "Defaults\0224\n\013gcfs_config\030\001 \001(\0132\037.google.c" - + "ontainer.v1.GcfsConfig\022B\n\016logging_config" - + "\030\003 \001(\0132*.google.container.v1.NodePoolLog" - + "gingConfig\"\320\035\n\rClusterUpdate\022\034\n\024desired_" - + "node_version\030\004 \001(\t\022\"\n\032desired_monitoring" - + "_service\030\005 \001(\t\022@\n\025desired_addons_config\030" - + "\006 \001(\0132!.google.container.v1.AddonsConfig" - + "\022\034\n\024desired_node_pool_id\030\007 \001(\t\022\032\n\022desire" - + "d_image_type\030\010 \001(\t\022L\n\033desired_database_e" - + "ncryption\030. \001(\0132\'.google.container.v1.Da" - + "tabaseEncryption\022U\n desired_workload_ide" - + "ntity_config\030/ \001(\0132+.google.container.v1" - + ".WorkloadIdentityConfig\022H\n\031desired_mesh_" - + "certificates\030C \001(\0132%.google.container.v1" - + ".MeshCertificates\022B\n\026desired_shielded_no" - + "des\0300 \001(\0132\".google.container.v1.Shielded" - + "Nodes\022Q\n\036desired_cost_management_config\030" - + "1 \001(\0132).google.container.v1.CostManageme" - + "ntConfig\022:\n\022desired_dns_config\0305 \001(\0132\036.g" - + "oogle.container.v1.DNSConfig\022O\n\035desired_" - + "node_pool_autoscaling\030\t \001(\0132(.google.con" - + "tainer.v1.NodePoolAutoscaling\022\031\n\021desired" - + "_locations\030\n \003(\t\022f\n)desired_master_autho" - + "rized_networks_config\030\014 \001(\01323.google.con" - + "tainer.v1.MasterAuthorizedNetworksConfig" - + "\022L\n\033desired_cluster_autoscaling\030\017 \001(\0132\'." - + "google.container.v1.ClusterAutoscaling\022N" - + "\n\034desired_binary_authorization\030\020 \001(\0132(.g" - + "oogle.container.v1.BinaryAuthorization\022\037" - + "\n\027desired_logging_service\030\023 \001(\t\022\\\n$desir" - + "ed_resource_usage_export_config\030\025 \001(\0132.." - + "google.container.v1.ResourceUsageExportC" - + "onfig\022U\n desired_vertical_pod_autoscalin" - + "g\030\026 \001(\0132+.google.container.v1.VerticalPo" - + "dAutoscaling\022Q\n\036desired_private_cluster_" - + "config\030\031 \001(\0132).google.container.v1.Priva" - + "teClusterConfig\022\\\n$desired_intra_node_vi" - + "sibility_config\030\032 \001(\0132..google.container" - + ".v1.IntraNodeVisibilityConfig\022K\n\033desired" - + "_default_snat_status\030\034 \001(\0132&.google.cont" - + "ainer.v1.DefaultSnatStatus\022D\n\027desired_re" - + "lease_channel\030\037 \001(\0132#.google.container.v" - + "1.ReleaseChannel\022Q\n\037desired_l4ilb_subset" - + "ting_config\030\' \001(\0132(.google.container.v1." - + "ILBSubsettingConfig\022H\n\031desired_datapath_" - + "provider\0302 \001(\0162%.google.container.v1.Dat" - + "apathProvider\022X\n\"desired_private_ipv6_go" - + "ogle_access\0303 \001(\0162,.google.container.v1." - + "PrivateIPv6GoogleAccess\022L\n\033desired_notif" - + "ication_config\0307 \001(\0132\'.google.container." - + "v1.NotificationConfig\022[\n#desired_authent" - + "icator_groups_config\030? \001(\0132..google.cont" - + "ainer.v1.AuthenticatorGroupsConfig\022B\n\026de" - + "sired_logging_config\030@ \001(\0132\".google.cont" - + "ainer.v1.LoggingConfig\022H\n\031desired_monito" - + "ring_config\030A \001(\0132%.google.container.v1." - + "MonitoringConfig\022S\n\037desired_identity_ser" - + "vice_config\030B \001(\0132*.google.container.v1." - + "IdentityServiceConfig\022Z\n#desired_service", - "_external_ips_config\030< \001(\0132-.google.cont" - + "ainer.v1.ServiceExternalIPsConfig\022,\n\037des" - + "ired_enable_private_endpoint\030G \001(\010H\000\210\001\001\022" - + "\036\n\026desired_master_version\030d \001(\t\022<\n\023desir" - + "ed_gcfs_config\030m \001(\0132\037.google.container." - + "v1.GcfsConfig\022T\n*desired_node_pool_auto_" - + "config_network_tags\030n \001(\0132 .google.conta" - + "iner.v1.NetworkTags\022I\n\032desired_gateway_a" - + "pi_config\030r \001(\0132%.google.container.v1.Ga" - + "tewayAPIConfig\022\014\n\004etag\030s \001(\t\022T\n desired_" - + "node_pool_logging_config\030t \001(\0132*.google." - + "container.v1.NodePoolLoggingConfig\0221\n\rde" - + "sired_fleet\030u \001(\0132\032.google.container.v1." - + "Fleet\022:\n\022desired_stack_type\030w \001(\0162\036.goog" - + "le.container.v1.StackType\022T\n\034additional_" - + "pod_ranges_config\030x \001(\0132..google.contain" - + "er.v1.AdditionalPodRangesConfig\022\\\n$remov" - + "ed_additional_pod_ranges_config\030y \001(\0132.." - + "google.container.v1.AdditionalPodRangesC" - + "onfig\022C\n\024enable_k8s_beta_apis\030z \001(\0132%.go" - + "ogle.container.v1.K8sBetaAPIConfig\022S\n\037de" - + "sired_security_posture_config\030| \001(\0132*.go" - + "ogle.container.v1.SecurityPostureConfig\022" - + "n\n\"desired_network_performance_config\030} " - + "\001(\0132B.google.container.v1.NetworkConfig." - + "ClusterNetworkPerformanceConfig\022/\n\"desir" - + "ed_enable_fqdn_network_policy\030~ \001(\010H\001\210\001\001" - + "\022\\\n(desired_autopilot_workload_policy_co" - + "nfig\030\200\001 \001(\0132).google.container.v1.Worklo" - + "adPolicyConfig\022E\n\025desired_k8s_beta_apis\030" - + "\203\001 \001(\0132%.google.container.v1.K8sBetaAPIC" - + "onfig\022f\n3desired_node_pool_auto_config_r" - + "esource_manager_tags\030\210\001 \001(\0132(.google.con" - + "tainer.v1.ResourceManagerTags\022b\n$desired" - + "_in_transit_encryption_config\030\211\001 \001(\0162..g" - + "oogle.container.v1.InTransitEncryptionCo" - + "nfigH\002\210\001\001B\"\n _desired_enable_private_end" - + "pointB%\n#_desired_enable_fqdn_network_po" - + "licyB\'\n%_desired_in_transit_encryption_c" - + "onfig\"q\n\031AdditionalPodRangesConfig\022\027\n\017po" - + "d_range_names\030\001 \003(\t\022;\n\016pod_range_info\030\002 " - + "\003(\0132\036.google.container.v1.RangeInfoB\003\340A\003" - + "\">\n\tRangeInfo\022\027\n\nrange_name\030\001 \001(\tB\003\340A\003\022\030" - + "\n\013utilization\030\002 \001(\001B\003\340A\003\"\264\010\n\tOperation\022\014" - + "\n\004name\030\001 \001(\t\022\020\n\004zone\030\002 \001(\tB\002\030\001\022;\n\016operat" - + "ion_type\030\003 \001(\0162#.google.container.v1.Ope" - + "ration.Type\0225\n\006status\030\004 \001(\0162%.google.con" - + "tainer.v1.Operation.Status\022\016\n\006detail\030\010 \001" - + "(\t\022\035\n\016status_message\030\005 \001(\tB\005\030\001\340A\003\022\021\n\tsel" - + "f_link\030\006 \001(\t\022\023\n\013target_link\030\007 \001(\t\022\020\n\010loc" - + "ation\030\t \001(\t\022\022\n\nstart_time\030\n \001(\t\022\020\n\010end_t" - + "ime\030\013 \001(\t\022=\n\010progress\030\014 \001(\0132&.google.con" - + "tainer.v1.OperationProgressB\003\340A\003\022D\n\022clus" - + "ter_conditions\030\r \003(\0132$.google.container." - + "v1.StatusConditionB\002\030\001\022E\n\023nodepool_condi" - + "tions\030\016 \003(\0132$.google.container.v1.Status" - + "ConditionB\002\030\001\022!\n\005error\030\017 \001(\0132\022.google.rp" - + "c.Status\"R\n\006Status\022\026\n\022STATUS_UNSPECIFIED" - + "\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014" - + "\n\010ABORTING\020\004\"\300\003\n\004Type\022\024\n\020TYPE_UNSPECIFIE" - + "D\020\000\022\022\n\016CREATE_CLUSTER\020\001\022\022\n\016DELETE_CLUSTE" - + "R\020\002\022\022\n\016UPGRADE_MASTER\020\003\022\021\n\rUPGRADE_NODES" - + "\020\004\022\022\n\016REPAIR_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER" - + "\020\006\022\024\n\020CREATE_NODE_POOL\020\007\022\024\n\020DELETE_NODE_" - + "POOL\020\010\022\034\n\030SET_NODE_POOL_MANAGEMENT\020\t\022\025\n\021" - + "AUTO_REPAIR_NODES\020\n\022\032\n\022AUTO_UPGRADE_NODE" - + "S\020\013\032\002\010\001\022\022\n\nSET_LABELS\020\014\032\002\010\001\022\027\n\017SET_MASTE" - + "R_AUTH\020\r\032\002\010\001\022\026\n\022SET_NODE_POOL_SIZE\020\016\022\032\n\022" - + "SET_NETWORK_POLICY\020\017\032\002\010\001\022\036\n\026SET_MAINTENA" - + "NCE_POLICY\020\020\032\002\010\001\022\022\n\016RESIZE_CLUSTER\020\022\022\031\n\025" - + "FLEET_FEATURE_UPGRADE\020\023\"\273\002\n\021OperationPro" - + "gress\022\014\n\004name\030\001 \001(\t\0225\n\006status\030\002 \001(\0162%.go" - + "ogle.container.v1.Operation.Status\022>\n\007me" - + "trics\030\003 \003(\0132-.google.container.v1.Operat" - + "ionProgress.Metric\0226\n\006stages\030\004 \003(\0132&.goo" - + "gle.container.v1.OperationProgress\032i\n\006Me" - + "tric\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\tint_value\030\002 \001" - + "(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n\014string_v" - + "alue\030\004 \001(\tH\000B\007\n\005value\"\204\001\n\024CreateClusterR" + + "onfidential_storage\030. \001(\010B\003\340A\001\022D\n\024second" + + "ary_boot_disks\0300 \003(\0132&.google.container." + + "v1.SecondaryBootDisk\032/\n\rMetadataEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0325\n\023" + + "ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001B\016\n\014_fast_socket\"M\n\027AdvancedM" + + "achineFeatures\022\035\n\020threads_per_core\030\001 \001(\003" + + "H\000\210\001\001B\023\n\021_threads_per_core\"\263\006\n\021NodeNetwo" + + "rkConfig\022\035\n\020create_pod_range\030\004 \001(\010B\003\340A\004\022" + + "\021\n\tpod_range\030\005 \001(\t\022\033\n\023pod_ipv4_cidr_bloc" + + "k\030\006 \001(\t\022!\n\024enable_private_nodes\030\t \001(\010H\000\210" + + "\001\001\022h\n\032network_performance_config\030\013 \001(\0132?" + + ".google.container.v1.NodeNetworkConfig.N" + + "etworkPerformanceConfigH\001\210\001\001\022V\n\035pod_cidr" + + "_overprovision_config\030\r \001(\0132/.google.con" + + "tainer.v1.PodCIDROverprovisionConfig\022Y\n\037" + + "additional_node_network_configs\030\016 \003(\01320." + + "google.container.v1.AdditionalNodeNetwor" + + "kConfig\022W\n\036additional_pod_network_config" + + "s\030\017 \003(\0132/.google.container.v1.Additional" + + "PodNetworkConfig\022\'\n\032pod_ipv4_range_utili" + + "zation\030\020 \001(\001B\003\340A\003\032\324\001\n\030NetworkPerformance" + + "Config\022n\n\033total_egress_bandwidth_tier\030\001 " + + "\001(\0162D.google.container.v1.NodeNetworkCon" + + "fig.NetworkPerformanceConfig.TierH\000\210\001\001\"(" + + "\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\n\n\006TIER_1\020\001" + + "B\036\n\034_total_egress_bandwidth_tierB\027\n\025_ena" + + "ble_private_nodesB\035\n\033_network_performanc" + + "e_config\"B\n\033AdditionalNodeNetworkConfig\022" + + "\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\"\253\001\n" + + "\032AdditionalPodNetworkConfig\022\022\n\nsubnetwor" + + "k\030\001 \001(\t\022\033\n\023secondary_pod_range\030\002 \001(\t\022F\n\021" + + "max_pods_per_node\030\003 \001(\0132&.google.contain" + + "er.v1.MaxPodsConstraintH\000\210\001\001B\024\n\022_max_pod" + + "s_per_node\"Y\n\026ShieldedInstanceConfig\022\032\n\022" + + "enable_secure_boot\030\001 \001(\010\022#\n\033enable_integ" + + "rity_monitoring\030\002 \001(\010\"k\n\rSandboxConfig\0225" + + "\n\004type\030\002 \001(\0162\'.google.container.v1.Sandb" + + "oxConfig.Type\"#\n\004Type\022\017\n\013UNSPECIFIED\020\000\022\n" + + "\n\006GVISOR\020\001\"\035\n\nGcfsConfig\022\017\n\007enabled\030\001 \001(" + + "\010\"\337\001\n\023ReservationAffinity\022O\n\030consume_res" + + "ervation_type\030\001 \001(\0162-.google.container.v" + + "1.ReservationAffinity.Type\022\013\n\003key\030\002 \001(\t\022" + + "\016\n\006values\030\003 \003(\t\"Z\n\004Type\022\017\n\013UNSPECIFIED\020\000" + + "\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_RESERVATION\020" + + "\002\022\030\n\024SPECIFIC_RESERVATION\020\003\"\226\002\n\020SoleTena" + + "ntConfig\022K\n\017node_affinities\030\001 \003(\01322.goog" + + "le.container.v1.SoleTenantConfig.NodeAff" + + "inity\032\264\001\n\014NodeAffinity\022\013\n\003key\030\001 \001(\t\022M\n\010o" + + "perator\030\002 \001(\0162;.google.container.v1.Sole" + + "TenantConfig.NodeAffinity.Operator\022\016\n\006va" + + "lues\030\003 \003(\t\"8\n\010Operator\022\030\n\024OPERATOR_UNSPE" + + "CIFIED\020\000\022\006\n\002IN\020\001\022\n\n\006NOT_IN\020\002\"\271\001\n\tNodeTai" + + "nt\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\0225\n\006effect" + + "\030\003 \001(\0162%.google.container.v1.NodeTaint.E" + + "ffect\"Y\n\006Effect\022\026\n\022EFFECT_UNSPECIFIED\020\000\022" + + "\017\n\013NO_SCHEDULE\020\001\022\026\n\022PREFER_NO_SCHEDULE\020\002" + + "\022\016\n\nNO_EXECUTE\020\003\"<\n\nNodeTaints\022.\n\006taints" + + "\030\001 \003(\0132\036.google.container.v1.NodeTaint\"x" + + "\n\nNodeLabels\022;\n\006labels\030\001 \003(\0132+.google.co" + + "ntainer.v1.NodeLabels.LabelsEntry\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"\200\001\n\016ResourceLabels\022?\n\006labels\030\001 \003(\0132/.go" + + "ogle.container.v1.ResourceLabels.LabelsE" + + "ntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"\033\n\013NetworkTags\022\014\n\004tags\030\001 \003(\t" + + "\"\331\001\n\nMasterAuth\022\024\n\010username\030\001 \001(\tB\002\030\001\022\024\n" + + "\010password\030\002 \001(\tB\002\030\001\022O\n\031client_certificat" + + "e_config\030\003 \001(\0132,.google.container.v1.Cli" + + "entCertificateConfig\022\036\n\026cluster_ca_certi" + + "ficate\030d \001(\t\022\032\n\022client_certificate\030e \001(\t" + + "\022\022\n\nclient_key\030f \001(\t\";\n\027ClientCertificat" + + "eConfig\022 \n\030issue_client_certificate\030\001 \001(" + + "\010\"\254\007\n\014AddonsConfig\022C\n\023http_load_balancin" + + "g\030\001 \001(\0132&.google.container.v1.HttpLoadBa" + + "lancing\022Q\n\032horizontal_pod_autoscaling\030\002 " + + "\001(\0132-.google.container.v1.HorizontalPodA" + + "utoscaling\022J\n\024kubernetes_dashboard\030\003 \001(\013" + + "2(.google.container.v1.KubernetesDashboa" + + "rdB\002\030\001\022G\n\025network_policy_config\030\004 \001(\0132(." + + "google.container.v1.NetworkPolicyConfig\022" + + "=\n\020cloud_run_config\030\007 \001(\0132#.google.conta" + + "iner.v1.CloudRunConfig\022=\n\020dns_cache_conf" + + "ig\030\010 \001(\0132#.google.container.v1.DnsCacheC" + + "onfig\022K\n\027config_connector_config\030\n \001(\0132*" + + ".google.container.v1.ConfigConnectorConf" + + "ig\022d\n%gce_persistent_disk_csi_driver_con" + + "fig\030\013 \001(\01325.google.container.v1.GcePersi" + + "stentDiskCsiDriverConfig\022Y\n\037gcp_filestor" + + "e_csi_driver_config\030\016 \001(\01320.google.conta" + + "iner.v1.GcpFilestoreCsiDriverConfig\022J\n\027g" + + "ke_backup_agent_config\030\020 \001(\0132).google.co" + + "ntainer.v1.GkeBackupAgentConfig\022O\n\032gcs_f" + + "use_csi_driver_config\030\021 \001(\0132+.google.con" + + "tainer.v1.GcsFuseCsiDriverConfig\022F\n\022stat" + + "eful_ha_config\030\022 \001(\0132%.google.container." + + "v1.StatefulHAConfigB\003\340A\001\"%\n\021HttpLoadBala" + + "ncing\022\020\n\010disabled\030\001 \001(\010\",\n\030HorizontalPod" + + "Autoscaling\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Kuberne" + + "tesDashboard\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Networ" + + "kPolicyConfig\022\020\n\010disabled\030\001 \001(\010\"!\n\016DnsCa" + + "cheConfig\022\017\n\007enabled\030\001 \001(\010\"9\n&PrivateClu" + + "sterMasterGlobalAccessConfig\022\017\n\007enabled\030" + + "\001 \001(\010\"\305\002\n\024PrivateClusterConfig\022\034\n\024enable" + + "_private_nodes\030\001 \001(\010\022\037\n\027enable_private_e" + + "ndpoint\030\002 \001(\010\022\036\n\026master_ipv4_cidr_block\030" + + "\003 \001(\t\022\030\n\020private_endpoint\030\004 \001(\t\022\027\n\017publi" + + "c_endpoint\030\005 \001(\t\022\024\n\014peering_name\030\007 \001(\t\022`" + + "\n\033master_global_access_config\030\010 \001(\0132;.go" + + "ogle.container.v1.PrivateClusterMasterGl" + + "obalAccessConfig\022#\n\033private_endpoint_sub" + + "network\030\n \001(\t\"D\n\031AuthenticatorGroupsConf" + + "ig\022\017\n\007enabled\030\001 \001(\010\022\026\n\016security_group\030\002 " + + "\001(\t\"\356\001\n\016CloudRunConfig\022\020\n\010disabled\030\001 \001(\010" + + "\022P\n\022load_balancer_type\030\003 \001(\01624.google.co" + + "ntainer.v1.CloudRunConfig.LoadBalancerTy" + + "pe\"x\n\020LoadBalancerType\022\"\n\036LOAD_BALANCER_" + + "TYPE_UNSPECIFIED\020\000\022\037\n\033LOAD_BALANCER_TYPE" + + "_EXTERNAL\020\001\022\037\n\033LOAD_BALANCER_TYPE_INTERN" + + "AL\020\002\"(\n\025ConfigConnectorConfig\022\017\n\007enabled" + + "\030\001 \001(\010\"3\n GcePersistentDiskCsiDriverConf" + + "ig\022\017\n\007enabled\030\001 \001(\010\".\n\033GcpFilestoreCsiDr" + + "iverConfig\022\017\n\007enabled\030\001 \001(\010\")\n\026GcsFuseCs" + + "iDriverConfig\022\017\n\007enabled\030\001 \001(\010\"\'\n\024GkeBac" + + "kupAgentConfig\022\017\n\007enabled\030\001 \001(\010\"#\n\020State" + + "fulHAConfig\022\017\n\007enabled\030\001 \001(\010\"\216\002\n\036MasterA" + + "uthorizedNetworksConfig\022\017\n\007enabled\030\001 \001(\010" + + "\022R\n\013cidr_blocks\030\002 \003(\0132=.google.container" + + ".v1.MasterAuthorizedNetworksConfig.CidrB" + + "lock\022,\n\037gcp_public_cidrs_access_enabled\030" + + "\003 \001(\010H\000\210\001\001\0325\n\tCidrBlock\022\024\n\014display_name\030" + + "\001 \001(\t\022\022\n\ncidr_block\030\002 \001(\tB\"\n _gcp_public" + + "_cidrs_access_enabled\"\035\n\nLegacyAbac\022\017\n\007e" + + "nabled\030\001 \001(\010\"\221\001\n\rNetworkPolicy\022=\n\010provid" + + "er\030\001 \001(\0162+.google.container.v1.NetworkPo" + + "licy.Provider\022\017\n\007enabled\030\002 \001(\010\"0\n\010Provid" + + "er\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006CALICO\020\001" + + "\"\343\001\n\023BinaryAuthorization\022\023\n\007enabled\030\001 \001(" + + "\010B\002\030\001\022P\n\017evaluation_mode\030\002 \001(\01627.google." + + "container.v1.BinaryAuthorization.Evaluat" + + "ionMode\"e\n\016EvaluationMode\022\037\n\033EVALUATION_" + + "MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022$\n PROJ" + + "ECT_SINGLETON_POLICY_ENFORCE\020\002\"-\n\032PodCID" + + "ROverprovisionConfig\022\017\n\007disable\030\001 \001(\010\"\275\006" + + "\n\022IPAllocationPolicy\022\026\n\016use_ip_aliases\030\001" + + " \001(\010\022\031\n\021create_subnetwork\030\002 \001(\010\022\027\n\017subne" + + "twork_name\030\003 \001(\t\022\035\n\021cluster_ipv4_cidr\030\004 " + + "\001(\tB\002\030\001\022\032\n\016node_ipv4_cidr\030\005 \001(\tB\002\030\001\022\036\n\022s" + + "ervices_ipv4_cidr\030\006 \001(\tB\002\030\001\022$\n\034cluster_s" + + "econdary_range_name\030\007 \001(\t\022%\n\035services_se" + + "condary_range_name\030\010 \001(\t\022\037\n\027cluster_ipv4" + + "_cidr_block\030\t \001(\t\022\034\n\024node_ipv4_cidr_bloc" + + "k\030\n \001(\t\022 \n\030services_ipv4_cidr_block\030\013 \001(" + + "\t\022\033\n\023tpu_ipv4_cidr_block\030\r \001(\t\022\022\n\nuse_ro" + + "utes\030\017 \001(\010\0222\n\nstack_type\030\020 \001(\0162\036.google." + + "container.v1.StackType\022=\n\020ipv6_access_ty" + + "pe\030\021 \001(\0162#.google.container.v1.IPv6Acces" + + "sType\022V\n\035pod_cidr_overprovision_config\030\025" + + " \001(\0132/.google.container.v1.PodCIDROverpr" + + "ovisionConfig\022#\n\026subnet_ipv6_cidr_block\030" + + "\026 \001(\tB\003\340A\003\022%\n\030services_ipv6_cidr_block\030\027" + + " \001(\tB\003\340A\003\022Y\n\034additional_pod_ranges_confi" + + "g\030\030 \001(\0132..google.container.v1.Additional" + + "PodRangesConfigB\003\340A\003\022/\n\"default_pod_ipv4" + + "_range_utilization\030\031 \001(\001B\003\340A\003\"\231\033\n\007Cluste" + + "r\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\036\n\022" + + "initial_node_count\030\003 \001(\005B\002\030\001\0228\n\013node_con" + + "fig\030\004 \001(\0132\037.google.container.v1.NodeConf" + + "igB\002\030\001\0224\n\013master_auth\030\005 \001(\0132\037.google.con" + + "tainer.v1.MasterAuth\022\027\n\017logging_service\030" + + "\006 \001(\t\022\032\n\022monitoring_service\030\007 \001(\t\022\017\n\007net" + + "work\030\010 \001(\t\022\031\n\021cluster_ipv4_cidr\030\t \001(\t\0228\n" + + "\raddons_config\030\n \001(\0132!.google.container." + + "v1.AddonsConfig\022\022\n\nsubnetwork\030\013 \001(\t\0221\n\nn" + + "ode_pools\030\014 \003(\0132\035.google.container.v1.No" + + "dePool\022\021\n\tlocations\030\r \003(\t\022\037\n\027enable_kube" + + "rnetes_alpha\030\016 \001(\010\022I\n\017resource_labels\030\017 " + + "\003(\01320.google.container.v1.Cluster.Resour" + + "ceLabelsEntry\022\031\n\021label_fingerprint\030\020 \001(\t" + + "\0224\n\013legacy_abac\030\022 \001(\0132\037.google.container" + + ".v1.LegacyAbac\022:\n\016network_policy\030\023 \001(\0132\"" + + ".google.container.v1.NetworkPolicy\022E\n\024ip" + + "_allocation_policy\030\024 \001(\0132\'.google.contai" + + "ner.v1.IPAllocationPolicy\022^\n!master_auth" + + "orized_networks_config\030\026 \001(\01323.google.co" + + "ntainer.v1.MasterAuthorizedNetworksConfi" + + "g\022B\n\022maintenance_policy\030\027 \001(\0132&.google.c" + + "ontainer.v1.MaintenancePolicy\022F\n\024binary_" + + "authorization\030\030 \001(\0132(.google.container.v" + + "1.BinaryAuthorization\022<\n\013autoscaling\030\032 \001" + + "(\0132\'.google.container.v1.ClusterAutoscal" + + "ing\022:\n\016network_config\030\033 \001(\0132\".google.con" + + "tainer.v1.NetworkConfig\022K\n\033default_max_p" + + "ods_constraint\030\036 \001(\0132&.google.container." + + "v1.MaxPodsConstraint\022T\n\034resource_usage_e" + + "xport_config\030! \001(\0132..google.container.v1" + + ".ResourceUsageExportConfig\022S\n\033authentica" + + "tor_groups_config\030\" \001(\0132..google.contain" + + "er.v1.AuthenticatorGroupsConfig\022I\n\026priva" + + "te_cluster_config\030% \001(\0132).google.contain" + + "er.v1.PrivateClusterConfig\022D\n\023database_e" + + "ncryption\030& \001(\0132\'.google.container.v1.Da" + + "tabaseEncryption\022M\n\030vertical_pod_autosca" + + "ling\030\' \001(\0132+.google.container.v1.Vertica" + + "lPodAutoscaling\022:\n\016shielded_nodes\030( \001(\0132" + + "\".google.container.v1.ShieldedNodes\022<\n\017r" + + "elease_channel\030) \001(\0132#.google.container." + + "v1.ReleaseChannel\022M\n\030workload_identity_c" + + "onfig\030+ \001(\0132+.google.container.v1.Worklo" + + "adIdentityConfig\022@\n\021mesh_certificates\030C " + + "\001(\0132%.google.container.v1.MeshCertificat" + + "es\022I\n\026cost_management_config\030- \001(\0132).goo" + + "gle.container.v1.CostManagementConfig\022D\n" + + "\023notification_config\0301 \001(\0132\'.google.cont" + + "ainer.v1.NotificationConfig\022B\n\022confident" + + "ial_nodes\0302 \001(\0132&.google.container.v1.Co" + + "nfidentialNodes\022K\n\027identity_service_conf" + + "ig\0306 \001(\0132*.google.container.v1.IdentityS" + + "erviceConfig\022\021\n\tself_link\030d \001(\t\022\020\n\004zone\030" + + "e \001(\tB\002\030\001\022\020\n\010endpoint\030f \001(\t\022\037\n\027initial_c" + + "luster_version\030g \001(\t\022\036\n\026current_master_v" + + "ersion\030h \001(\t\022 \n\024current_node_version\030i \001" + + "(\tB\002\030\001\022\023\n\013create_time\030j \001(\t\0223\n\006status\030k " + + "\001(\0162#.google.container.v1.Cluster.Status" + + "\022\032\n\016status_message\030l \001(\tB\002\030\001\022\033\n\023node_ipv" + + "4_cidr_size\030m \001(\005\022\032\n\022services_ipv4_cidr\030" + + "n \001(\t\022\037\n\023instance_group_urls\030o \003(\tB\002\030\001\022\036" + + "\n\022current_node_count\030p \001(\005B\002\030\001\022\023\n\013expire" + + "_time\030q \001(\t\022\020\n\010location\030r \001(\t\022\022\n\nenable_" + + "tpu\030s \001(\010\022\033\n\023tpu_ipv4_cidr_block\030t \001(\t\0228" + + "\n\nconditions\030v \003(\0132$.google.container.v1" + + ".StatusCondition\0222\n\tautopilot\030\200\001 \001(\0132\036.g" + + "oogle.container.v1.Autopilot\022\020\n\002id\030\201\001 \001(" + + "\tB\003\340A\003\022G\n\022node_pool_defaults\030\203\001 \001(\0132%.go" + + "ogle.container.v1.NodePoolDefaultsH\000\210\001\001\022" + + ";\n\016logging_config\030\204\001 \001(\0132\".google.contai" + + "ner.v1.LoggingConfig\022A\n\021monitoring_confi" + + "g\030\205\001 \001(\0132%.google.container.v1.Monitorin" + + "gConfig\022G\n\025node_pool_auto_config\030\210\001 \001(\0132" + + "\'.google.container.v1.NodePoolAutoConfig" + + "\022\r\n\004etag\030\213\001 \001(\t\022*\n\005fleet\030\214\001 \001(\0132\032.google" + + ".container.v1.Fleet\022L\n\027security_posture_" + + "config\030\221\001 \001(\0132*.google.container.v1.Secu" + + "rityPostureConfig\022D\n\024enable_k8s_beta_api" + + "s\030\217\001 \001(\0132%.google.container.v1.K8sBetaAP" + + "IConfig\022A\n\021enterprise_config\030\225\001 \001(\0132%.go" + + "ogle.container.v1.EnterpriseConfig\0325\n\023Re" + + "sourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"w\n\006Status\022\026\n\022STATUS_UNSPECIFIE" + + "D\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RE" + + "CONCILING\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010" + + "DEGRADED\020\006B\025\n\023_node_pool_defaults\"(\n\020K8s" + + "BetaAPIConfig\022\024\n\014enabled_apis\030\001 \003(\t\"\236\003\n\025" + + "SecurityPostureConfig\022B\n\004mode\030\001 \001(\0162/.go" + + "ogle.container.v1.SecurityPostureConfig." + + "ModeH\000\210\001\001\022]\n\022vulnerability_mode\030\002 \001(\0162<." + + "google.container.v1.SecurityPostureConfi" + + "g.VulnerabilityModeH\001\210\001\001\"5\n\004Mode\022\024\n\020MODE" + + "_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t\n\005BASIC\020\002\"" + + "\212\001\n\021VulnerabilityMode\022\"\n\036VULNERABILITY_M" + + "ODE_UNSPECIFIED\020\000\022\032\n\026VULNERABILITY_DISAB" + + "LED\020\001\022\027\n\023VULNERABILITY_BASIC\020\002\022\034\n\030VULNER" + + "ABILITY_ENTERPRISE\020\003B\007\n\005_modeB\025\n\023_vulner" + + "ability_mode\"\225\001\n\022NodePoolAutoConfig\0226\n\014n" + + "etwork_tags\030\001 \001(\0132 .google.container.v1." + + "NetworkTags\022G\n\025resource_manager_tags\030\002 \001" + + "(\0132(.google.container.v1.ResourceManager" + + "Tags\"Y\n\020NodePoolDefaults\022E\n\024node_config_" + + "defaults\030\001 \001(\0132\'.google.container.v1.Nod" + + "eConfigDefaults\"\216\001\n\022NodeConfigDefaults\0224" + + "\n\013gcfs_config\030\001 \001(\0132\037.google.container.v" + + "1.GcfsConfig\022B\n\016logging_config\030\003 \001(\0132*.g" + + "oogle.container.v1.NodePoolLoggingConfig" + + "\"\305\036\n\rClusterUpdate\022\034\n\024desired_node_versi" + + "on\030\004 \001(\t\022\"\n\032desired_monitoring_service\030\005" + + " \001(\t\022@\n\025desired_addons_config\030\006 \001(\0132!.go" + + "ogle.container.v1.AddonsConfig\022\034\n\024desire" + + "d_node_pool_id\030\007 \001(\t\022\032\n\022desired_image_ty" + + "pe\030\010 \001(\t\022L\n\033desired_database_encryption\030" + + ". \001(\0132\'.google.container.v1.DatabaseEncr" + + "yption\022U\n desired_workload_identity_conf" + + "ig\030/ \001(\0132+.google.container.v1.WorkloadI" + + "dentityConfig\022H\n\031desired_mesh_certificat" + + "es\030C \001(\0132%.google.container.v1.MeshCerti" + + "ficates\022B\n\026desired_shielded_nodes\0300 \001(\0132" + + "\".google.container.v1.ShieldedNodes\022Q\n\036d" + + "esired_cost_management_config\0301 \001(\0132).go" + + "ogle.container.v1.CostManagementConfig\022:" + + "\n\022desired_dns_config\0305 \001(\0132\036.google.cont" + + "ainer.v1.DNSConfig\022O\n\035desired_node_pool_" + + "autoscaling\030\t \001(\0132(.google.container.v1." + + "NodePoolAutoscaling\022\031\n\021desired_locations" + + "\030\n \003(\t\022f\n)desired_master_authorized_netw" + + "orks_config\030\014 \001(\01323.google.container.v1." + + "MasterAuthorizedNetworksConfig\022L\n\033desire" + + "d_cluster_autoscaling\030\017 \001(\0132\'.google.con" + + "tainer.v1.ClusterAutoscaling\022N\n\034desired_" + + "binary_authorization\030\020 \001(\0132(.google.cont" + + "ainer.v1.BinaryAuthorization\022\037\n\027desired_" + + "logging_service\030\023 \001(\t\022\\\n$desired_resourc" + + "e_usage_export_config\030\025 \001(\0132..google.con" + + "tainer.v1.ResourceUsageExportConfig\022U\n d" + + "esired_vertical_pod_autoscaling\030\026 \001(\0132+." + + "google.container.v1.VerticalPodAutoscali" + + "ng\022Q\n\036desired_private_cluster_config\030\031 \001" + + "(\0132).google.container.v1.PrivateClusterC" + + "onfig\022\\\n$desired_intra_node_visibility_c" + + "onfig\030\032 \001(\0132..google.container.v1.IntraN" + + "odeVisibilityConfig\022K\n\033desired_default_s" + + "nat_status\030\034 \001(\0132&.google.container.v1.D" + + "efaultSnatStatus\022D\n\027desired_release_chan" + + "nel\030\037 \001(\0132#.google.container.v1.ReleaseC" + + "hannel\022Q\n\037desired_l4ilb_subsetting_confi" + + "g\030\' \001(\0132(.google.container.v1.ILBSubsett" + + "ingConfig\022H\n\031desired_datapath_provider\0302" + + " \001(\0162%.google.container.v1.DatapathProvi" + + "der\022X\n\"desired_private_ipv6_google_acces" + + "s\0303 \001(\0162,.google.container.v1.PrivateIPv" + + "6GoogleAccess\022L\n\033desired_notification_co" + + "nfig\0307 \001(\0132\'.google.container.v1.Notific" + + "ationConfig\022[\n#desired_authenticator_gro" + + "ups_config\030? \001(\0132..google.container.v1.A" + + "uthenticatorGroupsConfig\022B\n\026desired_logg" + + "ing_config\030@ \001(\0132\".google.container.v1.L" + + "oggingConfig\022H\n\031desired_monitoring_confi" + + "g\030A \001(\0132%.google.container.v1.Monitoring" + + "Config\022S\n\037desired_identity_service_confi", + "g\030B \001(\0132*.google.container.v1.IdentitySe" + + "rviceConfig\022Z\n#desired_service_external_" + + "ips_config\030< \001(\0132-.google.container.v1.S" + + "erviceExternalIPsConfig\022,\n\037desired_enabl" + + "e_private_endpoint\030G \001(\010H\000\210\001\001\022\036\n\026desired" + + "_master_version\030d \001(\t\022<\n\023desired_gcfs_co" + + "nfig\030m \001(\0132\037.google.container.v1.GcfsCon" + + "fig\022T\n*desired_node_pool_auto_config_net" + + "work_tags\030n \001(\0132 .google.container.v1.Ne" + + "tworkTags\022I\n\032desired_gateway_api_config\030" + + "r \001(\0132%.google.container.v1.GatewayAPICo" + + "nfig\022\014\n\004etag\030s \001(\t\022T\n desired_node_pool_" + + "logging_config\030t \001(\0132*.google.container." + + "v1.NodePoolLoggingConfig\0221\n\rdesired_flee" + + "t\030u \001(\0132\032.google.container.v1.Fleet\022:\n\022d" + + "esired_stack_type\030w \001(\0162\036.google.contain" + + "er.v1.StackType\022T\n\034additional_pod_ranges" + + "_config\030x \001(\0132..google.container.v1.Addi" + + "tionalPodRangesConfig\022\\\n$removed_additio" + + "nal_pod_ranges_config\030y \001(\0132..google.con" + + "tainer.v1.AdditionalPodRangesConfig\022C\n\024e" + + "nable_k8s_beta_apis\030z \001(\0132%.google.conta" + + "iner.v1.K8sBetaAPIConfig\022S\n\037desired_secu" + + "rity_posture_config\030| \001(\0132*.google.conta" + + "iner.v1.SecurityPostureConfig\022n\n\"desired" + + "_network_performance_config\030} \001(\0132B.goog" + + "le.container.v1.NetworkConfig.ClusterNet" + + "workPerformanceConfig\022/\n\"desired_enable_" + + "fqdn_network_policy\030~ \001(\010H\001\210\001\001\022\\\n(desire" + + "d_autopilot_workload_policy_config\030\200\001 \001(" + + "\0132).google.container.v1.WorkloadPolicyCo" + + "nfig\022E\n\025desired_k8s_beta_apis\030\203\001 \001(\0132%.g" + + "oogle.container.v1.K8sBetaAPIConfig\022f\n3d" + + "esired_node_pool_auto_config_resource_ma" + + "nager_tags\030\210\001 \001(\0132(.google.container.v1." + + "ResourceManagerTags\022b\n$desired_in_transi" + + "t_encryption_config\030\211\001 \001(\0162..google.cont" + + "ainer.v1.InTransitEncryptionConfigH\002\210\001\001\022" + + ">\n0desired_enable_cilium_clusterwide_net" + + "work_policy\030\212\001 \001(\010H\003\210\001\001B\"\n _desired_enab" + + "le_private_endpointB%\n#_desired_enable_f" + + "qdn_network_policyB\'\n%_desired_in_transi" + + "t_encryption_configB3\n1_desired_enable_c" + + "ilium_clusterwide_network_policy\"q\n\031Addi" + + "tionalPodRangesConfig\022\027\n\017pod_range_names" + + "\030\001 \003(\t\022;\n\016pod_range_info\030\002 \003(\0132\036.google." + + "container.v1.RangeInfoB\003\340A\003\">\n\tRangeInfo" + + "\022\027\n\nrange_name\030\001 \001(\tB\003\340A\003\022\030\n\013utilization" + + "\030\002 \001(\001B\003\340A\003\"\264\010\n\tOperation\022\014\n\004name\030\001 \001(\t\022" + + "\020\n\004zone\030\002 \001(\tB\002\030\001\022;\n\016operation_type\030\003 \001(" + + "\0162#.google.container.v1.Operation.Type\0225" + + "\n\006status\030\004 \001(\0162%.google.container.v1.Ope" + + "ration.Status\022\016\n\006detail\030\010 \001(\t\022\035\n\016status_" + + "message\030\005 \001(\tB\005\030\001\340A\003\022\021\n\tself_link\030\006 \001(\t\022" + + "\023\n\013target_link\030\007 \001(\t\022\020\n\010location\030\t \001(\t\022\022" + + "\n\nstart_time\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t\022=\n\010" + + "progress\030\014 \001(\0132&.google.container.v1.Ope" + + "rationProgressB\003\340A\003\022D\n\022cluster_condition" + + "s\030\r \003(\0132$.google.container.v1.StatusCond" + + "itionB\002\030\001\022E\n\023nodepool_conditions\030\016 \003(\0132$" + + ".google.container.v1.StatusConditionB\002\030\001" + + "\022!\n\005error\030\017 \001(\0132\022.google.rpc.Status\"R\n\006S" + + "tatus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007PENDING" + + "\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING\020\004\"" + + "\300\003\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CREATE" + + "_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UPGRAD" + + "E_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REPAIR_" + + "CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CREATE_" + + "NODE_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034\n\030SET" + + "_NODE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_REPAIR_N" + + "ODES\020\n\022\032\n\022AUTO_UPGRADE_NODES\020\013\032\002\010\001\022\022\n\nSE" + + "T_LABELS\020\014\032\002\010\001\022\027\n\017SET_MASTER_AUTH\020\r\032\002\010\001\022" + + "\026\n\022SET_NODE_POOL_SIZE\020\016\022\032\n\022SET_NETWORK_P" + + "OLICY\020\017\032\002\010\001\022\036\n\026SET_MAINTENANCE_POLICY\020\020\032" + + "\002\010\001\022\022\n\016RESIZE_CLUSTER\020\022\022\031\n\025FLEET_FEATURE" + + "_UPGRADE\020\023\"\273\002\n\021OperationProgress\022\014\n\004name" + + "\030\001 \001(\t\0225\n\006status\030\002 \001(\0162%.google.containe" + + "r.v1.Operation.Status\022>\n\007metrics\030\003 \003(\0132-" + + ".google.container.v1.OperationProgress.M" + + "etric\0226\n\006stages\030\004 \003(\0132&.google.container" + + ".v1.OperationProgress\032i\n\006Metric\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\002\022\023\n\tint_value\030\002 \001(\003H\000\022\026\n\014doubl" + + "e_value\030\003 \001(\001H\000\022\026\n\014string_value\030\004 \001(\tH\000B" + + "\007\n\005value\"\204\001\n\024CreateClusterRequest\022\026\n\npro" + + "ject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\0222\n\007c" + + "luster\030\003 \001(\0132\034.google.container.v1.Clust" + + "erB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"c\n\021GetClusterReq" + + "uest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001" + + "(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005" + + " \001(\t\"\237\001\n\024UpdateClusterRequest\022\026\n\nproject" + + "_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclust" + + "er_id\030\003 \001(\tB\002\030\001\0227\n\006update\030\004 \001(\0132\".google" + + ".container.v1.ClusterUpdateB\003\340A\002\022\014\n\004name" + + "\030\005 \001(\t\"\323\n\n\025UpdateNodePoolRequest\022\026\n\nproj" + + "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncl" + + "uster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\t" + + "B\002\030\001\022\031\n\014node_version\030\005 \001(\tB\003\340A\002\022\027\n\nimage" + + "_type\030\006 \001(\tB\003\340A\002\022\014\n\004name\030\010 \001(\t\022\021\n\tlocati" + + "ons\030\r \003(\t\022M\n\030workload_metadata_config\030\016 " + + "\001(\0132+.google.container.v1.WorkloadMetada" + + "taConfig\022G\n\020upgrade_settings\030\017 \001(\0132-.goo" + + "gle.container.v1.NodePool.UpgradeSetting" + + "s\022.\n\004tags\030\020 \001(\0132 .google.container.v1.Ne" + + "tworkTags\022/\n\006taints\030\021 \001(\0132\037.google.conta" + + "iner.v1.NodeTaints\022/\n\006labels\030\022 \001(\0132\037.goo" + + "gle.container.v1.NodeLabels\022?\n\021linux_nod" + + "e_config\030\023 \001(\0132$.google.container.v1.Lin" + + "uxNodeConfig\022>\n\016kubelet_config\030\024 \001(\0132&.g" + + "oogle.container.v1.NodeKubeletConfig\022C\n\023" + + "node_network_config\030\025 \001(\0132&.google.conta" + + "iner.v1.NodeNetworkConfig\0224\n\013gcfs_config" + + "\030\026 \001(\0132\037.google.container.v1.GcfsConfig\022" + + "B\n\022confidential_nodes\030\027 \001(\0132&.google.con" + + "tainer.v1.ConfidentialNodes\022.\n\005gvnic\030\035 \001" + + "(\0132\037.google.container.v1.VirtualNIC\022\014\n\004e" + + "tag\030\036 \001(\t\0224\n\013fast_socket\030\037 \001(\0132\037.google." + + "container.v1.FastSocket\022B\n\016logging_confi" + + "g\030 \001(\0132*.google.container.v1.NodePoolLo" + + "ggingConfig\022<\n\017resource_labels\030! \001(\0132#.g" + + "oogle.container.v1.ResourceLabels\022C\n\023win" + + "dows_node_config\030\" \001(\0132&.google.containe" + + "r.v1.WindowsNodeConfig\022\031\n\014machine_type\030$" + + " \001(\tB\003\340A\001\022\026\n\tdisk_type\030% \001(\tB\003\340A\001\022\031\n\014dis" + + "k_size_gb\030& \001(\003B\003\340A\001\022G\n\025resource_manager" + + "_tags\030\' \001(\0132(.google.container.v1.Resour" + + "ceManagerTags\022M\n\023queued_provisioning\030* \001" + + "(\01320.google.container.v1.NodePool.Queued" + + "Provisioning\"\315\001\n\035SetNodePoolAutoscalingR" + "equest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002" - + " \001(\tB\002\030\001\0222\n\007cluster\030\003 \001(\0132\034.google.conta" - + "iner.v1.ClusterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"c\n\021" - + "GetClusterRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030" + + " \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node" + + "_pool_id\030\004 \001(\tB\002\030\001\022B\n\013autoscaling\030\005 \001(\0132" + + "(.google.container.v1.NodePoolAutoscalin" + + "gB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\210\001\n\030SetLoggingServi" + + "ceRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zon" + + "e\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\034\n\017l" + + "ogging_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\005 \001(\t\"" + + "\216\001\n\033SetMonitoringServiceRequest\022\026\n\nproje" + + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclu" + + "ster_id\030\003 \001(\tB\002\030\001\022\037\n\022monitoring_service\030" + + "\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\247\001\n\026SetAddonsCo" + + "nfigRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004z" + + "one\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022=\n" + + "\raddons_config\030\004 \001(\0132!.google.container." + + "v1.AddonsConfigB\003\340A\002\022\014\n\004name\030\006 \001(\t\"}\n\023Se" + + "tLocationsRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030" + "\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB" - + "\002\030\001\022\014\n\004name\030\005 \001(\t\"\237\001\n\024UpdateClusterReque" - + "st\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\t" - + "B\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\0227\n\006update\030\004" - + " \001(\0132\".google.container.v1.ClusterUpdate" - + "B\003\340A\002\022\014\n\004name\030\005 \001(\t\"\323\n\n\025UpdateNodePoolRe" - + "quest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 " - + "\001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_" - + "pool_id\030\004 \001(\tB\002\030\001\022\031\n\014node_version\030\005 \001(\tB" - + "\003\340A\002\022\027\n\nimage_type\030\006 \001(\tB\003\340A\002\022\014\n\004name\030\010 " - + "\001(\t\022\021\n\tlocations\030\r \003(\t\022M\n\030workload_metad" - + "ata_config\030\016 \001(\0132+.google.container.v1.W" - + "orkloadMetadataConfig\022G\n\020upgrade_setting" - + "s\030\017 \001(\0132-.google.container.v1.NodePool.U" - + "pgradeSettings\022.\n\004tags\030\020 \001(\0132 .google.co" - + "ntainer.v1.NetworkTags\022/\n\006taints\030\021 \001(\0132\037" - + ".google.container.v1.NodeTaints\022/\n\006label" - + "s\030\022 \001(\0132\037.google.container.v1.NodeLabels" - + "\022?\n\021linux_node_config\030\023 \001(\0132$.google.con" - + "tainer.v1.LinuxNodeConfig\022>\n\016kubelet_con" - + "fig\030\024 \001(\0132&.google.container.v1.NodeKube" - + "letConfig\022C\n\023node_network_config\030\025 \001(\0132&" - + ".google.container.v1.NodeNetworkConfig\0224" - + "\n\013gcfs_config\030\026 \001(\0132\037.google.container.v" - + "1.GcfsConfig\022B\n\022confidential_nodes\030\027 \001(\013" - + "2&.google.container.v1.ConfidentialNodes" - + "\022.\n\005gvnic\030\035 \001(\0132\037.google.container.v1.Vi" - + "rtualNIC\022\014\n\004etag\030\036 \001(\t\0224\n\013fast_socket\030\037 " - + "\001(\0132\037.google.container.v1.FastSocket\022B\n\016" - + "logging_config\030 \001(\0132*.google.container." - + "v1.NodePoolLoggingConfig\022<\n\017resource_lab" - + "els\030! \001(\0132#.google.container.v1.Resource" - + "Labels\022C\n\023windows_node_config\030\" \001(\0132&.go" - + "ogle.container.v1.WindowsNodeConfig\022\031\n\014m" - + "achine_type\030$ \001(\tB\003\340A\001\022\026\n\tdisk_type\030% \001(" - + "\tB\003\340A\001\022\031\n\014disk_size_gb\030& \001(\003B\003\340A\001\022G\n\025res" - + "ource_manager_tags\030\' \001(\0132(.google.contai" - + "ner.v1.ResourceManagerTags\022M\n\023queued_pro" - + "visioning\030* \001(\01320.google.container.v1.No" - + "dePool.QueuedProvisioning\"\315\001\n\035SetNodePoo" - + "lAutoscalingRequest\022\026\n\nproject_id\030\001 \001(\tB" - + "\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(" - + "\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022B\n\013autos" - + "caling\030\005 \001(\0132(.google.container.v1.NodeP" - + "oolAutoscalingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\210\001\n\030Se" - + "tLoggingServiceRequest\022\026\n\nproject_id\030\001 \001" - + "(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003" - + " \001(\tB\002\030\001\022\034\n\017logging_service\030\004 \001(\tB\003\340A\002\022\014" - + "\n\004name\030\005 \001(\t\"\216\001\n\033SetMonitoringServiceReq" - + "uest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001" - + "(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\037\n\022monito" - + "ring_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\247\001" - + "\n\026SetAddonsConfigRequest\022\026\n\nproject_id\030\001" - + " \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id" - + "\030\003 \001(\tB\002\030\001\022=\n\raddons_config\030\004 \001(\0132!.goog" - + "le.container.v1.AddonsConfigB\003\340A\002\022\014\n\004nam" - + "e\030\006 \001(\t\"}\n\023SetLocationsRequest\022\026\n\nprojec" + + "\002\030\001\022\026\n\tlocations\030\004 \003(\tB\003\340A\002\022\014\n\004name\030\006 \001(" + + "\t\"\202\001\n\023UpdateMasterRequest\022\026\n\nproject_id\030" + + "\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_i" + + "d\030\003 \001(\tB\002\030\001\022\033\n\016master_version\030\004 \001(\tB\003\340A\002" + + "\022\014\n\004name\030\007 \001(\t\"\265\002\n\024SetMasterAuthRequest\022" + + "\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030" + + "\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022E\n\006action\030\004 \001(" + + "\01620.google.container.v1.SetMasterAuthReq" + + "uest.ActionB\003\340A\002\0224\n\006update\030\005 \001(\0132\037.googl" + + "e.container.v1.MasterAuthB\003\340A\002\022\014\n\004name\030\007" + + " \001(\t\"P\n\006Action\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_PASSW" + + "ORD\020\001\022\025\n\021GENERATE_PASSWORD\020\002\022\020\n\014SET_USER" + + "NAME\020\003\"f\n\024DeleteClusterRequest\022\026\n\nprojec" + "t_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclus" - + "ter_id\030\003 \001(\tB\002\030\001\022\026\n\tlocations\030\004 \003(\tB\003\340A\002" - + "\022\014\n\004name\030\006 \001(\t\"\202\001\n\023UpdateMasterRequest\022\026" - + "\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001" - + "\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\033\n\016master_versi" - + "on\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\265\002\n\024SetMaste" - + "rAuthRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004" - + "zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022E" - + "\n\006action\030\004 \001(\01620.google.container.v1.Set" - + "MasterAuthRequest.ActionB\003\340A\002\0224\n\006update\030" - + "\005 \001(\0132\037.google.container.v1.MasterAuthB\003" - + "\340A\002\022\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKNOWN\020\000" - + "\022\020\n\014SET_PASSWORD\020\001\022\025\n\021GENERATE_PASSWORD\020" - + "\002\022\020\n\014SET_USERNAME\020\003\"f\n\024DeleteClusterRequ" - + "est\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(" - + "\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 " - + "\001(\t\"O\n\023ListClustersRequest\022\026\n\nproject_id" - + "\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004" - + " \001(\t\"]\n\024ListClustersResponse\022.\n\010clusters" - + "\030\001 \003(\0132\034.google.container.v1.Cluster\022\025\n\r" - + "missing_zones\030\002 \003(\t\"g\n\023GetOperationReque" - + "st\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\t" - + "B\002\030\001\022\030\n\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005" - + " \001(\t\"Q\n\025ListOperationsRequest\022\026\n\nproject" - + "_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006paren" - + "t\030\004 \001(\t\"j\n\026CancelOperationRequest\022\026\n\npro" - + "ject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014o" - + "peration_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"c\n\026L" - + "istOperationsResponse\0222\n\noperations\030\001 \003(" - + "\0132\036.google.container.v1.Operation\022\025\n\rmis" - + "sing_zones\030\002 \003(\t\"P\n\026GetServerConfigReque" - + "st\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\t" - + "B\002\030\001\022\014\n\004name\030\004 \001(\t\"\364\002\n\014ServerConfig\022\037\n\027d" - + "efault_cluster_version\030\001 \001(\t\022\033\n\023valid_no" - + "de_versions\030\003 \003(\t\022\032\n\022default_image_type\030" - + "\004 \001(\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025vali" - + "d_master_versions\030\006 \003(\t\022H\n\010channels\030\t \003(" - + "\01326.google.container.v1.ServerConfig.Rel" - + "easeChannelConfig\032\205\001\n\024ReleaseChannelConf" - + "ig\022<\n\007channel\030\001 \001(\0162+.google.container.v" - + "1.ReleaseChannel.Channel\022\027\n\017default_vers" - + "ion\030\002 \001(\t\022\026\n\016valid_versions\030\004 \003(\t\"\240\001\n\025Cr" - + "eateNodePoolRequest\022\026\n\nproject_id\030\001 \001(\tB" + + "ter_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"O\n\023ListCl" + + "ustersRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n" + + "\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 \001(\t\"]\n\024ListC" + + "lustersResponse\022.\n\010clusters\030\001 \003(\0132\034.goog" + + "le.container.v1.Cluster\022\025\n\rmissing_zones" + + "\030\002 \003(\t\"g\n\023GetOperationRequest\022\026\n\nproject" + + "_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014opera" + + "tion_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005 \001(\t\"Q\n\025ListO" + + "perationsRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001" + + "\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 \001(\t\"j\n\026Ca" + + "ncelOperationRequest\022\026\n\nproject_id\030\001 \001(\t" + + "B\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014operation_id\030\003" + + " \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"c\n\026ListOperations" + + "Response\0222\n\noperations\030\001 \003(\0132\036.google.co" + + "ntainer.v1.Operation\022\025\n\rmissing_zones\030\002 " + + "\003(\t\"P\n\026GetServerConfigRequest\022\026\n\nproject" + + "_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\014\n\004name\030" + + "\004 \001(\t\"\364\002\n\014ServerConfig\022\037\n\027default_cluste" + + "r_version\030\001 \001(\t\022\033\n\023valid_node_versions\030\003" + + " \003(\t\022\032\n\022default_image_type\030\004 \001(\t\022\031\n\021vali" + + "d_image_types\030\005 \003(\t\022\035\n\025valid_master_vers" + + "ions\030\006 \003(\t\022H\n\010channels\030\t \003(\01326.google.co" + + "ntainer.v1.ServerConfig.ReleaseChannelCo" + + "nfig\032\205\001\n\024ReleaseChannelConfig\022<\n\007channel" + + "\030\001 \001(\0162+.google.container.v1.ReleaseChan" + + "nel.Channel\022\027\n\017default_version\030\002 \001(\t\022\026\n\016" + + "valid_versions\030\004 \003(\t\"\240\001\n\025CreateNodePoolR" + + "equest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002" + + " \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\0225\n\tnode" + + "_pool\030\004 \001(\0132\035.google.container.v1.NodePo" + + "olB\003\340A\002\022\016\n\006parent\030\006 \001(\t\"\201\001\n\025DeleteNodePo" + + "olRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zon" + + "e\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014n" + + "ode_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"h\n\024L" + + "istNodePoolsRequest\022\026\n\nproject_id\030\001 \001(\tB" + "\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(" - + "\tB\002\030\001\0225\n\tnode_pool\030\004 \001(\0132\035.google.contai" - + "ner.v1.NodePoolB\003\340A\002\022\016\n\006parent\030\006 \001(\t\"\201\001\n" - + "\025DeleteNodePoolRequest\022\026\n\nproject_id\030\001 \001" - + "(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003" - + " \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004na" - + "me\030\006 \001(\t\"h\n\024ListNodePoolsRequest\022\026\n\nproj" - + "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncl" - + "uster_id\030\003 \001(\tB\002\030\001\022\016\n\006parent\030\005 \001(\t\"~\n\022Ge" - + "tNodePoolRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001" - + "\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002" - + "\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001" - + "(\t\"\237\003\n\021BlueGreenSettings\022_\n\027standard_rol" - + "lout_policy\030\001 \001(\0132<.google.container.v1." - + "BlueGreenSettings.StandardRolloutPolicyH" - + "\000\022?\n\027node_pool_soak_duration\030\002 \001(\0132\031.goo" - + "gle.protobuf.DurationH\001\210\001\001\032\271\001\n\025StandardR" - + "olloutPolicy\022\032\n\020batch_percentage\030\001 \001(\002H\000" - + "\022\032\n\020batch_node_count\030\002 \001(\005H\000\022;\n\023batch_so" - + "ak_duration\030\003 \001(\0132\031.google.protobuf.Dura" - + "tionH\001\210\001\001B\023\n\021update_batch_sizeB\026\n\024_batch" - + "_soak_durationB\020\n\016rollout_policyB\032\n\030_nod" - + "e_pool_soak_duration\"\272\020\n\010NodePool\022\014\n\004nam" - + "e\030\001 \001(\t\022/\n\006config\030\002 \001(\0132\037.google.contain" - + "er.v1.NodeConfig\022\032\n\022initial_node_count\030\003" - + " \001(\005\022\021\n\tlocations\030\r \003(\t\022>\n\016network_confi" - + "g\030\016 \001(\0132&.google.container.v1.NodeNetwor" - + "kConfig\022\021\n\tself_link\030d \001(\t\022\017\n\007version\030e " - + "\001(\t\022\033\n\023instance_group_urls\030f \003(\t\0224\n\006stat" - + "us\030g \001(\0162$.google.container.v1.NodePool." - + "Status\022\032\n\016status_message\030h \001(\tB\002\030\001\022=\n\013au" - + "toscaling\030\004 \001(\0132(.google.container.v1.No" - + "dePoolAutoscaling\0227\n\nmanagement\030\005 \001(\0132#." - + "google.container.v1.NodeManagement\022C\n\023ma" - + "x_pods_constraint\030\006 \001(\0132&.google.contain" - + "er.v1.MaxPodsConstraint\0228\n\nconditions\030i " - + "\003(\0132$.google.container.v1.StatusConditio" - + "n\022\032\n\022pod_ipv4_cidr_size\030\007 \001(\005\022G\n\020upgrade" - + "_settings\030k \001(\0132-.google.container.v1.No" - + "dePool.UpgradeSettings\022G\n\020placement_poli" - + "cy\030l \001(\0132-.google.container.v1.NodePool." - + "PlacementPolicy\022B\n\013update_info\030m \001(\0132(.g" - + "oogle.container.v1.NodePool.UpdateInfoB\003" - + "\340A\003\022\014\n\004etag\030n \001(\t\022M\n\023queued_provisioning" - + "\030p \001(\01320.google.container.v1.NodePool.Qu" - + "euedProvisioning\022M\n\030best_effort_provisio" - + "ning\030q \001(\0132+.google.container.v1.BestEff" - + "ortProvisioning\032\360\001\n\017UpgradeSettings\022\021\n\tm" - + "ax_surge\030\001 \001(\005\022\027\n\017max_unavailable\030\002 \001(\005\022" - + "B\n\010strategy\030\003 \001(\0162+.google.container.v1." - + "NodePoolUpdateStrategyH\000\210\001\001\022H\n\023blue_gree" - + "n_settings\030\004 \001(\0132&.google.container.v1.B" - + "lueGreenSettingsH\001\210\001\001B\013\n\t_strategyB\026\n\024_b" - + "lue_green_settings\032\210\004\n\nUpdateInfo\022O\n\017blu" - + "e_green_info\030\001 \001(\01326.google.container.v1" - + ".NodePool.UpdateInfo.BlueGreenInfo\032\250\003\n\rB" - + "lueGreenInfo\022K\n\005phase\030\001 \001(\0162<.google.con" - + "tainer.v1.NodePool.UpdateInfo.BlueGreenI" - + "nfo.Phase\022 \n\030blue_instance_group_urls\030\002 " - + "\003(\t\022!\n\031green_instance_group_urls\030\003 \003(\t\022%" - + "\n\035blue_pool_deletion_start_time\030\004 \001(\t\022\032\n" - + "\022green_pool_version\030\005 \001(\t\"\301\001\n\005Phase\022\025\n\021P" - + "HASE_UNSPECIFIED\020\000\022\022\n\016UPDATE_STARTED\020\001\022\027" - + "\n\023CREATING_GREEN_POOL\020\002\022\027\n\023CORDONING_BLU" - + "E_POOL\020\003\022\026\n\022DRAINING_BLUE_POOL\020\004\022\025\n\021NODE" - + "_POOL_SOAKING\020\005\022\026\n\022DELETING_BLUE_POOL\020\006\022" - + "\024\n\020ROLLBACK_STARTED\020\007\032\256\001\n\017PlacementPolic" - + "y\022@\n\004type\030\001 \001(\01622.google.container.v1.No" - + "dePool.PlacementPolicy.Type\022\031\n\014tpu_topol" - + "ogy\030\002 \001(\tB\003\340A\001\022\023\n\013policy_name\030\003 \001(\t\")\n\004T" - + "ype\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007COMPACT\020\001\032%" - + "\n\022QueuedProvisioning\022\017\n\007enabled\030\001 \001(\010\"\201\001" - + "\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROV" - + "ISIONING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WITH_" - + "ERROR\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020\005\022\t" - + "\n\005ERROR\020\006\"}\n\016NodeManagement\022\024\n\014auto_upgr" - + "ade\030\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022@\n\017upgrad" - + "e_options\030\n \001(\0132\'.google.container.v1.Au" - + "toUpgradeOptions\"F\n\026BestEffortProvisioni" - + "ng\022\017\n\007enabled\030\001 \001(\010\022\033\n\023min_provision_nod" - + "es\030\002 \001(\005\"J\n\022AutoUpgradeOptions\022\037\n\027auto_u" - + "pgrade_start_time\030\001 \001(\t\022\023\n\013description\030\002" - + " \001(\t\"e\n\021MaintenancePolicy\0226\n\006window\030\001 \001(" - + "\0132&.google.container.v1.MaintenanceWindo" - + "w\022\030\n\020resource_version\030\003 \001(\t\"\366\002\n\021Maintena" - + "nceWindow\022O\n\030daily_maintenance_window\030\002 " - + "\001(\0132+.google.container.v1.DailyMaintenan" - + "ceWindowH\000\022D\n\020recurring_window\030\003 \001(\0132(.g" - + "oogle.container.v1.RecurringTimeWindowH\000" - + "\022a\n\026maintenance_exclusions\030\004 \003(\0132A.googl" - + "e.container.v1.MaintenanceWindow.Mainten" - + "anceExclusionsEntry\032]\n\032MaintenanceExclus" - + "ionsEntry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037." - + "google.container.v1.TimeWindow:\0028\001B\010\n\006po" - + "licy\"\320\001\n\nTimeWindow\022Y\n\035maintenance_exclu" - + "sion_options\030\003 \001(\01320.google.container.v1" - + ".MaintenanceExclusionOptionsH\000\022.\n\nstart_" - + "time\030\001 \001(\0132\032.google.protobuf.Timestamp\022," - + "\n\010end_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tampB\t\n\007options\"\264\001\n\033MaintenanceExclusion" - + "Options\022E\n\005scope\030\001 \001(\01626.google.containe" - + "r.v1.MaintenanceExclusionOptions.Scope\"N" - + "\n\005Scope\022\017\n\013NO_UPGRADES\020\000\022\025\n\021NO_MINOR_UPG" - + "RADES\020\001\022\035\n\031NO_MINOR_OR_NODE_UPGRADES\020\002\"Z" - + "\n\023RecurringTimeWindow\022/\n\006window\030\001 \001(\0132\037." - + "google.container.v1.TimeWindow\022\022\n\nrecurr" - + "ence\030\002 \001(\t\">\n\026DailyMaintenanceWindow\022\022\n\n" - + "start_time\030\002 \001(\t\022\020\n\010duration\030\003 \001(\t\"\306\001\n\034S" - + "etNodePoolManagementRequest\022\026\n\nproject_i" - + "d\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster" - + "_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022" - + "<\n\nmanagement\030\005 \001(\0132#.google.container.v" - + "1.NodeManagementB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\233\001\n\026" - + "SetNodePoolSizeRequest\022\026\n\nproject_id\030\001 \001" - + "(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003" - + " \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\027\n\nno" - + "de_count\030\005 \001(\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\".\n\036Com" - + "pleteNodePoolUpgradeRequest\022\014\n\004name\030\001 \001(" - + "\t\"\237\001\n\036RollbackNodePoolUpgradeRequest\022\026\n\n" - + "project_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026" - + "\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004" - + " \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\022\023\n\013respect_pdb\030\007 " - + "\001(\010\"J\n\025ListNodePoolsResponse\0221\n\nnode_poo" - + "ls\030\001 \003(\0132\035.google.container.v1.NodePool\"" - + "\257\003\n\022ClusterAutoscaling\022$\n\034enable_node_au" - + "toprovisioning\030\001 \001(\010\022;\n\017resource_limits\030" - + "\002 \003(\0132\".google.container.v1.ResourceLimi" - + "t\022W\n\023autoscaling_profile\030\003 \001(\0162:.google." - + "container.v1.ClusterAutoscaling.Autoscal" - + "ingProfile\022b\n#autoprovisioning_node_pool" - + "_defaults\030\004 \001(\01325.google.container.v1.Au" - + "toprovisioningNodePoolDefaults\022\"\n\032autopr" - + "ovisioning_locations\030\005 \003(\t\"U\n\022Autoscalin" - + "gProfile\022\027\n\023PROFILE_UNSPECIFIED\020\000\022\030\n\024OPT" - + "IMIZE_UTILIZATION\020\001\022\014\n\010BALANCED\020\002\"\370\003\n Au" - + "toprovisioningNodePoolDefaults\022\024\n\014oauth_" - + "scopes\030\001 \003(\t\022\027\n\017service_account\030\002 \001(\t\022G\n" - + "\020upgrade_settings\030\003 \001(\0132-.google.contain" - + "er.v1.NodePool.UpgradeSettings\0227\n\nmanage" - + "ment\030\004 \001(\0132#.google.container.v1.NodeMan" - + "agement\022\034\n\020min_cpu_platform\030\005 \001(\tB\002\030\001\022\024\n" - + "\014disk_size_gb\030\006 \001(\005\022\021\n\tdisk_type\030\007 \001(\t\022M" - + "\n\030shielded_instance_config\030\010 \001(\0132+.googl" - + "e.container.v1.ShieldedInstanceConfig\022\031\n" - + "\021boot_disk_kms_key\030\t \001(\t\022\022\n\nimage_type\030\n" - + " \001(\t\0223\n&insecure_kubelet_readonly_port_e" - + "nabled\030\r \001(\010H\000\210\001\001B)\n\'_insecure_kubelet_r" - + "eadonly_port_enabled\"H\n\rResourceLimit\022\025\n" - + "\rresource_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n" - + "\007maximum\030\003 \001(\003\"\307\002\n\023NodePoolAutoscaling\022\017" - + "\n\007enabled\030\001 \001(\010\022\026\n\016min_node_count\030\002 \001(\005\022" - + "\026\n\016max_node_count\030\003 \001(\005\022\027\n\017autoprovision" - + "ed\030\004 \001(\010\022P\n\017location_policy\030\005 \001(\01627.goog" - + "le.container.v1.NodePoolAutoscaling.Loca" - + "tionPolicy\022\034\n\024total_min_node_count\030\006 \001(\005" - + "\022\034\n\024total_max_node_count\030\007 \001(\005\"H\n\016Locati" - + "onPolicy\022\037\n\033LOCATION_POLICY_UNSPECIFIED\020" - + "\000\022\014\n\010BALANCED\020\001\022\007\n\003ANY\020\002\"\222\002\n\020SetLabelsRe" - + "quest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 " - + "\001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022W\n\017resou" - + "rce_labels\030\004 \003(\01329.google.container.v1.S" - + "etLabelsRequest.ResourceLabelsEntryB\003\340A\002" - + "\022\036\n\021label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n\004name" - + "\030\007 \001(\t\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"|\n\024SetLegacyAbacRe" - + "quest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 " - + "\001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\024\n\007enabl" - + "ed\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\204\001\n\026StartIPR" - + "otationRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020" + + "\tB\002\030\001\022\016\n\006parent\030\005 \001(\t\"~\n\022GetNodePoolRequ" + + "est\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(" + + "\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_po" + + "ol_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"\237\003\n\021BlueGr" + + "eenSettings\022_\n\027standard_rollout_policy\030\001" + + " \001(\0132<.google.container.v1.BlueGreenSett" + + "ings.StandardRolloutPolicyH\000\022?\n\027node_poo" + + "l_soak_duration\030\002 \001(\0132\031.google.protobuf." + + "DurationH\001\210\001\001\032\271\001\n\025StandardRolloutPolicy\022" + + "\032\n\020batch_percentage\030\001 \001(\002H\000\022\032\n\020batch_nod" + + "e_count\030\002 \001(\005H\000\022;\n\023batch_soak_duration\030\003" + + " \001(\0132\031.google.protobuf.DurationH\001\210\001\001B\023\n\021" + + "update_batch_sizeB\026\n\024_batch_soak_duratio" + + "nB\020\n\016rollout_policyB\032\n\030_node_pool_soak_d" + + "uration\"\272\020\n\010NodePool\022\014\n\004name\030\001 \001(\t\022/\n\006co" + + "nfig\030\002 \001(\0132\037.google.container.v1.NodeCon" + + "fig\022\032\n\022initial_node_count\030\003 \001(\005\022\021\n\tlocat" + + "ions\030\r \003(\t\022>\n\016network_config\030\016 \001(\0132&.goo" + + "gle.container.v1.NodeNetworkConfig\022\021\n\tse" + + "lf_link\030d \001(\t\022\017\n\007version\030e \001(\t\022\033\n\023instan" + + "ce_group_urls\030f \003(\t\0224\n\006status\030g \001(\0162$.go" + + "ogle.container.v1.NodePool.Status\022\032\n\016sta" + + "tus_message\030h \001(\tB\002\030\001\022=\n\013autoscaling\030\004 \001" + + "(\0132(.google.container.v1.NodePoolAutosca" + + "ling\0227\n\nmanagement\030\005 \001(\0132#.google.contai" + + "ner.v1.NodeManagement\022C\n\023max_pods_constr" + + "aint\030\006 \001(\0132&.google.container.v1.MaxPods" + + "Constraint\0228\n\nconditions\030i \003(\0132$.google." + + "container.v1.StatusCondition\022\032\n\022pod_ipv4" + + "_cidr_size\030\007 \001(\005\022G\n\020upgrade_settings\030k \001" + + "(\0132-.google.container.v1.NodePool.Upgrad" + + "eSettings\022G\n\020placement_policy\030l \001(\0132-.go" + + "ogle.container.v1.NodePool.PlacementPoli" + + "cy\022B\n\013update_info\030m \001(\0132(.google.contain" + + "er.v1.NodePool.UpdateInfoB\003\340A\003\022\014\n\004etag\030n" + + " \001(\t\022M\n\023queued_provisioning\030p \001(\01320.goog" + + "le.container.v1.NodePool.QueuedProvision" + + "ing\022M\n\030best_effort_provisioning\030q \001(\0132+." + + "google.container.v1.BestEffortProvisioni" + + "ng\032\360\001\n\017UpgradeSettings\022\021\n\tmax_surge\030\001 \001(" + + "\005\022\027\n\017max_unavailable\030\002 \001(\005\022B\n\010strategy\030\003" + + " \001(\0162+.google.container.v1.NodePoolUpdat" + + "eStrategyH\000\210\001\001\022H\n\023blue_green_settings\030\004 " + + "\001(\0132&.google.container.v1.BlueGreenSetti" + + "ngsH\001\210\001\001B\013\n\t_strategyB\026\n\024_blue_green_set" + + "tings\032\210\004\n\nUpdateInfo\022O\n\017blue_green_info\030" + + "\001 \001(\01326.google.container.v1.NodePool.Upd" + + "ateInfo.BlueGreenInfo\032\250\003\n\rBlueGreenInfo\022" + + "K\n\005phase\030\001 \001(\0162<.google.container.v1.Nod" + + "ePool.UpdateInfo.BlueGreenInfo.Phase\022 \n\030" + + "blue_instance_group_urls\030\002 \003(\t\022!\n\031green_" + + "instance_group_urls\030\003 \003(\t\022%\n\035blue_pool_d" + + "eletion_start_time\030\004 \001(\t\022\032\n\022green_pool_v" + + "ersion\030\005 \001(\t\"\301\001\n\005Phase\022\025\n\021PHASE_UNSPECIF" + + "IED\020\000\022\022\n\016UPDATE_STARTED\020\001\022\027\n\023CREATING_GR" + + "EEN_POOL\020\002\022\027\n\023CORDONING_BLUE_POOL\020\003\022\026\n\022D" + + "RAINING_BLUE_POOL\020\004\022\025\n\021NODE_POOL_SOAKING" + + "\020\005\022\026\n\022DELETING_BLUE_POOL\020\006\022\024\n\020ROLLBACK_S" + + "TARTED\020\007\032\256\001\n\017PlacementPolicy\022@\n\004type\030\001 \001" + + "(\01622.google.container.v1.NodePool.Placem" + + "entPolicy.Type\022\031\n\014tpu_topology\030\002 \001(\tB\003\340A" + + "\001\022\023\n\013policy_name\030\003 \001(\t\")\n\004Type\022\024\n\020TYPE_U" + + "NSPECIFIED\020\000\022\013\n\007COMPACT\020\001\032%\n\022QueuedProvi" + + "sioning\022\017\n\007enabled\030\001 \001(\010\"\201\001\n\006Status\022\026\n\022S" + + "TATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n" + + "\007RUNNING\020\002\022\026\n\022RUNNING_WITH_ERROR\020\003\022\017\n\013RE" + + "CONCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005ERROR\020\006\"}\n\016" + + "NodeManagement\022\024\n\014auto_upgrade\030\001 \001(\010\022\023\n\013" + + "auto_repair\030\002 \001(\010\022@\n\017upgrade_options\030\n \001" + + "(\0132\'.google.container.v1.AutoUpgradeOpti" + + "ons\"F\n\026BestEffortProvisioning\022\017\n\007enabled" + + "\030\001 \001(\010\022\033\n\023min_provision_nodes\030\002 \001(\005\"J\n\022A" + + "utoUpgradeOptions\022\037\n\027auto_upgrade_start_" + + "time\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\"e\n\021Maint" + + "enancePolicy\0226\n\006window\030\001 \001(\0132&.google.co" + + "ntainer.v1.MaintenanceWindow\022\030\n\020resource" + + "_version\030\003 \001(\t\"\366\002\n\021MaintenanceWindow\022O\n\030" + + "daily_maintenance_window\030\002 \001(\0132+.google." + + "container.v1.DailyMaintenanceWindowH\000\022D\n" + + "\020recurring_window\030\003 \001(\0132(.google.contain" + + "er.v1.RecurringTimeWindowH\000\022a\n\026maintenan" + + "ce_exclusions\030\004 \003(\0132A.google.container.v" + + "1.MaintenanceWindow.MaintenanceExclusion" + + "sEntry\032]\n\032MaintenanceExclusionsEntry\022\013\n\003" + + "key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.google.contai" + + "ner.v1.TimeWindow:\0028\001B\010\n\006policy\"\320\001\n\nTime" + + "Window\022Y\n\035maintenance_exclusion_options\030" + + "\003 \001(\01320.google.container.v1.MaintenanceE" + + "xclusionOptionsH\000\022.\n\nstart_time\030\001 \001(\0132\032." + + "google.protobuf.Timestamp\022,\n\010end_time\030\002 " + + "\001(\0132\032.google.protobuf.TimestampB\t\n\007optio" + + "ns\"\264\001\n\033MaintenanceExclusionOptions\022E\n\005sc" + + "ope\030\001 \001(\01626.google.container.v1.Maintena" + + "nceExclusionOptions.Scope\"N\n\005Scope\022\017\n\013NO" + + "_UPGRADES\020\000\022\025\n\021NO_MINOR_UPGRADES\020\001\022\035\n\031NO" + + "_MINOR_OR_NODE_UPGRADES\020\002\"Z\n\023RecurringTi" + + "meWindow\022/\n\006window\030\001 \001(\0132\037.google.contai" + + "ner.v1.TimeWindow\022\022\n\nrecurrence\030\002 \001(\t\">\n" + + "\026DailyMaintenanceWindow\022\022\n\nstart_time\030\002 " + + "\001(\t\022\020\n\010duration\030\003 \001(\t\"\306\001\n\034SetNodePoolMan" + + "agementRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020" + "\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001" - + "\022\014\n\004name\030\006 \001(\t\022\032\n\022rotate_credentials\030\007 \001" - + "(\010\"k\n\031CompleteIPRotationRequest\022\026\n\nproje" - + "ct_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\nclu" - + "ster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"\305\002\n\021Acce" - + "leratorConfig\022\031\n\021accelerator_count\030\001 \001(\003" - + "\022\030\n\020accelerator_type\030\002 \001(\t\022\032\n\022gpu_partit" - + "ion_size\030\003 \001(\t\022F\n\022gpu_sharing_config\030\005 \001" - + "(\0132%.google.container.v1.GPUSharingConfi" - + "gH\000\210\001\001\022]\n\036gpu_driver_installation_config" - + "\030\006 \001(\01320.google.container.v1.GPUDriverIn" - + "stallationConfigH\001\210\001\001B\025\n\023_gpu_sharing_co" - + "nfigB!\n\037_gpu_driver_installation_config\"" - + "\372\001\n\020GPUSharingConfig\022\"\n\032max_shared_clien" - + "ts_per_gpu\030\001 \001(\003\022[\n\024gpu_sharing_strategy" - + "\030\002 \001(\01628.google.container.v1.GPUSharingC" - + "onfig.GPUSharingStrategyH\000\210\001\001\"L\n\022GPUShar" - + "ingStrategy\022$\n GPU_SHARING_STRATEGY_UNSP" - + "ECIFIED\020\000\022\020\n\014TIME_SHARING\020\001B\027\n\025_gpu_shar" - + "ing_strategy\"\204\002\n\033GPUDriverInstallationCo" - + "nfig\022b\n\022gpu_driver_version\030\001 \001(\0162A.googl" - + "e.container.v1.GPUDriverInstallationConf" - + "ig.GPUDriverVersionH\000\210\001\001\"j\n\020GPUDriverVer" - + "sion\022\"\n\036GPU_DRIVER_VERSION_UNSPECIFIED\020\000" - + "\022\031\n\025INSTALLATION_DISABLED\020\001\022\013\n\007DEFAULT\020\002" - + "\022\n\n\006LATEST\020\003B\025\n\023_gpu_driver_version\"\232\001\n\026" - + "WorkloadMetadataConfig\022>\n\004mode\030\002 \001(\01620.g" - + "oogle.container.v1.WorkloadMetadataConfi" - + "g.Mode\"@\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n\014" - + "GCE_METADATA\020\001\022\020\n\014GKE_METADATA\020\002\"\252\001\n\027Set" - + "NetworkPolicyRequest\022\026\n\nproject_id\030\001 \001(\t" - + "B\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001" - + "(\tB\002\030\001\022?\n\016network_policy\030\004 \001(\0132\".google." - + "container.v1.NetworkPolicyB\003\340A\002\022\014\n\004name\030" - + "\006 \001(\t\"\271\001\n\033SetMaintenancePolicyRequest\022\027\n" - + "\nproject_id\030\001 \001(\tB\003\340A\002\022\021\n\004zone\030\002 \001(\tB\003\340A" - + "\002\022\027\n\ncluster_id\030\003 \001(\tB\003\340A\002\022G\n\022maintenanc" - + "e_policy\030\004 \001(\0132&.google.container.v1.Mai" - + "ntenancePolicyB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\251\002\n\017St" - + "atusCondition\022;\n\004code\030\001 \001(\0162).google.con" - + "tainer.v1.StatusCondition.CodeB\002\030\001\022\017\n\007me" - + "ssage\030\002 \001(\t\022(\n\016canonical_code\030\003 \001(\0162\020.go" - + "ogle.rpc.Code\"\235\001\n\004Code\022\013\n\007UNKNOWN\020\000\022\020\n\014G" - + "CE_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_ACCOUNT_DEL" - + "ETED\020\002\022\026\n\022GCE_QUOTA_EXCEEDED\020\003\022\023\n\017SET_BY" - + "_OPERATOR\020\004\022\027\n\023CLOUD_KMS_KEY_ERROR\020\007\022\017\n\013" - + "CA_EXPIRING\020\t\"\315\010\n\rNetworkConfig\022\017\n\007netwo" - + "rk\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022$\n\034enable_i", - "ntra_node_visibility\030\005 \001(\010\022C\n\023default_sn" - + "at_status\030\007 \001(\0132&.google.container.v1.De" - + "faultSnatStatus\022\037\n\027enable_l4ilb_subsetti" - + "ng\030\n \001(\010\022@\n\021datapath_provider\030\013 \001(\0162%.go" - + "ogle.container.v1.DatapathProvider\022P\n\032pr" - + "ivate_ipv6_google_access\030\014 \001(\0162,.google." - + "container.v1.PrivateIPv6GoogleAccess\0222\n\n" - + "dns_config\030\r \001(\0132\036.google.container.v1.D" - + "NSConfig\022R\n\033service_external_ips_config\030" - + "\017 \001(\0132-.google.container.v1.ServiceExter" - + "nalIPsConfig\022A\n\022gateway_api_config\030\020 \001(\013" - + "2%.google.container.v1.GatewayAPIConfig\022" - + "\037\n\027enable_multi_networking\030\021 \001(\010\022f\n\032netw" - + "ork_performance_config\030\022 \001(\0132B.google.co" - + "ntainer.v1.NetworkConfig.ClusterNetworkP" - + "erformanceConfig\022\'\n\032enable_fqdn_network_" - + "policy\030\023 \001(\010H\000\210\001\001\022Y\n\034in_transit_encrypti" - + "on_config\030\024 \001(\0162..google.container.v1.In" - + "TransitEncryptionConfigH\001\210\001\001\032\336\001\n\037Cluster" - + "NetworkPerformanceConfig\022q\n\033total_egress" - + "_bandwidth_tier\030\001 \001(\0162G.google.container" - + ".v1.NetworkConfig.ClusterNetworkPerforma" - + "nceConfig.TierH\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSP" - + "ECIFIED\020\000\022\n\n\006TIER_1\020\001B\036\n\034_total_egress_b" - + "andwidth_tierB\035\n\033_enable_fqdn_network_po" - + "licyB\037\n\035_in_transit_encryption_config\"\274\001" - + "\n\020GatewayAPIConfig\022>\n\007channel\030\001 \001(\0162-.go" - + "ogle.container.v1.GatewayAPIConfig.Chann" - + "el\"h\n\007Channel\022\027\n\023CHANNEL_UNSPECIFIED\020\000\022\024" - + "\n\020CHANNEL_DISABLED\020\001\022\030\n\024CHANNEL_EXPERIME" - + "NTAL\020\003\022\024\n\020CHANNEL_STANDARD\020\004\"+\n\030ServiceE" - + "xternalIPsConfig\022\017\n\007enabled\030\001 \001(\010\"(\n\026Get" - + "OpenIDConfigRequest\022\016\n\006parent\030\001 \001(\t\"\334\001\n\027" - + "GetOpenIDConfigResponse\022\016\n\006issuer\030\001 \001(\t\022" - + "\020\n\010jwks_uri\030\002 \001(\t\022 \n\030response_types_supp" - + "orted\030\003 \003(\t\022\037\n\027subject_types_supported\030\004" - + " \003(\t\022-\n%id_token_signing_alg_values_supp" - + "orted\030\005 \003(\t\022\030\n\020claims_supported\030\006 \003(\t\022\023\n" - + "\013grant_types\030\007 \003(\t\"\'\n\025GetJSONWebKeysRequ" - + "est\022\016\n\006parent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003kty\030\001 \001(\t\022" - + "\013\n\003alg\030\002 \001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003kid\030\004 \001(\t\022\t" - + "\n\001n\030\005 \001(\t\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t\n\001y\030\010 \001" - + "(\t\022\013\n\003crv\030\t \001(\t\"@\n\026GetJSONWebKeysRespons" - + "e\022&\n\004keys\030\001 \003(\0132\030.google.container.v1.Jw" - + "k\"2\n\"CheckAutopilotCompatibilityRequest\022" - + "\014\n\004name\030\001 \001(\t\"\374\002\n\033AutopilotCompatibility" - + "Issue\0224\n\020last_observation\030\001 \001(\0132\032.google" - + ".protobuf.Timestamp\022\027\n\017constraint_type\030\002" - + " \001(\t\022X\n\024incompatibility_type\030\003 \001(\0162:.goo" - + "gle.container.v1.AutopilotCompatibilityI" - + "ssue.IssueType\022\020\n\010subjects\030\004 \003(\t\022\031\n\021docu" - + "mentation_url\030\005 \001(\t\022\023\n\013description\030\006 \001(\t" - + "\"r\n\tIssueType\022\017\n\013UNSPECIFIED\020\000\022\023\n\017INCOMP" - + "ATIBILITY\020\001\022\036\n\032ADDITIONAL_CONFIG_REQUIRE" - + "D\020\002\022\037\n\033PASSED_WITH_OPTIONAL_CONFIG\020\003\"x\n#" - + "CheckAutopilotCompatibilityResponse\022@\n\006i" - + "ssues\030\001 \003(\01320.google.container.v1.Autopi" - + "lotCompatibilityIssue\022\017\n\007summary\030\002 \001(\t\"\216" - + "\001\n\016ReleaseChannel\022<\n\007channel\030\001 \001(\0162+.goo" - + "gle.container.v1.ReleaseChannel.Channel\"" - + ">\n\007Channel\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013" - + "\n\007REGULAR\020\002\022\n\n\006STABLE\020\003\"\'\n\024CostManagemen" - + "tConfig\022\017\n\007enabled\030\001 \001(\010\",\n\031IntraNodeVis" - + "ibilityConfig\022\017\n\007enabled\030\001 \001(\010\"&\n\023ILBSub" - + "settingConfig\022\017\n\007enabled\030\001 \001(\010\"\313\002\n\tDNSCo" - + "nfig\022<\n\013cluster_dns\030\001 \001(\0162\'.google.conta" - + "iner.v1.DNSConfig.Provider\022B\n\021cluster_dn" - + "s_scope\030\002 \001(\0162\'.google.container.v1.DNSC" - + "onfig.DNSScope\022\032\n\022cluster_dns_domain\030\003 \001" - + "(\t\"W\n\010Provider\022\030\n\024PROVIDER_UNSPECIFIED\020\000" - + "\022\024\n\020PLATFORM_DEFAULT\020\001\022\r\n\tCLOUD_DNS\020\002\022\014\n" - + "\010KUBE_DNS\020\003\"G\n\010DNSScope\022\031\n\025DNS_SCOPE_UNS" - + "PECIFIED\020\000\022\021\n\rCLUSTER_SCOPE\020\001\022\r\n\tVPC_SCO" - + "PE\020\002\".\n\021MaxPodsConstraint\022\031\n\021max_pods_pe" - + "r_node\030\001 \001(\003\"/\n\026WorkloadIdentityConfig\022\025" - + "\n\rworkload_pool\030\002 \001(\t\"(\n\025IdentityService" - + "Config\022\017\n\007enabled\030\001 \001(\010\"K\n\020MeshCertifica" - + "tes\0227\n\023enable_certificates\030\001 \001(\0132\032.googl" - + "e.protobuf.BoolValue\"\230\001\n\022DatabaseEncrypt" - + "ion\022\020\n\010key_name\030\001 \001(\t\022<\n\005state\030\002 \001(\0162-.g" - + "oogle.container.v1.DatabaseEncryption.St" - + "ate\"2\n\005State\022\013\n\007UNKNOWN\020\000\022\r\n\tENCRYPTED\020\001" - + "\022\r\n\tDECRYPTED\020\002\"e\n\034ListUsableSubnetworks" - + "Request\022\016\n\006parent\030\001 \001(\t\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\"t" - + "\n\035ListUsableSubnetworksResponse\022:\n\013subne" - + "tworks\030\001 \003(\0132%.google.container.v1.Usabl" - + "eSubnetwork\022\027\n\017next_page_token\030\002 \001(\t\"\200\002\n" - + "\036UsableSubnetworkSecondaryRange\022\022\n\nrange" - + "_name\030\001 \001(\t\022\025\n\rip_cidr_range\030\002 \001(\t\022J\n\006st" - + "atus\030\003 \001(\0162:.google.container.v1.UsableS" - + "ubnetworkSecondaryRange.Status\"g\n\006Status" - + "\022\013\n\007UNKNOWN\020\000\022\n\n\006UNUSED\020\001\022\022\n\016IN_USE_SERV" - + "ICE\020\002\022\030\n\024IN_USE_SHAREABLE_POD\020\003\022\026\n\022IN_US" - + "E_MANAGED_POD\020\004\"\270\001\n\020UsableSubnetwork\022\022\n\n" - + "subnetwork\030\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_" - + "cidr_range\030\003 \001(\t\022P\n\023secondary_ip_ranges\030" - + "\004 \003(\01323.google.container.v1.UsableSubnet" - + "workSecondaryRange\022\026\n\016status_message\030\005 \001" - + "(\t\"\355\002\n\031ResourceUsageExportConfig\022`\n\024bigq" - + "uery_destination\030\001 \001(\0132B.google.containe" - + "r.v1.ResourceUsageExportConfig.BigQueryD" - + "estination\022&\n\036enable_network_egress_mete" - + "ring\030\002 \001(\010\022m\n\033consumption_metering_confi" - + "g\030\003 \001(\0132H.google.container.v1.ResourceUs" - + "ageExportConfig.ConsumptionMeteringConfi" - + "g\032)\n\023BigQueryDestination\022\022\n\ndataset_id\030\001" - + " \001(\t\032,\n\031ConsumptionMeteringConfig\022\017\n\007ena" - + "bled\030\001 \001(\010\")\n\026VerticalPodAutoscaling\022\017\n\007" - + "enabled\030\001 \001(\010\"%\n\021DefaultSnatStatus\022\020\n\010di" - + "sabled\030\001 \001(\010\" \n\rShieldedNodes\022\017\n\007enabled" - + "\030\001 \001(\010\"\035\n\nVirtualNIC\022\017\n\007enabled\030\001 \001(\010\"\035\n" - + "\nFastSocket\022\017\n\007enabled\030\001 \001(\010\"\250\003\n\022Notific" - + "ationConfig\022>\n\006pubsub\030\001 \001(\0132..google.con" - + "tainer.v1.NotificationConfig.PubSub\032\212\001\n\006" - + "PubSub\022\017\n\007enabled\030\001 \001(\010\022/\n\005topic\030\002 \001(\tB " - + "\372A\035\n\033pubsub.googleapis.com/Topic\022>\n\006filt" - + "er\030\003 \001(\0132..google.container.v1.Notificat" - + "ionConfig.Filter\032O\n\006Filter\022E\n\nevent_type" - + "\030\001 \003(\01621.google.container.v1.Notificatio" - + "nConfig.EventType\"t\n\tEventType\022\032\n\026EVENT_" - + "TYPE_UNSPECIFIED\020\000\022\033\n\027UPGRADE_AVAILABLE_" - + "EVENT\020\001\022\021\n\rUPGRADE_EVENT\020\002\022\033\n\027SECURITY_B" - + "ULLETIN_EVENT\020\003\"$\n\021ConfidentialNodes\022\017\n\007" - + "enabled\030\001 \001(\010\"\337\001\n\014UpgradeEvent\022?\n\rresour" - + "ce_type\030\001 \001(\0162(.google.container.v1.Upgr" - + "adeResourceType\022\021\n\toperation\030\002 \001(\t\0228\n\024op" - + "eration_start_time\030\003 \001(\0132\032.google.protob" - + "uf.Timestamp\022\027\n\017current_version\030\004 \001(\t\022\026\n" - + "\016target_version\030\005 \001(\t\022\020\n\010resource\030\006 \001(\t\"" - + "\271\001\n\025UpgradeAvailableEvent\022\017\n\007version\030\001 \001" - + "(\t\022?\n\rresource_type\030\002 \001(\0162(.google.conta" - + "iner.v1.UpgradeResourceType\022<\n\017release_c" - + "hannel\030\003 \001(\0132#.google.container.v1.Relea" - + "seChannel\022\020\n\010resource\030\004 \001(\t\"\236\002\n\025Security" - + "BulletinEvent\022\036\n\026resource_type_affected\030" - + "\001 \001(\t\022\023\n\013bulletin_id\030\002 \001(\t\022\017\n\007cve_ids\030\003 " - + "\003(\t\022\020\n\010severity\030\004 \001(\t\022\024\n\014bulletin_uri\030\005 " - + "\001(\t\022\031\n\021brief_description\030\006 \001(\t\022!\n\031affect" - + "ed_supported_minors\030\007 \003(\t\022\030\n\020patched_ver" - + "sions\030\010 \003(\t\022 \n\030suggested_upgrade_target\030" - + "\t \001(\t\022\035\n\025manual_steps_required\030\n \001(\010\"g\n\t" - + "Autopilot\022\017\n\007enabled\030\001 \001(\010\022I\n\026workload_p" - + "olicy_config\030\002 \001(\0132).google.container.v1" - + ".WorkloadPolicyConfig\"H\n\024WorkloadPolicyC" - + "onfig\022\034\n\017allow_net_admin\030\001 \001(\010H\000\210\001\001B\022\n\020_" - + "allow_net_admin\"V\n\rLoggingConfig\022E\n\020comp" - + "onent_config\030\001 \001(\0132+.google.container.v1" - + ".LoggingComponentConfig\"\357\001\n\026LoggingCompo" - + "nentConfig\022P\n\021enable_components\030\001 \003(\01625." - + "google.container.v1.LoggingComponentConf" - + "ig.Component\"\202\001\n\tComponent\022\031\n\025COMPONENT_" + + "\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022<\n\nmanagement" + + "\030\005 \001(\0132#.google.container.v1.NodeManagem" + + "entB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\233\001\n\026SetNodePoolSi" + + "zeRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zon" + + "e\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014n" + + "ode_pool_id\030\004 \001(\tB\002\030\001\022\027\n\nnode_count\030\005 \001(" + + "\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\".\n\036CompleteNodePool" + + "UpgradeRequest\022\014\n\004name\030\001 \001(\t\"\237\001\n\036Rollbac" + + "kNodePoolUpgradeRequest\022\026\n\nproject_id\030\001 " + + "\001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030" + + "\003 \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022\014\n\004n" + + "ame\030\006 \001(\t\022\023\n\013respect_pdb\030\007 \001(\010\"J\n\025ListNo" + + "dePoolsResponse\0221\n\nnode_pools\030\001 \003(\0132\035.go" + + "ogle.container.v1.NodePool\"\257\003\n\022ClusterAu" + + "toscaling\022$\n\034enable_node_autoprovisionin" + + "g\030\001 \001(\010\022;\n\017resource_limits\030\002 \003(\0132\".googl" + + "e.container.v1.ResourceLimit\022W\n\023autoscal" + + "ing_profile\030\003 \001(\0162:.google.container.v1." + + "ClusterAutoscaling.AutoscalingProfile\022b\n" + + "#autoprovisioning_node_pool_defaults\030\004 \001" + + "(\01325.google.container.v1.Autoprovisionin" + + "gNodePoolDefaults\022\"\n\032autoprovisioning_lo" + + "cations\030\005 \003(\t\"U\n\022AutoscalingProfile\022\027\n\023P" + + "ROFILE_UNSPECIFIED\020\000\022\030\n\024OPTIMIZE_UTILIZA" + + "TION\020\001\022\014\n\010BALANCED\020\002\"\370\003\n Autoprovisionin" + + "gNodePoolDefaults\022\024\n\014oauth_scopes\030\001 \003(\t\022" + + "\027\n\017service_account\030\002 \001(\t\022G\n\020upgrade_sett" + + "ings\030\003 \001(\0132-.google.container.v1.NodePoo" + + "l.UpgradeSettings\0227\n\nmanagement\030\004 \001(\0132#." + + "google.container.v1.NodeManagement\022\034\n\020mi" + + "n_cpu_platform\030\005 \001(\tB\002\030\001\022\024\n\014disk_size_gb" + + "\030\006 \001(\005\022\021\n\tdisk_type\030\007 \001(\t\022M\n\030shielded_in" + + "stance_config\030\010 \001(\0132+.google.container.v" + + "1.ShieldedInstanceConfig\022\031\n\021boot_disk_km" + + "s_key\030\t \001(\t\022\022\n\nimage_type\030\n \001(\t\0223\n&insec" + + "ure_kubelet_readonly_port_enabled\030\r \001(\010H" + + "\000\210\001\001B)\n\'_insecure_kubelet_readonly_port_" + + "enabled\"H\n\rResourceLimit\022\025\n\rresource_typ" + + "e\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n\007maximum\030\003 \001(" + + "\003\"\307\002\n\023NodePoolAutoscaling\022\017\n\007enabled\030\001 \001" + + "(\010\022\026\n\016min_node_count\030\002 \001(\005\022\026\n\016max_node_c" + + "ount\030\003 \001(\005\022\027\n\017autoprovisioned\030\004 \001(\010\022P\n\017l" + + "ocation_policy\030\005 \001(\01627.google.container." + + "v1.NodePoolAutoscaling.LocationPolicy\022\034\n" + + "\024total_min_node_count\030\006 \001(\005\022\034\n\024total_max" + + "_node_count\030\007 \001(\005\"H\n\016LocationPolicy\022\037\n\033L" + + "OCATION_POLICY_UNSPECIFIED\020\000\022\014\n\010BALANCED" + + "\020\001\022\007\n\003ANY\020\002\"\222\002\n\020SetLabelsRequest\022\026\n\nproj" + + "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncl" + + "uster_id\030\003 \001(\tB\002\030\001\022W\n\017resource_labels\030\004 " + + "\003(\01329.google.container.v1.SetLabelsReque" + + "st.ResourceLabelsEntryB\003\340A\002\022\036\n\021label_fin" + + "gerprint\030\005 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\0325\n\023Res" + + "ourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"|\n\024SetLegacyAbacRequest\022\026\n\nproj" + + "ect_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncl" + + "uster_id\030\003 \001(\tB\002\030\001\022\024\n\007enabled\030\004 \001(\010B\003\340A\002" + + "\022\014\n\004name\030\006 \001(\t\"\204\001\n\026StartIPRotationReques" + + "t\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB" + + "\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(" + + "\t\022\032\n\022rotate_credentials\030\007 \001(\010\"k\n\031Complet" + + "eIPRotationRequest\022\026\n\nproject_id\030\001 \001(\tB\002" + + "\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\t" + + "B\002\030\001\022\014\n\004name\030\007 \001(\t\"\305\002\n\021AcceleratorConfig" + + "\022\031\n\021accelerator_count\030\001 \001(\003\022\030\n\020accelerat" + + "or_type\030\002 \001(\t\022\032\n\022gpu_partition_size\030\003 \001(" + + "\t\022F\n\022gpu_sharing_config\030\005 \001(\0132%.google.c" + + "ontainer.v1.GPUSharingConfigH\000\210\001\001\022]\n\036gpu" + + "_driver_installation_config\030\006 \001(\01320.goog" + + "le.container.v1.GPUDriverInstallationCon" + + "figH\001\210\001\001B\025\n\023_gpu_sharing_configB!\n\037_gpu_" + + "driver_installation_config\"\372\001\n\020GPUSharin" + + "gConfig\022\"\n\032max_shared_clients_per_gpu\030\001 " + + "\001(\003\022[\n\024gpu_sharing_strategy\030\002 \001(\01628.goog" + + "le.container.v1.GPUSharingConfig.GPUShar" + + "ingStrategyH\000\210\001\001\"L\n\022GPUSharingStrategy\022$" + + "\n GPU_SHARING_STRATEGY_UNSPECIFIED\020\000\022\020\n\014" + + "TIME_SHARING\020\001B\027\n\025_gpu_sharing_strategy\"" + + "\204\002\n\033GPUDriverInstallationConfig\022b\n\022gpu_d" + + "river_version\030\001 \001(\0162A.google.container.v" + + "1.GPUDriverInstallationConfig.GPUDriverV" + + "ersionH\000\210\001\001\"j\n\020GPUDriverVersion\022\"\n\036GPU_D" + + "RIVER_VERSION_UNSPECIFIED\020\000\022\031\n\025INSTALLAT" + + "ION_DISABLED\020\001\022\013\n\007DEFAULT\020\002\022\n\n\006LATEST\020\003B" + + "\025\n\023_gpu_driver_version\"\232\001\n\026WorkloadMetad" + + "ataConfig\022>\n\004mode\030\002 \001(\01620.google.contain" + + "er.v1.WorkloadMetadataConfig.Mode\"@\n\004Mod" + + "e\022\024\n\020MODE_UNSPECIFIED\020\000\022\020\n\014GCE_METADATA\020" + + "\001\022\020\n\014GKE_METADATA\020\002\"\252\001\n\027SetNetworkPolicy" + + "Request\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030" + + "\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022?\n\016net" + + "work_policy\030\004 \001(\0132\".google.container.v1." + + "NetworkPolicyB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\271\001\n\033Set" + + "MaintenancePolicyRequest\022\027\n\nproject_id\030\001" + + " \001(\tB\003\340A\002\022\021\n\004zone\030\002 \001(\tB\003\340A\002\022\027\n\ncluster_" + + "id\030\003 \001(\tB\003\340A\002\022G\n\022maintenance_policy\030\004 \001(" + + "\0132&.google.container.v1.MaintenancePolic" + + "yB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\251\002\n\017StatusCondition" + + "\022;\n\004code\030\001 \001(\0162).google.container.v1.Sta" + + "tusCondition.CodeB\002\030\001\022\017\n\007message\030\002 \001(\t\022(" + + "\n\016canonical_code\030\003 \001(\0162\020.google.rpc.Code" + + "\"\235\001\n\004Code\022\013\n\007UNKNOWN\020\000\022\020\n\014GCE_STOCKOUT\020\001", + "\022\037\n\033GKE_SERVICE_ACCOUNT_DELETED\020\002\022\026\n\022GCE" + + "_QUOTA_EXCEEDED\020\003\022\023\n\017SET_BY_OPERATOR\020\004\022\027" + + "\n\023CLOUD_KMS_KEY_ERROR\020\007\022\017\n\013CA_EXPIRING\020\t" + + "\"\261\t\n\rNetworkConfig\022\017\n\007network\030\001 \001(\t\022\022\n\ns" + + "ubnetwork\030\002 \001(\t\022$\n\034enable_intra_node_vis" + + "ibility\030\005 \001(\010\022C\n\023default_snat_status\030\007 \001" + + "(\0132&.google.container.v1.DefaultSnatStat" + + "us\022\037\n\027enable_l4ilb_subsetting\030\n \001(\010\022@\n\021d" + + "atapath_provider\030\013 \001(\0162%.google.containe" + + "r.v1.DatapathProvider\022P\n\032private_ipv6_go" + + "ogle_access\030\014 \001(\0162,.google.container.v1." + + "PrivateIPv6GoogleAccess\0222\n\ndns_config\030\r " + + "\001(\0132\036.google.container.v1.DNSConfig\022R\n\033s" + + "ervice_external_ips_config\030\017 \001(\0132-.googl" + + "e.container.v1.ServiceExternalIPsConfig\022" + + "A\n\022gateway_api_config\030\020 \001(\0132%.google.con" + + "tainer.v1.GatewayAPIConfig\022\037\n\027enable_mul" + + "ti_networking\030\021 \001(\010\022f\n\032network_performan" + + "ce_config\030\022 \001(\0132B.google.container.v1.Ne" + + "tworkConfig.ClusterNetworkPerformanceCon" + + "fig\022\'\n\032enable_fqdn_network_policy\030\023 \001(\010H" + + "\000\210\001\001\022Y\n\034in_transit_encryption_config\030\024 \001" + + "(\0162..google.container.v1.InTransitEncryp" + + "tionConfigH\001\210\001\001\0225\n(enable_cilium_cluster" + + "wide_network_policy\030\025 \001(\010H\002\210\001\001\032\336\001\n\037Clust" + + "erNetworkPerformanceConfig\022q\n\033total_egre" + + "ss_bandwidth_tier\030\001 \001(\0162G.google.contain" + + "er.v1.NetworkConfig.ClusterNetworkPerfor" + + "manceConfig.TierH\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UN" + + "SPECIFIED\020\000\022\n\n\006TIER_1\020\001B\036\n\034_total_egress" + + "_bandwidth_tierB\035\n\033_enable_fqdn_network_" + + "policyB\037\n\035_in_transit_encryption_configB" + + "+\n)_enable_cilium_clusterwide_network_po" + + "licy\"\274\001\n\020GatewayAPIConfig\022>\n\007channel\030\001 \001" + + "(\0162-.google.container.v1.GatewayAPIConfi" + + "g.Channel\"h\n\007Channel\022\027\n\023CHANNEL_UNSPECIF" + + "IED\020\000\022\024\n\020CHANNEL_DISABLED\020\001\022\030\n\024CHANNEL_E" + + "XPERIMENTAL\020\003\022\024\n\020CHANNEL_STANDARD\020\004\"+\n\030S" + + "erviceExternalIPsConfig\022\017\n\007enabled\030\001 \001(\010" + + "\"(\n\026GetOpenIDConfigRequest\022\016\n\006parent\030\001 \001" + + "(\t\"\334\001\n\027GetOpenIDConfigResponse\022\016\n\006issuer" + + "\030\001 \001(\t\022\020\n\010jwks_uri\030\002 \001(\t\022 \n\030response_typ" + + "es_supported\030\003 \003(\t\022\037\n\027subject_types_supp" + + "orted\030\004 \003(\t\022-\n%id_token_signing_alg_valu" + + "es_supported\030\005 \003(\t\022\030\n\020claims_supported\030\006" + + " \003(\t\022\023\n\013grant_types\030\007 \003(\t\"\'\n\025GetJSONWebK" + + "eysRequest\022\016\n\006parent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003kty" + + "\030\001 \001(\t\022\013\n\003alg\030\002 \001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003kid\030" + + "\004 \001(\t\022\t\n\001n\030\005 \001(\t\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t" + + "\n\001y\030\010 \001(\t\022\013\n\003crv\030\t \001(\t\"@\n\026GetJSONWebKeys" + + "Response\022&\n\004keys\030\001 \003(\0132\030.google.containe" + + "r.v1.Jwk\"2\n\"CheckAutopilotCompatibilityR" + + "equest\022\014\n\004name\030\001 \001(\t\"\374\002\n\033AutopilotCompat" + + "ibilityIssue\0224\n\020last_observation\030\001 \001(\0132\032" + + ".google.protobuf.Timestamp\022\027\n\017constraint" + + "_type\030\002 \001(\t\022X\n\024incompatibility_type\030\003 \001(" + + "\0162:.google.container.v1.AutopilotCompati" + + "bilityIssue.IssueType\022\020\n\010subjects\030\004 \003(\t\022" + + "\031\n\021documentation_url\030\005 \001(\t\022\023\n\013descriptio" + + "n\030\006 \001(\t\"r\n\tIssueType\022\017\n\013UNSPECIFIED\020\000\022\023\n" + + "\017INCOMPATIBILITY\020\001\022\036\n\032ADDITIONAL_CONFIG_" + + "REQUIRED\020\002\022\037\n\033PASSED_WITH_OPTIONAL_CONFI" + + "G\020\003\"x\n#CheckAutopilotCompatibilityRespon" + + "se\022@\n\006issues\030\001 \003(\01320.google.container.v1" + + ".AutopilotCompatibilityIssue\022\017\n\007summary\030" + + "\002 \001(\t\"\216\001\n\016ReleaseChannel\022<\n\007channel\030\001 \001(" + + "\0162+.google.container.v1.ReleaseChannel.C" + + "hannel\">\n\007Channel\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RA" + + "PID\020\001\022\013\n\007REGULAR\020\002\022\n\n\006STABLE\020\003\"\'\n\024CostMa" + + "nagementConfig\022\017\n\007enabled\030\001 \001(\010\",\n\031Intra" + + "NodeVisibilityConfig\022\017\n\007enabled\030\001 \001(\010\"&\n" + + "\023ILBSubsettingConfig\022\017\n\007enabled\030\001 \001(\010\"\313\002" + + "\n\tDNSConfig\022<\n\013cluster_dns\030\001 \001(\0162\'.googl" + + "e.container.v1.DNSConfig.Provider\022B\n\021clu" + + "ster_dns_scope\030\002 \001(\0162\'.google.container." + + "v1.DNSConfig.DNSScope\022\032\n\022cluster_dns_dom" + + "ain\030\003 \001(\t\"W\n\010Provider\022\030\n\024PROVIDER_UNSPEC" + + "IFIED\020\000\022\024\n\020PLATFORM_DEFAULT\020\001\022\r\n\tCLOUD_D" + + "NS\020\002\022\014\n\010KUBE_DNS\020\003\"G\n\010DNSScope\022\031\n\025DNS_SC" + + "OPE_UNSPECIFIED\020\000\022\021\n\rCLUSTER_SCOPE\020\001\022\r\n\t" + + "VPC_SCOPE\020\002\".\n\021MaxPodsConstraint\022\031\n\021max_" + + "pods_per_node\030\001 \001(\003\"/\n\026WorkloadIdentityC" + + "onfig\022\025\n\rworkload_pool\030\002 \001(\t\"(\n\025Identity" + + "ServiceConfig\022\017\n\007enabled\030\001 \001(\010\"K\n\020MeshCe" + + "rtificates\0227\n\023enable_certificates\030\001 \001(\0132" + + "\032.google.protobuf.BoolValue\"\230\001\n\022Database" + + "Encryption\022\020\n\010key_name\030\001 \001(\t\022<\n\005state\030\002 " + + "\001(\0162-.google.container.v1.DatabaseEncryp" + + "tion.State\"2\n\005State\022\013\n\007UNKNOWN\020\000\022\r\n\tENCR" + + "YPTED\020\001\022\r\n\tDECRYPTED\020\002\"e\n\034ListUsableSubn" + + "etworksRequest\022\016\n\006parent\030\001 \001(\t\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\"t\n\035ListUsableSubnetworksResponse\022:" + + "\n\013subnetworks\030\001 \003(\0132%.google.container.v" + + "1.UsableSubnetwork\022\027\n\017next_page_token\030\002 " + + "\001(\t\"\200\002\n\036UsableSubnetworkSecondaryRange\022\022" + + "\n\nrange_name\030\001 \001(\t\022\025\n\rip_cidr_range\030\002 \001(" + + "\t\022J\n\006status\030\003 \001(\0162:.google.container.v1." + + "UsableSubnetworkSecondaryRange.Status\"g\n" + + "\006Status\022\013\n\007UNKNOWN\020\000\022\n\n\006UNUSED\020\001\022\022\n\016IN_U" + + "SE_SERVICE\020\002\022\030\n\024IN_USE_SHAREABLE_POD\020\003\022\026" + + "\n\022IN_USE_MANAGED_POD\020\004\"\270\001\n\020UsableSubnetw" + + "ork\022\022\n\nsubnetwork\030\001 \001(\t\022\017\n\007network\030\002 \001(\t" + + "\022\025\n\rip_cidr_range\030\003 \001(\t\022P\n\023secondary_ip_" + + "ranges\030\004 \003(\01323.google.container.v1.Usabl" + + "eSubnetworkSecondaryRange\022\026\n\016status_mess" + + "age\030\005 \001(\t\"\355\002\n\031ResourceUsageExportConfig\022" + + "`\n\024bigquery_destination\030\001 \001(\0132B.google.c" + + "ontainer.v1.ResourceUsageExportConfig.Bi" + + "gQueryDestination\022&\n\036enable_network_egre" + + "ss_metering\030\002 \001(\010\022m\n\033consumption_meterin" + + "g_config\030\003 \001(\0132H.google.container.v1.Res" + + "ourceUsageExportConfig.ConsumptionMeteri" + + "ngConfig\032)\n\023BigQueryDestination\022\022\n\ndatas" + + "et_id\030\001 \001(\t\032,\n\031ConsumptionMeteringConfig" + + "\022\017\n\007enabled\030\001 \001(\010\")\n\026VerticalPodAutoscal" + + "ing\022\017\n\007enabled\030\001 \001(\010\"%\n\021DefaultSnatStatu" + + "s\022\020\n\010disabled\030\001 \001(\010\" \n\rShieldedNodes\022\017\n\007" + + "enabled\030\001 \001(\010\"\035\n\nVirtualNIC\022\017\n\007enabled\030\001" + + " \001(\010\"\035\n\nFastSocket\022\017\n\007enabled\030\001 \001(\010\"\250\003\n\022" + + "NotificationConfig\022>\n\006pubsub\030\001 \001(\0132..goo" + + "gle.container.v1.NotificationConfig.PubS" + + "ub\032\212\001\n\006PubSub\022\017\n\007enabled\030\001 \001(\010\022/\n\005topic\030" + + "\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/Topic\022" + + ">\n\006filter\030\003 \001(\0132..google.container.v1.No" + + "tificationConfig.Filter\032O\n\006Filter\022E\n\neve" + + "nt_type\030\001 \003(\01621.google.container.v1.Noti" + + "ficationConfig.EventType\"t\n\tEventType\022\032\n" + + "\026EVENT_TYPE_UNSPECIFIED\020\000\022\033\n\027UPGRADE_AVA" + + "ILABLE_EVENT\020\001\022\021\n\rUPGRADE_EVENT\020\002\022\033\n\027SEC" + + "URITY_BULLETIN_EVENT\020\003\"$\n\021ConfidentialNo" + + "des\022\017\n\007enabled\030\001 \001(\010\"\337\001\n\014UpgradeEvent\022?\n" + + "\rresource_type\030\001 \001(\0162(.google.container." + + "v1.UpgradeResourceType\022\021\n\toperation\030\002 \001(" + + "\t\0228\n\024operation_start_time\030\003 \001(\0132\032.google" + + ".protobuf.Timestamp\022\027\n\017current_version\030\004" + + " \001(\t\022\026\n\016target_version\030\005 \001(\t\022\020\n\010resource" + + "\030\006 \001(\t\"\271\001\n\025UpgradeAvailableEvent\022\017\n\007vers" + + "ion\030\001 \001(\t\022?\n\rresource_type\030\002 \001(\0162(.googl" + + "e.container.v1.UpgradeResourceType\022<\n\017re" + + "lease_channel\030\003 \001(\0132#.google.container.v" + + "1.ReleaseChannel\022\020\n\010resource\030\004 \001(\t\"\236\002\n\025S" + + "ecurityBulletinEvent\022\036\n\026resource_type_af" + + "fected\030\001 \001(\t\022\023\n\013bulletin_id\030\002 \001(\t\022\017\n\007cve" + + "_ids\030\003 \003(\t\022\020\n\010severity\030\004 \001(\t\022\024\n\014bulletin" + + "_uri\030\005 \001(\t\022\031\n\021brief_description\030\006 \001(\t\022!\n" + + "\031affected_supported_minors\030\007 \003(\t\022\030\n\020patc" + + "hed_versions\030\010 \003(\t\022 \n\030suggested_upgrade_" + + "target\030\t \001(\t\022\035\n\025manual_steps_required\030\n " + + "\001(\010\"g\n\tAutopilot\022\017\n\007enabled\030\001 \001(\010\022I\n\026wor" + + "kload_policy_config\030\002 \001(\0132).google.conta" + + "iner.v1.WorkloadPolicyConfig\"H\n\024Workload" + + "PolicyConfig\022\034\n\017allow_net_admin\030\001 \001(\010H\000\210" + + "\001\001B\022\n\020_allow_net_admin\"V\n\rLoggingConfig\022" + + "E\n\020component_config\030\001 \001(\0132+.google.conta" + + "iner.v1.LoggingComponentConfig\"\357\001\n\026Loggi" + + "ngComponentConfig\022P\n\021enable_components\030\001" + + " \003(\01625.google.container.v1.LoggingCompon" + + "entConfig.Component\"\202\001\n\tComponent\022\031\n\025COM" + + "PONENT_UNSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONENT" + + "S\020\001\022\r\n\tWORKLOADS\020\002\022\r\n\tAPISERVER\020\003\022\r\n\tSCH" + + "EDULER\020\004\022\026\n\022CONTROLLER_MANAGER\020\005\"\227\002\n\020Mon" + + "itoringConfig\022H\n\020component_config\030\001 \001(\0132" + + "..google.container.v1.MonitoringComponen" + + "tConfig\022O\n\031managed_prometheus_config\030\002 \001" + + "(\0132,.google.container.v1.ManagedPromethe" + + "usConfig\022h\n&advanced_datapath_observabil" + + "ity_config\030\003 \001(\01328.google.container.v1.A" + + "dvancedDatapathObservabilityConfig\"\236\002\n#A" + + "dvancedDatapathObservabilityConfig\022\026\n\016en" + + "able_metrics\030\001 \001(\010\022V\n\nrelay_mode\030\002 \001(\0162B" + + ".google.container.v1.AdvancedDatapathObs" + + "ervabilityConfig.RelayMode\022\031\n\014enable_rel" + + "ay\030\003 \001(\010H\000\210\001\001\"[\n\tRelayMode\022\032\n\026RELAY_MODE" + + "_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\023\n\017INTERNAL" + + "_VPC_LB\020\003\022\017\n\013EXTERNAL_LB\020\004B\017\n\r_enable_re" + + "lay\"Z\n\025NodePoolLoggingConfig\022A\n\016variant_" + + "config\030\001 \001(\0132).google.container.v1.Loggi" + + "ngVariantConfig\"\237\001\n\024LoggingVariantConfig" + + "\022B\n\007variant\030\001 \001(\01621.google.container.v1." + + "LoggingVariantConfig.Variant\"C\n\007Variant\022" + + "\027\n\023VARIANT_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\022\n" + + "\016MAX_THROUGHPUT\020\002\"\265\002\n\031MonitoringComponen" + + "tConfig\022S\n\021enable_components\030\001 \003(\01628.goo" + + "gle.container.v1.MonitoringComponentConf" + + "ig.Component\"\302\001\n\tComponent\022\031\n\025COMPONENT_" + "UNSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\t" - + "WORKLOADS\020\002\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020" - + "\004\022\026\n\022CONTROLLER_MANAGER\020\005\"\227\002\n\020Monitoring" - + "Config\022H\n\020component_config\030\001 \001(\0132..googl" - + "e.container.v1.MonitoringComponentConfig" - + "\022O\n\031managed_prometheus_config\030\002 \001(\0132,.go" - + "ogle.container.v1.ManagedPrometheusConfi" - + "g\022h\n&advanced_datapath_observability_con" - + "fig\030\003 \001(\01328.google.container.v1.Advanced" - + "DatapathObservabilityConfig\"\236\002\n#Advanced" - + "DatapathObservabilityConfig\022\026\n\016enable_me" - + "trics\030\001 \001(\010\022V\n\nrelay_mode\030\002 \001(\0162B.google" - + ".container.v1.AdvancedDatapathObservabil" - + "ityConfig.RelayMode\022\031\n\014enable_relay\030\003 \001(" - + "\010H\000\210\001\001\"[\n\tRelayMode\022\032\n\026RELAY_MODE_UNSPEC" - + "IFIED\020\000\022\014\n\010DISABLED\020\001\022\023\n\017INTERNAL_VPC_LB" - + "\020\003\022\017\n\013EXTERNAL_LB\020\004B\017\n\r_enable_relay\"Z\n\025" - + "NodePoolLoggingConfig\022A\n\016variant_config\030" - + "\001 \001(\0132).google.container.v1.LoggingVaria" - + "ntConfig\"\237\001\n\024LoggingVariantConfig\022B\n\007var" - + "iant\030\001 \001(\01621.google.container.v1.Logging" - + "VariantConfig.Variant\"C\n\007Variant\022\027\n\023VARI" - + "ANT_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\022\n\016MAX_TH" - + "ROUGHPUT\020\002\"\265\002\n\031MonitoringComponentConfig" - + "\022S\n\021enable_components\030\001 \003(\01628.google.con" - + "tainer.v1.MonitoringComponentConfig.Comp" - + "onent\"\302\001\n\tComponent\022\031\n\025COMPONENT_UNSPECI" - + "FIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r\n\tAPISERV" - + "ER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MANAGE" - + "R\020\005\022\013\n\007STORAGE\020\007\022\007\n\003HPA\020\010\022\007\n\003POD\020\t\022\r\n\tDA" - + "EMONSET\020\n\022\016\n\nDEPLOYMENT\020\013\022\017\n\013STATEFULSET" - + "\020\014\"*\n\027ManagedPrometheusConfig\022\017\n\007enabled" - + "\030\001 \001(\010\"D\n\005Fleet\022\017\n\007project\030\001 \001(\t\022\022\n\nmemb" - + "ership\030\002 \001(\t\022\026\n\016pre_registered\030\003 \001(\010\"2\n\027" - + "LocalNvmeSsdBlockConfig\022\027\n\017local_ssd_cou" - + "nt\030\001 \001(\005\"9\n\036EphemeralStorageLocalSsdConf" - + "ig\022\027\n\017local_ssd_count\030\001 \001(\005\"\204\001\n\023Resource" - + "ManagerTags\022@\n\004tags\030\001 \003(\01322.google.conta" - + "iner.v1.ResourceManagerTags.TagsEntry\032+\n" - + "\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001\"\253\001\n\020EnterpriseConfig\022L\n\014cluster_tier\030" - + "\001 \001(\01621.google.container.v1.EnterpriseCo" - + "nfig.ClusterTierB\003\340A\003\"I\n\013ClusterTier\022\034\n\030" - + "CLUSTER_TIER_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001" - + "\022\016\n\nENTERPRISE\020\002*\306\001\n\027PrivateIPv6GoogleAc" - + "cess\022*\n&PRIVATE_IPV6_GOOGLE_ACCESS_UNSPE" - + "CIFIED\020\000\022\'\n#PRIVATE_IPV6_GOOGLE_ACCESS_D" - + "ISABLED\020\001\022(\n$PRIVATE_IPV6_GOOGLE_ACCESS_" - + "TO_GOOGLE\020\002\022,\n(PRIVATE_IPV6_GOOGLE_ACCES" - + "S_BIDIRECTIONAL\020\003*W\n\023UpgradeResourceType" - + "\022%\n!UPGRADE_RESOURCE_TYPE_UNSPECIFIED\020\000\022" - + "\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\002*a\n\020DatapathPr" - + "ovider\022!\n\035DATAPATH_PROVIDER_UNSPECIFIED\020" - + "\000\022\023\n\017LEGACY_DATAPATH\020\001\022\025\n\021ADVANCED_DATAP" - + "ATH\020\002*^\n\026NodePoolUpdateStrategy\022)\n%NODE_" - + "POOL_UPDATE_STRATEGY_UNSPECIFIED\020\000\022\016\n\nBL" - + "UE_GREEN\020\002\022\t\n\005SURGE\020\003*@\n\tStackType\022\032\n\026ST" - + "ACK_TYPE_UNSPECIFIED\020\000\022\010\n\004IPV4\020\001\022\r\n\tIPV4" - + "_IPV6\020\002*N\n\016IPv6AccessType\022 \n\034IPV6_ACCESS" - + "_TYPE_UNSPECIFIED\020\000\022\014\n\010INTERNAL\020\001\022\014\n\010EXT" - + "ERNAL\020\002*\237\001\n\031InTransitEncryptionConfig\022,\n" - + "(IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIE" - + "D\020\000\022\"\n\036IN_TRANSIT_ENCRYPTION_DISABLED\020\001\022" - + "0\n,IN_TRANSIT_ENCRYPTION_INTER_NODE_TRAN" - + "SPARENT\020\0022\250I\n\016ClusterManager\022\350\001\n\014ListClu" - + "sters\022(.google.container.v1.ListClusters" - + "Request\032).google.container.v1.ListCluste" - + "rsResponse\"\202\001\332A\017project_id,zone\332A\006parent" - + "\202\323\344\223\002a\022,/v1/{parent=projects/*/locations" - + "/*}/clustersZ1\022//v1/projects/{project_id" - + "}/zones/{zone}/clusters\022\355\001\n\nGetCluster\022&" - + ".google.container.v1.GetClusterRequest\032\034" - + ".google.container.v1.Cluster\"\230\001\332A\032projec" - + "t_id,zone,cluster_id\332A\004name\202\323\344\223\002n\022,/v1/{" - + "name=projects/*/locations/*/clusters/*}Z" - + ">\022*\022/v1/{name" - + "=projects/*/locations/*/clusters/*}:setR" - + "esourceLabels:\001*ZP\"K/v1/projects/{projec" + + "{cluster_id}:setMasterAuth:\001*\022\365\001\n\rDelete" + + "Cluster\022).google.container.v1.DeleteClus" + + "terRequest\032\036.google.container.v1.Operati" + + "on\"\230\001\332A\032project_id,zone,cluster_id\332A\004nam" + + "e\202\323\344\223\002n*,/v1/{name=projects/*/locations/" + + "*/clusters/*}Z>*/v1/", + "{name=projects/*/locations/*/clusters/*}" + + ":setResourceLabels:\001*ZP\"K/v1/projects/{p" + + "roject_id}/zones/{zone}/clusters/{cluste" + + "r_id}/resourceLabels:\001*\022\245\002\n\rSetLegacyAba" + + "c\022).google.container.v1.SetLegacyAbacReq" + + "uest\032\036.google.container.v1.Operation\"\310\001\332" + + "A\"project_id,zone,cluster_id,enabled\332A\014n" + + "ame,enabled\202\323\344\223\002\215\001\":/v1/{name=projects/*" + + "/locations/*/clusters/*}:setLegacyAbac:\001" + + "*ZL\"G/v1/projects/{project_id}/zones/{zo" + + "ne}/clusters/{cluster_id}/legacyAbac:\001*\022" + + "\240\002\n\017StartIPRotation\022+.google.container.v" + + "1.StartIPRotationRequest\032\036.google.contai" + + "ner.v1.Operation\"\277\001\332A\032project_id,zone,cl" + + "uster_id\332A\004name\202\323\344\223\002\224\001\" + * Enable/Disable Cilium Clusterwide Network Policy for the cluster. + * + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @return Whether the desiredEnableCiliumClusterwideNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasDesiredEnableCiliumClusterwideNetworkPolicy() { + return ((bitField1_ & 0x00000100) != 0); + } + /** + * + * + *

                              +   * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +   * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @return The desiredEnableCiliumClusterwideNetworkPolicy. + */ + @java.lang.Override + public boolean getDesiredEnableCiliumClusterwideNetworkPolicy() { + return desiredEnableCiliumClusterwideNetworkPolicy_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2969,6 +3002,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField1_ & 0x00000080) != 0)) { output.writeEnum(137, desiredInTransitEncryptionConfig_); } + if (((bitField1_ & 0x00000100) != 0)) { + output.writeBool(138, desiredEnableCiliumClusterwideNetworkPolicy_); + } getUnknownFields().writeTo(output); } @@ -3207,6 +3243,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeEnumSize( 137, desiredInTransitEncryptionConfig_); } + if (((bitField1_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 138, desiredEnableCiliumClusterwideNetworkPolicy_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3434,6 +3475,12 @@ public boolean equals(final java.lang.Object obj) { if (desiredInTransitEncryptionConfig_ != other.desiredInTransitEncryptionConfig_) return false; } + if (hasDesiredEnableCiliumClusterwideNetworkPolicy() + != other.hasDesiredEnableCiliumClusterwideNetworkPolicy()) return false; + if (hasDesiredEnableCiliumClusterwideNetworkPolicy()) { + if (getDesiredEnableCiliumClusterwideNetworkPolicy() + != other.getDesiredEnableCiliumClusterwideNetworkPolicy()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3632,6 +3679,13 @@ public int hashCode() { hash = (37 * hash) + DESIRED_IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + desiredInTransitEncryptionConfig_; } + if (hasDesiredEnableCiliumClusterwideNetworkPolicy()) { + hash = (37 * hash) + DESIRED_ENABLE_CILIUM_CLUSTERWIDE_NETWORK_POLICY_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getDesiredEnableCiliumClusterwideNetworkPolicy()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4017,6 +4071,7 @@ public Builder clear() { desiredNodePoolAutoConfigResourceManagerTagsBuilder_ = null; } desiredInTransitEncryptionConfig_ = 0; + desiredEnableCiliumClusterwideNetworkPolicy_ = false; return this; } @@ -4365,6 +4420,11 @@ private void buildPartial1(com.google.container.v1.ClusterUpdate result) { result.desiredInTransitEncryptionConfig_ = desiredInTransitEncryptionConfig_; to_bitField1_ |= 0x00000080; } + if (((from_bitField1_ & 0x00080000) != 0)) { + result.desiredEnableCiliumClusterwideNetworkPolicy_ = + desiredEnableCiliumClusterwideNetworkPolicy_; + to_bitField1_ |= 0x00000100; + } result.bitField0_ |= to_bitField0_; result.bitField1_ |= to_bitField1_; } @@ -4590,6 +4650,10 @@ public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { if (other.hasDesiredInTransitEncryptionConfig()) { setDesiredInTransitEncryptionConfig(other.getDesiredInTransitEncryptionConfig()); } + if (other.hasDesiredEnableCiliumClusterwideNetworkPolicy()) { + setDesiredEnableCiliumClusterwideNetworkPolicy( + other.getDesiredEnableCiliumClusterwideNetworkPolicy()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4969,6 +5033,12 @@ public Builder mergeFrom( bitField1_ |= 0x00040000; break; } // case 1096 + case 1104: + { + desiredEnableCiliumClusterwideNetworkPolicy_ = input.readBool(); + bitField1_ |= 0x00080000; + break; + } // case 1104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -14053,6 +14123,74 @@ public Builder clearDesiredInTransitEncryptionConfig() { return this; } + private boolean desiredEnableCiliumClusterwideNetworkPolicy_; + /** + * + * + *
                              +     * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +     * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @return Whether the desiredEnableCiliumClusterwideNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasDesiredEnableCiliumClusterwideNetworkPolicy() { + return ((bitField1_ & 0x00080000) != 0); + } + /** + * + * + *
                              +     * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +     * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @return The desiredEnableCiliumClusterwideNetworkPolicy. + */ + @java.lang.Override + public boolean getDesiredEnableCiliumClusterwideNetworkPolicy() { + return desiredEnableCiliumClusterwideNetworkPolicy_; + } + /** + * + * + *
                              +     * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +     * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @param value The desiredEnableCiliumClusterwideNetworkPolicy to set. + * @return This builder for chaining. + */ + public Builder setDesiredEnableCiliumClusterwideNetworkPolicy(boolean value) { + + desiredEnableCiliumClusterwideNetworkPolicy_ = value; + bitField1_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
                              +     * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +     * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @return This builder for chaining. + */ + public Builder clearDesiredEnableCiliumClusterwideNetworkPolicy() { + bitField1_ = (bitField1_ & ~0x00080000); + desiredEnableCiliumClusterwideNetworkPolicy_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java index 0463f9668def..7e9e562cbd98 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java @@ -1918,4 +1918,29 @@ public interface ClusterUpdateOrBuilder * @return The desiredInTransitEncryptionConfig. */ com.google.container.v1.InTransitEncryptionConfig getDesiredInTransitEncryptionConfig(); + + /** + * + * + *
                              +   * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +   * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @return Whether the desiredEnableCiliumClusterwideNetworkPolicy field is set. + */ + boolean hasDesiredEnableCiliumClusterwideNetworkPolicy(); + /** + * + * + *
                              +   * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +   * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @return The desiredEnableCiliumClusterwideNetworkPolicy. + */ + boolean getDesiredEnableCiliumClusterwideNetworkPolicy(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java index 1e017aa1d745..1c7b9d72d461 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4127 + * google/container/v1/cluster_service.proto;l=4133 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4127 + * google/container/v1/cluster_service.proto;l=4133 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4133 + * google/container/v1/cluster_service.proto;l=4139 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4133 + * google/container/v1/cluster_service.proto;l=4139 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4137 + * google/container/v1/cluster_service.proto;l=4143 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4137 + * google/container/v1/cluster_service.proto;l=4143 * @return The bytes for clusterId. */ @java.lang.Override @@ -729,7 +729,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4127 + * google/container/v1/cluster_service.proto;l=4133 * @return The projectId. */ @java.lang.Deprecated @@ -756,7 +756,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4127 + * google/container/v1/cluster_service.proto;l=4133 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -783,7 +783,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4127 + * google/container/v1/cluster_service.proto;l=4133 * @param value The projectId to set. * @return This builder for chaining. */ @@ -809,7 +809,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4127 + * google/container/v1/cluster_service.proto;l=4133 * @return This builder for chaining. */ @java.lang.Deprecated @@ -831,7 +831,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4127 + * google/container/v1/cluster_service.proto;l=4133 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -861,7 +861,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4133 + * google/container/v1/cluster_service.proto;l=4139 * @return The zone. */ @java.lang.Deprecated @@ -889,7 +889,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4133 + * google/container/v1/cluster_service.proto;l=4139 * @return The bytes for zone. */ @java.lang.Deprecated @@ -917,7 +917,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4133 + * google/container/v1/cluster_service.proto;l=4139 * @param value The zone to set. * @return This builder for chaining. */ @@ -944,7 +944,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4133 + * google/container/v1/cluster_service.proto;l=4139 * @return This builder for chaining. */ @java.lang.Deprecated @@ -967,7 +967,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4133 + * google/container/v1/cluster_service.proto;l=4139 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -995,7 +995,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4137 + * google/container/v1/cluster_service.proto;l=4143 * @return The clusterId. */ @java.lang.Deprecated @@ -1021,7 +1021,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4137 + * google/container/v1/cluster_service.proto;l=4143 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1047,7 +1047,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4137 + * google/container/v1/cluster_service.proto;l=4143 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1072,7 +1072,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4137 + * google/container/v1/cluster_service.proto;l=4143 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1093,7 +1093,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4137 + * google/container/v1/cluster_service.proto;l=4143 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java index 091763744429..4af3b0ff07cb 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CompleteIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4127 + * google/container/v1/cluster_service.proto;l=4133 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CompleteIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4127 + * google/container/v1/cluster_service.proto;l=4133 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4133 + * google/container/v1/cluster_service.proto;l=4139 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4133 + * google/container/v1/cluster_service.proto;l=4139 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface CompleteIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4137 + * google/container/v1/cluster_service.proto;l=4143 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface CompleteIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4137 + * google/container/v1/cluster_service.proto;l=4143 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java index 9a47d4bd8178..7b84a22ec7ae 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2574 + * google/container/v1/cluster_service.proto;l=2580 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2574 + * google/container/v1/cluster_service.proto;l=2580 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2580 + * google/container/v1/cluster_service.proto;l=2586 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2580 + * google/container/v1/cluster_service.proto;l=2586 * @return The bytes for zone. */ @java.lang.Override @@ -740,7 +740,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2574 + * google/container/v1/cluster_service.proto;l=2580 * @return The projectId. */ @java.lang.Deprecated @@ -767,7 +767,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2574 + * google/container/v1/cluster_service.proto;l=2580 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -794,7 +794,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2574 + * google/container/v1/cluster_service.proto;l=2580 * @param value The projectId to set. * @return This builder for chaining. */ @@ -820,7 +820,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2574 + * google/container/v1/cluster_service.proto;l=2580 * @return This builder for chaining. */ @java.lang.Deprecated @@ -842,7 +842,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2574 + * google/container/v1/cluster_service.proto;l=2580 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -872,7 +872,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2580 + * google/container/v1/cluster_service.proto;l=2586 * @return The zone. */ @java.lang.Deprecated @@ -900,7 +900,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2580 + * google/container/v1/cluster_service.proto;l=2586 * @return The bytes for zone. */ @java.lang.Deprecated @@ -928,7 +928,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2580 + * google/container/v1/cluster_service.proto;l=2586 * @param value The zone to set. * @return This builder for chaining. */ @@ -955,7 +955,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2580 + * google/container/v1/cluster_service.proto;l=2586 * @return This builder for chaining. */ @java.lang.Deprecated @@ -978,7 +978,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2580 + * google/container/v1/cluster_service.proto;l=2586 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java index 9879a381a919..650b872c31b7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CreateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2574 + * google/container/v1/cluster_service.proto;l=2580 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CreateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2574 + * google/container/v1/cluster_service.proto;l=2580 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2580 + * google/container/v1/cluster_service.proto;l=2586 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2580 + * google/container/v1/cluster_service.proto;l=2586 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java index 3bca10eb39b6..974634a5914f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3192 + * google/container/v1/cluster_service.proto;l=3198 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3192 + * google/container/v1/cluster_service.proto;l=3198 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3198 + * google/container/v1/cluster_service.proto;l=3204 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3198 + * google/container/v1/cluster_service.proto;l=3204 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3202 + * google/container/v1/cluster_service.proto;l=3208 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3202 + * google/container/v1/cluster_service.proto;l=3208 * @return The bytes for clusterId. */ @java.lang.Override @@ -823,7 +823,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3192 + * google/container/v1/cluster_service.proto;l=3198 * @return The projectId. */ @java.lang.Deprecated @@ -850,7 +850,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3192 + * google/container/v1/cluster_service.proto;l=3198 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -877,7 +877,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3192 + * google/container/v1/cluster_service.proto;l=3198 * @param value The projectId to set. * @return This builder for chaining. */ @@ -903,7 +903,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3192 + * google/container/v1/cluster_service.proto;l=3198 * @return This builder for chaining. */ @java.lang.Deprecated @@ -925,7 +925,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3192 + * google/container/v1/cluster_service.proto;l=3198 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -955,7 +955,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3198 + * google/container/v1/cluster_service.proto;l=3204 * @return The zone. */ @java.lang.Deprecated @@ -983,7 +983,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3198 + * google/container/v1/cluster_service.proto;l=3204 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1011,7 +1011,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3198 + * google/container/v1/cluster_service.proto;l=3204 * @param value The zone to set. * @return This builder for chaining. */ @@ -1038,7 +1038,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3198 + * google/container/v1/cluster_service.proto;l=3204 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1061,7 +1061,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3198 + * google/container/v1/cluster_service.proto;l=3204 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1089,7 +1089,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3202 + * google/container/v1/cluster_service.proto;l=3208 * @return The clusterId. */ @java.lang.Deprecated @@ -1115,7 +1115,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3202 + * google/container/v1/cluster_service.proto;l=3208 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1141,7 +1141,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3202 + * google/container/v1/cluster_service.proto;l=3208 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1166,7 +1166,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3202 + * google/container/v1/cluster_service.proto;l=3208 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1187,7 +1187,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3202 + * google/container/v1/cluster_service.proto;l=3208 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java index 6df1e4443e20..f96d11f0e5d7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface CreateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3192 + * google/container/v1/cluster_service.proto;l=3198 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface CreateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3192 + * google/container/v1/cluster_service.proto;l=3198 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3198 + * google/container/v1/cluster_service.proto;l=3204 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3198 + * google/container/v1/cluster_service.proto;l=3204 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface CreateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3202 + * google/container/v1/cluster_service.proto;l=3208 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface CreateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3202 + * google/container/v1/cluster_service.proto;l=3208 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java index bab11eb9b7ea..59222368ff73 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3022 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3022 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3022 + * google/container/v1/cluster_service.proto;l=3028 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3022 + * google/container/v1/cluster_service.proto;l=3028 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3026 + * google/container/v1/cluster_service.proto;l=3032 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3026 + * google/container/v1/cluster_service.proto;l=3032 * @return The bytes for clusterId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3022 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3022 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3022 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3022 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3022 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3022 + * google/container/v1/cluster_service.proto;l=3028 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3022 + * google/container/v1/cluster_service.proto;l=3028 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3022 + * google/container/v1/cluster_service.proto;l=3028 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3022 + * google/container/v1/cluster_service.proto;l=3028 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3022 + * google/container/v1/cluster_service.proto;l=3028 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3026 + * google/container/v1/cluster_service.proto;l=3032 * @return The clusterId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3026 + * google/container/v1/cluster_service.proto;l=3032 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3026 + * google/container/v1/cluster_service.proto;l=3032 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3026 + * google/container/v1/cluster_service.proto;l=3032 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3026 + * google/container/v1/cluster_service.proto;l=3032 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java index e8cf2afba22b..98a2abca5717 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface DeleteClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3022 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface DeleteClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3016 + * google/container/v1/cluster_service.proto;l=3022 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3022 + * google/container/v1/cluster_service.proto;l=3028 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3022 + * google/container/v1/cluster_service.proto;l=3028 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface DeleteClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3026 + * google/container/v1/cluster_service.proto;l=3032 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface DeleteClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3026 + * google/container/v1/cluster_service.proto;l=3032 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java index 40b8371830f1..df86224adf4b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3218 + * google/container/v1/cluster_service.proto;l=3224 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3218 + * google/container/v1/cluster_service.proto;l=3224 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3224 + * google/container/v1/cluster_service.proto;l=3230 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3224 + * google/container/v1/cluster_service.proto;l=3230 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 + * google/container/v1/cluster_service.proto;l=3234 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 + * google/container/v1/cluster_service.proto;l=3234 * @return The bytes for clusterId. */ @java.lang.Override @@ -265,7 +265,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3232 + * google/container/v1/cluster_service.proto;l=3238 * @return The nodePoolId. */ @java.lang.Override @@ -292,7 +292,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3232 + * google/container/v1/cluster_service.proto;l=3238 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -814,7 +814,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3218 + * google/container/v1/cluster_service.proto;l=3224 * @return The projectId. */ @java.lang.Deprecated @@ -841,7 +841,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3218 + * google/container/v1/cluster_service.proto;l=3224 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -868,7 +868,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3218 + * google/container/v1/cluster_service.proto;l=3224 * @param value The projectId to set. * @return This builder for chaining. */ @@ -894,7 +894,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3218 + * google/container/v1/cluster_service.proto;l=3224 * @return This builder for chaining. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3218 + * google/container/v1/cluster_service.proto;l=3224 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -946,7 +946,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3224 + * google/container/v1/cluster_service.proto;l=3230 * @return The zone. */ @java.lang.Deprecated @@ -974,7 +974,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3224 + * google/container/v1/cluster_service.proto;l=3230 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1002,7 +1002,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3224 + * google/container/v1/cluster_service.proto;l=3230 * @param value The zone to set. * @return This builder for chaining. */ @@ -1029,7 +1029,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3224 + * google/container/v1/cluster_service.proto;l=3230 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1052,7 +1052,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3224 + * google/container/v1/cluster_service.proto;l=3230 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1080,7 +1080,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 + * google/container/v1/cluster_service.proto;l=3234 * @return The clusterId. */ @java.lang.Deprecated @@ -1106,7 +1106,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 + * google/container/v1/cluster_service.proto;l=3234 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1132,7 +1132,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 + * google/container/v1/cluster_service.proto;l=3234 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1157,7 +1157,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 + * google/container/v1/cluster_service.proto;l=3234 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1178,7 +1178,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 + * google/container/v1/cluster_service.proto;l=3234 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1206,7 +1206,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3232 + * google/container/v1/cluster_service.proto;l=3238 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1232,7 +1232,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3232 + * google/container/v1/cluster_service.proto;l=3238 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1258,7 +1258,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3232 + * google/container/v1/cluster_service.proto;l=3238 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1283,7 +1283,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3232 + * google/container/v1/cluster_service.proto;l=3238 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1304,7 +1304,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3232 + * google/container/v1/cluster_service.proto;l=3238 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java index caaa6e97397c..02ffe82d1f69 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface DeleteNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3218 + * google/container/v1/cluster_service.proto;l=3224 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface DeleteNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3218 + * google/container/v1/cluster_service.proto;l=3224 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3224 + * google/container/v1/cluster_service.proto;l=3230 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3224 + * google/container/v1/cluster_service.proto;l=3230 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface DeleteNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 + * google/container/v1/cluster_service.proto;l=3234 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface DeleteNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3228 + * google/container/v1/cluster_service.proto;l=3234 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface DeleteNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3232 + * google/container/v1/cluster_service.proto;l=3238 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface DeleteNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3232 + * google/container/v1/cluster_service.proto;l=3238 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java index c3a64bfd8154..d8aba5c18e91 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2596 + * google/container/v1/cluster_service.proto;l=2602 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2596 + * google/container/v1/cluster_service.proto;l=2602 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2602 + * google/container/v1/cluster_service.proto;l=2608 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2602 + * google/container/v1/cluster_service.proto;l=2608 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2606 + * google/container/v1/cluster_service.proto;l=2612 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2606 + * google/container/v1/cluster_service.proto;l=2612 * @return The bytes for clusterId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2596 + * google/container/v1/cluster_service.proto;l=2602 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2596 + * google/container/v1/cluster_service.proto;l=2602 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2596 + * google/container/v1/cluster_service.proto;l=2602 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2596 + * google/container/v1/cluster_service.proto;l=2602 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2596 + * google/container/v1/cluster_service.proto;l=2602 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2602 + * google/container/v1/cluster_service.proto;l=2608 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2602 + * google/container/v1/cluster_service.proto;l=2608 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2602 + * google/container/v1/cluster_service.proto;l=2608 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2602 + * google/container/v1/cluster_service.proto;l=2608 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2602 + * google/container/v1/cluster_service.proto;l=2608 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2606 + * google/container/v1/cluster_service.proto;l=2612 * @return The clusterId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2606 + * google/container/v1/cluster_service.proto;l=2612 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2606 + * google/container/v1/cluster_service.proto;l=2612 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2606 + * google/container/v1/cluster_service.proto;l=2612 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2606 + * google/container/v1/cluster_service.proto;l=2612 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java index e75d3167ff89..6051c2b1f38e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2596 + * google/container/v1/cluster_service.proto;l=2602 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2596 + * google/container/v1/cluster_service.proto;l=2602 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2602 + * google/container/v1/cluster_service.proto;l=2608 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2602 + * google/container/v1/cluster_service.proto;l=2608 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface GetClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2606 + * google/container/v1/cluster_service.proto;l=2612 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface GetClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2606 + * google/container/v1/cluster_service.proto;l=2612 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java index cdb724f5780b..efe9ba20def5 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3273 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3273 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3273 + * google/container/v1/cluster_service.proto;l=3279 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3273 + * google/container/v1/cluster_service.proto;l=3279 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3277 + * google/container/v1/cluster_service.proto;l=3283 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3277 + * google/container/v1/cluster_service.proto;l=3283 * @return The bytes for clusterId. */ @java.lang.Override @@ -265,7 +265,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3281 + * google/container/v1/cluster_service.proto;l=3287 * @return The nodePoolId. */ @java.lang.Override @@ -292,7 +292,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3281 + * google/container/v1/cluster_service.proto;l=3287 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -814,7 +814,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3273 * @return The projectId. */ @java.lang.Deprecated @@ -841,7 +841,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3273 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -868,7 +868,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3273 * @param value The projectId to set. * @return This builder for chaining. */ @@ -894,7 +894,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3273 * @return This builder for chaining. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3273 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -946,7 +946,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3273 + * google/container/v1/cluster_service.proto;l=3279 * @return The zone. */ @java.lang.Deprecated @@ -974,7 +974,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3273 + * google/container/v1/cluster_service.proto;l=3279 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1002,7 +1002,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3273 + * google/container/v1/cluster_service.proto;l=3279 * @param value The zone to set. * @return This builder for chaining. */ @@ -1029,7 +1029,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3273 + * google/container/v1/cluster_service.proto;l=3279 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1052,7 +1052,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3273 + * google/container/v1/cluster_service.proto;l=3279 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1080,7 +1080,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3277 + * google/container/v1/cluster_service.proto;l=3283 * @return The clusterId. */ @java.lang.Deprecated @@ -1106,7 +1106,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3277 + * google/container/v1/cluster_service.proto;l=3283 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1132,7 +1132,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3277 + * google/container/v1/cluster_service.proto;l=3283 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1157,7 +1157,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3277 + * google/container/v1/cluster_service.proto;l=3283 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1178,7 +1178,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3277 + * google/container/v1/cluster_service.proto;l=3283 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1206,7 +1206,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3281 + * google/container/v1/cluster_service.proto;l=3287 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1232,7 +1232,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3281 + * google/container/v1/cluster_service.proto;l=3287 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1258,7 +1258,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3281 + * google/container/v1/cluster_service.proto;l=3287 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1283,7 +1283,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3281 + * google/container/v1/cluster_service.proto;l=3287 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1304,7 +1304,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3281 + * google/container/v1/cluster_service.proto;l=3287 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java index 8b1823e59886..5c87854771e7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3273 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3267 + * google/container/v1/cluster_service.proto;l=3273 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3273 + * google/container/v1/cluster_service.proto;l=3279 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3273 + * google/container/v1/cluster_service.proto;l=3279 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface GetNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3277 + * google/container/v1/cluster_service.proto;l=3283 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface GetNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3277 + * google/container/v1/cluster_service.proto;l=3283 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface GetNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3281 + * google/container/v1/cluster_service.proto;l=3287 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface GetNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3281 + * google/container/v1/cluster_service.proto;l=3287 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java index 5d0ba75806e6..44933ade083c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3068 + * google/container/v1/cluster_service.proto;l=3074 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3068 + * google/container/v1/cluster_service.proto;l=3074 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3074 + * google/container/v1/cluster_service.proto;l=3080 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3074 + * google/container/v1/cluster_service.proto;l=3080 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3078 + * google/container/v1/cluster_service.proto;l=3084 * @return The operationId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3078 + * google/container/v1/cluster_service.proto;l=3084 * @return The bytes for operationId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3068 + * google/container/v1/cluster_service.proto;l=3074 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3068 + * google/container/v1/cluster_service.proto;l=3074 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3068 + * google/container/v1/cluster_service.proto;l=3074 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3068 + * google/container/v1/cluster_service.proto;l=3074 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3068 + * google/container/v1/cluster_service.proto;l=3074 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3074 + * google/container/v1/cluster_service.proto;l=3080 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3074 + * google/container/v1/cluster_service.proto;l=3080 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3074 + * google/container/v1/cluster_service.proto;l=3080 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3074 + * google/container/v1/cluster_service.proto;l=3080 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3074 + * google/container/v1/cluster_service.proto;l=3080 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3078 + * google/container/v1/cluster_service.proto;l=3084 * @return The operationId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3078 + * google/container/v1/cluster_service.proto;l=3084 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3078 + * google/container/v1/cluster_service.proto;l=3084 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setOperationId(java.lang.String value) { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3078 + * google/container/v1/cluster_service.proto;l=3084 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearOperationId() { * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3078 + * google/container/v1/cluster_service.proto;l=3084 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java index ecf7a34ce86b..7e46a0ba86e6 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3068 + * google/container/v1/cluster_service.proto;l=3074 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetOperationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3068 + * google/container/v1/cluster_service.proto;l=3074 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3074 + * google/container/v1/cluster_service.proto;l=3080 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3074 + * google/container/v1/cluster_service.proto;l=3080 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface GetOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3078 + * google/container/v1/cluster_service.proto;l=3084 * @return The operationId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface GetOperationRequestOrBuilder * string operation_id = 3 [deprecated = true]; * * @deprecated google.container.v1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3078 + * google/container/v1/cluster_service.proto;l=3084 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java index 25c4d54d7560..741d6a5d7ee0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3141 + * google/container/v1/cluster_service.proto;l=3147 * @return The projectId. */ @java.lang.Override @@ -109,7 +109,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3141 + * google/container/v1/cluster_service.proto;l=3147 * @return The bytes for projectId. */ @java.lang.Override @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3147 + * google/container/v1/cluster_service.proto;l=3153 * @return The zone. */ @java.lang.Override @@ -172,7 +172,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3147 + * google/container/v1/cluster_service.proto;l=3153 * @return The bytes for zone. */ @java.lang.Override @@ -644,7 +644,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3141 + * google/container/v1/cluster_service.proto;l=3147 * @return The projectId. */ @java.lang.Deprecated @@ -671,7 +671,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3141 + * google/container/v1/cluster_service.proto;l=3147 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -698,7 +698,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3141 + * google/container/v1/cluster_service.proto;l=3147 * @param value The projectId to set. * @return This builder for chaining. */ @@ -724,7 +724,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3141 + * google/container/v1/cluster_service.proto;l=3147 * @return This builder for chaining. */ @java.lang.Deprecated @@ -746,7 +746,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3141 + * google/container/v1/cluster_service.proto;l=3147 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -776,7 +776,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3147 + * google/container/v1/cluster_service.proto;l=3153 * @return The zone. */ @java.lang.Deprecated @@ -804,7 +804,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3147 + * google/container/v1/cluster_service.proto;l=3153 * @return The bytes for zone. */ @java.lang.Deprecated @@ -832,7 +832,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3147 + * google/container/v1/cluster_service.proto;l=3153 * @param value The zone to set. * @return This builder for chaining. */ @@ -859,7 +859,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3147 + * google/container/v1/cluster_service.proto;l=3153 * @return This builder for chaining. */ @java.lang.Deprecated @@ -882,7 +882,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3147 + * google/container/v1/cluster_service.proto;l=3153 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java index e3a27ba0ebeb..69b00974290b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface GetServerConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3141 + * google/container/v1/cluster_service.proto;l=3147 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface GetServerConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3141 + * google/container/v1/cluster_service.proto;l=3147 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3147 + * google/container/v1/cluster_service.proto;l=3153 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3147 + * google/container/v1/cluster_service.proto;l=3153 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java index 7f903c49c1ec..c13b414921b1 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java @@ -187,7 +187,7 @@ public com.google.protobuf.ByteString getSubnetworkNameBytes() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1488 + * google/container/v1/cluster_service.proto;l=1491 * @return The clusterIpv4Cidr. */ @java.lang.Override @@ -213,7 +213,7 @@ public java.lang.String getClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1488 + * google/container/v1/cluster_service.proto;l=1491 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Override @@ -244,7 +244,7 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1491 + * google/container/v1/cluster_service.proto;l=1494 * @return The nodeIpv4Cidr. */ @java.lang.Override @@ -270,7 +270,7 @@ public java.lang.String getNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1491 + * google/container/v1/cluster_service.proto;l=1494 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Override @@ -301,7 +301,7 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1494 + * google/container/v1/cluster_service.proto;l=1497 * @return The servicesIpv4Cidr. */ @java.lang.Override @@ -327,7 +327,7 @@ public java.lang.String getServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1494 + * google/container/v1/cluster_service.proto;l=1497 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Override @@ -2241,7 +2241,7 @@ public Builder setSubnetworkNameBytes(com.google.protobuf.ByteString value) { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1488 + * google/container/v1/cluster_service.proto;l=1491 * @return The clusterIpv4Cidr. */ @java.lang.Deprecated @@ -2266,7 +2266,7 @@ public java.lang.String getClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1488 + * google/container/v1/cluster_service.proto;l=1491 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated @@ -2291,7 +2291,7 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1488 + * google/container/v1/cluster_service.proto;l=1491 * @param value The clusterIpv4Cidr to set. * @return This builder for chaining. */ @@ -2315,7 +2315,7 @@ public Builder setClusterIpv4Cidr(java.lang.String value) { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1488 + * google/container/v1/cluster_service.proto;l=1491 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2335,7 +2335,7 @@ public Builder clearClusterIpv4Cidr() { * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1488 + * google/container/v1/cluster_service.proto;l=1491 * @param value The bytes for clusterIpv4Cidr to set. * @return This builder for chaining. */ @@ -2362,7 +2362,7 @@ public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1491 + * google/container/v1/cluster_service.proto;l=1494 * @return The nodeIpv4Cidr. */ @java.lang.Deprecated @@ -2387,7 +2387,7 @@ public java.lang.String getNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1491 + * google/container/v1/cluster_service.proto;l=1494 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated @@ -2412,7 +2412,7 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1491 + * google/container/v1/cluster_service.proto;l=1494 * @param value The nodeIpv4Cidr to set. * @return This builder for chaining. */ @@ -2436,7 +2436,7 @@ public Builder setNodeIpv4Cidr(java.lang.String value) { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1491 + * google/container/v1/cluster_service.proto;l=1494 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2456,7 +2456,7 @@ public Builder clearNodeIpv4Cidr() { * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1491 + * google/container/v1/cluster_service.proto;l=1494 * @param value The bytes for nodeIpv4Cidr to set. * @return This builder for chaining. */ @@ -2483,7 +2483,7 @@ public Builder setNodeIpv4CidrBytes(com.google.protobuf.ByteString value) { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1494 + * google/container/v1/cluster_service.proto;l=1497 * @return The servicesIpv4Cidr. */ @java.lang.Deprecated @@ -2508,7 +2508,7 @@ public java.lang.String getServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1494 + * google/container/v1/cluster_service.proto;l=1497 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated @@ -2533,7 +2533,7 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1494 + * google/container/v1/cluster_service.proto;l=1497 * @param value The servicesIpv4Cidr to set. * @return This builder for chaining. */ @@ -2557,7 +2557,7 @@ public Builder setServicesIpv4Cidr(java.lang.String value) { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1494 + * google/container/v1/cluster_service.proto;l=1497 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2577,7 +2577,7 @@ public Builder clearServicesIpv4Cidr() { * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1494 + * google/container/v1/cluster_service.proto;l=1497 * @param value The bytes for servicesIpv4Cidr to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java index eb37b61448d8..2277e8895d7a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java @@ -94,7 +94,7 @@ public interface IPAllocationPolicyOrBuilder * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1488 + * google/container/v1/cluster_service.proto;l=1491 * @return The clusterIpv4Cidr. */ @java.lang.Deprecated @@ -109,7 +109,7 @@ public interface IPAllocationPolicyOrBuilder * string cluster_ipv4_cidr = 4 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.cluster_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1488 + * google/container/v1/cluster_service.proto;l=1491 * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated @@ -125,7 +125,7 @@ public interface IPAllocationPolicyOrBuilder * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1491 + * google/container/v1/cluster_service.proto;l=1494 * @return The nodeIpv4Cidr. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface IPAllocationPolicyOrBuilder * string node_ipv4_cidr = 5 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.node_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1491 + * google/container/v1/cluster_service.proto;l=1494 * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface IPAllocationPolicyOrBuilder * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1494 + * google/container/v1/cluster_service.proto;l=1497 * @return The servicesIpv4Cidr. */ @java.lang.Deprecated @@ -171,7 +171,7 @@ public interface IPAllocationPolicyOrBuilder * string services_ipv4_cidr = 6 [deprecated = true]; * * @deprecated google.container.v1.IPAllocationPolicy.services_ipv4_cidr is deprecated. See - * google/container/v1/cluster_service.proto;l=1494 + * google/container/v1/cluster_service.proto;l=1497 * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java index 3c50f4ad2c6b..fb98f8609263 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3044 * @return The projectId. */ @java.lang.Override @@ -109,7 +109,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3044 * @return The bytes for projectId. */ @java.lang.Override @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3044 + * google/container/v1/cluster_service.proto;l=3050 * @return The zone. */ @java.lang.Override @@ -172,7 +172,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3044 + * google/container/v1/cluster_service.proto;l=3050 * @return The bytes for zone. */ @java.lang.Override @@ -646,7 +646,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3044 * @return The projectId. */ @java.lang.Deprecated @@ -673,7 +673,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3044 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -700,7 +700,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3044 * @param value The projectId to set. * @return This builder for chaining. */ @@ -726,7 +726,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3044 * @return This builder for chaining. */ @java.lang.Deprecated @@ -748,7 +748,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3044 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -778,7 +778,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3044 + * google/container/v1/cluster_service.proto;l=3050 * @return The zone. */ @java.lang.Deprecated @@ -806,7 +806,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3044 + * google/container/v1/cluster_service.proto;l=3050 * @return The bytes for zone. */ @java.lang.Deprecated @@ -834,7 +834,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3044 + * google/container/v1/cluster_service.proto;l=3050 * @param value The zone to set. * @return This builder for chaining. */ @@ -861,7 +861,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3044 + * google/container/v1/cluster_service.proto;l=3050 * @return This builder for chaining. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3044 + * google/container/v1/cluster_service.proto;l=3050 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java index a9e8aa75b785..b90239cb90cf 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListClustersRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3044 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface ListClustersRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3038 + * google/container/v1/cluster_service.proto;l=3044 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3044 + * google/container/v1/cluster_service.proto;l=3050 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListClustersRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3044 + * google/container/v1/cluster_service.proto;l=3050 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java index e303c8629b50..6358188843a4 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3251 * @return The projectId. */ @java.lang.Override @@ -110,7 +110,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3251 * @return The bytes for projectId. */ @java.lang.Override @@ -144,7 +144,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3251 + * google/container/v1/cluster_service.proto;l=3257 * @return The zone. */ @java.lang.Override @@ -173,7 +173,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3251 + * google/container/v1/cluster_service.proto;l=3257 * @return The bytes for zone. */ @java.lang.Override @@ -205,7 +205,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3255 + * google/container/v1/cluster_service.proto;l=3261 * @return The clusterId. */ @java.lang.Override @@ -232,7 +232,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3255 + * google/container/v1/cluster_service.proto;l=3261 * @return The bytes for clusterId. */ @java.lang.Override @@ -728,7 +728,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3251 * @return The projectId. */ @java.lang.Deprecated @@ -755,7 +755,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3251 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -782,7 +782,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3251 * @param value The projectId to set. * @return This builder for chaining. */ @@ -808,7 +808,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3251 * @return This builder for chaining. */ @java.lang.Deprecated @@ -830,7 +830,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3251 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -860,7 +860,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3251 + * google/container/v1/cluster_service.proto;l=3257 * @return The zone. */ @java.lang.Deprecated @@ -888,7 +888,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3251 + * google/container/v1/cluster_service.proto;l=3257 * @return The bytes for zone. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3251 + * google/container/v1/cluster_service.proto;l=3257 * @param value The zone to set. * @return This builder for chaining. */ @@ -943,7 +943,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3251 + * google/container/v1/cluster_service.proto;l=3257 * @return This builder for chaining. */ @java.lang.Deprecated @@ -966,7 +966,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3251 + * google/container/v1/cluster_service.proto;l=3257 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3255 + * google/container/v1/cluster_service.proto;l=3261 * @return The clusterId. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3255 + * google/container/v1/cluster_service.proto;l=3261 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3255 + * google/container/v1/cluster_service.proto;l=3261 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1071,7 +1071,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3255 + * google/container/v1/cluster_service.proto;l=3261 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3255 + * google/container/v1/cluster_service.proto;l=3261 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java index a086a419df8e..983802f9929e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListNodePoolsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3251 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface ListNodePoolsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3245 + * google/container/v1/cluster_service.proto;l=3251 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3251 + * google/container/v1/cluster_service.proto;l=3257 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3251 + * google/container/v1/cluster_service.proto;l=3257 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface ListNodePoolsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3255 + * google/container/v1/cluster_service.proto;l=3261 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface ListNodePoolsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3255 + * google/container/v1/cluster_service.proto;l=3261 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java index fefda986c970..86dc663cb6fa 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3090 + * google/container/v1/cluster_service.proto;l=3096 * @return The projectId. */ @java.lang.Override @@ -109,7 +109,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3090 + * google/container/v1/cluster_service.proto;l=3096 * @return The bytes for projectId. */ @java.lang.Override @@ -143,7 +143,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3096 + * google/container/v1/cluster_service.proto;l=3102 * @return The zone. */ @java.lang.Override @@ -172,7 +172,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3096 + * google/container/v1/cluster_service.proto;l=3102 * @return The bytes for zone. */ @java.lang.Override @@ -646,7 +646,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3090 + * google/container/v1/cluster_service.proto;l=3096 * @return The projectId. */ @java.lang.Deprecated @@ -673,7 +673,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3090 + * google/container/v1/cluster_service.proto;l=3096 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -700,7 +700,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3090 + * google/container/v1/cluster_service.proto;l=3096 * @param value The projectId to set. * @return This builder for chaining. */ @@ -726,7 +726,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3090 + * google/container/v1/cluster_service.proto;l=3096 * @return This builder for chaining. */ @java.lang.Deprecated @@ -748,7 +748,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3090 + * google/container/v1/cluster_service.proto;l=3096 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -778,7 +778,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3096 + * google/container/v1/cluster_service.proto;l=3102 * @return The zone. */ @java.lang.Deprecated @@ -806,7 +806,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3096 + * google/container/v1/cluster_service.proto;l=3102 * @return The bytes for zone. */ @java.lang.Deprecated @@ -834,7 +834,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3096 + * google/container/v1/cluster_service.proto;l=3102 * @param value The zone to set. * @return This builder for chaining. */ @@ -861,7 +861,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3096 + * google/container/v1/cluster_service.proto;l=3102 * @return This builder for chaining. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3096 + * google/container/v1/cluster_service.proto;l=3102 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java index df025c23b90f..a9976d808fe0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface ListOperationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3090 + * google/container/v1/cluster_service.proto;l=3096 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface ListOperationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3090 + * google/container/v1/cluster_service.proto;l=3096 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3096 + * google/container/v1/cluster_service.proto;l=3102 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.ListOperationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3096 + * google/container/v1/cluster_service.proto;l=3102 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java index b0dac245d842..5dfde56112d8 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java @@ -91,7 +91,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1146 + * google/container/v1/cluster_service.proto;l=1149 * @return The username. */ @java.lang.Override @@ -124,7 +124,7 @@ public java.lang.String getUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1146 + * google/container/v1/cluster_service.proto;l=1149 * @return The bytes for username. */ @java.lang.Override @@ -163,7 +163,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1157 + * google/container/v1/cluster_service.proto;l=1160 * @return The password. */ @java.lang.Override @@ -197,7 +197,7 @@ public java.lang.String getPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1157 + * google/container/v1/cluster_service.proto;l=1160 * @return The bytes for password. */ @java.lang.Override @@ -932,7 +932,7 @@ public Builder mergeFrom( * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1146 + * google/container/v1/cluster_service.proto;l=1149 * @return The username. */ @java.lang.Deprecated @@ -964,7 +964,7 @@ public java.lang.String getUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1146 + * google/container/v1/cluster_service.proto;l=1149 * @return The bytes for username. */ @java.lang.Deprecated @@ -996,7 +996,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1146 + * google/container/v1/cluster_service.proto;l=1149 * @param value The username to set. * @return This builder for chaining. */ @@ -1027,7 +1027,7 @@ public Builder setUsername(java.lang.String value) { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1146 + * google/container/v1/cluster_service.proto;l=1149 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1054,7 +1054,7 @@ public Builder clearUsername() { * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1146 + * google/container/v1/cluster_service.proto;l=1149 * @param value The bytes for username to set. * @return This builder for chaining. */ @@ -1089,7 +1089,7 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1157 + * google/container/v1/cluster_service.proto;l=1160 * @return The password. */ @java.lang.Deprecated @@ -1122,7 +1122,7 @@ public java.lang.String getPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1157 + * google/container/v1/cluster_service.proto;l=1160 * @return The bytes for password. */ @java.lang.Deprecated @@ -1155,7 +1155,7 @@ public com.google.protobuf.ByteString getPasswordBytes() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1157 + * google/container/v1/cluster_service.proto;l=1160 * @param value The password to set. * @return This builder for chaining. */ @@ -1187,7 +1187,7 @@ public Builder setPassword(java.lang.String value) { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1157 + * google/container/v1/cluster_service.proto;l=1160 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1215,7 +1215,7 @@ public Builder clearPassword() { * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1157 + * google/container/v1/cluster_service.proto;l=1160 * @param value The bytes for password to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java index 42e867094872..6d7bdab34b5c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java @@ -41,7 +41,7 @@ public interface MasterAuthOrBuilder * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1146 + * google/container/v1/cluster_service.proto;l=1149 * @return The username. */ @java.lang.Deprecated @@ -63,7 +63,7 @@ public interface MasterAuthOrBuilder * string username = 1 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.username is deprecated. See - * google/container/v1/cluster_service.proto;l=1146 + * google/container/v1/cluster_service.proto;l=1149 * @return The bytes for username. */ @java.lang.Deprecated @@ -87,7 +87,7 @@ public interface MasterAuthOrBuilder * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1157 + * google/container/v1/cluster_service.proto;l=1160 * @return The password. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface MasterAuthOrBuilder * string password = 2 [deprecated = true]; * * @deprecated google.container.v1.MasterAuth.password is deprecated. See - * google/container/v1/cluster_service.proto;l=1157 + * google/container/v1/cluster_service.proto;l=1160 * @return The bytes for password. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java index 60067c51d438..2fe652974b3f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java @@ -1521,6 +1521,39 @@ public com.google.container.v1.InTransitEncryptionConfig getInTransitEncryptionC return result == null ? com.google.container.v1.InTransitEncryptionConfig.UNRECOGNIZED : result; } + public static final int ENABLE_CILIUM_CLUSTERWIDE_NETWORK_POLICY_FIELD_NUMBER = 21; + private boolean enableCiliumClusterwideNetworkPolicy_ = false; + /** + * + * + *
                              +   * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.
                              +   * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @return Whether the enableCiliumClusterwideNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasEnableCiliumClusterwideNetworkPolicy() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
                              +   * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.
                              +   * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @return The enableCiliumClusterwideNetworkPolicy. + */ + @java.lang.Override + public boolean getEnableCiliumClusterwideNetworkPolicy() { + return enableCiliumClusterwideNetworkPolicy_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1580,6 +1613,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000040) != 0)) { output.writeEnum(20, inTransitEncryptionConfig_); } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeBool(21, enableCiliumClusterwideNetworkPolicy_); + } getUnknownFields().writeTo(output); } @@ -1638,6 +1674,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, inTransitEncryptionConfig_); } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 21, enableCiliumClusterwideNetworkPolicy_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1688,6 +1729,12 @@ public boolean equals(final java.lang.Object obj) { if (hasInTransitEncryptionConfig()) { if (inTransitEncryptionConfig_ != other.inTransitEncryptionConfig_) return false; } + if (hasEnableCiliumClusterwideNetworkPolicy() + != other.hasEnableCiliumClusterwideNetworkPolicy()) return false; + if (hasEnableCiliumClusterwideNetworkPolicy()) { + if (getEnableCiliumClusterwideNetworkPolicy() + != other.getEnableCiliumClusterwideNetworkPolicy()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1741,6 +1788,12 @@ public int hashCode() { hash = (37 * hash) + IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + inTransitEncryptionConfig_; } + if (hasEnableCiliumClusterwideNetworkPolicy()) { + hash = (37 * hash) + ENABLE_CILIUM_CLUSTERWIDE_NETWORK_POLICY_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableCiliumClusterwideNetworkPolicy()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1926,6 +1979,7 @@ public Builder clear() { } enableFqdnNetworkPolicy_ = false; inTransitEncryptionConfig_ = 0; + enableCiliumClusterwideNetworkPolicy_ = false; return this; } @@ -2022,6 +2076,10 @@ private void buildPartial0(com.google.container.v1.NetworkConfig result) { result.inTransitEncryptionConfig_ = inTransitEncryptionConfig_; to_bitField0_ |= 0x00000040; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.enableCiliumClusterwideNetworkPolicy_ = enableCiliumClusterwideNetworkPolicy_; + to_bitField0_ |= 0x00000080; + } result.bitField0_ |= to_bitField0_; } @@ -2116,6 +2174,9 @@ public Builder mergeFrom(com.google.container.v1.NetworkConfig other) { if (other.hasInTransitEncryptionConfig()) { setInTransitEncryptionConfig(other.getInTransitEncryptionConfig()); } + if (other.hasEnableCiliumClusterwideNetworkPolicy()) { + setEnableCiliumClusterwideNetworkPolicy(other.getEnableCiliumClusterwideNetworkPolicy()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2230,6 +2291,12 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 160 + case 168: + { + enableCiliumClusterwideNetworkPolicy_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 168 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4046,6 +4113,74 @@ public Builder clearInTransitEncryptionConfig() { return this; } + private boolean enableCiliumClusterwideNetworkPolicy_; + /** + * + * + *
                              +     * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.
                              +     * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @return Whether the enableCiliumClusterwideNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasEnableCiliumClusterwideNetworkPolicy() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
                              +     * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.
                              +     * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @return The enableCiliumClusterwideNetworkPolicy. + */ + @java.lang.Override + public boolean getEnableCiliumClusterwideNetworkPolicy() { + return enableCiliumClusterwideNetworkPolicy_; + } + /** + * + * + *
                              +     * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.
                              +     * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @param value The enableCiliumClusterwideNetworkPolicy to set. + * @return This builder for chaining. + */ + public Builder setEnableCiliumClusterwideNetworkPolicy(boolean value) { + + enableCiliumClusterwideNetworkPolicy_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
                              +     * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.
                              +     * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @return This builder for chaining. + */ + public Builder clearEnableCiliumClusterwideNetworkPolicy() { + bitField0_ = (bitField0_ & ~0x00004000); + enableCiliumClusterwideNetworkPolicy_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java index 72a2515a2507..27d186ad73fa 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java @@ -447,4 +447,29 @@ public interface NetworkConfigOrBuilder * @return The inTransitEncryptionConfig. */ com.google.container.v1.InTransitEncryptionConfig getInTransitEncryptionConfig(); + + /** + * + * + *
                              +   * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.
                              +   * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @return Whether the enableCiliumClusterwideNetworkPolicy field is set. + */ + boolean hasEnableCiliumClusterwideNetworkPolicy(); + /** + * + * + *
                              +   * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster.
                              +   * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @return The enableCiliumClusterwideNetworkPolicy. + */ + boolean getEnableCiliumClusterwideNetworkPolicy(); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java index 98e2ddcc227a..eca09680c687 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java @@ -55,6 +55,7 @@ private NodeConfig() { taints_ = java.util.Collections.emptyList(); nodeGroup_ = ""; bootDiskKmsKey_ = ""; + secondaryBootDisks_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -2305,6 +2306,78 @@ public boolean getEnableConfidentialStorage() { return enableConfidentialStorage_; } + public static final int SECONDARY_BOOT_DISKS_FIELD_NUMBER = 48; + + @SuppressWarnings("serial") + private java.util.List secondaryBootDisks_; + /** + * + * + *
                              +   * List of secondary boot disks attached to the nodes.
                              +   * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + @java.lang.Override + public java.util.List getSecondaryBootDisksList() { + return secondaryBootDisks_; + } + /** + * + * + *
                              +   * List of secondary boot disks attached to the nodes.
                              +   * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + @java.lang.Override + public java.util.List + getSecondaryBootDisksOrBuilderList() { + return secondaryBootDisks_; + } + /** + * + * + *
                              +   * List of secondary boot disks attached to the nodes.
                              +   * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + @java.lang.Override + public int getSecondaryBootDisksCount() { + return secondaryBootDisks_.size(); + } + /** + * + * + *
                              +   * List of secondary boot disks attached to the nodes.
                              +   * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + @java.lang.Override + public com.google.container.v1.SecondaryBootDisk getSecondaryBootDisks(int index) { + return secondaryBootDisks_.get(index); + } + /** + * + * + *
                              +   * List of secondary boot disks attached to the nodes.
                              +   * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + @java.lang.Override + public com.google.container.v1.SecondaryBootDiskOrBuilder getSecondaryBootDisksOrBuilder( + int index) { + return secondaryBootDisks_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2424,6 +2497,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableConfidentialStorage_ != false) { output.writeBool(46, enableConfidentialStorage_); } + for (int i = 0; i < secondaryBootDisks_.size(); i++) { + output.writeMessage(48, secondaryBootDisks_.get(i)); + } getUnknownFields().writeTo(output); } @@ -2582,6 +2658,10 @@ public int getSerializedSize() { if (enableConfidentialStorage_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(46, enableConfidentialStorage_); } + for (int i = 0; i < secondaryBootDisks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(48, secondaryBootDisks_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2686,6 +2766,7 @@ public boolean equals(final java.lang.Object obj) { if (!getResourceManagerTags().equals(other.getResourceManagerTags())) return false; } if (getEnableConfidentialStorage() != other.getEnableConfidentialStorage()) return false; + if (!getSecondaryBootDisksList().equals(other.getSecondaryBootDisksList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2817,6 +2898,10 @@ public int hashCode() { } hash = (37 * hash) + ENABLE_CONFIDENTIAL_STORAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialStorage()); + if (getSecondaryBootDisksCount() > 0) { + hash = (37 * hash) + SECONDARY_BOOT_DISKS_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryBootDisksList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3010,6 +3095,7 @@ private void maybeForceBuilderInitialization() { getEphemeralStorageLocalSsdConfigFieldBuilder(); getSoleTenantConfigFieldBuilder(); getResourceManagerTagsFieldBuilder(); + getSecondaryBootDisksFieldBuilder(); } } @@ -3134,6 +3220,13 @@ public Builder clear() { resourceManagerTagsBuilder_ = null; } enableConfidentialStorage_ = false; + if (secondaryBootDisksBuilder_ == null) { + secondaryBootDisks_ = java.util.Collections.emptyList(); + } else { + secondaryBootDisks_ = null; + secondaryBootDisksBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000010); return this; } @@ -3190,6 +3283,15 @@ private void buildPartialRepeatedFields(com.google.container.v1.NodeConfig resul } else { result.taints_ = taintsBuilder_.build(); } + if (secondaryBootDisksBuilder_ == null) { + if (((bitField1_ & 0x00000010) != 0)) { + secondaryBootDisks_ = java.util.Collections.unmodifiableList(secondaryBootDisks_); + bitField1_ = (bitField1_ & ~0x00000010); + } + result.secondaryBootDisks_ = secondaryBootDisks_; + } else { + result.secondaryBootDisks_ = secondaryBootDisksBuilder_.build(); + } } private void buildPartial0(com.google.container.v1.NodeConfig result) { @@ -3586,6 +3688,33 @@ public Builder mergeFrom(com.google.container.v1.NodeConfig other) { if (other.getEnableConfidentialStorage() != false) { setEnableConfidentialStorage(other.getEnableConfidentialStorage()); } + if (secondaryBootDisksBuilder_ == null) { + if (!other.secondaryBootDisks_.isEmpty()) { + if (secondaryBootDisks_.isEmpty()) { + secondaryBootDisks_ = other.secondaryBootDisks_; + bitField1_ = (bitField1_ & ~0x00000010); + } else { + ensureSecondaryBootDisksIsMutable(); + secondaryBootDisks_.addAll(other.secondaryBootDisks_); + } + onChanged(); + } + } else { + if (!other.secondaryBootDisks_.isEmpty()) { + if (secondaryBootDisksBuilder_.isEmpty()) { + secondaryBootDisksBuilder_.dispose(); + secondaryBootDisksBuilder_ = null; + secondaryBootDisks_ = other.secondaryBootDisks_; + bitField1_ = (bitField1_ & ~0x00000010); + secondaryBootDisksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSecondaryBootDisksFieldBuilder() + : null; + } else { + secondaryBootDisksBuilder_.addAllMessages(other.secondaryBootDisks_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3873,6 +4002,19 @@ public Builder mergeFrom( bitField1_ |= 0x00000008; break; } // case 368 + case 386: + { + com.google.container.v1.SecondaryBootDisk m = + input.readMessage( + com.google.container.v1.SecondaryBootDisk.parser(), extensionRegistry); + if (secondaryBootDisksBuilder_ == null) { + ensureSecondaryBootDisksIsMutable(); + secondaryBootDisks_.add(m); + } else { + secondaryBootDisksBuilder_.addMessage(m); + } + break; + } // case 386 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10363,6 +10505,365 @@ public Builder clearEnableConfidentialStorage() { return this; } + private java.util.List secondaryBootDisks_ = + java.util.Collections.emptyList(); + + private void ensureSecondaryBootDisksIsMutable() { + if (!((bitField1_ & 0x00000010) != 0)) { + secondaryBootDisks_ = + new java.util.ArrayList(secondaryBootDisks_); + bitField1_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.SecondaryBootDisk, + com.google.container.v1.SecondaryBootDisk.Builder, + com.google.container.v1.SecondaryBootDiskOrBuilder> + secondaryBootDisksBuilder_; + + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public java.util.List getSecondaryBootDisksList() { + if (secondaryBootDisksBuilder_ == null) { + return java.util.Collections.unmodifiableList(secondaryBootDisks_); + } else { + return secondaryBootDisksBuilder_.getMessageList(); + } + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public int getSecondaryBootDisksCount() { + if (secondaryBootDisksBuilder_ == null) { + return secondaryBootDisks_.size(); + } else { + return secondaryBootDisksBuilder_.getCount(); + } + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public com.google.container.v1.SecondaryBootDisk getSecondaryBootDisks(int index) { + if (secondaryBootDisksBuilder_ == null) { + return secondaryBootDisks_.get(index); + } else { + return secondaryBootDisksBuilder_.getMessage(index); + } + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public Builder setSecondaryBootDisks( + int index, com.google.container.v1.SecondaryBootDisk value) { + if (secondaryBootDisksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryBootDisksIsMutable(); + secondaryBootDisks_.set(index, value); + onChanged(); + } else { + secondaryBootDisksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public Builder setSecondaryBootDisks( + int index, com.google.container.v1.SecondaryBootDisk.Builder builderForValue) { + if (secondaryBootDisksBuilder_ == null) { + ensureSecondaryBootDisksIsMutable(); + secondaryBootDisks_.set(index, builderForValue.build()); + onChanged(); + } else { + secondaryBootDisksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public Builder addSecondaryBootDisks(com.google.container.v1.SecondaryBootDisk value) { + if (secondaryBootDisksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryBootDisksIsMutable(); + secondaryBootDisks_.add(value); + onChanged(); + } else { + secondaryBootDisksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public Builder addSecondaryBootDisks( + int index, com.google.container.v1.SecondaryBootDisk value) { + if (secondaryBootDisksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSecondaryBootDisksIsMutable(); + secondaryBootDisks_.add(index, value); + onChanged(); + } else { + secondaryBootDisksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public Builder addSecondaryBootDisks( + com.google.container.v1.SecondaryBootDisk.Builder builderForValue) { + if (secondaryBootDisksBuilder_ == null) { + ensureSecondaryBootDisksIsMutable(); + secondaryBootDisks_.add(builderForValue.build()); + onChanged(); + } else { + secondaryBootDisksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public Builder addSecondaryBootDisks( + int index, com.google.container.v1.SecondaryBootDisk.Builder builderForValue) { + if (secondaryBootDisksBuilder_ == null) { + ensureSecondaryBootDisksIsMutable(); + secondaryBootDisks_.add(index, builderForValue.build()); + onChanged(); + } else { + secondaryBootDisksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public Builder addAllSecondaryBootDisks( + java.lang.Iterable values) { + if (secondaryBootDisksBuilder_ == null) { + ensureSecondaryBootDisksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, secondaryBootDisks_); + onChanged(); + } else { + secondaryBootDisksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public Builder clearSecondaryBootDisks() { + if (secondaryBootDisksBuilder_ == null) { + secondaryBootDisks_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000010); + onChanged(); + } else { + secondaryBootDisksBuilder_.clear(); + } + return this; + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public Builder removeSecondaryBootDisks(int index) { + if (secondaryBootDisksBuilder_ == null) { + ensureSecondaryBootDisksIsMutable(); + secondaryBootDisks_.remove(index); + onChanged(); + } else { + secondaryBootDisksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public com.google.container.v1.SecondaryBootDisk.Builder getSecondaryBootDisksBuilder( + int index) { + return getSecondaryBootDisksFieldBuilder().getBuilder(index); + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public com.google.container.v1.SecondaryBootDiskOrBuilder getSecondaryBootDisksOrBuilder( + int index) { + if (secondaryBootDisksBuilder_ == null) { + return secondaryBootDisks_.get(index); + } else { + return secondaryBootDisksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public java.util.List + getSecondaryBootDisksOrBuilderList() { + if (secondaryBootDisksBuilder_ != null) { + return secondaryBootDisksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(secondaryBootDisks_); + } + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public com.google.container.v1.SecondaryBootDisk.Builder addSecondaryBootDisksBuilder() { + return getSecondaryBootDisksFieldBuilder() + .addBuilder(com.google.container.v1.SecondaryBootDisk.getDefaultInstance()); + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public com.google.container.v1.SecondaryBootDisk.Builder addSecondaryBootDisksBuilder( + int index) { + return getSecondaryBootDisksFieldBuilder() + .addBuilder(index, com.google.container.v1.SecondaryBootDisk.getDefaultInstance()); + } + /** + * + * + *
                              +     * List of secondary boot disks attached to the nodes.
                              +     * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + public java.util.List + getSecondaryBootDisksBuilderList() { + return getSecondaryBootDisksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.SecondaryBootDisk, + com.google.container.v1.SecondaryBootDisk.Builder, + com.google.container.v1.SecondaryBootDiskOrBuilder> + getSecondaryBootDisksFieldBuilder() { + if (secondaryBootDisksBuilder_ == null) { + secondaryBootDisksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.SecondaryBootDisk, + com.google.container.v1.SecondaryBootDisk.Builder, + com.google.container.v1.SecondaryBootDiskOrBuilder>( + secondaryBootDisks_, + ((bitField1_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + secondaryBootDisks_ = null; + } + return secondaryBootDisksBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java index 90b2cd90e401..4338ed04336f 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java @@ -1610,4 +1610,56 @@ java.lang.String getResourceLabelsOrDefault( * @return The enableConfidentialStorage. */ boolean getEnableConfidentialStorage(); + + /** + * + * + *
                              +   * List of secondary boot disks attached to the nodes.
                              +   * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + java.util.List getSecondaryBootDisksList(); + /** + * + * + *
                              +   * List of secondary boot disks attached to the nodes.
                              +   * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + com.google.container.v1.SecondaryBootDisk getSecondaryBootDisks(int index); + /** + * + * + *
                              +   * List of secondary boot disks attached to the nodes.
                              +   * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + int getSecondaryBootDisksCount(); + /** + * + * + *
                              +   * List of secondary boot disks attached to the nodes.
                              +   * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + java.util.List + getSecondaryBootDisksOrBuilderList(); + /** + * + * + *
                              +   * List of secondary boot disks attached to the nodes.
                              +   * 
                              + * + * repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; + */ + com.google.container.v1.SecondaryBootDiskOrBuilder getSecondaryBootDisksOrBuilder(int index); } diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java index 90d5064d7b4b..ba0f52043f60 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java @@ -6686,7 +6686,7 @@ public com.google.container.v1.NodePool.Status getStatus() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3559 + * google/container/v1/cluster_service.proto;l=3565 * @return The statusMessage. */ @java.lang.Override @@ -6714,7 +6714,7 @@ public java.lang.String getStatusMessage() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3559 + * google/container/v1/cluster_service.proto;l=3565 * @return The bytes for statusMessage. */ @java.lang.Override @@ -9638,7 +9638,7 @@ public Builder clearStatus() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3559 + * google/container/v1/cluster_service.proto;l=3565 * @return The statusMessage. */ @java.lang.Deprecated @@ -9665,7 +9665,7 @@ public java.lang.String getStatusMessage() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3559 + * google/container/v1/cluster_service.proto;l=3565 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -9692,7 +9692,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3559 + * google/container/v1/cluster_service.proto;l=3565 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -9718,7 +9718,7 @@ public Builder setStatusMessage(java.lang.String value) { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3559 + * google/container/v1/cluster_service.proto;l=3565 * @return This builder for chaining. */ @java.lang.Deprecated @@ -9740,7 +9740,7 @@ public Builder clearStatusMessage() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3559 + * google/container/v1/cluster_service.proto;l=3565 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java index 26aa3eff30b8..94f5fd18078d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java @@ -383,7 +383,7 @@ public interface NodePoolOrBuilder * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3559 + * google/container/v1/cluster_service.proto;l=3565 * @return The statusMessage. */ @java.lang.Deprecated @@ -400,7 +400,7 @@ public interface NodePoolOrBuilder * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1.NodePool.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=3559 + * google/container/v1/cluster_service.proto;l=3565 * @return The bytes for statusMessage. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java index 8f2a195ca6d2..e8a6cabfe814 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java @@ -989,7 +989,7 @@ public com.google.protobuf.ByteString getNameBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2462 + * google/container/v1/cluster_service.proto;l=2468 * @return The zone. */ @java.lang.Override @@ -1017,7 +1017,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2462 + * google/container/v1/cluster_service.proto;l=2468 * @return The bytes for zone. */ @java.lang.Override @@ -1172,7 +1172,7 @@ public com.google.protobuf.ByteString getDetailBytes() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2481 * @return The statusMessage. */ @java.lang.Override @@ -1201,7 +1201,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2481 * @return The bytes for statusMessage. */ @java.lang.Override @@ -2712,7 +2712,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2462 + * google/container/v1/cluster_service.proto;l=2468 * @return The zone. */ @java.lang.Deprecated @@ -2739,7 +2739,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2462 + * google/container/v1/cluster_service.proto;l=2468 * @return The bytes for zone. */ @java.lang.Deprecated @@ -2766,7 +2766,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2462 + * google/container/v1/cluster_service.proto;l=2468 * @param value The zone to set. * @return This builder for chaining. */ @@ -2792,7 +2792,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2462 + * google/container/v1/cluster_service.proto;l=2468 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2814,7 +2814,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2462 + * google/container/v1/cluster_service.proto;l=2468 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -3130,7 +3130,7 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2481 * @return The statusMessage. */ @java.lang.Deprecated @@ -3158,7 +3158,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2481 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -3186,7 +3186,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2481 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -3213,7 +3213,7 @@ public Builder setStatusMessage(java.lang.String value) { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2481 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3236,7 +3236,7 @@ public Builder clearStatusMessage() { * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2481 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java index 3eac3694d27f..b735f8e5baa7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java @@ -61,7 +61,7 @@ public interface OperationOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2462 + * google/container/v1/cluster_service.proto;l=2468 * @return The zone. */ @java.lang.Deprecated @@ -78,7 +78,7 @@ public interface OperationOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.Operation.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2462 + * google/container/v1/cluster_service.proto;l=2468 * @return The bytes for zone. */ @java.lang.Deprecated @@ -172,7 +172,7 @@ public interface OperationOrBuilder * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2481 * @return The statusMessage. */ @java.lang.Deprecated @@ -190,7 +190,7 @@ public interface OperationOrBuilder * * * @deprecated google.container.v1.Operation.status_message is deprecated. See - * google/container/v1/cluster_service.proto;l=2475 + * google/container/v1/cluster_service.proto;l=2481 * @return The bytes for statusMessage. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java index 1a1e799538fe..dd77d88be164 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java @@ -86,7 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3845 + * google/container/v1/cluster_service.proto;l=3851 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3845 + * google/container/v1/cluster_service.proto;l=3851 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3851 + * google/container/v1/cluster_service.proto;l=3857 * @return The zone. */ @java.lang.Override @@ -177,7 +177,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3851 + * google/container/v1/cluster_service.proto;l=3857 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3855 + * google/container/v1/cluster_service.proto;l=3861 * @return The clusterId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3855 + * google/container/v1/cluster_service.proto;l=3861 * @return The bytes for clusterId. */ @java.lang.Override @@ -268,7 +268,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3859 + * google/container/v1/cluster_service.proto;l=3865 * @return The nodePoolId. */ @java.lang.Override @@ -295,7 +295,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3859 + * google/container/v1/cluster_service.proto;l=3865 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -862,7 +862,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3845 + * google/container/v1/cluster_service.proto;l=3851 * @return The projectId. */ @java.lang.Deprecated @@ -889,7 +889,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3845 + * google/container/v1/cluster_service.proto;l=3851 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -916,7 +916,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3845 + * google/container/v1/cluster_service.proto;l=3851 * @param value The projectId to set. * @return This builder for chaining. */ @@ -942,7 +942,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3845 + * google/container/v1/cluster_service.proto;l=3851 * @return This builder for chaining. */ @java.lang.Deprecated @@ -964,7 +964,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3845 + * google/container/v1/cluster_service.proto;l=3851 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -994,7 +994,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3851 + * google/container/v1/cluster_service.proto;l=3857 * @return The zone. */ @java.lang.Deprecated @@ -1022,7 +1022,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3851 + * google/container/v1/cluster_service.proto;l=3857 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1050,7 +1050,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3851 + * google/container/v1/cluster_service.proto;l=3857 * @param value The zone to set. * @return This builder for chaining. */ @@ -1077,7 +1077,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3851 + * google/container/v1/cluster_service.proto;l=3857 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1100,7 +1100,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3851 + * google/container/v1/cluster_service.proto;l=3857 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1128,7 +1128,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3855 + * google/container/v1/cluster_service.proto;l=3861 * @return The clusterId. */ @java.lang.Deprecated @@ -1154,7 +1154,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3855 + * google/container/v1/cluster_service.proto;l=3861 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1180,7 +1180,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3855 + * google/container/v1/cluster_service.proto;l=3861 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1205,7 +1205,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3855 + * google/container/v1/cluster_service.proto;l=3861 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1226,7 +1226,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3855 + * google/container/v1/cluster_service.proto;l=3861 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1254,7 +1254,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3859 + * See google/container/v1/cluster_service.proto;l=3865 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1280,7 +1280,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3859 + * See google/container/v1/cluster_service.proto;l=3865 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1306,7 +1306,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3859 + * See google/container/v1/cluster_service.proto;l=3865 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1331,7 +1331,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3859 + * See google/container/v1/cluster_service.proto;l=3865 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1352,7 +1352,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1/cluster_service.proto;l=3859 + * See google/container/v1/cluster_service.proto;l=3865 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java index a979f2edd8f6..c999f43ba86d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3845 + * google/container/v1/cluster_service.proto;l=3851 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3845 + * google/container/v1/cluster_service.proto;l=3851 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3851 + * google/container/v1/cluster_service.proto;l=3857 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3851 + * google/container/v1/cluster_service.proto;l=3857 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3855 + * google/container/v1/cluster_service.proto;l=3861 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3855 + * google/container/v1/cluster_service.proto;l=3861 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3859 + * google/container/v1/cluster_service.proto;l=3865 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3859 + * google/container/v1/cluster_service.proto;l=3865 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecondaryBootDisk.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecondaryBootDisk.java new file mode 100644 index 000000000000..865639ca67ed --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecondaryBootDisk.java @@ -0,0 +1,912 @@ +/* + * 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/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +/** + * + * + *
                              + * SecondaryBootDisk represents a persistent disk attached to a node
                              + * with special configurations based on its mode.
                              + * 
                              + * + * Protobuf type {@code google.container.v1.SecondaryBootDisk} + */ +public final class SecondaryBootDisk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1.SecondaryBootDisk) + SecondaryBootDiskOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecondaryBootDisk.newBuilder() to construct. + private SecondaryBootDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SecondaryBootDisk() { + mode_ = 0; + diskImage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecondaryBootDisk(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecondaryBootDisk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecondaryBootDisk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SecondaryBootDisk.class, + com.google.container.v1.SecondaryBootDisk.Builder.class); + } + + /** + * + * + *
                              +   * Mode specifies how the secondary boot disk will be used.
                              +   * This triggers mode-specified logic in the control plane.
                              +   * 
                              + * + * Protobuf enum {@code google.container.v1.SecondaryBootDisk.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                              +     * MODE_UNSPECIFIED is when mode is not set.
                              +     * 
                              + * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
                              +     * CONTAINER_IMAGE_CACHE is for using the secondary boot disk as
                              +     * a container image cache.
                              +     * 
                              + * + * CONTAINER_IMAGE_CACHE = 1; + */ + CONTAINER_IMAGE_CACHE(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                              +     * MODE_UNSPECIFIED is when mode is not set.
                              +     * 
                              + * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
                              +     * CONTAINER_IMAGE_CACHE is for using the secondary boot disk as
                              +     * a container image cache.
                              +     * 
                              + * + * CONTAINER_IMAGE_CACHE = 1; + */ + public static final int CONTAINER_IMAGE_CACHE_VALUE = 1; + + 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 Mode 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 Mode forNumber(int value) { + switch (value) { + case 0: + return MODE_UNSPECIFIED; + case 1: + return CONTAINER_IMAGE_CACHE; + 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 Mode findValueByNumber(int number) { + return Mode.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.container.v1.SecondaryBootDisk.getDescriptor().getEnumTypes().get(0); + } + + private static final Mode[] VALUES = values(); + + public static Mode 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 Mode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.container.v1.SecondaryBootDisk.Mode) + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + /** + * + * + *
                              +   * Disk mode (container image cache, etc.)
                              +   * 
                              + * + * .google.container.v1.SecondaryBootDisk.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
                              +   * Disk mode (container image cache, etc.)
                              +   * 
                              + * + * .google.container.v1.SecondaryBootDisk.Mode mode = 1; + * + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1.SecondaryBootDisk.Mode getMode() { + com.google.container.v1.SecondaryBootDisk.Mode result = + com.google.container.v1.SecondaryBootDisk.Mode.forNumber(mode_); + return result == null ? com.google.container.v1.SecondaryBootDisk.Mode.UNRECOGNIZED : result; + } + + public static final int DISK_IMAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object diskImage_ = ""; + /** + * + * + *
                              +   * Fully-qualified resource ID for an existing disk image.
                              +   * 
                              + * + * string disk_image = 2; + * + * @return The diskImage. + */ + @java.lang.Override + public java.lang.String getDiskImage() { + java.lang.Object ref = diskImage_; + 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(); + diskImage_ = s; + return s; + } + } + /** + * + * + *
                              +   * Fully-qualified resource ID for an existing disk image.
                              +   * 
                              + * + * string disk_image = 2; + * + * @return The bytes for diskImage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiskImageBytes() { + java.lang.Object ref = diskImage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskImage_ = 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 (mode_ != com.google.container.v1.SecondaryBootDisk.Mode.MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, mode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskImage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, diskImage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ != com.google.container.v1.SecondaryBootDisk.Mode.MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskImage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, diskImage_); + } + 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.container.v1.SecondaryBootDisk)) { + return super.equals(obj); + } + com.google.container.v1.SecondaryBootDisk other = + (com.google.container.v1.SecondaryBootDisk) obj; + + if (mode_ != other.mode_) return false; + if (!getDiskImage().equals(other.getDiskImage())) 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) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (37 * hash) + DISK_IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getDiskImage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.SecondaryBootDisk parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SecondaryBootDisk parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.SecondaryBootDisk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SecondaryBootDisk 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.container.v1.SecondaryBootDisk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.SecondaryBootDisk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.SecondaryBootDisk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.SecondaryBootDisk 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.container.v1.SecondaryBootDisk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.SecondaryBootDisk 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.container.v1.SecondaryBootDisk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.SecondaryBootDisk 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.container.v1.SecondaryBootDisk 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; + } + /** + * + * + *
                              +   * SecondaryBootDisk represents a persistent disk attached to a node
                              +   * with special configurations based on its mode.
                              +   * 
                              + * + * Protobuf type {@code google.container.v1.SecondaryBootDisk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.SecondaryBootDisk) + com.google.container.v1.SecondaryBootDiskOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecondaryBootDisk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecondaryBootDisk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.SecondaryBootDisk.class, + com.google.container.v1.SecondaryBootDisk.Builder.class); + } + + // Construct using com.google.container.v1.SecondaryBootDisk.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + diskImage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_SecondaryBootDisk_descriptor; + } + + @java.lang.Override + public com.google.container.v1.SecondaryBootDisk getDefaultInstanceForType() { + return com.google.container.v1.SecondaryBootDisk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1.SecondaryBootDisk build() { + com.google.container.v1.SecondaryBootDisk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1.SecondaryBootDisk buildPartial() { + com.google.container.v1.SecondaryBootDisk result = + new com.google.container.v1.SecondaryBootDisk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1.SecondaryBootDisk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.diskImage_ = diskImage_; + } + } + + @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.container.v1.SecondaryBootDisk) { + return mergeFrom((com.google.container.v1.SecondaryBootDisk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1.SecondaryBootDisk other) { + if (other == com.google.container.v1.SecondaryBootDisk.getDefaultInstance()) return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + if (!other.getDiskImage().isEmpty()) { + diskImage_ = other.diskImage_; + 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 8: + { + mode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + diskImage_ = 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 int mode_ = 0; + /** + * + * + *
                              +     * Disk mode (container image cache, etc.)
                              +     * 
                              + * + * .google.container.v1.SecondaryBootDisk.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + /** + * + * + *
                              +     * Disk mode (container image cache, etc.)
                              +     * 
                              + * + * .google.container.v1.SecondaryBootDisk.Mode mode = 1; + * + * @param value The enum numeric value on the wire for mode to set. + * @return This builder for chaining. + */ + public Builder setModeValue(int value) { + mode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                              +     * Disk mode (container image cache, etc.)
                              +     * 
                              + * + * .google.container.v1.SecondaryBootDisk.Mode mode = 1; + * + * @return The mode. + */ + @java.lang.Override + public com.google.container.v1.SecondaryBootDisk.Mode getMode() { + com.google.container.v1.SecondaryBootDisk.Mode result = + com.google.container.v1.SecondaryBootDisk.Mode.forNumber(mode_); + return result == null ? com.google.container.v1.SecondaryBootDisk.Mode.UNRECOGNIZED : result; + } + /** + * + * + *
                              +     * Disk mode (container image cache, etc.)
                              +     * 
                              + * + * .google.container.v1.SecondaryBootDisk.Mode mode = 1; + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode(com.google.container.v1.SecondaryBootDisk.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
                              +     * Disk mode (container image cache, etc.)
                              +     * 
                              + * + * .google.container.v1.SecondaryBootDisk.Mode mode = 1; + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + private java.lang.Object diskImage_ = ""; + /** + * + * + *
                              +     * Fully-qualified resource ID for an existing disk image.
                              +     * 
                              + * + * string disk_image = 2; + * + * @return The diskImage. + */ + public java.lang.String getDiskImage() { + java.lang.Object ref = diskImage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diskImage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                              +     * Fully-qualified resource ID for an existing disk image.
                              +     * 
                              + * + * string disk_image = 2; + * + * @return The bytes for diskImage. + */ + public com.google.protobuf.ByteString getDiskImageBytes() { + java.lang.Object ref = diskImage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diskImage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                              +     * Fully-qualified resource ID for an existing disk image.
                              +     * 
                              + * + * string disk_image = 2; + * + * @param value The diskImage to set. + * @return This builder for chaining. + */ + public Builder setDiskImage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + diskImage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                              +     * Fully-qualified resource ID for an existing disk image.
                              +     * 
                              + * + * string disk_image = 2; + * + * @return This builder for chaining. + */ + public Builder clearDiskImage() { + diskImage_ = getDefaultInstance().getDiskImage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                              +     * Fully-qualified resource ID for an existing disk image.
                              +     * 
                              + * + * string disk_image = 2; + * + * @param value The bytes for diskImage to set. + * @return This builder for chaining. + */ + public Builder setDiskImageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + diskImage_ = 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.container.v1.SecondaryBootDisk) + } + + // @@protoc_insertion_point(class_scope:google.container.v1.SecondaryBootDisk) + private static final com.google.container.v1.SecondaryBootDisk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1.SecondaryBootDisk(); + } + + public static com.google.container.v1.SecondaryBootDisk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecondaryBootDisk 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.container.v1.SecondaryBootDisk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecondaryBootDiskOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecondaryBootDiskOrBuilder.java new file mode 100644 index 000000000000..7a64a65fdbdc --- /dev/null +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SecondaryBootDiskOrBuilder.java @@ -0,0 +1,76 @@ +/* + * 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/container/v1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1; + +public interface SecondaryBootDiskOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1.SecondaryBootDisk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * Disk mode (container image cache, etc.)
                              +   * 
                              + * + * .google.container.v1.SecondaryBootDisk.Mode mode = 1; + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + /** + * + * + *
                              +   * Disk mode (container image cache, etc.)
                              +   * 
                              + * + * .google.container.v1.SecondaryBootDisk.Mode mode = 1; + * + * @return The mode. + */ + com.google.container.v1.SecondaryBootDisk.Mode getMode(); + + /** + * + * + *
                              +   * Fully-qualified resource ID for an existing disk image.
                              +   * 
                              + * + * string disk_image = 2; + * + * @return The diskImage. + */ + java.lang.String getDiskImage(); + /** + * + * + *
                              +   * Fully-qualified resource ID for an existing disk image.
                              +   * 
                              + * + * string disk_image = 2; + * + * @return The bytes for diskImage. + */ + com.google.protobuf.ByteString getDiskImageBytes(); +} diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java index 4cdc7ca1d939..84ece1616dd0 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2879 + * google/container/v1/cluster_service.proto;l=2885 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2879 + * google/container/v1/cluster_service.proto;l=2885 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2885 + * google/container/v1/cluster_service.proto;l=2891 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2885 + * google/container/v1/cluster_service.proto;l=2891 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2889 + * google/container/v1/cluster_service.proto;l=2895 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2889 + * google/container/v1/cluster_service.proto;l=2895 * @return The bytes for clusterId. */ @java.lang.Override @@ -832,7 +832,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2879 + * google/container/v1/cluster_service.proto;l=2885 * @return The projectId. */ @java.lang.Deprecated @@ -859,7 +859,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2879 + * google/container/v1/cluster_service.proto;l=2885 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -886,7 +886,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2879 + * google/container/v1/cluster_service.proto;l=2885 * @param value The projectId to set. * @return This builder for chaining. */ @@ -912,7 +912,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2879 + * google/container/v1/cluster_service.proto;l=2885 * @return This builder for chaining. */ @java.lang.Deprecated @@ -934,7 +934,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2879 + * google/container/v1/cluster_service.proto;l=2885 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -964,7 +964,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2885 + * google/container/v1/cluster_service.proto;l=2891 * @return The zone. */ @java.lang.Deprecated @@ -992,7 +992,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2885 + * google/container/v1/cluster_service.proto;l=2891 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2885 + * google/container/v1/cluster_service.proto;l=2891 * @param value The zone to set. * @return This builder for chaining. */ @@ -1047,7 +1047,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2885 + * google/container/v1/cluster_service.proto;l=2891 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1070,7 +1070,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2885 + * google/container/v1/cluster_service.proto;l=2891 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1098,7 +1098,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2889 + * google/container/v1/cluster_service.proto;l=2895 * @return The clusterId. */ @java.lang.Deprecated @@ -1124,7 +1124,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2889 + * google/container/v1/cluster_service.proto;l=2895 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1150,7 +1150,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2889 + * google/container/v1/cluster_service.proto;l=2895 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1175,7 +1175,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2889 + * google/container/v1/cluster_service.proto;l=2895 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1196,7 +1196,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2889 + * google/container/v1/cluster_service.proto;l=2895 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java index f7dfca82e36a..1dcab809fbe9 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetAddonsConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2879 + * google/container/v1/cluster_service.proto;l=2885 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetAddonsConfigRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2879 + * google/container/v1/cluster_service.proto;l=2885 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2885 + * google/container/v1/cluster_service.proto;l=2891 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2885 + * google/container/v1/cluster_service.proto;l=2891 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetAddonsConfigRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2889 + * google/container/v1/cluster_service.proto;l=2895 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetAddonsConfigRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2889 + * google/container/v1/cluster_service.proto;l=2895 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java index 79b924e8e82e..a6f1c2f5f7b5 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java @@ -97,7 +97,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4041 + * google/container/v1/cluster_service.proto;l=4047 * @return The projectId. */ @java.lang.Override @@ -125,7 +125,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4041 + * google/container/v1/cluster_service.proto;l=4047 * @return The bytes for projectId. */ @java.lang.Override @@ -159,7 +159,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4047 + * google/container/v1/cluster_service.proto;l=4053 * @return The zone. */ @java.lang.Override @@ -188,7 +188,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4047 + * google/container/v1/cluster_service.proto;l=4053 * @return The bytes for zone. */ @java.lang.Override @@ -220,7 +220,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4051 + * google/container/v1/cluster_service.proto;l=4057 * @return The clusterId. */ @java.lang.Override @@ -247,7 +247,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4051 + * google/container/v1/cluster_service.proto;l=4057 * @return The bytes for clusterId. */ @java.lang.Override @@ -995,7 +995,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4041 + * google/container/v1/cluster_service.proto;l=4047 * @return The projectId. */ @java.lang.Deprecated @@ -1022,7 +1022,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4041 + * google/container/v1/cluster_service.proto;l=4047 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1049,7 +1049,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4041 + * google/container/v1/cluster_service.proto;l=4047 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1075,7 +1075,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4041 + * google/container/v1/cluster_service.proto;l=4047 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1097,7 +1097,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4041 + * google/container/v1/cluster_service.proto;l=4047 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1127,7 +1127,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4047 + * google/container/v1/cluster_service.proto;l=4053 * @return The zone. */ @java.lang.Deprecated @@ -1155,7 +1155,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4047 + * google/container/v1/cluster_service.proto;l=4053 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1183,7 +1183,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4047 + * google/container/v1/cluster_service.proto;l=4053 * @param value The zone to set. * @return This builder for chaining. */ @@ -1210,7 +1210,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4047 + * google/container/v1/cluster_service.proto;l=4053 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1233,7 +1233,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4047 + * google/container/v1/cluster_service.proto;l=4053 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1261,7 +1261,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4051 + * google/container/v1/cluster_service.proto;l=4057 * @return The clusterId. */ @java.lang.Deprecated @@ -1287,7 +1287,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4051 + * google/container/v1/cluster_service.proto;l=4057 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1313,7 +1313,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4051 + * google/container/v1/cluster_service.proto;l=4057 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1338,7 +1338,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4051 + * google/container/v1/cluster_service.proto;l=4057 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1359,7 +1359,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4051 + * google/container/v1/cluster_service.proto;l=4057 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java index 6f6fdb74f73b..1e4faa5ac067 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLabelsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4041 + * google/container/v1/cluster_service.proto;l=4047 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLabelsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4041 + * google/container/v1/cluster_service.proto;l=4047 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4047 + * google/container/v1/cluster_service.proto;l=4053 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4047 + * google/container/v1/cluster_service.proto;l=4053 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLabelsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4051 + * google/container/v1/cluster_service.proto;l=4057 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLabelsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4051 + * google/container/v1/cluster_service.proto;l=4057 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java index deeddf60e85e..5ce8b13a0526 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4076 + * google/container/v1/cluster_service.proto;l=4082 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4076 + * google/container/v1/cluster_service.proto;l=4082 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4082 + * google/container/v1/cluster_service.proto;l=4088 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4082 + * google/container/v1/cluster_service.proto;l=4088 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4086 + * google/container/v1/cluster_service.proto;l=4092 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4086 + * google/container/v1/cluster_service.proto;l=4092 * @return The bytes for clusterId. */ @java.lang.Override @@ -770,7 +770,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4076 + * google/container/v1/cluster_service.proto;l=4082 * @return The projectId. */ @java.lang.Deprecated @@ -797,7 +797,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4076 + * google/container/v1/cluster_service.proto;l=4082 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -824,7 +824,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4076 + * google/container/v1/cluster_service.proto;l=4082 * @param value The projectId to set. * @return This builder for chaining. */ @@ -850,7 +850,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4076 + * google/container/v1/cluster_service.proto;l=4082 * @return This builder for chaining. */ @java.lang.Deprecated @@ -872,7 +872,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4076 + * google/container/v1/cluster_service.proto;l=4082 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -902,7 +902,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4082 + * google/container/v1/cluster_service.proto;l=4088 * @return The zone. */ @java.lang.Deprecated @@ -930,7 +930,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4082 + * google/container/v1/cluster_service.proto;l=4088 * @return The bytes for zone. */ @java.lang.Deprecated @@ -958,7 +958,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4082 + * google/container/v1/cluster_service.proto;l=4088 * @param value The zone to set. * @return This builder for chaining. */ @@ -985,7 +985,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4082 + * google/container/v1/cluster_service.proto;l=4088 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1008,7 +1008,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4082 + * google/container/v1/cluster_service.proto;l=4088 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1036,7 +1036,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4086 + * google/container/v1/cluster_service.proto;l=4092 * @return The clusterId. */ @java.lang.Deprecated @@ -1062,7 +1062,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4086 + * google/container/v1/cluster_service.proto;l=4092 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1088,7 +1088,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4086 + * google/container/v1/cluster_service.proto;l=4092 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1113,7 +1113,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4086 + * google/container/v1/cluster_service.proto;l=4092 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1134,7 +1134,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4086 + * google/container/v1/cluster_service.proto;l=4092 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java index d88ea17b6f5c..d0b9d94dd895 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLegacyAbacRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4076 + * google/container/v1/cluster_service.proto;l=4082 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLegacyAbacRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4076 + * google/container/v1/cluster_service.proto;l=4082 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4082 + * google/container/v1/cluster_service.proto;l=4088 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4082 + * google/container/v1/cluster_service.proto;l=4088 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLegacyAbacRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4086 + * google/container/v1/cluster_service.proto;l=4092 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLegacyAbacRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4086 + * google/container/v1/cluster_service.proto;l=4092 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java index 2086ea8fe4bc..99dd16201104 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2905 + * google/container/v1/cluster_service.proto;l=2911 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2905 + * google/container/v1/cluster_service.proto;l=2911 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2911 + * google/container/v1/cluster_service.proto;l=2917 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2911 + * google/container/v1/cluster_service.proto;l=2917 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2915 + * google/container/v1/cluster_service.proto;l=2921 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2915 + * google/container/v1/cluster_service.proto;l=2921 * @return The bytes for clusterId. */ @java.lang.Override @@ -855,7 +855,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2905 + * google/container/v1/cluster_service.proto;l=2911 * @return The projectId. */ @java.lang.Deprecated @@ -882,7 +882,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2905 + * google/container/v1/cluster_service.proto;l=2911 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -909,7 +909,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2905 + * google/container/v1/cluster_service.proto;l=2911 * @param value The projectId to set. * @return This builder for chaining. */ @@ -935,7 +935,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2905 + * google/container/v1/cluster_service.proto;l=2911 * @return This builder for chaining. */ @java.lang.Deprecated @@ -957,7 +957,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2905 + * google/container/v1/cluster_service.proto;l=2911 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -987,7 +987,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2911 + * google/container/v1/cluster_service.proto;l=2917 * @return The zone. */ @java.lang.Deprecated @@ -1015,7 +1015,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2911 + * google/container/v1/cluster_service.proto;l=2917 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1043,7 +1043,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2911 + * google/container/v1/cluster_service.proto;l=2917 * @param value The zone to set. * @return This builder for chaining. */ @@ -1070,7 +1070,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2911 + * google/container/v1/cluster_service.proto;l=2917 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1093,7 +1093,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2911 + * google/container/v1/cluster_service.proto;l=2917 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1121,7 +1121,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2915 + * google/container/v1/cluster_service.proto;l=2921 * @return The clusterId. */ @java.lang.Deprecated @@ -1147,7 +1147,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2915 + * google/container/v1/cluster_service.proto;l=2921 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1173,7 +1173,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2915 + * google/container/v1/cluster_service.proto;l=2921 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1198,7 +1198,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2915 + * google/container/v1/cluster_service.proto;l=2921 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1219,7 +1219,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2915 + * google/container/v1/cluster_service.proto;l=2921 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java index fa1086debb7e..80f44caad2a7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLocationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2905 + * google/container/v1/cluster_service.proto;l=2911 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLocationsRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2905 + * google/container/v1/cluster_service.proto;l=2911 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2911 + * google/container/v1/cluster_service.proto;l=2917 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2911 + * google/container/v1/cluster_service.proto;l=2917 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLocationsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2915 + * google/container/v1/cluster_service.proto;l=2921 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLocationsRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2915 + * google/container/v1/cluster_service.proto;l=2921 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java index af5dff330113..6846b2d9cab8 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2809 + * google/container/v1/cluster_service.proto;l=2815 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2809 + * google/container/v1/cluster_service.proto;l=2815 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2815 + * google/container/v1/cluster_service.proto;l=2821 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2815 + * google/container/v1/cluster_service.proto;l=2821 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2819 + * google/container/v1/cluster_service.proto;l=2825 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2819 + * google/container/v1/cluster_service.proto;l=2825 * @return The bytes for clusterId. */ @java.lang.Override @@ -825,7 +825,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2809 + * google/container/v1/cluster_service.proto;l=2815 * @return The projectId. */ @java.lang.Deprecated @@ -852,7 +852,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2809 + * google/container/v1/cluster_service.proto;l=2815 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -879,7 +879,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2809 + * google/container/v1/cluster_service.proto;l=2815 * @param value The projectId to set. * @return This builder for chaining. */ @@ -905,7 +905,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2809 + * google/container/v1/cluster_service.proto;l=2815 * @return This builder for chaining. */ @java.lang.Deprecated @@ -927,7 +927,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2809 + * google/container/v1/cluster_service.proto;l=2815 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -957,7 +957,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2815 + * google/container/v1/cluster_service.proto;l=2821 * @return The zone. */ @java.lang.Deprecated @@ -985,7 +985,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2815 + * google/container/v1/cluster_service.proto;l=2821 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1013,7 +1013,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2815 + * google/container/v1/cluster_service.proto;l=2821 * @param value The zone to set. * @return This builder for chaining. */ @@ -1040,7 +1040,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2815 + * google/container/v1/cluster_service.proto;l=2821 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1063,7 +1063,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2815 + * google/container/v1/cluster_service.proto;l=2821 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1091,7 +1091,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2819 + * google/container/v1/cluster_service.proto;l=2825 * @return The clusterId. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2819 + * google/container/v1/cluster_service.proto;l=2825 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1143,7 +1143,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2819 + * google/container/v1/cluster_service.proto;l=2825 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1168,7 +1168,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2819 + * google/container/v1/cluster_service.proto;l=2825 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1189,7 +1189,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2819 + * google/container/v1/cluster_service.proto;l=2825 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java index 6e1f430644e7..510311416945 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetLoggingServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2809 + * google/container/v1/cluster_service.proto;l=2815 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetLoggingServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2809 + * google/container/v1/cluster_service.proto;l=2815 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2815 + * google/container/v1/cluster_service.proto;l=2821 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2815 + * google/container/v1/cluster_service.proto;l=2821 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetLoggingServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2819 + * google/container/v1/cluster_service.proto;l=2825 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetLoggingServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2819 + * google/container/v1/cluster_service.proto;l=2825 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java index 34c9f834ce95..b24e24a9f4ba 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java @@ -269,7 +269,7 @@ private Action(int value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2988 + * google/container/v1/cluster_service.proto;l=2994 * @return The projectId. */ @java.lang.Override @@ -297,7 +297,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2988 + * google/container/v1/cluster_service.proto;l=2994 * @return The bytes for projectId. */ @java.lang.Override @@ -331,7 +331,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2994 + * google/container/v1/cluster_service.proto;l=3000 * @return The zone. */ @java.lang.Override @@ -360,7 +360,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2994 + * google/container/v1/cluster_service.proto;l=3000 * @return The bytes for zone. */ @java.lang.Override @@ -392,7 +392,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2998 + * google/container/v1/cluster_service.proto;l=3004 * @return The clusterId. */ @java.lang.Override @@ -419,7 +419,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2998 + * google/container/v1/cluster_service.proto;l=3004 * @return The bytes for clusterId. */ @java.lang.Override @@ -1070,7 +1070,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2988 + * google/container/v1/cluster_service.proto;l=2994 * @return The projectId. */ @java.lang.Deprecated @@ -1097,7 +1097,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2988 + * google/container/v1/cluster_service.proto;l=2994 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1124,7 +1124,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2988 + * google/container/v1/cluster_service.proto;l=2994 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1150,7 +1150,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2988 + * google/container/v1/cluster_service.proto;l=2994 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1172,7 +1172,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2988 + * google/container/v1/cluster_service.proto;l=2994 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1202,7 +1202,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2994 + * google/container/v1/cluster_service.proto;l=3000 * @return The zone. */ @java.lang.Deprecated @@ -1230,7 +1230,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2994 + * google/container/v1/cluster_service.proto;l=3000 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1258,7 +1258,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2994 + * google/container/v1/cluster_service.proto;l=3000 * @param value The zone to set. * @return This builder for chaining. */ @@ -1285,7 +1285,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2994 + * google/container/v1/cluster_service.proto;l=3000 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1308,7 +1308,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2994 + * google/container/v1/cluster_service.proto;l=3000 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1336,7 +1336,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2998 + * google/container/v1/cluster_service.proto;l=3004 * @return The clusterId. */ @java.lang.Deprecated @@ -1362,7 +1362,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2998 + * google/container/v1/cluster_service.proto;l=3004 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1388,7 +1388,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2998 + * google/container/v1/cluster_service.proto;l=3004 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1413,7 +1413,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2998 + * google/container/v1/cluster_service.proto;l=3004 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1434,7 +1434,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2998 + * google/container/v1/cluster_service.proto;l=3004 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java index bf1e65ebec8a..dd13423f73a9 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetMasterAuthRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2988 + * google/container/v1/cluster_service.proto;l=2994 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetMasterAuthRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2988 + * google/container/v1/cluster_service.proto;l=2994 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2994 + * google/container/v1/cluster_service.proto;l=3000 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2994 + * google/container/v1/cluster_service.proto;l=3000 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetMasterAuthRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2998 + * google/container/v1/cluster_service.proto;l=3004 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetMasterAuthRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2998 + * google/container/v1/cluster_service.proto;l=3004 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java index b3252f4e9ed0..495ca0b0094b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2844 + * google/container/v1/cluster_service.proto;l=2850 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2844 + * google/container/v1/cluster_service.proto;l=2850 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2850 + * google/container/v1/cluster_service.proto;l=2856 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2850 + * google/container/v1/cluster_service.proto;l=2856 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2854 + * google/container/v1/cluster_service.proto;l=2860 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2854 + * google/container/v1/cluster_service.proto;l=2860 * @return The bytes for clusterId. */ @java.lang.Override @@ -825,7 +825,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2844 + * google/container/v1/cluster_service.proto;l=2850 * @return The projectId. */ @java.lang.Deprecated @@ -852,7 +852,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2844 + * google/container/v1/cluster_service.proto;l=2850 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -879,7 +879,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2844 + * google/container/v1/cluster_service.proto;l=2850 * @param value The projectId to set. * @return This builder for chaining. */ @@ -905,7 +905,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2844 + * google/container/v1/cluster_service.proto;l=2850 * @return This builder for chaining. */ @java.lang.Deprecated @@ -927,7 +927,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2844 + * google/container/v1/cluster_service.proto;l=2850 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -957,7 +957,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2850 + * google/container/v1/cluster_service.proto;l=2856 * @return The zone. */ @java.lang.Deprecated @@ -985,7 +985,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2850 + * google/container/v1/cluster_service.proto;l=2856 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1013,7 +1013,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2850 + * google/container/v1/cluster_service.proto;l=2856 * @param value The zone to set. * @return This builder for chaining. */ @@ -1040,7 +1040,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2850 + * google/container/v1/cluster_service.proto;l=2856 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1063,7 +1063,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2850 + * google/container/v1/cluster_service.proto;l=2856 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1091,7 +1091,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2854 + * google/container/v1/cluster_service.proto;l=2860 * @return The clusterId. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2854 + * google/container/v1/cluster_service.proto;l=2860 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1143,7 +1143,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2854 + * google/container/v1/cluster_service.proto;l=2860 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1168,7 +1168,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2854 + * google/container/v1/cluster_service.proto;l=2860 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1189,7 +1189,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2854 + * google/container/v1/cluster_service.proto;l=2860 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java index ffd75cababa0..dc18bc9832d7 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2844 + * google/container/v1/cluster_service.proto;l=2850 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2844 + * google/container/v1/cluster_service.proto;l=2850 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2850 + * google/container/v1/cluster_service.proto;l=2856 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2850 + * google/container/v1/cluster_service.proto;l=2856 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2854 + * google/container/v1/cluster_service.proto;l=2860 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2854 + * google/container/v1/cluster_service.proto;l=2860 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java index 27f9a2b39832..1bfa077e713c 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4236 + * google/container/v1/cluster_service.proto;l=4242 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4236 + * google/container/v1/cluster_service.proto;l=4242 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4242 + * google/container/v1/cluster_service.proto;l=4248 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4242 + * google/container/v1/cluster_service.proto;l=4248 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4246 + * google/container/v1/cluster_service.proto;l=4252 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4246 + * google/container/v1/cluster_service.proto;l=4252 * @return The bytes for clusterId. */ @java.lang.Override @@ -830,7 +830,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4236 + * google/container/v1/cluster_service.proto;l=4242 * @return The projectId. */ @java.lang.Deprecated @@ -857,7 +857,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4236 + * google/container/v1/cluster_service.proto;l=4242 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4236 + * google/container/v1/cluster_service.proto;l=4242 * @param value The projectId to set. * @return This builder for chaining. */ @@ -910,7 +910,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4236 + * google/container/v1/cluster_service.proto;l=4242 * @return This builder for chaining. */ @java.lang.Deprecated @@ -932,7 +932,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4236 + * google/container/v1/cluster_service.proto;l=4242 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -962,7 +962,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4242 + * google/container/v1/cluster_service.proto;l=4248 * @return The zone. */ @java.lang.Deprecated @@ -990,7 +990,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4242 + * google/container/v1/cluster_service.proto;l=4248 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1018,7 +1018,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4242 + * google/container/v1/cluster_service.proto;l=4248 * @param value The zone to set. * @return This builder for chaining. */ @@ -1045,7 +1045,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4242 + * google/container/v1/cluster_service.proto;l=4248 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1068,7 +1068,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4242 + * google/container/v1/cluster_service.proto;l=4248 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1096,7 +1096,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4246 + * google/container/v1/cluster_service.proto;l=4252 * @return The clusterId. */ @java.lang.Deprecated @@ -1122,7 +1122,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4246 + * google/container/v1/cluster_service.proto;l=4252 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1148,7 +1148,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4246 + * google/container/v1/cluster_service.proto;l=4252 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1173,7 +1173,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4246 + * google/container/v1/cluster_service.proto;l=4252 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1194,7 +1194,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4246 + * google/container/v1/cluster_service.proto;l=4252 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java index 4989ced7a173..8154b80291fd 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4236 + * google/container/v1/cluster_service.proto;l=4242 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4236 + * google/container/v1/cluster_service.proto;l=4242 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4242 + * google/container/v1/cluster_service.proto;l=4248 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4242 + * google/container/v1/cluster_service.proto;l=4248 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4246 + * google/container/v1/cluster_service.proto;l=4252 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4246 + * google/container/v1/cluster_service.proto;l=4252 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java index c658688f62ff..650ea61928bc 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2779 + * google/container/v1/cluster_service.proto;l=2785 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2779 + * google/container/v1/cluster_service.proto;l=2785 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=2791 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=2791 * @return The bytes for zone. */ @java.lang.Override @@ -207,7 +207,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2789 + * google/container/v1/cluster_service.proto;l=2795 * @return The clusterId. */ @java.lang.Override @@ -234,7 +234,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2789 + * google/container/v1/cluster_service.proto;l=2795 * @return The bytes for clusterId. */ @java.lang.Override @@ -266,7 +266,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2793 + * google/container/v1/cluster_service.proto;l=2799 * @return The nodePoolId. */ @java.lang.Override @@ -293,7 +293,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2793 + * google/container/v1/cluster_service.proto;l=2799 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -917,7 +917,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2779 + * google/container/v1/cluster_service.proto;l=2785 * @return The projectId. */ @java.lang.Deprecated @@ -944,7 +944,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2779 + * google/container/v1/cluster_service.proto;l=2785 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -971,7 +971,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2779 + * google/container/v1/cluster_service.proto;l=2785 * @param value The projectId to set. * @return This builder for chaining. */ @@ -997,7 +997,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2779 + * google/container/v1/cluster_service.proto;l=2785 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1019,7 +1019,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2779 + * google/container/v1/cluster_service.proto;l=2785 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1049,7 +1049,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=2791 * @return The zone. */ @java.lang.Deprecated @@ -1077,7 +1077,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=2791 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1105,7 +1105,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=2791 * @param value The zone to set. * @return This builder for chaining. */ @@ -1132,7 +1132,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=2791 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1155,7 +1155,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=2791 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1183,7 +1183,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2789 + * google/container/v1/cluster_service.proto;l=2795 * @return The clusterId. */ @java.lang.Deprecated @@ -1209,7 +1209,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2789 + * google/container/v1/cluster_service.proto;l=2795 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1235,7 +1235,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2789 + * google/container/v1/cluster_service.proto;l=2795 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1260,7 +1260,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2789 + * google/container/v1/cluster_service.proto;l=2795 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1281,7 +1281,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2789 + * google/container/v1/cluster_service.proto;l=2795 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1309,7 +1309,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2793 + * google/container/v1/cluster_service.proto;l=2799 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1335,7 +1335,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2793 + * google/container/v1/cluster_service.proto;l=2799 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1361,7 +1361,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2793 + * google/container/v1/cluster_service.proto;l=2799 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1386,7 +1386,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2793 + * google/container/v1/cluster_service.proto;l=2799 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1407,7 +1407,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2793 + * google/container/v1/cluster_service.proto;l=2799 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java index 17b8dffb4385..5f818559dbbc 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2779 + * google/container/v1/cluster_service.proto;l=2785 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2779 + * google/container/v1/cluster_service.proto;l=2785 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=2791 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2785 + * google/container/v1/cluster_service.proto;l=2791 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2789 + * google/container/v1/cluster_service.proto;l=2795 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2789 + * google/container/v1/cluster_service.proto;l=2795 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2793 + * google/container/v1/cluster_service.proto;l=2799 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2793 + * google/container/v1/cluster_service.proto;l=2799 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java index a548c967b458..7f0d60060025 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3774 + * google/container/v1/cluster_service.proto;l=3780 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3774 + * google/container/v1/cluster_service.proto;l=3780 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3780 + * google/container/v1/cluster_service.proto;l=3786 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3780 + * google/container/v1/cluster_service.proto;l=3786 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3784 + * google/container/v1/cluster_service.proto;l=3790 * @return The clusterId. */ @java.lang.Override @@ -235,7 +235,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3784 + * google/container/v1/cluster_service.proto;l=3790 * @return The bytes for clusterId. */ @java.lang.Override @@ -267,7 +267,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3788 + * google/container/v1/cluster_service.proto;l=3794 * @return The nodePoolId. */ @java.lang.Override @@ -294,7 +294,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3788 + * google/container/v1/cluster_service.proto;l=3794 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -917,7 +917,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3774 + * google/container/v1/cluster_service.proto;l=3780 * @return The projectId. */ @java.lang.Deprecated @@ -944,7 +944,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3774 + * google/container/v1/cluster_service.proto;l=3780 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -971,7 +971,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3774 + * google/container/v1/cluster_service.proto;l=3780 * @param value The projectId to set. * @return This builder for chaining. */ @@ -997,7 +997,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3774 + * google/container/v1/cluster_service.proto;l=3780 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1019,7 +1019,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3774 + * google/container/v1/cluster_service.proto;l=3780 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1049,7 +1049,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3780 + * google/container/v1/cluster_service.proto;l=3786 * @return The zone. */ @java.lang.Deprecated @@ -1077,7 +1077,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3780 + * google/container/v1/cluster_service.proto;l=3786 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1105,7 +1105,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3780 + * google/container/v1/cluster_service.proto;l=3786 * @param value The zone to set. * @return This builder for chaining. */ @@ -1132,7 +1132,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3780 + * google/container/v1/cluster_service.proto;l=3786 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1155,7 +1155,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3780 + * google/container/v1/cluster_service.proto;l=3786 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1183,7 +1183,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3784 + * google/container/v1/cluster_service.proto;l=3790 * @return The clusterId. */ @java.lang.Deprecated @@ -1209,7 +1209,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3784 + * google/container/v1/cluster_service.proto;l=3790 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1235,7 +1235,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3784 + * google/container/v1/cluster_service.proto;l=3790 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1260,7 +1260,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3784 + * google/container/v1/cluster_service.proto;l=3790 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1281,7 +1281,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3784 + * google/container/v1/cluster_service.proto;l=3790 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1309,7 +1309,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3788 + * google/container/v1/cluster_service.proto;l=3794 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1335,7 +1335,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3788 + * google/container/v1/cluster_service.proto;l=3794 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1361,7 +1361,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3788 + * google/container/v1/cluster_service.proto;l=3794 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1386,7 +1386,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3788 + * google/container/v1/cluster_service.proto;l=3794 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1407,7 +1407,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3788 + * google/container/v1/cluster_service.proto;l=3794 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java index d46e50fcb0c4..3d8a2c15f249 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3774 + * google/container/v1/cluster_service.proto;l=3780 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3774 + * google/container/v1/cluster_service.proto;l=3780 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3780 + * google/container/v1/cluster_service.proto;l=3786 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3780 + * google/container/v1/cluster_service.proto;l=3786 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3784 + * google/container/v1/cluster_service.proto;l=3790 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3784 + * google/container/v1/cluster_service.proto;l=3790 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3788 + * google/container/v1/cluster_service.proto;l=3794 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolManagementRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3788 + * google/container/v1/cluster_service.proto;l=3794 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java index 070fa7f9abfe..8b9388b5eabc 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3804 + * google/container/v1/cluster_service.proto;l=3810 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3804 + * google/container/v1/cluster_service.proto;l=3810 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3810 + * google/container/v1/cluster_service.proto;l=3816 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3810 + * google/container/v1/cluster_service.proto;l=3816 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3814 + * google/container/v1/cluster_service.proto;l=3820 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3814 + * google/container/v1/cluster_service.proto;l=3820 * @return The bytes for clusterId. */ @java.lang.Override @@ -265,7 +265,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3818 + * google/container/v1/cluster_service.proto;l=3824 * @return The nodePoolId. */ @java.lang.Override @@ -292,7 +292,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3818 + * google/container/v1/cluster_service.proto;l=3824 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -854,7 +854,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3804 + * google/container/v1/cluster_service.proto;l=3810 * @return The projectId. */ @java.lang.Deprecated @@ -881,7 +881,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3804 + * google/container/v1/cluster_service.proto;l=3810 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -908,7 +908,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3804 + * google/container/v1/cluster_service.proto;l=3810 * @param value The projectId to set. * @return This builder for chaining. */ @@ -934,7 +934,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3804 + * google/container/v1/cluster_service.proto;l=3810 * @return This builder for chaining. */ @java.lang.Deprecated @@ -956,7 +956,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3804 + * google/container/v1/cluster_service.proto;l=3810 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -986,7 +986,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3810 + * google/container/v1/cluster_service.proto;l=3816 * @return The zone. */ @java.lang.Deprecated @@ -1014,7 +1014,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3810 + * google/container/v1/cluster_service.proto;l=3816 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1042,7 +1042,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3810 + * google/container/v1/cluster_service.proto;l=3816 * @param value The zone to set. * @return This builder for chaining. */ @@ -1069,7 +1069,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3810 + * google/container/v1/cluster_service.proto;l=3816 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1092,7 +1092,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3810 + * google/container/v1/cluster_service.proto;l=3816 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1120,7 +1120,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3814 + * google/container/v1/cluster_service.proto;l=3820 * @return The clusterId. */ @java.lang.Deprecated @@ -1146,7 +1146,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3814 + * google/container/v1/cluster_service.proto;l=3820 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1172,7 +1172,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3814 + * google/container/v1/cluster_service.proto;l=3820 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1197,7 +1197,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3814 + * google/container/v1/cluster_service.proto;l=3820 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1218,7 +1218,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3814 + * google/container/v1/cluster_service.proto;l=3820 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1246,7 +1246,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3818 + * google/container/v1/cluster_service.proto;l=3824 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1272,7 +1272,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3818 + * google/container/v1/cluster_service.proto;l=3824 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1298,7 +1298,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3818 + * google/container/v1/cluster_service.proto;l=3824 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1323,7 +1323,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3818 + * google/container/v1/cluster_service.proto;l=3824 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1344,7 +1344,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3818 + * google/container/v1/cluster_service.proto;l=3824 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java index 6738b376e4b4..2113a38bacbb 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3804 + * google/container/v1/cluster_service.proto;l=3810 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3804 + * google/container/v1/cluster_service.proto;l=3810 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3810 + * google/container/v1/cluster_service.proto;l=3816 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=3810 + * google/container/v1/cluster_service.proto;l=3816 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3814 + * google/container/v1/cluster_service.proto;l=3820 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3814 + * google/container/v1/cluster_service.proto;l=3820 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3818 + * google/container/v1/cluster_service.proto;l=3824 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=3818 + * google/container/v1/cluster_service.proto;l=3824 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java index 98ea7e00c79a..310763002248 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4102 + * google/container/v1/cluster_service.proto;l=4108 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4102 + * google/container/v1/cluster_service.proto;l=4108 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4108 + * google/container/v1/cluster_service.proto;l=4114 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4108 + * google/container/v1/cluster_service.proto;l=4114 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4112 + * google/container/v1/cluster_service.proto;l=4118 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4112 + * google/container/v1/cluster_service.proto;l=4118 * @return The bytes for clusterId. */ @java.lang.Override @@ -770,7 +770,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4102 + * google/container/v1/cluster_service.proto;l=4108 * @return The projectId. */ @java.lang.Deprecated @@ -797,7 +797,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4102 + * google/container/v1/cluster_service.proto;l=4108 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -824,7 +824,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4102 + * google/container/v1/cluster_service.proto;l=4108 * @param value The projectId to set. * @return This builder for chaining. */ @@ -850,7 +850,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4102 + * google/container/v1/cluster_service.proto;l=4108 * @return This builder for chaining. */ @java.lang.Deprecated @@ -872,7 +872,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4102 + * google/container/v1/cluster_service.proto;l=4108 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -902,7 +902,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4108 + * google/container/v1/cluster_service.proto;l=4114 * @return The zone. */ @java.lang.Deprecated @@ -930,7 +930,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4108 + * google/container/v1/cluster_service.proto;l=4114 * @return The bytes for zone. */ @java.lang.Deprecated @@ -958,7 +958,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4108 + * google/container/v1/cluster_service.proto;l=4114 * @param value The zone to set. * @return This builder for chaining. */ @@ -985,7 +985,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4108 + * google/container/v1/cluster_service.proto;l=4114 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1008,7 +1008,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4108 + * google/container/v1/cluster_service.proto;l=4114 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1036,7 +1036,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4112 + * google/container/v1/cluster_service.proto;l=4118 * @return The clusterId. */ @java.lang.Deprecated @@ -1062,7 +1062,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4112 + * google/container/v1/cluster_service.proto;l=4118 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1088,7 +1088,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4112 + * google/container/v1/cluster_service.proto;l=4118 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1113,7 +1113,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4112 + * google/container/v1/cluster_service.proto;l=4118 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1134,7 +1134,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4112 + * google/container/v1/cluster_service.proto;l=4118 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java index f692a89ee950..56576e5dd52e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface StartIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4102 + * google/container/v1/cluster_service.proto;l=4108 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface StartIPRotationRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4102 + * google/container/v1/cluster_service.proto;l=4108 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4108 + * google/container/v1/cluster_service.proto;l=4114 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=4108 + * google/container/v1/cluster_service.proto;l=4114 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface StartIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4112 + * google/container/v1/cluster_service.proto;l=4118 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface StartIPRotationRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=4112 + * google/container/v1/cluster_service.proto;l=4118 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java index adcd27dcf492..cb62f5e84c17 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java @@ -330,7 +330,7 @@ private Code(int value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4313 + * google/container/v1/cluster_service.proto;l=4319 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -349,7 +349,7 @@ public int getCodeValue() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4313 + * google/container/v1/cluster_service.proto;l=4319 * @return The code. */ @java.lang.Override @@ -842,7 +842,7 @@ public Builder mergeFrom( * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4313 + * google/container/v1/cluster_service.proto;l=4319 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -861,7 +861,7 @@ public int getCodeValue() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4313 + * google/container/v1/cluster_service.proto;l=4319 * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -883,7 +883,7 @@ public Builder setCodeValue(int value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4313 + * google/container/v1/cluster_service.proto;l=4319 * @return The code. */ @java.lang.Override @@ -904,7 +904,7 @@ public com.google.container.v1.StatusCondition.Code getCode() { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4313 + * google/container/v1/cluster_service.proto;l=4319 * @param value The code to set. * @return This builder for chaining. */ @@ -929,7 +929,7 @@ public Builder setCode(com.google.container.v1.StatusCondition.Code value) { * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4313 + * google/container/v1/cluster_service.proto;l=4319 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java index 1bad635c1f00..bf9f5e05b37e 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java @@ -35,7 +35,7 @@ public interface StatusConditionOrBuilder * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4313 + * google/container/v1/cluster_service.proto;l=4319 * @return The enum numeric value on the wire for code. */ @java.lang.Deprecated @@ -51,7 +51,7 @@ public interface StatusConditionOrBuilder * .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1.StatusCondition.code is deprecated. See - * google/container/v1/cluster_service.proto;l=4313 + * google/container/v1/cluster_service.proto;l=4319 * @return The code. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java index 95a8de7cba6b..5685363ab0e1 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2618 + * google/container/v1/cluster_service.proto;l=2624 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2618 + * google/container/v1/cluster_service.proto;l=2624 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2624 + * google/container/v1/cluster_service.proto;l=2630 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2624 + * google/container/v1/cluster_service.proto;l=2630 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2628 + * google/container/v1/cluster_service.proto;l=2634 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2628 + * google/container/v1/cluster_service.proto;l=2634 * @return The bytes for clusterId. */ @java.lang.Override @@ -821,7 +821,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2618 + * google/container/v1/cluster_service.proto;l=2624 * @return The projectId. */ @java.lang.Deprecated @@ -848,7 +848,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2618 + * google/container/v1/cluster_service.proto;l=2624 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -875,7 +875,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2618 + * google/container/v1/cluster_service.proto;l=2624 * @param value The projectId to set. * @return This builder for chaining. */ @@ -901,7 +901,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2618 + * google/container/v1/cluster_service.proto;l=2624 * @return This builder for chaining. */ @java.lang.Deprecated @@ -923,7 +923,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2618 + * google/container/v1/cluster_service.proto;l=2624 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2624 + * google/container/v1/cluster_service.proto;l=2630 * @return The zone. */ @java.lang.Deprecated @@ -981,7 +981,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2624 + * google/container/v1/cluster_service.proto;l=2630 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1009,7 +1009,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2624 + * google/container/v1/cluster_service.proto;l=2630 * @param value The zone to set. * @return This builder for chaining. */ @@ -1036,7 +1036,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2624 + * google/container/v1/cluster_service.proto;l=2630 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1059,7 +1059,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2624 + * google/container/v1/cluster_service.proto;l=2630 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1087,7 +1087,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2628 + * google/container/v1/cluster_service.proto;l=2634 * @return The clusterId. */ @java.lang.Deprecated @@ -1113,7 +1113,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2628 + * google/container/v1/cluster_service.proto;l=2634 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1139,7 +1139,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2628 + * google/container/v1/cluster_service.proto;l=2634 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1164,7 +1164,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2628 + * google/container/v1/cluster_service.proto;l=2634 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1185,7 +1185,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2628 + * google/container/v1/cluster_service.proto;l=2634 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java index 4f40e94cd343..ed2606eaaa74 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2618 + * google/container/v1/cluster_service.proto;l=2624 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface UpdateClusterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2618 + * google/container/v1/cluster_service.proto;l=2624 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2624 + * google/container/v1/cluster_service.proto;l=2630 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2624 + * google/container/v1/cluster_service.proto;l=2630 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface UpdateClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2628 + * google/container/v1/cluster_service.proto;l=2634 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface UpdateClusterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2628 + * google/container/v1/cluster_service.proto;l=2634 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java index 9b53790f0024..f5d01e318b7b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2942 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2942 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2948 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2948 * @return The bytes for zone. */ @java.lang.Override @@ -206,7 +206,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2952 * @return The clusterId. */ @java.lang.Override @@ -233,7 +233,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2952 * @return The bytes for clusterId. */ @java.lang.Override @@ -822,7 +822,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2942 * @return The projectId. */ @java.lang.Deprecated @@ -849,7 +849,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2942 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -876,7 +876,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2942 * @param value The projectId to set. * @return This builder for chaining. */ @@ -902,7 +902,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2942 * @return This builder for chaining. */ @java.lang.Deprecated @@ -924,7 +924,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2942 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -954,7 +954,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2948 * @return The zone. */ @java.lang.Deprecated @@ -982,7 +982,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2948 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1010,7 +1010,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2948 * @param value The zone to set. * @return This builder for chaining. */ @@ -1037,7 +1037,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2948 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1060,7 +1060,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2948 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1088,7 +1088,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2952 * @return The clusterId. */ @java.lang.Deprecated @@ -1114,7 +1114,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2952 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1140,7 +1140,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2952 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1165,7 +1165,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2952 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1186,7 +1186,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2952 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java index 1d0e96b1b48a..61513334d40d 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateMasterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2942 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface UpdateMasterRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2936 + * google/container/v1/cluster_service.proto;l=2942 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2948 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2942 + * google/container/v1/cluster_service.proto;l=2948 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface UpdateMasterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2952 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface UpdateMasterRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2946 + * google/container/v1/cluster_service.proto;l=2952 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java index 382487e88e9d..a9772c57847a 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java @@ -90,7 +90,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 + * google/container/v1/cluster_service.proto;l=2649 * @return The projectId. */ @java.lang.Override @@ -118,7 +118,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 + * google/container/v1/cluster_service.proto;l=2649 * @return The bytes for projectId. */ @java.lang.Override @@ -152,7 +152,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2649 + * google/container/v1/cluster_service.proto;l=2655 * @return The zone. */ @java.lang.Override @@ -181,7 +181,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2649 + * google/container/v1/cluster_service.proto;l=2655 * @return The bytes for zone. */ @java.lang.Override @@ -213,7 +213,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2653 + * google/container/v1/cluster_service.proto;l=2659 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2653 + * google/container/v1/cluster_service.proto;l=2659 * @return The bytes for clusterId. */ @java.lang.Override @@ -272,7 +272,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2657 + * google/container/v1/cluster_service.proto;l=2663 * @return The nodePoolId. */ @java.lang.Override @@ -299,7 +299,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2657 + * google/container/v1/cluster_service.proto;l=2663 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -2865,7 +2865,7 @@ public Builder mergeFrom( * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 + * google/container/v1/cluster_service.proto;l=2649 * @return The projectId. */ @java.lang.Deprecated @@ -2892,7 +2892,7 @@ public java.lang.String getProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 + * google/container/v1/cluster_service.proto;l=2649 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -2919,7 +2919,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 + * google/container/v1/cluster_service.proto;l=2649 * @param value The projectId to set. * @return This builder for chaining. */ @@ -2945,7 +2945,7 @@ public Builder setProjectId(java.lang.String value) { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 + * google/container/v1/cluster_service.proto;l=2649 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2967,7 +2967,7 @@ public Builder clearProjectId() { * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 + * google/container/v1/cluster_service.proto;l=2649 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -2997,7 +2997,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2649 + * google/container/v1/cluster_service.proto;l=2655 * @return The zone. */ @java.lang.Deprecated @@ -3025,7 +3025,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2649 + * google/container/v1/cluster_service.proto;l=2655 * @return The bytes for zone. */ @java.lang.Deprecated @@ -3053,7 +3053,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2649 + * google/container/v1/cluster_service.proto;l=2655 * @param value The zone to set. * @return This builder for chaining. */ @@ -3080,7 +3080,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2649 + * google/container/v1/cluster_service.proto;l=2655 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3103,7 +3103,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2649 + * google/container/v1/cluster_service.proto;l=2655 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -3131,7 +3131,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2653 + * google/container/v1/cluster_service.proto;l=2659 * @return The clusterId. */ @java.lang.Deprecated @@ -3157,7 +3157,7 @@ public java.lang.String getClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2653 + * google/container/v1/cluster_service.proto;l=2659 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -3183,7 +3183,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2653 + * google/container/v1/cluster_service.proto;l=2659 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -3208,7 +3208,7 @@ public Builder setClusterId(java.lang.String value) { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2653 + * google/container/v1/cluster_service.proto;l=2659 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3229,7 +3229,7 @@ public Builder clearClusterId() { * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2653 + * google/container/v1/cluster_service.proto;l=2659 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -3257,7 +3257,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2657 + * google/container/v1/cluster_service.proto;l=2663 * @return The nodePoolId. */ @java.lang.Deprecated @@ -3283,7 +3283,7 @@ public java.lang.String getNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2657 + * google/container/v1/cluster_service.proto;l=2663 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -3309,7 +3309,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2657 + * google/container/v1/cluster_service.proto;l=2663 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -3334,7 +3334,7 @@ public Builder setNodePoolId(java.lang.String value) { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2657 + * google/container/v1/cluster_service.proto;l=2663 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3355,7 +3355,7 @@ public Builder clearNodePoolId() { * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2657 + * google/container/v1/cluster_service.proto;l=2663 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java index dbb215661f70..7a41d8483822 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java @@ -36,7 +36,7 @@ public interface UpdateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 + * google/container/v1/cluster_service.proto;l=2649 * @return The projectId. */ @java.lang.Deprecated @@ -53,7 +53,7 @@ public interface UpdateNodePoolRequestOrBuilder * string project_id = 1 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2643 + * google/container/v1/cluster_service.proto;l=2649 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -72,7 +72,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2649 + * google/container/v1/cluster_service.proto;l=2655 * @return The zone. */ @java.lang.Deprecated @@ -90,7 +90,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1/cluster_service.proto;l=2649 + * google/container/v1/cluster_service.proto;l=2655 * @return The bytes for zone. */ @java.lang.Deprecated @@ -107,7 +107,7 @@ public interface UpdateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2653 + * google/container/v1/cluster_service.proto;l=2659 * @return The clusterId. */ @java.lang.Deprecated @@ -123,7 +123,7 @@ public interface UpdateNodePoolRequestOrBuilder * string cluster_id = 3 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2653 + * google/container/v1/cluster_service.proto;l=2659 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -140,7 +140,7 @@ public interface UpdateNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2657 + * google/container/v1/cluster_service.proto;l=2663 * @return The nodePoolId. */ @java.lang.Deprecated @@ -156,7 +156,7 @@ public interface UpdateNodePoolRequestOrBuilder * string node_pool_id = 4 [deprecated = true]; * * @deprecated google.container.v1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1/cluster_service.proto;l=2657 + * google/container/v1/cluster_service.proto;l=2663 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto b/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto index 5459cc51aa46..bc0c8c582f7b 100644 --- a/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto +++ b/java-container/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto @@ -836,6 +836,9 @@ message NodeConfig { // Optional. Reserved for future use. bool enable_confidential_storage = 46 [(google.api.field_behavior) = OPTIONAL]; + + // List of secondary boot disks attached to the nodes. + repeated SecondaryBootDisk secondary_boot_disks = 48; } // Specifies options for controlling advanced machine features. @@ -2286,6 +2289,9 @@ message ClusterUpdate { // Specify the details of in-transit encryption. optional InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + + // Enable/Disable Cilium Clusterwide Network Policy for the cluster. + optional bool desired_enable_cilium_clusterwide_network_policy = 138; } // AdditionalPodRangesConfig is the configuration for additional pod secondary @@ -4393,6 +4399,9 @@ message NetworkConfig { // Specify the details of in-transit encryption. optional InTransitEncryptionConfig in_transit_encryption_config = 20; + + // Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. + optional bool enable_cilium_clusterwide_network_policy = 21; } // GatewayAPIConfig contains the desired config of Gateway API on this cluster. @@ -5350,6 +5359,27 @@ message EnterpriseConfig { ClusterTier cluster_tier = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// SecondaryBootDisk represents a persistent disk attached to a node +// with special configurations based on its mode. +message SecondaryBootDisk { + // Mode specifies how the secondary boot disk will be used. + // This triggers mode-specified logic in the control plane. + enum Mode { + // MODE_UNSPECIFIED is when mode is not set. + MODE_UNSPECIFIED = 0; + + // CONTAINER_IMAGE_CACHE is for using the secondary boot disk as + // a container image cache. + CONTAINER_IMAGE_CACHE = 1; + } + + // Disk mode (container image cache, etc.) + Mode mode = 1; + + // Fully-qualified resource ID for an existing disk image. + string disk_image = 2; +} + // Options for in-transit encryption. enum InTransitEncryptionConfig { // Unspecified, will be inferred as default - diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java index 9574b2c98cb6..efe29311f5a6 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfig.java @@ -203,7 +203,7 @@ public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4652 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4661 * @return The maxTimeSharedClientsPerGpu. */ @java.lang.Override @@ -1105,7 +1105,7 @@ public Builder setGpuPartitionSizeBytes(com.google.protobuf.ByteString value) { * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4652 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4661 * @return The maxTimeSharedClientsPerGpu. */ @java.lang.Override @@ -1123,7 +1123,7 @@ public long getMaxTimeSharedClientsPerGpu() { * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4652 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4661 * @param value The maxTimeSharedClientsPerGpu to set. * @return This builder for chaining. */ @@ -1145,7 +1145,7 @@ public Builder setMaxTimeSharedClientsPerGpu(long value) { * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4652 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4661 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java index 5f2c39cf5489..037b2b5526ea 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AcceleratorConfigOrBuilder.java @@ -103,7 +103,7 @@ public interface AcceleratorConfigOrBuilder * int64 max_time_shared_clients_per_gpu = 4 [deprecated = true]; * * @deprecated google.container.v1beta1.AcceleratorConfig.max_time_shared_clients_per_gpu is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4652 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4661 * @return The maxTimeSharedClientsPerGpu. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java index 8f7a09ca1066..50eac2a46c13 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaults.java @@ -371,7 +371,7 @@ public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuild * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4424 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4433 * @return The minCpuPlatform. */ @java.lang.Override @@ -407,7 +407,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4424 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4433 * @return The bytes for minCpuPlatform. */ @java.lang.Override @@ -2169,7 +2169,7 @@ public com.google.container.v1beta1.NodeManagementOrBuilder getManagementOrBuild * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4424 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4433 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -2204,7 +2204,7 @@ public java.lang.String getMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4424 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4433 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated @@ -2239,7 +2239,7 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4424 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4433 * @param value The minCpuPlatform to set. * @return This builder for chaining. */ @@ -2273,7 +2273,7 @@ public Builder setMinCpuPlatform(java.lang.String value) { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4424 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4433 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2303,7 +2303,7 @@ public Builder clearMinCpuPlatform() { * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4424 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4433 * @param value The bytes for minCpuPlatform to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java index ae9880dd4b3a..82634b0dc72b 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -250,7 +250,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4424 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4433 * @return The minCpuPlatform. */ @java.lang.Deprecated @@ -275,7 +275,7 @@ public interface AutoprovisioningNodePoolDefaultsOrBuilder * string min_cpu_platform = 5 [deprecated = true]; * * @deprecated google.container.v1beta1.AutoprovisioningNodePoolDefaults.min_cpu_platform is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4424 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4433 * @return The bytes for minCpuPlatform. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java index 757a349b8766..6b3db317c30a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3514 + * google/container/v1beta1/cluster_service.proto;l=3523 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3514 + * google/container/v1beta1/cluster_service.proto;l=3523 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 + * google/container/v1beta1/cluster_service.proto;l=3530 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 + * google/container/v1beta1/cluster_service.proto;l=3530 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3525 + * google/container/v1beta1/cluster_service.proto;l=3534 * @return The operationId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getOperationId() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3525 + * google/container/v1beta1/cluster_service.proto;l=3534 * @return The bytes for operationId. */ @java.lang.Override @@ -734,7 +734,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3514 + * google/container/v1beta1/cluster_service.proto;l=3523 * @return The projectId. */ @java.lang.Deprecated @@ -762,7 +762,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3514 + * google/container/v1beta1/cluster_service.proto;l=3523 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -790,7 +790,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3514 + * google/container/v1beta1/cluster_service.proto;l=3523 * @param value The projectId to set. * @return This builder for chaining. */ @@ -817,7 +817,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3514 + * google/container/v1beta1/cluster_service.proto;l=3523 * @return This builder for chaining. */ @java.lang.Deprecated @@ -840,7 +840,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3514 + * google/container/v1beta1/cluster_service.proto;l=3523 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -870,7 +870,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 + * google/container/v1beta1/cluster_service.proto;l=3530 * @return The zone. */ @java.lang.Deprecated @@ -898,7 +898,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 + * google/container/v1beta1/cluster_service.proto;l=3530 * @return The bytes for zone. */ @java.lang.Deprecated @@ -926,7 +926,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 + * google/container/v1beta1/cluster_service.proto;l=3530 * @param value The zone to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 + * google/container/v1beta1/cluster_service.proto;l=3530 * @return This builder for chaining. */ @java.lang.Deprecated @@ -976,7 +976,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 + * google/container/v1beta1/cluster_service.proto;l=3530 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1005,7 +1005,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3525 + * google/container/v1beta1/cluster_service.proto;l=3534 * @return The operationId. */ @java.lang.Deprecated @@ -1032,7 +1032,7 @@ public java.lang.String getOperationId() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3525 + * google/container/v1beta1/cluster_service.proto;l=3534 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1059,7 +1059,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3525 + * google/container/v1beta1/cluster_service.proto;l=3534 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1085,7 +1085,7 @@ public Builder setOperationId(java.lang.String value) { * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3525 + * google/container/v1beta1/cluster_service.proto;l=3534 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1107,7 +1107,7 @@ public Builder clearOperationId() { * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3525 + * google/container/v1beta1/cluster_service.proto;l=3534 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java index 98e1b237814e..a90e41e8cd99 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CancelOperationRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface CancelOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3514 + * google/container/v1beta1/cluster_service.proto;l=3523 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface CancelOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.CancelOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3514 + * google/container/v1beta1/cluster_service.proto;l=3523 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 + * google/container/v1beta1/cluster_service.proto;l=3530 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CancelOperationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CancelOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3521 + * google/container/v1beta1/cluster_service.proto;l=3530 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface CancelOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3525 + * google/container/v1beta1/cluster_service.proto;l=3534 * @return The operationId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface CancelOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.CancelOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3525 + * google/container/v1beta1/cluster_service.proto;l=3534 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java index 3ad0fcdeb0aa..c699ba3a2578 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Cluster.java @@ -4505,6 +4505,57 @@ public com.google.container.v1beta1.EnterpriseConfigOrBuilder getEnterpriseConfi : enterpriseConfig_; } + public static final int SECRET_MANAGER_CONFIG_FIELD_NUMBER = 150; + private com.google.container.v1beta1.SecretManagerConfig secretManagerConfig_; + /** + * + * + *
                              +   * Secret CSI driver configuration.
                              +   * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + * + * @return Whether the secretManagerConfig field is set. + */ + @java.lang.Override + public boolean hasSecretManagerConfig() { + return ((bitField1_ & 0x00000200) != 0); + } + /** + * + * + *
                              +   * Secret CSI driver configuration.
                              +   * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + * + * @return The secretManagerConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.SecretManagerConfig getSecretManagerConfig() { + return secretManagerConfig_ == null + ? com.google.container.v1beta1.SecretManagerConfig.getDefaultInstance() + : secretManagerConfig_; + } + /** + * + * + *
                              +   * Secret CSI driver configuration.
                              +   * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + */ + @java.lang.Override + public com.google.container.v1beta1.SecretManagerConfigOrBuilder + getSecretManagerConfigOrBuilder() { + return secretManagerConfig_ == null + ? com.google.container.v1beta1.SecretManagerConfig.getDefaultInstance() + : secretManagerConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4746,6 +4797,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField1_ & 0x00000100) != 0)) { output.writeMessage(149, getEnterpriseConfig()); } + if (((bitField1_ & 0x00000200) != 0)) { + output.writeMessage(150, getSecretManagerConfig()); + } getUnknownFields().writeTo(output); } @@ -5019,6 +5073,10 @@ public int getSerializedSize() { if (((bitField1_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(149, getEnterpriseConfig()); } + if (((bitField1_ & 0x00000200) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(150, getSecretManagerConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5237,6 +5295,10 @@ public boolean equals(final java.lang.Object obj) { if (hasEnterpriseConfig()) { if (!getEnterpriseConfig().equals(other.getEnterpriseConfig())) return false; } + if (hasSecretManagerConfig() != other.hasSecretManagerConfig()) return false; + if (hasSecretManagerConfig()) { + if (!getSecretManagerConfig().equals(other.getSecretManagerConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5492,6 +5554,10 @@ public int hashCode() { hash = (37 * hash) + ENTERPRISE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getEnterpriseConfig().hashCode(); } + if (hasSecretManagerConfig()) { + hash = (37 * hash) + SECRET_MANAGER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSecretManagerConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5696,6 +5762,7 @@ private void maybeForceBuilderInitialization() { getFleetFieldBuilder(); getSecurityPostureConfigFieldBuilder(); getEnterpriseConfigFieldBuilder(); + getSecretManagerConfigFieldBuilder(); } } @@ -5957,6 +6024,11 @@ public Builder clear() { enterpriseConfigBuilder_.dispose(); enterpriseConfigBuilder_ = null; } + secretManagerConfig_ = null; + if (secretManagerConfigBuilder_ != null) { + secretManagerConfigBuilder_.dispose(); + secretManagerConfigBuilder_ = null; + } return this; } @@ -6376,6 +6448,13 @@ private void buildPartial2(com.google.container.v1beta1.Cluster result) { enterpriseConfigBuilder_ == null ? enterpriseConfig_ : enterpriseConfigBuilder_.build(); to_bitField1_ |= 0x00000100; } + if (((from_bitField2_ & 0x00001000) != 0)) { + result.secretManagerConfig_ = + secretManagerConfigBuilder_ == null + ? secretManagerConfig_ + : secretManagerConfigBuilder_.build(); + to_bitField1_ |= 0x00000200; + } result.bitField0_ |= to_bitField0_; result.bitField1_ |= to_bitField1_; } @@ -6760,6 +6839,9 @@ public Builder mergeFrom(com.google.container.v1beta1.Cluster other) { if (other.hasEnterpriseConfig()) { mergeEnterpriseConfig(other.getEnterpriseConfig()); } + if (other.hasSecretManagerConfig()) { + mergeSecretManagerConfig(other.getSecretManagerConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -7291,6 +7373,13 @@ public Builder mergeFrom( bitField2_ |= 0x00000800; break; } // case 1194 + case 1202: + { + input.readMessage( + getSecretManagerConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField2_ |= 0x00001000; + break; + } // case 1202 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -20128,6 +20217,196 @@ public com.google.container.v1beta1.EnterpriseConfigOrBuilder getEnterpriseConfi return enterpriseConfigBuilder_; } + private com.google.container.v1beta1.SecretManagerConfig secretManagerConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecretManagerConfig, + com.google.container.v1beta1.SecretManagerConfig.Builder, + com.google.container.v1beta1.SecretManagerConfigOrBuilder> + secretManagerConfigBuilder_; + /** + * + * + *
                              +     * Secret CSI driver configuration.
                              +     * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + * + * @return Whether the secretManagerConfig field is set. + */ + public boolean hasSecretManagerConfig() { + return ((bitField2_ & 0x00001000) != 0); + } + /** + * + * + *
                              +     * Secret CSI driver configuration.
                              +     * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + * + * @return The secretManagerConfig. + */ + public com.google.container.v1beta1.SecretManagerConfig getSecretManagerConfig() { + if (secretManagerConfigBuilder_ == null) { + return secretManagerConfig_ == null + ? com.google.container.v1beta1.SecretManagerConfig.getDefaultInstance() + : secretManagerConfig_; + } else { + return secretManagerConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                              +     * Secret CSI driver configuration.
                              +     * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + */ + public Builder setSecretManagerConfig(com.google.container.v1beta1.SecretManagerConfig value) { + if (secretManagerConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + secretManagerConfig_ = value; + } else { + secretManagerConfigBuilder_.setMessage(value); + } + bitField2_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
                              +     * Secret CSI driver configuration.
                              +     * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + */ + public Builder setSecretManagerConfig( + com.google.container.v1beta1.SecretManagerConfig.Builder builderForValue) { + if (secretManagerConfigBuilder_ == null) { + secretManagerConfig_ = builderForValue.build(); + } else { + secretManagerConfigBuilder_.setMessage(builderForValue.build()); + } + bitField2_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
                              +     * Secret CSI driver configuration.
                              +     * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + */ + public Builder mergeSecretManagerConfig( + com.google.container.v1beta1.SecretManagerConfig value) { + if (secretManagerConfigBuilder_ == null) { + if (((bitField2_ & 0x00001000) != 0) + && secretManagerConfig_ != null + && secretManagerConfig_ + != com.google.container.v1beta1.SecretManagerConfig.getDefaultInstance()) { + getSecretManagerConfigBuilder().mergeFrom(value); + } else { + secretManagerConfig_ = value; + } + } else { + secretManagerConfigBuilder_.mergeFrom(value); + } + if (secretManagerConfig_ != null) { + bitField2_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * + * + *
                              +     * Secret CSI driver configuration.
                              +     * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + */ + public Builder clearSecretManagerConfig() { + bitField2_ = (bitField2_ & ~0x00001000); + secretManagerConfig_ = null; + if (secretManagerConfigBuilder_ != null) { + secretManagerConfigBuilder_.dispose(); + secretManagerConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                              +     * Secret CSI driver configuration.
                              +     * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + */ + public com.google.container.v1beta1.SecretManagerConfig.Builder + getSecretManagerConfigBuilder() { + bitField2_ |= 0x00001000; + onChanged(); + return getSecretManagerConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                              +     * Secret CSI driver configuration.
                              +     * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + */ + public com.google.container.v1beta1.SecretManagerConfigOrBuilder + getSecretManagerConfigOrBuilder() { + if (secretManagerConfigBuilder_ != null) { + return secretManagerConfigBuilder_.getMessageOrBuilder(); + } else { + return secretManagerConfig_ == null + ? com.google.container.v1beta1.SecretManagerConfig.getDefaultInstance() + : secretManagerConfig_; + } + } + /** + * + * + *
                              +     * Secret CSI driver configuration.
                              +     * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecretManagerConfig, + com.google.container.v1beta1.SecretManagerConfig.Builder, + com.google.container.v1beta1.SecretManagerConfigOrBuilder> + getSecretManagerConfigFieldBuilder() { + if (secretManagerConfigBuilder_ == null) { + secretManagerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecretManagerConfig, + com.google.container.v1beta1.SecretManagerConfig.Builder, + com.google.container.v1beta1.SecretManagerConfigOrBuilder>( + getSecretManagerConfig(), getParentForChildren(), isClean()); + secretManagerConfig_ = null; + } + return secretManagerConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java index 6b443cb6964a..5f6695c514b7 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterOrBuilder.java @@ -2804,4 +2804,39 @@ java.lang.String getResourceLabelsOrDefault( * .google.container.v1beta1.EnterpriseConfig enterprise_config = 149; */ com.google.container.v1beta1.EnterpriseConfigOrBuilder getEnterpriseConfigOrBuilder(); + + /** + * + * + *
                              +   * Secret CSI driver configuration.
                              +   * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + * + * @return Whether the secretManagerConfig field is set. + */ + boolean hasSecretManagerConfig(); + /** + * + * + *
                              +   * Secret CSI driver configuration.
                              +   * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + * + * @return The secretManagerConfig. + */ + com.google.container.v1beta1.SecretManagerConfig getSecretManagerConfig(); + /** + * + * + *
                              +   * Secret CSI driver configuration.
                              +   * 
                              + * + * .google.container.v1beta1.SecretManagerConfig secret_manager_config = 150; + */ + com.google.container.v1beta1.SecretManagerConfigOrBuilder getSecretManagerConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java index c825e0bc64b0..e105379e941a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterServiceProto.java @@ -860,6 +860,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1beta1_EnterpriseConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1beta1_EnterpriseConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1beta1_SecretManagerConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_container_v1beta1_SecretManagerConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_container_v1beta1_SecondaryBootDisk_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -1173,7 +1177,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "type\030\001 \001(\0162/.google.container.v1beta1.Cl" + "usterTelemetry.Type\"C\n\004Type\022\017\n\013UNSPECIFI" + "ED\020\000\022\014\n\010DISABLED\020\001\022\013\n\007ENABLED\020\002\022\017\n\013SYSTE" - + "M_ONLY\020\003\"\232!\n\007Cluster\022\014\n\004name\030\001 \001(\t\022\023\n\013de" + + "M_ONLY\020\003\"\351!\n\007Cluster\022\014\n\004name\030\001 \001(\t\022\023\n\013de" + "scription\030\002 \001(\t\022\036\n\022initial_node_count\030\003 " + "\001(\005B\002\030\001\022=\n\013node_config\030\004 \001(\0132$.google.co" + "ntainer.v1beta1.NodeConfigB\002\030\001\0229\n\013master" @@ -1274,1071 +1278,1083 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(\0132/.google.container.v1beta1.SecurityPo" + "stureConfig\022F\n\021enterprise_config\030\225\001 \001(\0132", "*.google.container.v1beta1.EnterpriseCon" - + "fig\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022\026\n\022STATUS_U" - + "NSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNIN" - + "G\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ER" - + "ROR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_node_pool_defaul" - + "tsB\021\n\017_protect_config\"(\n\020K8sBetaAPIConfi" - + "g\022\024\n\014enabled_apis\030\001 \003(\t\"\304\001\n\016WorkloadConf" - + "ig\022F\n\naudit_mode\030\001 \001(\0162-.google.containe" - + "r.v1beta1.WorkloadConfig.ModeH\000\210\001\001\"[\n\004Mo" - + "de\022\024\n\020MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t" - + "\n\005BASIC\020\004\022\020\n\010BASELINE\020\002\032\002\010\001\022\022\n\nRESTRICTE" - + "D\020\003\032\002\010\001B\r\n\013_audit_mode\"\333\002\n\rProtectConfig" - + "\022F\n\017workload_config\030\001 \001(\0132(.google.conta" - + "iner.v1beta1.WorkloadConfigH\000\210\001\001\022k\n\033work" - + "load_vulnerability_mode\030\002 \001(\0162A.google.c" - + "ontainer.v1beta1.ProtectConfig.WorkloadV" - + "ulnerabilityModeH\001\210\001\001\"a\n\031WorkloadVulnera" - + "bilityMode\022+\n\'WORKLOAD_VULNERABILITY_MOD" - + "E_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t\n\005BASIC\020\002" - + "B\022\n\020_workload_configB\036\n\034_workload_vulner" - + "ability_mode\"\250\003\n\025SecurityPostureConfig\022G" - + "\n\004mode\030\001 \001(\01624.google.container.v1beta1." - + "SecurityPostureConfig.ModeH\000\210\001\001\022b\n\022vulne" - + "rability_mode\030\002 \001(\0162A.google.container.v" - + "1beta1.SecurityPostureConfig.Vulnerabili" - + "tyModeH\001\210\001\001\"5\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020" - + "\000\022\014\n\010DISABLED\020\001\022\t\n\005BASIC\020\002\"\212\001\n\021Vulnerabi" - + "lityMode\022\"\n\036VULNERABILITY_MODE_UNSPECIFI" - + "ED\020\000\022\032\n\026VULNERABILITY_DISABLED\020\001\022\027\n\023VULN" - + "ERABILITY_BASIC\020\002\022\034\n\030VULNERABILITY_ENTER" - + "PRISE\020\003B\007\n\005_modeB\025\n\023_vulnerability_mode\"" - + "^\n\020NodePoolDefaults\022J\n\024node_config_defau" - + "lts\030\001 \001(\0132,.google.container.v1beta1.Nod" - + "eConfigDefaults\"\352\001\n\022NodeConfigDefaults\0229" - + "\n\013gcfs_config\030\001 \001(\0132$.google.container.v" - + "1beta1.GcfsConfig\022G\n\016logging_config\030\003 \001(" - + "\0132/.google.container.v1beta1.NodePoolLog" - + "gingConfig\022P\n\027host_maintenance_policy\030\005 " - + "\001(\0132/.google.container.v1beta1.HostMaint" - + "enancePolicy\"\237\001\n\022NodePoolAutoConfig\022;\n\014n" - + "etwork_tags\030\001 \001(\0132%.google.container.v1b" - + "eta1.NetworkTags\022L\n\025resource_manager_tag" - + "s\030\002 \001(\0132-.google.container.v1beta1.Resou" - + "rceManagerTags\"\271$\n\rClusterUpdate\022\034\n\024desi" - + "red_node_version\030\004 \001(\t\022\"\n\032desired_monito" - + "ring_service\030\005 \001(\t\022E\n\025desired_addons_con" - + "fig\030\006 \001(\0132&.google.container.v1beta1.Add" - + "onsConfig\022\034\n\024desired_node_pool_id\030\007 \001(\t\022" - + "\032\n\022desired_image_type\030\010 \001(\t\022T\n\035desired_n" - + "ode_pool_autoscaling\030\t \001(\0132-.google.cont" - + "ainer.v1beta1.NodePoolAutoscaling\022\031\n\021des" - + "ired_locations\030\n \003(\t\022k\n)desired_master_a" - + "uthorized_networks_config\030\014 \001(\01328.google" - + ".container.v1beta1.MasterAuthorizedNetwo" - + "rksConfig\022]\n\"desired_pod_security_policy" - + "_config\030\016 \001(\01321.google.container.v1beta1" - + ".PodSecurityPolicyConfig\022Q\n\033desired_clus" - + "ter_autoscaling\030\017 \001(\0132,.google.container" - + ".v1beta1.ClusterAutoscaling\022S\n\034desired_b" - + "inary_authorization\030\020 \001(\0132-.google.conta" - + "iner.v1beta1.BinaryAuthorization\022\037\n\027desi" - + "red_logging_service\030\023 \001(\t\022a\n$desired_res" - + "ource_usage_export_config\030\025 \001(\01323.google" - + ".container.v1beta1.ResourceUsageExportCo" - + "nfig\022Z\n desired_vertical_pod_autoscaling" - + "\030\026 \001(\01320.google.container.v1beta1.Vertic" - + "alPodAutoscaling\022V\n\036desired_private_clus" - + "ter_config\030\031 \001(\0132..google.container.v1be" - + "ta1.PrivateClusterConfig\022a\n$desired_intr" - + "a_node_visibility_config\030\032 \001(\01323.google." - + "container.v1beta1.IntraNodeVisibilityCon" - + "fig\022P\n\033desired_default_snat_status\030\034 \001(\013" - + "2+.google.container.v1beta1.DefaultSnatS" - + "tatus\022M\n\031desired_cluster_telemetry\030\036 \001(\013" - + "2*.google.container.v1beta1.ClusterTelem" - + "etry\022I\n\027desired_release_channel\030\037 \001(\0132(." - + "google.container.v1beta1.ReleaseChannel\022" - + "?\n\022desired_tpu_config\030& \001(\0132#.google.con" - + "tainer.v1beta1.TpuConfig\022V\n\037desired_l4il" - + "b_subsetting_config\030\' \001(\0132-.google.conta" - + "iner.v1beta1.ILBSubsettingConfig\022M\n\031desi" - + "red_datapath_provider\0302 \001(\0162*.google.con" - + "tainer.v1beta1.DatapathProvider\022]\n\"desir" - + "ed_private_ipv6_google_access\0303 \001(\01621.go" - + "ogle.container.v1beta1.PrivateIPv6Google" - + "Access\022Q\n\033desired_notification_config\0307 " - + "\001(\0132,.google.container.v1beta1.Notificat" - + "ionConfig\022\036\n\026desired_master_version\030d \001(" - + "\t\022A\n\023desired_gcfs_config\030m \001(\0132$.google." - + "container.v1beta1.GcfsConfig\022Q\n\033desired_" - + "database_encryption\030. \001(\0132,.google.conta" - + "iner.v1beta1.DatabaseEncryption\022Z\n desir" - + "ed_workload_identity_config\030/ \001(\01320.goog" - + "le.container.v1beta1.WorkloadIdentityCon" - + "fig\022U\n\035desired_workload_certificates\030= \001" - + "(\0132..google.container.v1beta1.WorkloadCe" - + "rtificates\022M\n\031desired_mesh_certificates\030" - + "C \001(\0132*.google.container.v1beta1.MeshCer" - + "tificates\022R\n\034desired_workload_alts_confi" - + "g\030> \001(\0132,.google.container.v1beta1.Workl" - + "oadALTSConfig\022G\n\026desired_shielded_nodes\030" - + "0 \001(\0132\'.google.container.v1beta1.Shielde" - + "dNodes\022V\n\036desired_cost_management_config" - + "\0301 \001(\0132..google.container.v1beta1.CostMa" - + "nagementConfig\0228\n\016desired_master\0304 \001(\0132 " - + ".google.container.v1beta1.Master\022?\n\022desi" - + "red_dns_config\0305 \001(\0132#.google.container." - + "v1beta1.DNSConfig\022_\n#desired_service_ext" - + "ernal_ips_config\030< \001(\01322.google.containe" - + "r.v1beta1.ServiceExternalIPsConfig\022`\n#de" - + "sired_authenticator_groups_config\030? \001(\0132" - + "3.google.container.v1beta1.Authenticator" - + "GroupsConfig\022G\n\026desired_logging_config\030@" - + " \001(\0132\'.google.container.v1beta1.LoggingC" - + "onfig\022M\n\031desired_monitoring_config\030A \001(\013" - + "2*.google.container.v1beta1.MonitoringCo" - + "nfig\022X\n\037desired_identity_service_config\030" - + "B \001(\0132/.google.container.v1beta1.Identit" - + "yServiceConfig\022,\n\037desired_enable_private" - + "_endpoint\030G \001(\010H\000\210\001\001\022Y\n*desired_node_poo" - + "l_auto_config_network_tags\030n \001(\0132%.googl" - + "e.container.v1beta1.NetworkTags\022P\n\026desir" - + "ed_protect_config\030p \001(\0132\'.google.contain" - + "er.v1beta1.ProtectConfigB\002\030\001H\001\210\001\001\022N\n\032des" - + "ired_gateway_api_config\030r \001(\0132*.google.c" - + "ontainer.v1beta1.GatewayAPIConfig\022\014\n\004eta" - + "g\030s \001(\t\022Y\n desired_node_pool_logging_con" - + "fig\030t \001(\0132/.google.container.v1beta1.Nod" - + "ePoolLoggingConfig\0226\n\rdesired_fleet\030u \001(" - + "\0132\037.google.container.v1beta1.Fleet\022?\n\022de" - + "sired_stack_type\030w \001(\0162#.google.containe" - + "r.v1beta1.StackType\022Y\n\034additional_pod_ra" - + "nges_config\030x \001(\01323.google.container.v1b" - + "eta1.AdditionalPodRangesConfig\022a\n$remove" - + "d_additional_pod_ranges_config\030y \001(\01323.g" - + "oogle.container.v1beta1.AdditionalPodRan" - + "gesConfig\022H\n\024enable_k8s_beta_apis\030z \001(\0132" - + "*.google.container.v1beta1.K8sBetaAPICon" - + "fig\022X\n\037desired_security_posture_config\030|" - + " \001(\0132/.google.container.v1beta1.Security" - + "PostureConfig\022s\n\"desired_network_perform" - + "ance_config\030} \001(\0132G.google.container.v1b" - + "eta1.NetworkConfig.ClusterNetworkPerform" - + "anceConfig\022/\n\"desired_enable_fqdn_networ" - + "k_policy\030~ \001(\010H\002\210\001\001\022a\n(desired_autopilot" - + "_workload_policy_config\030\200\001 \001(\0132..google." - + "container.v1beta1.WorkloadPolicyConfig\022J" - + "\n\025desired_k8s_beta_apis\030\203\001 \001(\0132*.google." - + "container.v1beta1.K8sBetaAPIConfig\022Y\n\037de" - + "sired_host_maintenance_policy\030\204\001 \001(\0132/.g" - + "oogle.container.v1beta1.HostMaintenanceP" - + "olicy\022k\n3desired_node_pool_auto_config_r" - + "esource_manager_tags\030\210\001 \001(\0132-.google.con" - + "tainer.v1beta1.ResourceManagerTags\022g\n$de" - + "sired_in_transit_encryption_config\030\211\001 \001(" - + "\01623.google.container.v1beta1.InTransitEn" - + "cryptionConfigH\003\210\001\001B\"\n _desired_enable_p" - + "rivate_endpointB\031\n\027_desired_protect_conf" - + "igB%\n#_desired_enable_fqdn_network_polic" - + "yB\'\n%_desired_in_transit_encryption_conf" - + "ig\"v\n\031AdditionalPodRangesConfig\022\027\n\017pod_r" - + "ange_names\030\001 \003(\t\022@\n\016pod_range_info\030\002 \003(\013" - + "2#.google.container.v1beta1.RangeInfoB\003\340" - + "A\003\">\n\tRangeInfo\022\027\n\nrange_name\030\001 \001(\tB\003\340A\003" - + "\022\030\n\013utilization\030\002 \001(\001B\003\340A\003\"\315\010\n\tOperation" - + "\022\014\n\004name\030\001 \001(\t\022\020\n\004zone\030\002 \001(\tB\002\030\001\022@\n\016oper" - + "ation_type\030\003 \001(\0162(.google.container.v1be" - + "ta1.Operation.Type\022:\n\006status\030\004 \001(\0162*.goo" - + "gle.container.v1beta1.Operation.Status\022\016" - + "\n\006detail\030\010 \001(\t\022\035\n\016status_message\030\005 \001(\tB\005" - + "\030\001\340A\003\022\021\n\tself_link\030\006 \001(\t\022\023\n\013target_link\030" - + "\007 \001(\t\022\020\n\010location\030\t \001(\t\022\022\n\nstart_time\030\n " - + "\001(\t\022\020\n\010end_time\030\013 \001(\t\022B\n\010progress\030\014 \001(\0132" - + "+.google.container.v1beta1.OperationProg" - + "ressB\003\340A\003\022I\n\022cluster_conditions\030\r \003(\0132)." - + "google.container.v1beta1.StatusCondition" - + "B\002\030\001\022J\n\023nodepool_conditions\030\016 \003(\0132).goog" - + "le.container.v1beta1.StatusConditionB\002\030\001" - + "\022!\n\005error\030\017 \001(\0132\022.google.rpc.Status\"R\n\006S" - + "tatus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007PENDING" - + "\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING\020\004\"" - + "\300\003\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CREATE" - + "_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UPGRAD" - + "E_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REPAIR_" - + "CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CREATE_" - + "NODE_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034\n\030SET" - + "_NODE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_REPAIR_N" - + "ODES\020\n\022\032\n\022AUTO_UPGRADE_NODES\020\013\032\002\010\001\022\022\n\nSE" - + "T_LABELS\020\014\032\002\010\001\022\027\n\017SET_MASTER_AUTH\020\r\032\002\010\001\022" - + "\026\n\022SET_NODE_POOL_SIZE\020\016\022\032\n\022SET_NETWORK_P" - + "OLICY\020\017\032\002\010\001\022\036\n\026SET_MAINTENANCE_POLICY\020\020\032" - + "\002\010\001\022\022\n\016RESIZE_CLUSTER\020\022\022\031\n\025FLEET_FEATURE" - + "_UPGRADE\020\023\"\312\002\n\021OperationProgress\022\014\n\004name" - + "\030\001 \001(\t\022:\n\006status\030\002 \001(\0162*.google.containe" - + "r.v1beta1.Operation.Status\022C\n\007metrics\030\003 " - + "\003(\01322.google.container.v1beta1.Operation" - + "Progress.Metric\022;\n\006stages\030\004 \003(\0132+.google" - + ".container.v1beta1.OperationProgress\032i\n\006" - + "Metric\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\tint_value\030\002" - + " \001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n\014string" - + "_value\030\004 \001(\tH\000B\007\n\005value\"\217\001\n\024CreateCluste" - + "rRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004z" - + "one\030\002 \001(\tB\005\030\001\340A\002\0227\n\007cluster\030\003 \001(\0132!.goog" - + "le.container.v1beta1.ClusterB\003\340A\002\022\016\n\006par" - + "ent\030\005 \001(\t\"l\n\021GetClusterRequest\022\031\n\nprojec" - + "t_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031" - + "\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\005 \001(\t\"" - + "\255\001\n\024UpdateClusterRequest\022\031\n\nproject_id\030\001" - + " \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nclus" - + "ter_id\030\003 \001(\tB\005\030\001\340A\002\022<\n\006update\030\004 \001(\0132\'.go" - + "ogle.container.v1beta1.ClusterUpdateB\003\340A" - + "\002\022\014\n\004name\030\005 \001(\t\"\264\013\n\025UpdateNodePoolReques" - + "t\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001" - + "(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014" - + "node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\031\n\014node_versio" - + "n\030\005 \001(\tB\003\340A\002\022\027\n\nimage_type\030\006 \001(\tB\003\340A\002\022\021\n" - + "\tlocations\030\r \003(\t\022R\n\030workload_metadata_co" - + "nfig\030\016 \001(\01320.google.container.v1beta1.Wo" - + "rkloadMetadataConfig\022\014\n\004name\030\010 \001(\t\022L\n\020up" - + "grade_settings\030\017 \001(\01322.google.container." - + "v1beta1.NodePool.UpgradeSettings\0223\n\004tags" - + "\030\020 \001(\0132%.google.container.v1beta1.Networ" - + "kTags\0224\n\006taints\030\021 \001(\0132$.google.container" - + ".v1beta1.NodeTaints\0224\n\006labels\030\022 \001(\0132$.go" - + "ogle.container.v1beta1.NodeLabels\022D\n\021lin" - + "ux_node_config\030\023 \001(\0132).google.container." - + "v1beta1.LinuxNodeConfig\022C\n\016kubelet_confi" - + "g\030\024 \001(\0132+.google.container.v1beta1.NodeK" - + "ubeletConfig\022H\n\023node_network_config\030\025 \001(" - + "\0132+.google.container.v1beta1.NodeNetwork" - + "Config\0229\n\013gcfs_config\030\026 \001(\0132$.google.con" - + "tainer.v1beta1.GcfsConfig\022G\n\022confidentia" - + "l_nodes\030\027 \001(\0132+.google.container.v1beta1" - + ".ConfidentialNodes\0223\n\005gvnic\030\035 \001(\0132$.goog" - + "le.container.v1beta1.VirtualNIC\022\014\n\004etag\030" - + "\036 \001(\t\0229\n\013fast_socket\030\037 \001(\0132$.google.cont" - + "ainer.v1beta1.FastSocket\022G\n\016logging_conf" - + "ig\030 \001(\0132/.google.container.v1beta1.Node" - + "PoolLoggingConfig\022A\n\017resource_labels\030! \001" - + "(\0132(.google.container.v1beta1.ResourceLa" - + "bels\022H\n\023windows_node_config\030\" \001(\0132+.goog" - + "le.container.v1beta1.WindowsNodeConfig\022\031" - + "\n\014machine_type\030$ \001(\tB\003\340A\001\022\026\n\tdisk_type\030%" - + " \001(\tB\003\340A\001\022\031\n\014disk_size_gb\030& \001(\003B\003\340A\001\022L\n\025" - + "resource_manager_tags\030\' \001(\0132-.google.con" - + "tainer.v1beta1.ResourceManagerTags\022R\n\023qu" - + "eued_provisioning\030* \001(\01325.google.contain" - + "er.v1beta1.NodePool.QueuedProvisioning\"\336" - + "\001\n\035SetNodePoolAutoscalingRequest\022\031\n\nproj" - + "ect_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002" - + "\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool" - + "_id\030\004 \001(\tB\005\030\001\340A\002\022G\n\013autoscaling\030\005 \001(\0132-." - + "google.container.v1beta1.NodePoolAutosca" - + "lingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\221\001\n\030SetLoggingSe" - + "rviceRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022" - + "\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\t" - + "B\005\030\001\340A\002\022\034\n\017logging_service\030\004 \001(\tB\003\340A\002\022\014\n" - + "\004name\030\005 \001(\t\"\227\001\n\033SetMonitoringServiceRequ" - + "est\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002" - + " \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\037" - + "\n\022monitoring_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030" - + "\006 \001(\t\"\265\001\n\026SetAddonsConfigRequest\022\031\n\nproj" + + "fig\022M\n\025secret_manager_config\030\226\001 \001(\0132-.go" + + "ogle.container.v1beta1.SecretManagerConf" + + "ig\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"w\n\006Status\022\026\n\022STATUS_UN" + + "SPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING" + + "\020\002\022\017\n\013RECONCILING\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ERR" + + "OR\020\005\022\014\n\010DEGRADED\020\006B\025\n\023_node_pool_default" + + "sB\021\n\017_protect_config\"(\n\020K8sBetaAPIConfig" + + "\022\024\n\014enabled_apis\030\001 \003(\t\"\304\001\n\016WorkloadConfi" + + "g\022F\n\naudit_mode\030\001 \001(\0162-.google.container" + + ".v1beta1.WorkloadConfig.ModeH\000\210\001\001\"[\n\004Mod" + + "e\022\024\n\020MODE_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t\n" + + "\005BASIC\020\004\022\020\n\010BASELINE\020\002\032\002\010\001\022\022\n\nRESTRICTED" + + "\020\003\032\002\010\001B\r\n\013_audit_mode\"\333\002\n\rProtectConfig\022" + + "F\n\017workload_config\030\001 \001(\0132(.google.contai" + + "ner.v1beta1.WorkloadConfigH\000\210\001\001\022k\n\033workl" + + "oad_vulnerability_mode\030\002 \001(\0162A.google.co" + + "ntainer.v1beta1.ProtectConfig.WorkloadVu" + + "lnerabilityModeH\001\210\001\001\"a\n\031WorkloadVulnerab" + + "ilityMode\022+\n\'WORKLOAD_VULNERABILITY_MODE" + + "_UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\t\n\005BASIC\020\002B" + + "\022\n\020_workload_configB\036\n\034_workload_vulnera" + + "bility_mode\"\250\003\n\025SecurityPostureConfig\022G\n" + + "\004mode\030\001 \001(\01624.google.container.v1beta1.S" + + "ecurityPostureConfig.ModeH\000\210\001\001\022b\n\022vulner" + + "ability_mode\030\002 \001(\0162A.google.container.v1" + + "beta1.SecurityPostureConfig.Vulnerabilit" + + "yModeH\001\210\001\001\"5\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000" + + "\022\014\n\010DISABLED\020\001\022\t\n\005BASIC\020\002\"\212\001\n\021Vulnerabil" + + "ityMode\022\"\n\036VULNERABILITY_MODE_UNSPECIFIE" + + "D\020\000\022\032\n\026VULNERABILITY_DISABLED\020\001\022\027\n\023VULNE" + + "RABILITY_BASIC\020\002\022\034\n\030VULNERABILITY_ENTERP" + + "RISE\020\003B\007\n\005_modeB\025\n\023_vulnerability_mode\"^" + + "\n\020NodePoolDefaults\022J\n\024node_config_defaul" + + "ts\030\001 \001(\0132,.google.container.v1beta1.Node" + + "ConfigDefaults\"\352\001\n\022NodeConfigDefaults\0229\n" + + "\013gcfs_config\030\001 \001(\0132$.google.container.v1" + + "beta1.GcfsConfig\022G\n\016logging_config\030\003 \001(\013" + + "2/.google.container.v1beta1.NodePoolLogg" + + "ingConfig\022P\n\027host_maintenance_policy\030\005 \001" + + "(\0132/.google.container.v1beta1.HostMainte" + + "nancePolicy\"\237\001\n\022NodePoolAutoConfig\022;\n\014ne" + + "twork_tags\030\001 \001(\0132%.google.container.v1be" + + "ta1.NetworkTags\022L\n\025resource_manager_tags" + + "\030\002 \001(\0132-.google.container.v1beta1.Resour" + + "ceManagerTags\"\254&\n\rClusterUpdate\022\034\n\024desir" + + "ed_node_version\030\004 \001(\t\022\"\n\032desired_monitor" + + "ing_service\030\005 \001(\t\022E\n\025desired_addons_conf" + + "ig\030\006 \001(\0132&.google.container.v1beta1.Addo" + + "nsConfig\022\034\n\024desired_node_pool_id\030\007 \001(\t\022\032" + + "\n\022desired_image_type\030\010 \001(\t\022T\n\035desired_no" + + "de_pool_autoscaling\030\t \001(\0132-.google.conta" + + "iner.v1beta1.NodePoolAutoscaling\022\031\n\021desi" + + "red_locations\030\n \003(\t\022k\n)desired_master_au" + + "thorized_networks_config\030\014 \001(\01328.google." + + "container.v1beta1.MasterAuthorizedNetwor" + + "ksConfig\022]\n\"desired_pod_security_policy_" + + "config\030\016 \001(\01321.google.container.v1beta1." + + "PodSecurityPolicyConfig\022Q\n\033desired_clust" + + "er_autoscaling\030\017 \001(\0132,.google.container." + + "v1beta1.ClusterAutoscaling\022S\n\034desired_bi" + + "nary_authorization\030\020 \001(\0132-.google.contai" + + "ner.v1beta1.BinaryAuthorization\022\037\n\027desir" + + "ed_logging_service\030\023 \001(\t\022a\n$desired_reso" + + "urce_usage_export_config\030\025 \001(\01323.google." + + "container.v1beta1.ResourceUsageExportCon" + + "fig\022Z\n desired_vertical_pod_autoscaling\030" + + "\026 \001(\01320.google.container.v1beta1.Vertica" + + "lPodAutoscaling\022V\n\036desired_private_clust" + + "er_config\030\031 \001(\0132..google.container.v1bet" + + "a1.PrivateClusterConfig\022a\n$desired_intra" + + "_node_visibility_config\030\032 \001(\01323.google.c" + + "ontainer.v1beta1.IntraNodeVisibilityConf" + + "ig\022P\n\033desired_default_snat_status\030\034 \001(\0132" + + "+.google.container.v1beta1.DefaultSnatSt" + + "atus\022M\n\031desired_cluster_telemetry\030\036 \001(\0132" + + "*.google.container.v1beta1.ClusterTeleme" + + "try\022I\n\027desired_release_channel\030\037 \001(\0132(.g" + + "oogle.container.v1beta1.ReleaseChannel\022?" + + "\n\022desired_tpu_config\030& \001(\0132#.google.cont" + + "ainer.v1beta1.TpuConfig\022V\n\037desired_l4ilb" + + "_subsetting_config\030\' \001(\0132-.google.contai" + + "ner.v1beta1.ILBSubsettingConfig\022M\n\031desir" + + "ed_datapath_provider\0302 \001(\0162*.google.cont" + + "ainer.v1beta1.DatapathProvider\022]\n\"desire" + + "d_private_ipv6_google_access\0303 \001(\01621.goo" + + "gle.container.v1beta1.PrivateIPv6GoogleA" + + "ccess\022Q\n\033desired_notification_config\0307 \001" + + "(\0132,.google.container.v1beta1.Notificati" + + "onConfig\022\036\n\026desired_master_version\030d \001(\t" + + "\022A\n\023desired_gcfs_config\030m \001(\0132$.google.c" + + "ontainer.v1beta1.GcfsConfig\022Q\n\033desired_d" + + "atabase_encryption\030. \001(\0132,.google.contai" + + "ner.v1beta1.DatabaseEncryption\022Z\n desire" + + "d_workload_identity_config\030/ \001(\01320.googl" + + "e.container.v1beta1.WorkloadIdentityConf" + + "ig\022U\n\035desired_workload_certificates\030= \001(" + + "\0132..google.container.v1beta1.WorkloadCer" + + "tificates\022M\n\031desired_mesh_certificates\030C" + + " \001(\0132*.google.container.v1beta1.MeshCert" + + "ificates\022R\n\034desired_workload_alts_config" + + "\030> \001(\0132,.google.container.v1beta1.Worklo" + + "adALTSConfig\022G\n\026desired_shielded_nodes\0300" + + " \001(\0132\'.google.container.v1beta1.Shielded" + + "Nodes\022V\n\036desired_cost_management_config\030" + + "1 \001(\0132..google.container.v1beta1.CostMan" + + "agementConfig\0228\n\016desired_master\0304 \001(\0132 ." + + "google.container.v1beta1.Master\022?\n\022desir" + + "ed_dns_config\0305 \001(\0132#.google.container.v" + + "1beta1.DNSConfig\022_\n#desired_service_exte" + + "rnal_ips_config\030< \001(\01322.google.container" + + ".v1beta1.ServiceExternalIPsConfig\022`\n#des" + + "ired_authenticator_groups_config\030? \001(\01323" + + ".google.container.v1beta1.AuthenticatorG" + + "roupsConfig\022G\n\026desired_logging_config\030@ " + + "\001(\0132\'.google.container.v1beta1.LoggingCo" + + "nfig\022M\n\031desired_monitoring_config\030A \001(\0132" + + "*.google.container.v1beta1.MonitoringCon" + + "fig\022X\n\037desired_identity_service_config\030B" + + " \001(\0132/.google.container.v1beta1.Identity" + + "ServiceConfig\022,\n\037desired_enable_private_" + + "endpoint\030G \001(\010H\000\210\001\001\022Y\n*desired_node_pool" + + "_auto_config_network_tags\030n \001(\0132%.google" + + ".container.v1beta1.NetworkTags\022P\n\026desire" + + "d_protect_config\030p \001(\0132\'.google.containe" + + "r.v1beta1.ProtectConfigB\002\030\001H\001\210\001\001\022N\n\032desi" + + "red_gateway_api_config\030r \001(\0132*.google.co" + + "ntainer.v1beta1.GatewayAPIConfig\022\014\n\004etag" + + "\030s \001(\t\022Y\n desired_node_pool_logging_conf" + + "ig\030t \001(\0132/.google.container.v1beta1.Node" + + "PoolLoggingConfig\0226\n\rdesired_fleet\030u \001(\013" + + "2\037.google.container.v1beta1.Fleet\022?\n\022des" + + "ired_stack_type\030w \001(\0162#.google.container" + + ".v1beta1.StackType\022Y\n\034additional_pod_ran" + + "ges_config\030x \001(\01323.google.container.v1be" + + "ta1.AdditionalPodRangesConfig\022a\n$removed" + + "_additional_pod_ranges_config\030y \001(\01323.go" + + "ogle.container.v1beta1.AdditionalPodRang" + + "esConfig\022H\n\024enable_k8s_beta_apis\030z \001(\0132*" + + ".google.container.v1beta1.K8sBetaAPIConf" + + "ig\022X\n\037desired_security_posture_config\030| " + + "\001(\0132/.google.container.v1beta1.SecurityP" + + "ostureConfig\022s\n\"desired_network_performa" + + "nce_config\030} \001(\0132G.google.container.v1be" + + "ta1.NetworkConfig.ClusterNetworkPerforma" + + "nceConfig\022/\n\"desired_enable_fqdn_network" + + "_policy\030~ \001(\010H\002\210\001\001\022a\n(desired_autopilot_" + + "workload_policy_config\030\200\001 \001(\0132..google.c" + + "ontainer.v1beta1.WorkloadPolicyConfig\022J\n" + + "\025desired_k8s_beta_apis\030\203\001 \001(\0132*.google.c" + + "ontainer.v1beta1.K8sBetaAPIConfig\022Y\n\037des" + + "ired_host_maintenance_policy\030\204\001 \001(\0132/.go" + + "ogle.container.v1beta1.HostMaintenancePo" + + "licy\022k\n3desired_node_pool_auto_config_re" + + "source_manager_tags\030\210\001 \001(\0132-.google.cont" + + "ainer.v1beta1.ResourceManagerTags\022g\n$des" + + "ired_in_transit_encryption_config\030\211\001 \001(\016" + + "23.google.container.v1beta1.InTransitEnc" + + "ryptionConfigH\003\210\001\001\022>\n0desired_enable_cil" + + "ium_clusterwide_network_policy\030\212\001 \001(\010H\004\210" + + "\001\001\022Z\n\035desired_secret_manager_config\030\213\001 \001" + + "(\0132-.google.container.v1beta1.SecretMana" + + "gerConfigH\005\210\001\001B\"\n _desired_enable_privat" + + "e_endpointB\031\n\027_desired_protect_configB%\n" + + "#_desired_enable_fqdn_network_policyB\'\n%" + + "_desired_in_transit_encryption_configB3\n" + + "1_desired_enable_cilium_clusterwide_netw" + + "ork_policyB \n\036_desired_secret_manager_co" + + "nfig\"v\n\031AdditionalPodRangesConfig\022\027\n\017pod" + + "_range_names\030\001 \003(\t\022@\n\016pod_range_info\030\002 \003" + + "(\0132#.google.container.v1beta1.RangeInfoB" + + "\003\340A\003\">\n\tRangeInfo\022\027\n\nrange_name\030\001 \001(\tB\003\340" + + "A\003\022\030\n\013utilization\030\002 \001(\001B\003\340A\003\"\315\010\n\tOperati" + + "on\022\014\n\004name\030\001 \001(\t\022\020\n\004zone\030\002 \001(\tB\002\030\001\022@\n\016op" + + "eration_type\030\003 \001(\0162(.google.container.v1" + + "beta1.Operation.Type\022:\n\006status\030\004 \001(\0162*.g" + + "oogle.container.v1beta1.Operation.Status" + + "\022\016\n\006detail\030\010 \001(\t\022\035\n\016status_message\030\005 \001(\t" + + "B\005\030\001\340A\003\022\021\n\tself_link\030\006 \001(\t\022\023\n\013target_lin" + + "k\030\007 \001(\t\022\020\n\010location\030\t \001(\t\022\022\n\nstart_time\030" + + "\n \001(\t\022\020\n\010end_time\030\013 \001(\t\022B\n\010progress\030\014 \001(" + + "\0132+.google.container.v1beta1.OperationPr" + + "ogressB\003\340A\003\022I\n\022cluster_conditions\030\r \003(\0132" + + ").google.container.v1beta1.StatusConditi" + + "onB\002\030\001\022J\n\023nodepool_conditions\030\016 \003(\0132).go" + + "ogle.container.v1beta1.StatusConditionB\002" + + "\030\001\022!\n\005error\030\017 \001(\0132\022.google.rpc.Status\"R\n" + + "\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007PENDI" + + "NG\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING\020" + + "\004\"\300\003\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CREA" + + "TE_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UPGR" + + "ADE_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REPAI" + + "R_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CREAT" + + "E_NODE_POOL\020\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034\n\030S" + + "ET_NODE_POOL_MANAGEMENT\020\t\022\025\n\021AUTO_REPAIR" + + "_NODES\020\n\022\032\n\022AUTO_UPGRADE_NODES\020\013\032\002\010\001\022\022\n\n" + + "SET_LABELS\020\014\032\002\010\001\022\027\n\017SET_MASTER_AUTH\020\r\032\002\010" + + "\001\022\026\n\022SET_NODE_POOL_SIZE\020\016\022\032\n\022SET_NETWORK" + + "_POLICY\020\017\032\002\010\001\022\036\n\026SET_MAINTENANCE_POLICY\020" + + "\020\032\002\010\001\022\022\n\016RESIZE_CLUSTER\020\022\022\031\n\025FLEET_FEATU" + + "RE_UPGRADE\020\023\"\312\002\n\021OperationProgress\022\014\n\004na" + + "me\030\001 \001(\t\022:\n\006status\030\002 \001(\0162*.google.contai" + + "ner.v1beta1.Operation.Status\022C\n\007metrics\030" + + "\003 \003(\01322.google.container.v1beta1.Operati" + + "onProgress.Metric\022;\n\006stages\030\004 \003(\0132+.goog" + + "le.container.v1beta1.OperationProgress\032i" + + "\n\006Metric\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\tint_value" + + "\030\002 \001(\003H\000\022\026\n\014double_value\030\003 \001(\001H\000\022\026\n\014stri" + + "ng_value\030\004 \001(\tH\000B\007\n\005value\"\217\001\n\024CreateClus" + + "terRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n" + + "\004zone\030\002 \001(\tB\005\030\001\340A\002\0227\n\007cluster\030\003 \001(\0132!.go" + + "ogle.container.v1beta1.ClusterB\003\340A\002\022\016\n\006p" + + "arent\030\005 \001(\t\"l\n\021GetClusterRequest\022\031\n\nproj" + "ect_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002" - + "\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022B\n\raddons_co" - + "nfig\030\004 \001(\0132&.google.container.v1beta1.Ad" - + "donsConfigB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\206\001\n\023SetLoc" - + "ationsRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002" - + "\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(" - + "\tB\005\030\001\340A\002\022\026\n\tlocations\030\004 \003(\tB\003\340A\002\022\014\n\004name" - + "\030\006 \001(\t\"\213\001\n\023UpdateMasterRequest\022\031\n\nprojec" - + "t_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031" - + "\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\016master_vers" - + "ion\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\310\002\n\024SetMast" - + "erAuthRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002" - + "\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(" - + "\tB\005\030\001\340A\002\022J\n\006action\030\004 \001(\01625.google.contai" - + "ner.v1beta1.SetMasterAuthRequest.ActionB" - + "\003\340A\002\0229\n\006update\030\005 \001(\0132$.google.container." - + "v1beta1.MasterAuthB\003\340A\002\022\014\n\004name\030\007 \001(\t\"P\n" - + "\006Action\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_PASSWORD\020\001\022\025" - + "\n\021GENERATE_PASSWORD\020\002\022\020\n\014SET_USERNAME\020\003\"" - + "o\n\024DeleteClusterRequest\022\031\n\nproject_id\030\001 " - + "\001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nclust" - + "er_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\004 \001(\t\"U\n\023List" - + "ClustersRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340" - + "A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\016\n\006parent\030\004 \001(\t\"" - + "b\n\024ListClustersResponse\0223\n\010clusters\030\001 \003(" - + "\0132!.google.container.v1beta1.Cluster\022\025\n\r" - + "missing_zones\030\002 \003(\t\"p\n\023GetOperationReque" - + "st\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 " - + "\001(\tB\005\030\001\340A\002\022\033\n\014operation_id\030\003 \001(\tB\005\030\001\340A\002\022" - + "\014\n\004name\030\005 \001(\t\"W\n\025ListOperationsRequest\022\031" - + "\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB" - + "\005\030\001\340A\002\022\016\n\006parent\030\004 \001(\t\"s\n\026CancelOperatio" - + "nRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004z" - + "one\030\002 \001(\tB\005\030\001\340A\002\022\033\n\014operation_id\030\003 \001(\tB\005" - + "\030\001\340A\002\022\014\n\004name\030\004 \001(\t\"h\n\026ListOperationsRes" - + "ponse\0227\n\noperations\030\001 \003(\0132#.google.conta" - + "iner.v1beta1.Operation\022\025\n\rmissing_zones\030" - + "\002 \003(\t\"V\n\026GetServerConfigRequest\022\031\n\nproje" - + "ct_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022" - + "\014\n\004name\030\004 \001(\t\"\351\005\n\014ServerConfig\022\037\n\027defaul" - + "t_cluster_version\030\001 \001(\t\022\033\n\023valid_node_ve" - + "rsions\030\003 \003(\t\022\032\n\022default_image_type\030\004 \001(\t" - + "\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025valid_mas" - + "ter_versions\030\006 \003(\t\022M\n\010channels\030\t \003(\0132;.g" - + "oogle.container.v1beta1.ServerConfig.Rel" - + "easeChannelConfig\022\\\n\024windows_version_map" - + "s\030\n \003(\0132>.google.container.v1beta1.Serve" - + "rConfig.WindowsVersionMapsEntry\032\261\002\n\024Rele" - + "aseChannelConfig\022A\n\007channel\030\001 \001(\01620.goog" - + "le.container.v1beta1.ReleaseChannel.Chan" - + "nel\022\027\n\017default_version\030\002 \001(\t\022l\n\022availabl" - + "e_versions\030\003 \003(\0132L.google.container.v1be" - + "ta1.ServerConfig.ReleaseChannelConfig.Av" - + "ailableVersionB\002\030\001\022\026\n\016valid_versions\030\004 \003" - + "(\t\0327\n\020AvailableVersion\022\017\n\007version\030\001 \001(\t\022" - + "\016\n\006reason\030\002 \001(\t:\002\030\001\032d\n\027WindowsVersionMap" - + "sEntry\022\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(\0132).goo" - + "gle.container.v1beta1.WindowsVersions:\0028" - + "\001\"F\n\026BestEffortProvisioning\022\017\n\007enabled\030\001" - + " \001(\010\022\033\n\023min_provision_nodes\030\002 \001(\005\"\314\001\n\017Wi" - + "ndowsVersions\022R\n\020windows_versions\030\001 \003(\0132" - + "8.google.container.v1beta1.WindowsVersio" - + "ns.WindowsVersion\032e\n\016WindowsVersion\022\022\n\ni" - + "mage_type\030\001 \001(\t\022\022\n\nos_version\030\002 \001(\t\022+\n\020s" - + "upport_end_date\030\003 \001(\0132\021.google.type.Date" - + "\"\256\001\n\025CreateNodePoolRequest\022\031\n\nproject_id" + + "\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\005 \001(" + + "\t\"\255\001\n\024UpdateClusterRequest\022\031\n\nproject_id" + "\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncl" - + "uster_id\030\003 \001(\tB\005\030\001\340A\002\022:\n\tnode_pool\030\004 \001(\013" - + "2\".google.container.v1beta1.NodePoolB\003\340A" - + "\002\022\016\n\006parent\030\006 \001(\t\"\215\001\n\025DeleteNodePoolRequ" + + "uster_id\030\003 \001(\tB\005\030\001\340A\002\022<\n\006update\030\004 \001(\0132\'." + + "google.container.v1beta1.ClusterUpdateB\003" + + "\340A\002\022\014\n\004name\030\005 \001(\t\"\264\013\n\025UpdateNodePoolRequ" + "est\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002" + " \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033" - + "\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001(" - + "\t\"q\n\024ListNodePoolsRequest\022\031\n\nproject_id\030" + + "\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\031\n\014node_vers" + + "ion\030\005 \001(\tB\003\340A\002\022\027\n\nimage_type\030\006 \001(\tB\003\340A\002\022" + + "\021\n\tlocations\030\r \003(\t\022R\n\030workload_metadata_" + + "config\030\016 \001(\01320.google.container.v1beta1." + + "WorkloadMetadataConfig\022\014\n\004name\030\010 \001(\t\022L\n\020" + + "upgrade_settings\030\017 \001(\01322.google.containe" + + "r.v1beta1.NodePool.UpgradeSettings\0223\n\004ta" + + "gs\030\020 \001(\0132%.google.container.v1beta1.Netw" + + "orkTags\0224\n\006taints\030\021 \001(\0132$.google.contain" + + "er.v1beta1.NodeTaints\0224\n\006labels\030\022 \001(\0132$." + + "google.container.v1beta1.NodeLabels\022D\n\021l" + + "inux_node_config\030\023 \001(\0132).google.containe" + + "r.v1beta1.LinuxNodeConfig\022C\n\016kubelet_con" + + "fig\030\024 \001(\0132+.google.container.v1beta1.Nod" + + "eKubeletConfig\022H\n\023node_network_config\030\025 " + + "\001(\0132+.google.container.v1beta1.NodeNetwo" + + "rkConfig\0229\n\013gcfs_config\030\026 \001(\0132$.google.c" + + "ontainer.v1beta1.GcfsConfig\022G\n\022confident" + + "ial_nodes\030\027 \001(\0132+.google.container.v1bet" + + "a1.ConfidentialNodes\0223\n\005gvnic\030\035 \001(\0132$.go" + + "ogle.container.v1beta1.VirtualNIC\022\014\n\004eta" + + "g\030\036 \001(\t\0229\n\013fast_socket\030\037 \001(\0132$.google.co" + + "ntainer.v1beta1.FastSocket\022G\n\016logging_co" + + "nfig\030 \001(\0132/.google.container.v1beta1.No" + + "dePoolLoggingConfig\022A\n\017resource_labels\030!" + + " \001(\0132(.google.container.v1beta1.Resource" + + "Labels\022H\n\023windows_node_config\030\" \001(\0132+.go" + + "ogle.container.v1beta1.WindowsNodeConfig" + + "\022\031\n\014machine_type\030$ \001(\tB\003\340A\001\022\026\n\tdisk_type" + + "\030% \001(\tB\003\340A\001\022\031\n\014disk_size_gb\030& \001(\003B\003\340A\001\022L" + + "\n\025resource_manager_tags\030\' \001(\0132-.google.c" + + "ontainer.v1beta1.ResourceManagerTags\022R\n\023" + + "queued_provisioning\030* \001(\01325.google.conta" + + "iner.v1beta1.NodePool.QueuedProvisioning" + + "\"\336\001\n\035SetNodePoolAutoscalingRequest\022\031\n\npr" + + "oject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340" + + "A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_po" + + "ol_id\030\004 \001(\tB\005\030\001\340A\002\022G\n\013autoscaling\030\005 \001(\0132" + + "-.google.container.v1beta1.NodePoolAutos" + + "calingB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\221\001\n\030SetLogging" + + "ServiceRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A" + + "\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001" + + "(\tB\005\030\001\340A\002\022\034\n\017logging_service\030\004 \001(\tB\003\340A\002\022" + + "\014\n\004name\030\005 \001(\t\"\227\001\n\033SetMonitoringServiceRe" + + "quest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone" + + "\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002" + + "\022\037\n\022monitoring_service\030\004 \001(\tB\003\340A\002\022\014\n\004nam" + + "e\030\006 \001(\t\"\265\001\n\026SetAddonsConfigRequest\022\031\n\npr" + + "oject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340" + + "A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022B\n\raddons_" + + "config\030\004 \001(\0132&.google.container.v1beta1." + + "AddonsConfigB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\206\001\n\023SetL" + + "ocationsRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340" + + "A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 " + + "\001(\tB\005\030\001\340A\002\022\026\n\tlocations\030\004 \003(\tB\003\340A\002\022\014\n\004na" + + "me\030\006 \001(\t\"\213\001\n\023UpdateMasterRequest\022\031\n\nproj" + + "ect_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002" + + "\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\016master_ve" + + "rsion\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\"\310\002\n\024SetMa" + + "sterAuthRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340" + + "A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 " + + "\001(\tB\005\030\001\340A\002\022J\n\006action\030\004 \001(\01625.google.cont" + + "ainer.v1beta1.SetMasterAuthRequest.Actio" + + "nB\003\340A\002\0229\n\006update\030\005 \001(\0132$.google.containe" + + "r.v1beta1.MasterAuthB\003\340A\002\022\014\n\004name\030\007 \001(\t\"" + + "P\n\006Action\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_PASSWORD\020\001" + + "\022\025\n\021GENERATE_PASSWORD\020\002\022\020\n\014SET_USERNAME\020" + + "\003\"o\n\024DeleteClusterRequest\022\031\n\nproject_id\030" + "\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nclu" - + "ster_id\030\003 \001(\tB\005\030\001\340A\002\022\016\n\006parent\030\005 \001(\t\"\212\001\n" - + "\022GetNodePoolRequest\022\031\n\nproject_id\030\001 \001(\tB" - + "\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_i" - + "d\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001" - + "\340A\002\022\014\n\004name\030\006 \001(\t\"\251\004\n\021BlueGreenSettings\022" - + "d\n\027standard_rollout_policy\030\001 \001(\0132A.googl" - + "e.container.v1beta1.BlueGreenSettings.St" - + "andardRolloutPolicyH\000\022h\n\031autoscaled_roll" - + "out_policy\030\003 \001(\0132C.google.container.v1be" - + "ta1.BlueGreenSettings.AutoscaledRolloutP" - + "olicyH\000\022?\n\027node_pool_soak_duration\030\002 \001(\013" - + "2\031.google.protobuf.DurationH\001\210\001\001\032\271\001\n\025Sta" - + "ndardRolloutPolicy\022\032\n\020batch_percentage\030\001" - + " \001(\002H\000\022\032\n\020batch_node_count\030\002 \001(\005H\000\022;\n\023ba" - + "tch_soak_duration\030\003 \001(\0132\031.google.protobu" - + "f.DurationH\001\210\001\001B\023\n\021update_batch_sizeB\026\n\024" - + "_batch_soak_duration\032\031\n\027AutoscaledRollou" - + "tPolicyB\020\n\016rollout_policyB\032\n\030_node_pool_" - + "soak_duration\"\252\021\n\010NodePool\022\014\n\004name\030\001 \001(\t" - + "\0224\n\006config\030\002 \001(\0132$.google.container.v1be" - + "ta1.NodeConfig\022\032\n\022initial_node_count\030\003 \001" - + "(\005\022\021\n\tlocations\030\r \003(\t\022C\n\016network_config\030" - + "\016 \001(\0132+.google.container.v1beta1.NodeNet" - + "workConfig\022\021\n\tself_link\030d \001(\t\022\017\n\007version" - + "\030e \001(\t\022\033\n\023instance_group_urls\030f \003(\t\0229\n\006s" - + "tatus\030g \001(\0162).google.container.v1beta1.N" - + "odePool.Status\022\032\n\016status_message\030h \001(\tB\002" - + "\030\001\022B\n\013autoscaling\030\004 \001(\0132-.google.contain" - + "er.v1beta1.NodePoolAutoscaling\022<\n\nmanage" - + "ment\030\005 \001(\0132(.google.container.v1beta1.No" - + "deManagement\022H\n\023max_pods_constraint\030\006 \001(" - + "\0132+.google.container.v1beta1.MaxPodsCons" - + "traint\022=\n\nconditions\030i \003(\0132).google.cont" - + "ainer.v1beta1.StatusCondition\022\032\n\022pod_ipv" - + "4_cidr_size\030\007 \001(\005\022L\n\020upgrade_settings\030k " - + "\001(\01322.google.container.v1beta1.NodePool." - + "UpgradeSettings\022L\n\020placement_policy\030l \001(" - + "\01322.google.container.v1beta1.NodePool.Pl" - + "acementPolicy\022G\n\013update_info\030m \001(\0132-.goo" - + "gle.container.v1beta1.NodePool.UpdateInf" - + "oB\003\340A\003\022\014\n\004etag\030n \001(\t\022R\n\023queued_provision" - + "ing\030p \001(\01325.google.container.v1beta1.Nod" - + "ePool.QueuedProvisioning\022R\n\030best_effort_" - + "provisioning\030q \001(\01320.google.container.v1" - + "beta1.BestEffortProvisioning\032\372\001\n\017Upgrade" - + "Settings\022\021\n\tmax_surge\030\001 \001(\005\022\027\n\017max_unava" - + "ilable\030\002 \001(\005\022G\n\010strategy\030\003 \001(\01620.google." - + "container.v1beta1.NodePoolUpdateStrategy" - + "H\000\210\001\001\022M\n\023blue_green_settings\030\004 \001(\0132+.goo" - + "gle.container.v1beta1.BlueGreenSettingsH" - + "\001\210\001\001B\013\n\t_strategyB\026\n\024_blue_green_setting" - + "s\032\262\004\n\nUpdateInfo\022T\n\017blue_green_info\030\001 \001(" - + "\0132;.google.container.v1beta1.NodePool.Up" - + "dateInfo.BlueGreenInfo\032\315\003\n\rBlueGreenInfo" - + "\022P\n\005phase\030\001 \001(\0162A.google.container.v1bet" - + "a1.NodePool.UpdateInfo.BlueGreenInfo.Pha" - + "se\022 \n\030blue_instance_group_urls\030\002 \003(\t\022!\n\031" - + "green_instance_group_urls\030\003 \003(\t\022%\n\035blue_" - + "pool_deletion_start_time\030\004 \001(\t\022\032\n\022green_" - + "pool_version\030\005 \001(\t\"\341\001\n\005Phase\022\025\n\021PHASE_UN" - + "SPECIFIED\020\000\022\022\n\016UPDATE_STARTED\020\001\022\027\n\023CREAT" - + "ING_GREEN_POOL\020\002\022\027\n\023CORDONING_BLUE_POOL\020", - "\003\022\036\n\032WAITING_TO_DRAIN_BLUE_POOL\020\010\022\026\n\022DRA" - + "INING_BLUE_POOL\020\004\022\025\n\021NODE_POOL_SOAKING\020\005" - + "\022\026\n\022DELETING_BLUE_POOL\020\006\022\024\n\020ROLLBACK_STA" - + "RTED\020\007\032\256\001\n\017PlacementPolicy\022E\n\004type\030\001 \001(\016" - + "27.google.container.v1beta1.NodePool.Pla" - + "cementPolicy.Type\022\024\n\014tpu_topology\030\002 \001(\t\022" - + "\023\n\013policy_name\030\003 \001(\t\")\n\004Type\022\024\n\020TYPE_UNS" - + "PECIFIED\020\000\022\013\n\007COMPACT\020\001\032%\n\022QueuedProvisi" - + "oning\022\017\n\007enabled\030\001 \001(\010\"\201\001\n\006Status\022\026\n\022STA" - + "TUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007R" - + "UNNING\020\002\022\026\n\022RUNNING_WITH_ERROR\020\003\022\017\n\013RECO" - + "NCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005ERROR\020\006\"\202\001\n\016N" - + "odeManagement\022\024\n\014auto_upgrade\030\001 \001(\010\022\023\n\013a" - + "uto_repair\030\002 \001(\010\022E\n\017upgrade_options\030\n \001(" - + "\0132,.google.container.v1beta1.AutoUpgrade" - + "Options\"J\n\022AutoUpgradeOptions\022\037\n\027auto_up" - + "grade_start_time\030\001 \001(\t\022\023\n\013description\030\002 " - + "\001(\t\"j\n\021MaintenancePolicy\022;\n\006window\030\001 \001(\013" - + "2+.google.container.v1beta1.MaintenanceW" - + "indow\022\030\n\020resource_version\030\003 \001(\t\"\212\003\n\021Main" - + "tenanceWindow\022T\n\030daily_maintenance_windo" - + "w\030\002 \001(\01320.google.container.v1beta1.Daily" - + "MaintenanceWindowH\000\022I\n\020recurring_window\030" - + "\003 \001(\0132-.google.container.v1beta1.Recurri" - + "ngTimeWindowH\000\022f\n\026maintenance_exclusions" - + "\030\004 \003(\0132F.google.container.v1beta1.Mainte" - + "nanceWindow.MaintenanceExclusionsEntry\032b" - + "\n\032MaintenanceExclusionsEntry\022\013\n\003key\030\001 \001(" - + "\t\0223\n\005value\030\002 \001(\0132$.google.container.v1be" - + "ta1.TimeWindow:\0028\001B\010\n\006policy\"\325\001\n\nTimeWin" - + "dow\022^\n\035maintenance_exclusion_options\030\003 \001" - + "(\01325.google.container.v1beta1.Maintenanc" - + "eExclusionOptionsH\000\022.\n\nstart_time\030\001 \001(\0132" - + "\032.google.protobuf.Timestamp\022,\n\010end_time\030" - + "\002 \001(\0132\032.google.protobuf.TimestampB\t\n\007opt" - + "ions\"\271\001\n\033MaintenanceExclusionOptions\022J\n\005" - + "scope\030\001 \001(\0162;.google.container.v1beta1.M" - + "aintenanceExclusionOptions.Scope\"N\n\005Scop" - + "e\022\017\n\013NO_UPGRADES\020\000\022\025\n\021NO_MINOR_UPGRADES\020" - + "\001\022\035\n\031NO_MINOR_OR_NODE_UPGRADES\020\002\"_\n\023Recu" - + "rringTimeWindow\0224\n\006window\030\001 \001(\0132$.google" - + ".container.v1beta1.TimeWindow\022\022\n\nrecurre" - + "nce\030\002 \001(\t\">\n\026DailyMaintenanceWindow\022\022\n\ns" - + "tart_time\030\002 \001(\t\022\020\n\010duration\030\003 \001(\t\"\327\001\n\034Se" - + "tNodePoolManagementRequest\022\031\n\nproject_id" - + "\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncl" - + "uster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 " - + "\001(\tB\005\030\001\340A\002\022A\n\nmanagement\030\005 \001(\0132(.google." - + "container.v1beta1.NodeManagementB\003\340A\002\022\014\n" - + "\004name\030\007 \001(\t\"\247\001\n\026SetNodePoolSizeRequest\022\031" - + "\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB" - + "\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014nod" - + "e_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\027\n\nnode_count\030\005 \001" - + "(\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\".\n\036CompleteNodePoo" - + "lUpgradeRequest\022\014\n\004name\030\001 \001(\t\"\253\001\n\036Rollba" - + "ckNodePoolUpgradeRequest\022\031\n\nproject_id\030\001" - + " \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nclus" - + "ter_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(" - + "\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001(\t\022\023\n\013respect_pdb\030\007 " - + "\001(\010\"O\n\025ListNodePoolsResponse\0226\n\nnode_poo" - + "ls\030\001 \003(\0132\".google.container.v1beta1.Node" - + "Pool\"\276\003\n\022ClusterAutoscaling\022$\n\034enable_no" - + "de_autoprovisioning\030\001 \001(\010\022@\n\017resource_li" - + "mits\030\002 \003(\0132\'.google.container.v1beta1.Re" - + "sourceLimit\022\\\n\023autoscaling_profile\030\003 \001(\016" - + "2?.google.container.v1beta1.ClusterAutos" - + "caling.AutoscalingProfile\022g\n#autoprovisi" - + "oning_node_pool_defaults\030\004 \001(\0132:.google." - + "container.v1beta1.AutoprovisioningNodePo" - + "olDefaults\022\"\n\032autoprovisioning_locations" - + "\030\005 \003(\t\"U\n\022AutoscalingProfile\022\027\n\023PROFILE_" - + "UNSPECIFIED\020\000\022\030\n\024OPTIMIZE_UTILIZATION\020\001\022" - + "\014\n\010BALANCED\020\002\"\207\004\n AutoprovisioningNodePo" - + "olDefaults\022\024\n\014oauth_scopes\030\001 \003(\t\022\027\n\017serv" - + "ice_account\030\002 \001(\t\022L\n\020upgrade_settings\030\003 " - + "\001(\01322.google.container.v1beta1.NodePool." - + "UpgradeSettings\022<\n\nmanagement\030\004 \001(\0132(.go" - + "ogle.container.v1beta1.NodeManagement\022\034\n" - + "\020min_cpu_platform\030\005 \001(\tB\002\030\001\022\024\n\014disk_size" - + "_gb\030\006 \001(\005\022\021\n\tdisk_type\030\007 \001(\t\022R\n\030shielded" - + "_instance_config\030\010 \001(\01320.google.containe" - + "r.v1beta1.ShieldedInstanceConfig\022\031\n\021boot" - + "_disk_kms_key\030\t \001(\t\022\022\n\nimage_type\030\n \001(\t\022" - + "3\n&insecure_kubelet_readonly_port_enable" - + "d\030\r \001(\010H\000\210\001\001B)\n\'_insecure_kubelet_readon" - + "ly_port_enabled\"H\n\rResourceLimit\022\025\n\rreso" - + "urce_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n\007maxi" - + "mum\030\003 \001(\003\"\314\002\n\023NodePoolAutoscaling\022\017\n\007ena" - + "bled\030\001 \001(\010\022\026\n\016min_node_count\030\002 \001(\005\022\026\n\016ma" - + "x_node_count\030\003 \001(\005\022\027\n\017autoprovisioned\030\004 " - + "\001(\010\022U\n\017location_policy\030\005 \001(\0162<.google.co" - + "ntainer.v1beta1.NodePoolAutoscaling.Loca" - + "tionPolicy\022\034\n\024total_min_node_count\030\006 \001(\005" - + "\022\034\n\024total_max_node_count\030\007 \001(\005\"H\n\016Locati" - + "onPolicy\022\037\n\033LOCATION_POLICY_UNSPECIFIED\020" - + "\000\022\014\n\010BALANCED\020\001\022\007\n\003ANY\020\002\"\240\002\n\020SetLabelsRe" + + "ster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\004 \001(\t\"U\n\023Li" + + "stClustersRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030" + + "\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\016\n\006parent\030\004 \001(" + + "\t\"b\n\024ListClustersResponse\0223\n\010clusters\030\001 " + + "\003(\0132!.google.container.v1beta1.Cluster\022\025" + + "\n\rmissing_zones\030\002 \003(\t\"p\n\023GetOperationReq" + + "uest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030" + + "\002 \001(\tB\005\030\001\340A\002\022\033\n\014operation_id\030\003 \001(\tB\005\030\001\340A" + + "\002\022\014\n\004name\030\005 \001(\t\"W\n\025ListOperationsRequest" + + "\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(" + + "\tB\005\030\001\340A\002\022\016\n\006parent\030\004 \001(\t\"s\n\026CancelOperat" + + "ionRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n" + + "\004zone\030\002 \001(\tB\005\030\001\340A\002\022\033\n\014operation_id\030\003 \001(\t" + + "B\005\030\001\340A\002\022\014\n\004name\030\004 \001(\t\"h\n\026ListOperationsR" + + "esponse\0227\n\noperations\030\001 \003(\0132#.google.con" + + "tainer.v1beta1.Operation\022\025\n\rmissing_zone" + + "s\030\002 \003(\t\"V\n\026GetServerConfigRequest\022\031\n\npro" + + "ject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A" + + "\002\022\014\n\004name\030\004 \001(\t\"\351\005\n\014ServerConfig\022\037\n\027defa" + + "ult_cluster_version\030\001 \001(\t\022\033\n\023valid_node_" + + "versions\030\003 \003(\t\022\032\n\022default_image_type\030\004 \001" + + "(\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025valid_m" + + "aster_versions\030\006 \003(\t\022M\n\010channels\030\t \003(\0132;" + + ".google.container.v1beta1.ServerConfig.R" + + "eleaseChannelConfig\022\\\n\024windows_version_m" + + "aps\030\n \003(\0132>.google.container.v1beta1.Ser" + + "verConfig.WindowsVersionMapsEntry\032\261\002\n\024Re" + + "leaseChannelConfig\022A\n\007channel\030\001 \001(\01620.go" + + "ogle.container.v1beta1.ReleaseChannel.Ch" + + "annel\022\027\n\017default_version\030\002 \001(\t\022l\n\022availa" + + "ble_versions\030\003 \003(\0132L.google.container.v1" + + "beta1.ServerConfig.ReleaseChannelConfig." + + "AvailableVersionB\002\030\001\022\026\n\016valid_versions\030\004" + + " \003(\t\0327\n\020AvailableVersion\022\017\n\007version\030\001 \001(" + + "\t\022\016\n\006reason\030\002 \001(\t:\002\030\001\032d\n\027WindowsVersionM" + + "apsEntry\022\013\n\003key\030\001 \001(\t\0228\n\005value\030\002 \001(\0132).g" + + "oogle.container.v1beta1.WindowsVersions:" + + "\0028\001\"F\n\026BestEffortProvisioning\022\017\n\007enabled" + + "\030\001 \001(\010\022\033\n\023min_provision_nodes\030\002 \001(\005\"\314\001\n\017" + + "WindowsVersions\022R\n\020windows_versions\030\001 \003(" + + "\01328.google.container.v1beta1.WindowsVers" + + "ions.WindowsVersion\032e\n\016WindowsVersion\022\022\n" + + "\nimage_type\030\001 \001(\t\022\022\n\nos_version\030\002 \001(\t\022+\n" + + "\020support_end_date\030\003 \001(\0132\021.google.type.Da" + + "te\"\256\001\n\025CreateNodePoolRequest\022\031\n\nproject_" + + "id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\n" + + "cluster_id\030\003 \001(\tB\005\030\001\340A\002\022:\n\tnode_pool\030\004 \001" + + "(\0132\".google.container.v1beta1.NodePoolB\003" + + "\340A\002\022\016\n\006parent\030\006 \001(\t\"\215\001\n\025DeleteNodePoolRe" + "quest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone" + "\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002" - + "\022\\\n\017resource_labels\030\004 \003(\0132>.google.conta" - + "iner.v1beta1.SetLabelsRequest.ResourceLa" - + "belsEntryB\003\340A\002\022\036\n\021label_fingerprint\030\005 \001(" - + "\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\0325\n\023ResourceLabelsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\001\n\024" - + "SetLegacyAbacRequest\022\031\n\nproject_id\030\001 \001(\t" - + "B\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_" - + "id\030\003 \001(\tB\005\030\001\340A\002\022\024\n\007enabled\030\004 \001(\010B\003\340A\002\022\014\n" - + "\004name\030\006 \001(\t\"\215\001\n\026StartIPRotationRequest\022\031" - + "\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB" - + "\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004nam" - + "e\030\006 \001(\t\022\032\n\022rotate_credentials\030\007 \001(\010\"t\n\031C" - + "ompleteIPRotationRequest\022\031\n\nproject_id\030\001" - + " \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nclus" - + "ter_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\007 \001(\t\"\374\002\n\021Ac" - + "celeratorConfig\022\031\n\021accelerator_count\030\001 \001" - + "(\003\022\030\n\020accelerator_type\030\002 \001(\t\022\032\n\022gpu_part" - + "ition_size\030\003 \001(\t\022+\n\037max_time_shared_clie" - + "nts_per_gpu\030\004 \001(\003B\002\030\001\022K\n\022gpu_sharing_con" - + "fig\030\005 \001(\0132*.google.container.v1beta1.GPU" - + "SharingConfigH\000\210\001\001\022b\n\036gpu_driver_install" - + "ation_config\030\006 \001(\01325.google.container.v1" - + "beta1.GPUDriverInstallationConfigH\001\210\001\001B\025" - + "\n\023_gpu_sharing_configB!\n\037_gpu_driver_ins" - + "tallation_config\"\377\001\n\020GPUSharingConfig\022\"\n" - + "\032max_shared_clients_per_gpu\030\001 \001(\003\022`\n\024gpu" - + "_sharing_strategy\030\002 \001(\0162=.google.contain" - + "er.v1beta1.GPUSharingConfig.GPUSharingSt" - + "rategyH\000\210\001\001\"L\n\022GPUSharingStrategy\022$\n GPU" - + "_SHARING_STRATEGY_UNSPECIFIED\020\000\022\020\n\014TIME_" - + "SHARING\020\001B\027\n\025_gpu_sharing_strategy\"\211\002\n\033G" - + "PUDriverInstallationConfig\022g\n\022gpu_driver" - + "_version\030\001 \001(\0162F.google.container.v1beta" - + "1.GPUDriverInstallationConfig.GPUDriverV" - + "ersionH\000\210\001\001\"j\n\020GPUDriverVersion\022\"\n\036GPU_D" - + "RIVER_VERSION_UNSPECIFIED\020\000\022\031\n\025INSTALLAT" - + "ION_DISABLED\020\001\022\013\n\007DEFAULT\020\002\022\n\n\006LATEST\020\003B" - + "\025\n\023_gpu_driver_version\"*\n\027ManagedPrometh" - + "eusConfig\022\017\n\007enabled\030\001 \001(\010\"\313\002\n\026WorkloadM" - + "etadataConfig\022X\n\rnode_metadata\030\001 \001(\0162=.g" - + "oogle.container.v1beta1.WorkloadMetadata" - + "Config.NodeMetadataB\002\030\001\022C\n\004mode\030\002 \001(\01625." - + "google.container.v1beta1.WorkloadMetadat" - + "aConfig.Mode\"P\n\014NodeMetadata\022\017\n\013UNSPECIF" - + "IED\020\000\022\n\n\006SECURE\020\001\022\n\n\006EXPOSE\020\002\022\027\n\023GKE_MET" - + "ADATA_SERVER\020\003\"@\n\004Mode\022\024\n\020MODE_UNSPECIFI" - + "ED\020\000\022\020\n\014GCE_METADATA\020\001\022\020\n\014GKE_METADATA\020\002" - + "\"\270\001\n\027SetNetworkPolicyRequest\022\031\n\nproject_" + + "\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 " + + "\001(\t\"q\n\024ListNodePoolsRequest\022\031\n\nproject_i" + + "d\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nc" + + "luster_id\030\003 \001(\tB\005\030\001\340A\002\022\016\n\006parent\030\005 \001(\t\"\212" + + "\001\n\022GetNodePoolRequest\022\031\n\nproject_id\030\001 \001(" + + "\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster" + + "_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005" + + "\030\001\340A\002\022\014\n\004name\030\006 \001(\t\"\251\004\n\021BlueGreenSetting" + + "s\022d\n\027standard_rollout_policy\030\001 \001(\0132A.goo" + + "gle.container.v1beta1.BlueGreenSettings." + + "StandardRolloutPolicyH\000\022h\n\031autoscaled_ro" + + "llout_policy\030\003 \001(\0132C.google.container.v1" + + "beta1.BlueGreenSettings.AutoscaledRollou" + + "tPolicyH\000\022?\n\027node_pool_soak_duration\030\002 \001" + + "(\0132\031.google.protobuf.DurationH\001\210\001\001\032\271\001\n\025S" + + "tandardRolloutPolicy\022\032\n\020batch_percentage" + + "\030\001 \001(\002H\000\022\032\n\020batch_node_count\030\002 \001(\005H\000\022;\n\023" + + "batch_soak_duration\030\003 \001(\0132\031.google.proto" + + "buf.DurationH\001\210\001\001B\023\n\021update_batch_sizeB\026" + + "\n\024_batch_soak_duration\032\031\n\027AutoscaledRoll" + + "outPolicyB\020\n\016rollout_policyB\032\n\030_node_poo" + + "l_soak_duration\"\252\021\n\010NodePool\022\014\n\004name\030\001 \001" + + "(\t\0224\n\006config\030\002 \001(\0132$.google.container.v1" + + "beta1.NodeConfig\022\032\n\022initial_node_count\030\003" + + " \001(\005\022\021\n\tlocations\030\r \003(\t\022C\n\016network_confi" + + "g\030\016 \001(\0132+.google.container.v1beta1.NodeN" + + "etworkConfig\022\021\n\tself_link\030d \001(\t\022\017\n\007versi" + + "on\030e \001(\t\022\033\n\023instance_group_urls\030f \003(\t\0229\n" + + "\006status\030g \001(\0162).google.container.v1beta1" + + ".NodePool.Status\022\032\n\016status_message\030h \001(\t" + + "B\002\030\001\022B\n\013autoscaling\030\004 \001(\0132-.google.conta" + + "iner.v1beta1.NodePoolAutoscaling\022<\n\nmana" + + "gement\030\005 \001(\0132(.google.container.v1beta1." + + "NodeManagement\022H\n\023max_pods_constraint\030\006 " + + "\001(\0132+.google.container.v1beta1.MaxPodsCo" + + "nstraint\022=\n\nconditions\030i \003(\0132).google.co" + + "ntainer.v1beta1.StatusCondition\022\032\n\022pod_i" + + "pv4_cidr_size\030\007 \001(\005\022L\n\020upgrade_settings\030" + + "k \001(\01322.google.container.v1beta1.NodePoo" + + "l.UpgradeSettings\022L\n\020placement_policy\030l " + + "\001(\01322.google.container.v1beta1.NodePool." + + "PlacementPolicy\022G\n\013update_info\030m \001(\0132-.g" + + "oogle.container.v1beta1.NodePool.UpdateI" + + "nfoB\003\340A\003\022\014\n\004etag\030n \001(\t\022R\n\023queued_provisi" + + "oning\030p \001(\01325.google.container.v1beta1.N" + + "odePool.QueuedProvisioning\022R\n\030best_effor" + + "t_provisioning\030q \001(\01320.google.container." + + "v1beta1.BestEffortProvisioning\032\372\001\n\017Upgra" + + "deSettings\022\021\n\tmax_surge\030\001 \001(\005\022\027\n\017max_una" + + "vailable\030\002 \001(\005\022G\n\010strategy\030\003 \001(\01620.googl" + + "e.container.v1beta1.NodePoolUpdateStrate" + + "gyH\000\210\001\001\022M\n\023blue_green_settings\030\004 \001(\0132+.g" + + "oogle.container.v1beta1.BlueGreenSetting" + + "sH\001\210\001\001B\013\n\t_strategyB\026\n\024_blue_green_setti" + + "ngs\032\262\004\n\nUpdateInfo\022T\n\017blue_green_info\030\001 " + + "\001(\0132;.google.container.v1beta1.NodePool." + + "UpdateInfo.BlueGreenInfo\032\315\003\n\rBlueGreenIn", + "fo\022P\n\005phase\030\001 \001(\0162A.google.container.v1b" + + "eta1.NodePool.UpdateInfo.BlueGreenInfo.P" + + "hase\022 \n\030blue_instance_group_urls\030\002 \003(\t\022!" + + "\n\031green_instance_group_urls\030\003 \003(\t\022%\n\035blu" + + "e_pool_deletion_start_time\030\004 \001(\t\022\032\n\022gree" + + "n_pool_version\030\005 \001(\t\"\341\001\n\005Phase\022\025\n\021PHASE_" + + "UNSPECIFIED\020\000\022\022\n\016UPDATE_STARTED\020\001\022\027\n\023CRE" + + "ATING_GREEN_POOL\020\002\022\027\n\023CORDONING_BLUE_POO" + + "L\020\003\022\036\n\032WAITING_TO_DRAIN_BLUE_POOL\020\010\022\026\n\022D" + + "RAINING_BLUE_POOL\020\004\022\025\n\021NODE_POOL_SOAKING" + + "\020\005\022\026\n\022DELETING_BLUE_POOL\020\006\022\024\n\020ROLLBACK_S" + + "TARTED\020\007\032\256\001\n\017PlacementPolicy\022E\n\004type\030\001 \001" + + "(\01627.google.container.v1beta1.NodePool.P" + + "lacementPolicy.Type\022\024\n\014tpu_topology\030\002 \001(" + + "\t\022\023\n\013policy_name\030\003 \001(\t\")\n\004Type\022\024\n\020TYPE_U" + + "NSPECIFIED\020\000\022\013\n\007COMPACT\020\001\032%\n\022QueuedProvi" + + "sioning\022\017\n\007enabled\030\001 \001(\010\"\201\001\n\006Status\022\026\n\022S" + + "TATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONING\020\001\022\013\n" + + "\007RUNNING\020\002\022\026\n\022RUNNING_WITH_ERROR\020\003\022\017\n\013RE" + + "CONCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005ERROR\020\006\"\202\001\n" + + "\016NodeManagement\022\024\n\014auto_upgrade\030\001 \001(\010\022\023\n" + + "\013auto_repair\030\002 \001(\010\022E\n\017upgrade_options\030\n " + + "\001(\0132,.google.container.v1beta1.AutoUpgra" + + "deOptions\"J\n\022AutoUpgradeOptions\022\037\n\027auto_" + + "upgrade_start_time\030\001 \001(\t\022\023\n\013description\030" + + "\002 \001(\t\"j\n\021MaintenancePolicy\022;\n\006window\030\001 \001" + + "(\0132+.google.container.v1beta1.Maintenanc" + + "eWindow\022\030\n\020resource_version\030\003 \001(\t\"\212\003\n\021Ma" + + "intenanceWindow\022T\n\030daily_maintenance_win" + + "dow\030\002 \001(\01320.google.container.v1beta1.Dai" + + "lyMaintenanceWindowH\000\022I\n\020recurring_windo" + + "w\030\003 \001(\0132-.google.container.v1beta1.Recur" + + "ringTimeWindowH\000\022f\n\026maintenance_exclusio" + + "ns\030\004 \003(\0132F.google.container.v1beta1.Main" + + "tenanceWindow.MaintenanceExclusionsEntry" + + "\032b\n\032MaintenanceExclusionsEntry\022\013\n\003key\030\001 " + + "\001(\t\0223\n\005value\030\002 \001(\0132$.google.container.v1" + + "beta1.TimeWindow:\0028\001B\010\n\006policy\"\325\001\n\nTimeW" + + "indow\022^\n\035maintenance_exclusion_options\030\003" + + " \001(\01325.google.container.v1beta1.Maintena" + + "nceExclusionOptionsH\000\022.\n\nstart_time\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\022,\n\010end_tim" + + "e\030\002 \001(\0132\032.google.protobuf.TimestampB\t\n\007o" + + "ptions\"\271\001\n\033MaintenanceExclusionOptions\022J" + + "\n\005scope\030\001 \001(\0162;.google.container.v1beta1" + + ".MaintenanceExclusionOptions.Scope\"N\n\005Sc" + + "ope\022\017\n\013NO_UPGRADES\020\000\022\025\n\021NO_MINOR_UPGRADE" + + "S\020\001\022\035\n\031NO_MINOR_OR_NODE_UPGRADES\020\002\"_\n\023Re" + + "curringTimeWindow\0224\n\006window\030\001 \001(\0132$.goog" + + "le.container.v1beta1.TimeWindow\022\022\n\nrecur" + + "rence\030\002 \001(\t\">\n\026DailyMaintenanceWindow\022\022\n" + + "\nstart_time\030\002 \001(\t\022\020\n\010duration\030\003 \001(\t\"\327\001\n\034" + + "SetNodePoolManagementRequest\022\031\n\nproject_" + "id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\n" - + "cluster_id\030\003 \001(\tB\005\030\001\340A\002\022D\n\016network_polic" - + "y\030\004 \001(\0132\'.google.container.v1beta1.Netwo" - + "rkPolicyB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\276\001\n\033SetMaint" - + "enancePolicyRequest\022\027\n\nproject_id\030\001 \001(\tB" - + "\003\340A\002\022\021\n\004zone\030\002 \001(\tB\003\340A\002\022\027\n\ncluster_id\030\003 " - + "\001(\tB\003\340A\002\022L\n\022maintenance_policy\030\004 \001(\0132+.g" - + "oogle.container.v1beta1.MaintenancePolic" - + "yB\003\340A\002\022\014\n\004name\030\005 \001(\t\"+\n\024ListLocationsReq" - + "uest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\"g\n\025ListLocatio" - + "nsResponse\0225\n\tlocations\030\001 \003(\0132\".google.c" - + "ontainer.v1beta1.Location\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"\261\001\n\010Location\022=\n\004type\030\001 \001(\0162/." - + "google.container.v1beta1.Location.Locati" - + "onType\022\014\n\004name\030\002 \001(\t\022\023\n\013recommended\030\003 \001(" - + "\010\"C\n\014LocationType\022\035\n\031LOCATION_TYPE_UNSPE" - + "CIFIED\020\000\022\010\n\004ZONE\020\001\022\n\n\006REGION\020\002\"\262\002\n\017Statu" - + "sCondition\022@\n\004code\030\001 \001(\0162..google.contai" - + "ner.v1beta1.StatusCondition.CodeB\002\030\001\022\017\n\007" - + "message\030\002 \001(\t\022(\n\016canonical_code\030\003 \001(\0162\020." - + "google.rpc.Code\"\241\001\n\004Code\022\013\n\007UNKNOWN\020\000\022\020\n" - + "\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_ACCOUNT_D" - + "ELETED\020\002\022\026\n\022GCE_QUOTA_EXCEEDED\020\003\022\023\n\017SET_" - + "BY_OPERATOR\020\004\022\027\n\023CLOUD_KMS_KEY_ERROR\020\007\022\017" - + "\n\013CA_EXPIRING\020\t\032\002\030\001\"\372\010\n\rNetworkConfig\022\017\n" - + "\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022$\n\034en" - + "able_intra_node_visibility\030\005 \001(\010\022H\n\023defa" - + "ult_snat_status\030\007 \001(\0132+.google.container" - + ".v1beta1.DefaultSnatStatus\022\037\n\027enable_l4i" - + "lb_subsetting\030\n \001(\010\022E\n\021datapath_provider" - + "\030\013 \001(\0162*.google.container.v1beta1.Datapa" - + "thProvider\022U\n\032private_ipv6_google_access" - + "\030\014 \001(\01621.google.container.v1beta1.Privat" - + "eIPv6GoogleAccess\0227\n\ndns_config\030\r \001(\0132#." - + "google.container.v1beta1.DNSConfig\022W\n\033se" - + "rvice_external_ips_config\030\017 \001(\01322.google" - + ".container.v1beta1.ServiceExternalIPsCon" - + "fig\022F\n\022gateway_api_config\030\020 \001(\0132*.google" - + ".container.v1beta1.GatewayAPIConfig\022\037\n\027e" - + "nable_multi_networking\030\021 \001(\010\022k\n\032network_" - + "performance_config\030\022 \001(\0132G.google.contai" - + "ner.v1beta1.NetworkConfig.ClusterNetwork" - + "PerformanceConfig\022\'\n\032enable_fqdn_network" - + "_policy\030\023 \001(\010H\000\210\001\001\022^\n\034in_transit_encrypt" - + "ion_config\030\024 \001(\01623.google.container.v1be" - + "ta1.InTransitEncryptionConfigH\001\210\001\001\032\343\001\n\037C" - + "lusterNetworkPerformanceConfig\022v\n\033total_" - + "egress_bandwidth_tier\030\001 \001(\0162L.google.con" - + "tainer.v1beta1.NetworkConfig.ClusterNetw" - + "orkPerformanceConfig.TierH\000\210\001\001\"(\n\004Tier\022\024" - + "\n\020TIER_UNSPECIFIED\020\000\022\n\n\006TIER_1\020\001B\036\n\034_tot" - + "al_egress_bandwidth_tierB\035\n\033_enable_fqdn" - + "_network_policyB\037\n\035_in_transit_encryptio" - + "n_config\"\301\001\n\020GatewayAPIConfig\022C\n\007channel" - + "\030\001 \001(\01622.google.container.v1beta1.Gatewa" - + "yAPIConfig.Channel\"h\n\007Channel\022\027\n\023CHANNEL" - + "_UNSPECIFIED\020\000\022\024\n\020CHANNEL_DISABLED\020\001\022\030\n\024" - + "CHANNEL_EXPERIMENTAL\020\003\022\024\n\020CHANNEL_STANDA" - + "RD\020\004\"+\n\030ServiceExternalIPsConfig\022\017\n\007enab" - + "led\030\001 \001(\010\"j\n\034ListUsableSubnetworksReques" - + "t\022\023\n\006parent\030\001 \001(\tB\003\340A\002\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\"y\n" - + "\035ListUsableSubnetworksResponse\022?\n\013subnet" - + "works\030\001 \003(\0132*.google.container.v1beta1.U" - + "sableSubnetwork\022\027\n\017next_page_token\030\002 \001(\t" - + "\"\205\002\n\036UsableSubnetworkSecondaryRange\022\022\n\nr" - + "ange_name\030\001 \001(\t\022\025\n\rip_cidr_range\030\002 \001(\t\022O" - + "\n\006status\030\003 \001(\0162?.google.container.v1beta" - + "1.UsableSubnetworkSecondaryRange.Status\"" - + "g\n\006Status\022\013\n\007UNKNOWN\020\000\022\n\n\006UNUSED\020\001\022\022\n\016IN" - + "_USE_SERVICE\020\002\022\030\n\024IN_USE_SHAREABLE_POD\020\003" - + "\022\026\n\022IN_USE_MANAGED_POD\020\004\"\275\001\n\020UsableSubne" - + "twork\022\022\n\nsubnetwork\030\001 \001(\t\022\017\n\007network\030\002 \001" - + "(\t\022\025\n\rip_cidr_range\030\003 \001(\t\022U\n\023secondary_i" - + "p_ranges\030\004 \003(\01328.google.container.v1beta" - + "1.UsableSubnetworkSecondaryRange\022\026\n\016stat" - + "us_message\030\005 \001(\t\")\n\026VerticalPodAutoscali" - + "ng\022\017\n\007enabled\030\001 \001(\010\"%\n\021DefaultSnatStatus" - + "\022\020\n\010disabled\030\001 \001(\010\",\n\031IntraNodeVisibilit" - + "yConfig\022\017\n\007enabled\030\001 \001(\010\"&\n\023ILBSubsettin" - + "gConfig\022\017\n\007enabled\030\001 \001(\010\"\325\002\n\tDNSConfig\022A" - + "\n\013cluster_dns\030\001 \001(\0162,.google.container.v" - + "1beta1.DNSConfig.Provider\022G\n\021cluster_dns" - + "_scope\030\002 \001(\0162,.google.container.v1beta1." - + "DNSConfig.DNSScope\022\032\n\022cluster_dns_domain" - + "\030\003 \001(\t\"W\n\010Provider\022\030\n\024PROVIDER_UNSPECIFI" - + "ED\020\000\022\024\n\020PLATFORM_DEFAULT\020\001\022\r\n\tCLOUD_DNS\020" - + "\002\022\014\n\010KUBE_DNS\020\003\"G\n\010DNSScope\022\031\n\025DNS_SCOPE" - + "_UNSPECIFIED\020\000\022\021\n\rCLUSTER_SCOPE\020\001\022\r\n\tVPC" - + "_SCOPE\020\002\".\n\021MaxPodsConstraint\022\031\n\021max_pod" - + "s_per_node\030\001 \001(\003\"j\n\026WorkloadIdentityConf" - + "ig\022\036\n\022identity_namespace\030\001 \001(\tB\002\030\001\022\025\n\rwo" - + "rkload_pool\030\002 \001(\t\022\031\n\021identity_provider\030\003" - + " \001(\t\"E\n\022WorkloadALTSConfig\022/\n\013enable_alt" - + "s\030\001 \001(\0132\032.google.protobuf.BoolValue\"O\n\024W" - + "orkloadCertificates\0227\n\023enable_certificat" - + "es\030\001 \001(\0132\032.google.protobuf.BoolValue\"K\n\020" - + "MeshCertificates\0227\n\023enable_certificates\030" - + "\001 \001(\0132\032.google.protobuf.BoolValue\"\235\001\n\022Da" - + "tabaseEncryption\022\020\n\010key_name\030\001 \001(\t\022A\n\005st" - + "ate\030\002 \001(\01622.google.container.v1beta1.Dat" - + "abaseEncryption.State\"2\n\005State\022\013\n\007UNKNOW" - + "N\020\000\022\r\n\tENCRYPTED\020\001\022\r\n\tDECRYPTED\020\002\"\367\002\n\031Re" - + "sourceUsageExportConfig\022e\n\024bigquery_dest" - + "ination\030\001 \001(\0132G.google.container.v1beta1" - + ".ResourceUsageExportConfig.BigQueryDesti" - + "nation\022&\n\036enable_network_egress_metering" - + "\030\002 \001(\010\022r\n\033consumption_metering_config\030\003 " - + "\001(\0132M.google.container.v1beta1.ResourceU" - + "sageExportConfig.ConsumptionMeteringConf" - + "ig\032)\n\023BigQueryDestination\022\022\n\ndataset_id\030" - + "\001 \001(\t\032,\n\031ConsumptionMeteringConfig\022\017\n\007en" - + "abled\030\001 \001(\010\" \n\rShieldedNodes\022\017\n\007enabled\030" - + "\001 \001(\010\"\035\n\nVirtualNIC\022\017\n\007enabled\030\001 \001(\010\"\035\n\n" - + "FastSocket\022\017\n\007enabled\030\001 \001(\010\"(\n\026GetOpenID" - + "ConfigRequest\022\016\n\006parent\030\001 \001(\t\"\334\001\n\027GetOpe" - + "nIDConfigResponse\022\016\n\006issuer\030\001 \001(\t\022\020\n\010jwk" - + "s_uri\030\002 \001(\t\022 \n\030response_types_supported\030" - + "\003 \003(\t\022\037\n\027subject_types_supported\030\004 \003(\t\022-" - + "\n%id_token_signing_alg_values_supported\030" - + "\005 \003(\t\022\030\n\020claims_supported\030\006 \003(\t\022\023\n\013grant" - + "_types\030\007 \003(\t\"\'\n\025GetJSONWebKeysRequest\022\016\n" - + "\006parent\030\001 \001(\t\"r\n\003Jwk\022\013\n\003kty\030\001 \001(\t\022\013\n\003alg" - + "\030\002 \001(\t\022\013\n\003use\030\003 \001(\t\022\013\n\003kid\030\004 \001(\t\022\t\n\001n\030\005 " - + "\001(\t\022\t\n\001e\030\006 \001(\t\022\t\n\001x\030\007 \001(\t\022\t\n\001y\030\010 \001(\t\022\013\n\003" - + "crv\030\t \001(\t\"E\n\026GetJSONWebKeysResponse\022+\n\004k" - + "eys\030\001 \003(\0132\035.google.container.v1beta1.Jwk" - + "\"2\n\"CheckAutopilotCompatibilityRequest\022\014" - + "\n\004name\030\001 \001(\t\"\201\003\n\033AutopilotCompatibilityI" - + "ssue\0224\n\020last_observation\030\001 \001(\0132\032.google." - + "protobuf.Timestamp\022\027\n\017constraint_type\030\002 " - + "\001(\t\022]\n\024incompatibility_type\030\003 \001(\0162?.goog" - + "le.container.v1beta1.AutopilotCompatibil" - + "ityIssue.IssueType\022\020\n\010subjects\030\004 \003(\t\022\031\n\021" - + "documentation_url\030\005 \001(\t\022\023\n\013description\030\006" - + " \001(\t\"r\n\tIssueType\022\017\n\013UNSPECIFIED\020\000\022\023\n\017IN" - + "COMPATIBILITY\020\001\022\036\n\032ADDITIONAL_CONFIG_REQ" - + "UIRED\020\002\022\037\n\033PASSED_WITH_OPTIONAL_CONFIG\020\003" - + "\"}\n#CheckAutopilotCompatibilityResponse\022" - + "E\n\006issues\030\001 \003(\01325.google.container.v1bet" - + "a1.AutopilotCompatibilityIssue\022\017\n\007summar" - + "y\030\002 \001(\t\"\223\001\n\016ReleaseChannel\022A\n\007channel\030\001 " - + "\001(\01620.google.container.v1beta1.ReleaseCh" - + "annel.Channel\">\n\007Channel\022\017\n\013UNSPECIFIED\020" - + "\000\022\t\n\005RAPID\020\001\022\013\n\007REGULAR\020\002\022\n\n\006STABLE\020\003\"\'\n" - + "\024CostManagementConfig\022\017\n\007enabled\030\001 \001(\010\"U" - + "\n\tTpuConfig\022\017\n\007enabled\030\001 \001(\010\022\036\n\026use_serv" - + "ice_networking\030\002 \001(\010\022\027\n\017ipv4_cidr_block\030" - + "\003 \001(\t\"\010\n\006Master\"\224\001\n\031AutopilotConversionS" - + "tatus\022M\n\005state\030\002 \001(\01629.google.container." - + "v1beta1.AutopilotConversionStatus.StateB" - + "\003\340A\003\"(\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\010\n\004" - + "DONE\020\005\"\301\001\n\tAutopilot\022\017\n\007enabled\030\001 \001(\010\022N\n" - + "\026workload_policy_config\030\002 \001(\0132..google.c" - + "ontainer.v1beta1.WorkloadPolicyConfig\022S\n" - + "\021conversion_status\030\003 \001(\01323.google.contai" - + "ner.v1beta1.AutopilotConversionStatusB\003\340" - + "A\003\"H\n\024WorkloadPolicyConfig\022\034\n\017allow_net_" - + "admin\030\001 \001(\010H\000\210\001\001B\022\n\020_allow_net_admin\"\267\003\n" - + "\022NotificationConfig\022C\n\006pubsub\030\001 \001(\01323.go" - + "ogle.container.v1beta1.NotificationConfi" - + "g.PubSub\032\217\001\n\006PubSub\022\017\n\007enabled\030\001 \001(\010\022/\n\005" - + "topic\030\002 \001(\tB \372A\035\n\033pubsub.googleapis.com/" - + "Topic\022C\n\006filter\030\003 \001(\01323.google.container" - + ".v1beta1.NotificationConfig.Filter\032T\n\006Fi" - + "lter\022J\n\nevent_type\030\001 \003(\01626.google.contai" - + "ner.v1beta1.NotificationConfig.EventType" - + "\"t\n\tEventType\022\032\n\026EVENT_TYPE_UNSPECIFIED\020" - + "\000\022\033\n\027UPGRADE_AVAILABLE_EVENT\020\001\022\021\n\rUPGRAD" - + "E_EVENT\020\002\022\033\n\027SECURITY_BULLETIN_EVENT\020\003\"$" - + "\n\021ConfidentialNodes\022\017\n\007enabled\030\001 \001(\010\"\344\001\n" - + "\014UpgradeEvent\022D\n\rresource_type\030\001 \001(\0162-.g" - + "oogle.container.v1beta1.UpgradeResourceT" - + "ype\022\021\n\toperation\030\002 \001(\t\0228\n\024operation_star" - + "t_time\030\003 \001(\0132\032.google.protobuf.Timestamp" - + "\022\027\n\017current_version\030\004 \001(\t\022\026\n\016target_vers" - + "ion\030\005 \001(\t\022\020\n\010resource\030\006 \001(\t\"\210\002\n\025UpgradeA" - + "vailableEvent\022\017\n\007version\030\001 \001(\t\022D\n\rresour" - + "ce_type\030\002 \001(\0162-.google.container.v1beta1" - + ".UpgradeResourceType\022A\n\017release_channel\030" - + "\003 \001(\0132(.google.container.v1beta1.Release" - + "Channel\022\020\n\010resource\030\004 \001(\t\022C\n\020windows_ver" - + "sions\030\005 \001(\0132).google.container.v1beta1.W" - + "indowsVersions\"\236\002\n\025SecurityBulletinEvent" - + "\022\036\n\026resource_type_affected\030\001 \001(\t\022\023\n\013bull" - + "etin_id\030\002 \001(\t\022\017\n\007cve_ids\030\003 \003(\t\022\020\n\010severi" - + "ty\030\004 \001(\t\022\024\n\014bulletin_uri\030\005 \001(\t\022\031\n\021brief_" - + "description\030\006 \001(\t\022!\n\031affected_supported_" - + "minors\030\007 \003(\t\022\030\n\020patched_versions\030\010 \003(\t\022 " - + "\n\030suggested_upgrade_target\030\t \001(\t\022\035\n\025manu" - + "al_steps_required\030\n \001(\010\"(\n\025IdentityServi" - + "ceConfig\022\017\n\007enabled\030\001 \001(\010\"[\n\rLoggingConf" - + "ig\022J\n\020component_config\030\001 \001(\01320.google.co" - + "ntainer.v1beta1.LoggingComponentConfig\"\364" - + "\001\n\026LoggingComponentConfig\022U\n\021enable_comp" - + "onents\030\001 \003(\0162:.google.container.v1beta1." - + "LoggingComponentConfig.Component\"\202\001\n\tCom" - + "ponent\022\031\n\025COMPONENT_UNSPECIFIED\020\000\022\025\n\021SYS" - + "TEM_COMPONENTS\020\001\022\r\n\tWORKLOADS\020\002\022\r\n\tAPISE" - + "RVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MANA" - + "GER\020\005\"\246\002\n\020MonitoringConfig\022M\n\020component_" - + "config\030\001 \001(\01323.google.container.v1beta1." - + "MonitoringComponentConfig\022T\n\031managed_pro" - + "metheus_config\030\002 \001(\01321.google.container." - + "v1beta1.ManagedPrometheusConfig\022m\n&advan" - + "ced_datapath_observability_config\030\003 \001(\0132" - + "=.google.container.v1beta1.AdvancedDatap" - + "athObservabilityConfig\"\243\002\n#AdvancedDatap" - + "athObservabilityConfig\022\026\n\016enable_metrics" - + "\030\001 \001(\010\022[\n\nrelay_mode\030\002 \001(\0162G.google.cont" - + "ainer.v1beta1.AdvancedDatapathObservabil" - + "ityConfig.RelayMode\022\031\n\014enable_relay\030\003 \001(" - + "\010H\000\210\001\001\"[\n\tRelayMode\022\032\n\026RELAY_MODE_UNSPEC" - + "IFIED\020\000\022\014\n\010DISABLED\020\001\022\023\n\017INTERNAL_VPC_LB" - + "\020\003\022\017\n\013EXTERNAL_LB\020\004B\017\n\r_enable_relay\"_\n\025" - + "NodePoolLoggingConfig\022F\n\016variant_config\030" - + "\001 \001(\0132..google.container.v1beta1.Logging" - + "VariantConfig\"\244\001\n\024LoggingVariantConfig\022G" - + "\n\007variant\030\001 \001(\01626.google.container.v1bet" - + "a1.LoggingVariantConfig.Variant\"C\n\007Varia" - + "nt\022\027\n\023VARIANT_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001" - + "\022\022\n\016MAX_THROUGHPUT\020\002\"\315\002\n\031MonitoringCompo" - + "nentConfig\022X\n\021enable_components\030\001 \003(\0162=." - + "google.container.v1beta1.MonitoringCompo" - + "nentConfig.Component\"\325\001\n\tComponent\022\031\n\025CO" - + "MPONENT_UNSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONEN" - + "TS\020\001\022\021\n\tWORKLOADS\020\002\032\002\010\001\022\r\n\tAPISERVER\020\003\022\r" - + "\n\tSCHEDULER\020\004\022\026\n\022CONTROLLER_MANAGER\020\005\022\013\n" - + "\007STORAGE\020\007\022\007\n\003HPA\020\010\022\007\n\003POD\020\t\022\r\n\tDAEMONSE" - + "T\020\n\022\016\n\nDEPLOYMENT\020\013\022\017\n\013STATEFULSET\020\014\"D\n\005" - + "Fleet\022\017\n\007project\030\001 \001(\t\022\022\n\nmembership\030\002 \001" - + "(\t\022\026\n\016pre_registered\030\003 \001(\010\"\211\001\n\023ResourceM" - + "anagerTags\022E\n\004tags\030\001 \003(\01327.google.contai" - + "ner.v1beta1.ResourceManagerTags.TagsEntr" - + "y\032+\n\tTagsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\"\260\001\n\020EnterpriseConfig\022Q\n\014cluster_t" - + "ier\030\001 \001(\01626.google.container.v1beta1.Ent" - + "erpriseConfig.ClusterTierB\003\340A\003\"I\n\013Cluste" - + "rTier\022\034\n\030CLUSTER_TIER_UNSPECIFIED\020\000\022\014\n\010S" - + "TANDARD\020\001\022\016\n\nENTERPRISE\020\002\"\240\001\n\021SecondaryB" - + "ootDisk\022>\n\004mode\030\001 \001(\01620.google.container" - + ".v1beta1.SecondaryBootDisk.Mode\022\022\n\ndisk_" - + "image\030\002 \001(\t\"7\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020" - + "\000\022\031\n\025CONTAINER_IMAGE_CACHE\020\001*\306\001\n\027Private" - + "IPv6GoogleAccess\022*\n&PRIVATE_IPV6_GOOGLE_" - + "ACCESS_UNSPECIFIED\020\000\022\'\n#PRIVATE_IPV6_GOO" - + "GLE_ACCESS_DISABLED\020\001\022(\n$PRIVATE_IPV6_GO" - + "OGLE_ACCESS_TO_GOOGLE\020\002\022,\n(PRIVATE_IPV6_" - + "GOOGLE_ACCESS_BIDIRECTIONAL\020\003*W\n\023Upgrade" - + "ResourceType\022%\n!UPGRADE_RESOURCE_TYPE_UN" - + "SPECIFIED\020\000\022\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\002*^" - + "\n\026NodePoolUpdateStrategy\022)\n%NODE_POOL_UP" - + "DATE_STRATEGY_UNSPECIFIED\020\000\022\016\n\nBLUE_GREE" - + "N\020\002\022\t\n\005SURGE\020\003*a\n\020DatapathProvider\022!\n\035DA", - "TAPATH_PROVIDER_UNSPECIFIED\020\000\022\023\n\017LEGACY_" - + "DATAPATH\020\001\022\025\n\021ADVANCED_DATAPATH\020\002*@\n\tSta" - + "ckType\022\032\n\026STACK_TYPE_UNSPECIFIED\020\000\022\010\n\004IP" - + "V4\020\001\022\r\n\tIPV4_IPV6\020\002*\237\001\n\031InTransitEncrypt" - + "ionConfig\022,\n(IN_TRANSIT_ENCRYPTION_CONFI" - + "G_UNSPECIFIED\020\000\022\"\n\036IN_TRANSIT_ENCRYPTION" - + "_DISABLED\020\001\0220\n,IN_TRANSIT_ENCRYPTION_INT" - + "ER_NODE_TRANSPARENT\020\0022\246N\n\016ClusterManager" - + "\022\363\001\n\014ListClusters\022-.google.container.v1b" - + "eta1.ListClustersRequest\032..google.contai" - + "ner.v1beta1.ListClustersResponse\"\203\001\332A\017pr" - + "oject_id,zone\202\323\344\223\002k\0221/v1beta1/{parent=pr" - + "ojects/*/locations/*}/clustersZ6\0224/v1bet" - + "a1/projects/{project_id}/zones/{zone}/cl" - + "usters\022\372\001\n\nGetCluster\022+.google.container" - + ".v1beta1.GetClusterRequest\032!.google.cont" - + "ainer.v1beta1.Cluster\"\233\001\332A\032project_id,zo" - + "ne,cluster_id\202\323\344\223\002x\0221/v1beta1/{name=proj" - + "ects/*/locations/*/clusters/*}ZC\022A/v1bet" - + "a1/projects/{project_id}/zones/{zone}/cl" - + "usters/{cluster_id}\022\370\001\n\rCreateCluster\022.." - + "google.container.v1beta1.CreateClusterRe" - + "quest\032#.google.container.v1beta1.Operati" - + "on\"\221\001\332A\027project_id,zone,cluster\202\323\344\223\002q\"1/" - + "v1beta1/{parent=projects/*/locations/*}/" - + "clusters:\001*Z9\"4/v1beta1/projects/{projec" - + "t_id}/zones/{zone}/clusters:\001*\022\217\002\n\rUpdat" - + "eCluster\022..google.container.v1beta1.Upda" - + "teClusterRequest\032#.google.container.v1be" - + "ta1.Operation\"\250\001\332A!project_id,zone,clust" - + "er_id,update\202\323\344\223\002~\0321/v1beta1/{name=proje" - + "cts/*/locations/*/clusters/*}:\001*ZF\032A/v1b" - + "eta1/projects/{project_id}/zones/{zone}/" - + "clusters/{cluster_id}:\001*\022\232\002\n\016UpdateNodeP" - + "ool\022/.google.container.v1beta1.UpdateNod" - + "ePoolRequest\032#.google.container.v1beta1." - + "Operation\"\261\001\202\323\344\223\002\252\001\032=/v1beta1/{name=proj" - + "ects/*/locations/*/clusters/*/nodePools/" - + "*}:\001*Zf\"a/v1beta1/projects/{project_id}/" - + "zones/{zone}/clusters/{cluster_id}/nodeP" - + "ools/{node_pool_id}/update:\001*\022\276\002\n\026SetNod" - + "ePoolAutoscaling\0227.google.container.v1be" - + "ta1.SetNodePoolAutoscalingRequest\032#.goog" - + "le.container.v1beta1.Operation\"\305\001\202\323\344\223\002\276\001" - + "\"L/v1beta1/{name=projects/*/locations/*/" - + "clusters/*/nodePools/*}:setAutoscaling:\001" - + "*Zk\"f/v1beta1/projects/{project_id}/zone" + + "cluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030" + + "\004 \001(\tB\005\030\001\340A\002\022A\n\nmanagement\030\005 \001(\0132(.googl" + + "e.container.v1beta1.NodeManagementB\003\340A\002\022" + + "\014\n\004name\030\007 \001(\t\"\247\001\n\026SetNodePoolSizeRequest" + + "\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(" + + "\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014n" + + "ode_pool_id\030\004 \001(\tB\005\030\001\340A\002\022\027\n\nnode_count\030\005" + + " \001(\005B\003\340A\002\022\014\n\004name\030\007 \001(\t\".\n\036CompleteNodeP" + + "oolUpgradeRequest\022\014\n\004name\030\001 \001(\t\"\253\001\n\036Roll" + + "backNodePoolUpgradeRequest\022\031\n\nproject_id" + + "\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncl" + + "uster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 " + + "\001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001(\t\022\023\n\013respect_pdb\030" + + "\007 \001(\010\"O\n\025ListNodePoolsResponse\0226\n\nnode_p" + + "ools\030\001 \003(\0132\".google.container.v1beta1.No" + + "dePool\"\276\003\n\022ClusterAutoscaling\022$\n\034enable_" + + "node_autoprovisioning\030\001 \001(\010\022@\n\017resource_" + + "limits\030\002 \003(\0132\'.google.container.v1beta1." + + "ResourceLimit\022\\\n\023autoscaling_profile\030\003 \001" + + "(\0162?.google.container.v1beta1.ClusterAut" + + "oscaling.AutoscalingProfile\022g\n#autoprovi" + + "sioning_node_pool_defaults\030\004 \001(\0132:.googl" + + "e.container.v1beta1.AutoprovisioningNode" + + "PoolDefaults\022\"\n\032autoprovisioning_locatio" + + "ns\030\005 \003(\t\"U\n\022AutoscalingProfile\022\027\n\023PROFIL" + + "E_UNSPECIFIED\020\000\022\030\n\024OPTIMIZE_UTILIZATION\020" + + "\001\022\014\n\010BALANCED\020\002\"\207\004\n AutoprovisioningNode" + + "PoolDefaults\022\024\n\014oauth_scopes\030\001 \003(\t\022\027\n\017se" + + "rvice_account\030\002 \001(\t\022L\n\020upgrade_settings\030" + + "\003 \001(\01322.google.container.v1beta1.NodePoo" + + "l.UpgradeSettings\022<\n\nmanagement\030\004 \001(\0132(." + + "google.container.v1beta1.NodeManagement\022" + + "\034\n\020min_cpu_platform\030\005 \001(\tB\002\030\001\022\024\n\014disk_si" + + "ze_gb\030\006 \001(\005\022\021\n\tdisk_type\030\007 \001(\t\022R\n\030shield" + + "ed_instance_config\030\010 \001(\01320.google.contai" + + "ner.v1beta1.ShieldedInstanceConfig\022\031\n\021bo" + + "ot_disk_kms_key\030\t \001(\t\022\022\n\nimage_type\030\n \001(" + + "\t\0223\n&insecure_kubelet_readonly_port_enab" + + "led\030\r \001(\010H\000\210\001\001B)\n\'_insecure_kubelet_read" + + "only_port_enabled\"H\n\rResourceLimit\022\025\n\rre" + + "source_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001(\003\022\017\n\007ma" + + "ximum\030\003 \001(\003\"\314\002\n\023NodePoolAutoscaling\022\017\n\007e" + + "nabled\030\001 \001(\010\022\026\n\016min_node_count\030\002 \001(\005\022\026\n\016" + + "max_node_count\030\003 \001(\005\022\027\n\017autoprovisioned\030" + + "\004 \001(\010\022U\n\017location_policy\030\005 \001(\0162<.google." + + "container.v1beta1.NodePoolAutoscaling.Lo" + + "cationPolicy\022\034\n\024total_min_node_count\030\006 \001" + + "(\005\022\034\n\024total_max_node_count\030\007 \001(\005\"H\n\016Loca" + + "tionPolicy\022\037\n\033LOCATION_POLICY_UNSPECIFIE" + + "D\020\000\022\014\n\010BALANCED\020\001\022\007\n\003ANY\020\002\"\240\002\n\020SetLabels" + + "Request\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zo" + + "ne\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340" + + "A\002\022\\\n\017resource_labels\030\004 \003(\0132>.google.con" + + "tainer.v1beta1.SetLabelsRequest.Resource" + + "LabelsEntryB\003\340A\002\022\036\n\021label_fingerprint\030\005 " + + "\001(\tB\003\340A\002\022\014\n\004name\030\007 \001(\t\0325\n\023ResourceLabels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\205\001" + + "\n\024SetLegacyAbacRequest\022\031\n\nproject_id\030\001 \001" + + "(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluste" + + "r_id\030\003 \001(\tB\005\030\001\340A\002\022\024\n\007enabled\030\004 \001(\010B\003\340A\002\022" + + "\014\n\004name\030\006 \001(\t\"\215\001\n\026StartIPRotationRequest" + + "\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(" + + "\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004n" + + "ame\030\006 \001(\t\022\032\n\022rotate_credentials\030\007 \001(\010\"t\n" + + "\031CompleteIPRotationRequest\022\031\n\nproject_id" + + "\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncl" + + "uster_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\007 \001(\t\"\374\002\n\021" + + "AcceleratorConfig\022\031\n\021accelerator_count\030\001" + + " \001(\003\022\030\n\020accelerator_type\030\002 \001(\t\022\032\n\022gpu_pa" + + "rtition_size\030\003 \001(\t\022+\n\037max_time_shared_cl" + + "ients_per_gpu\030\004 \001(\003B\002\030\001\022K\n\022gpu_sharing_c" + + "onfig\030\005 \001(\0132*.google.container.v1beta1.G" + + "PUSharingConfigH\000\210\001\001\022b\n\036gpu_driver_insta" + + "llation_config\030\006 \001(\01325.google.container." + + "v1beta1.GPUDriverInstallationConfigH\001\210\001\001" + + "B\025\n\023_gpu_sharing_configB!\n\037_gpu_driver_i" + + "nstallation_config\"\377\001\n\020GPUSharingConfig\022" + + "\"\n\032max_shared_clients_per_gpu\030\001 \001(\003\022`\n\024g" + + "pu_sharing_strategy\030\002 \001(\0162=.google.conta" + + "iner.v1beta1.GPUSharingConfig.GPUSharing" + + "StrategyH\000\210\001\001\"L\n\022GPUSharingStrategy\022$\n G" + + "PU_SHARING_STRATEGY_UNSPECIFIED\020\000\022\020\n\014TIM" + + "E_SHARING\020\001B\027\n\025_gpu_sharing_strategy\"\211\002\n" + + "\033GPUDriverInstallationConfig\022g\n\022gpu_driv" + + "er_version\030\001 \001(\0162F.google.container.v1be" + + "ta1.GPUDriverInstallationConfig.GPUDrive" + + "rVersionH\000\210\001\001\"j\n\020GPUDriverVersion\022\"\n\036GPU" + + "_DRIVER_VERSION_UNSPECIFIED\020\000\022\031\n\025INSTALL" + + "ATION_DISABLED\020\001\022\013\n\007DEFAULT\020\002\022\n\n\006LATEST\020" + + "\003B\025\n\023_gpu_driver_version\"*\n\027ManagedProme" + + "theusConfig\022\017\n\007enabled\030\001 \001(\010\"\313\002\n\026Workloa" + + "dMetadataConfig\022X\n\rnode_metadata\030\001 \001(\0162=" + + ".google.container.v1beta1.WorkloadMetada" + + "taConfig.NodeMetadataB\002\030\001\022C\n\004mode\030\002 \001(\0162" + + "5.google.container.v1beta1.WorkloadMetad" + + "ataConfig.Mode\"P\n\014NodeMetadata\022\017\n\013UNSPEC" + + "IFIED\020\000\022\n\n\006SECURE\020\001\022\n\n\006EXPOSE\020\002\022\027\n\023GKE_M" + + "ETADATA_SERVER\020\003\"@\n\004Mode\022\024\n\020MODE_UNSPECI" + + "FIED\020\000\022\020\n\014GCE_METADATA\020\001\022\020\n\014GKE_METADATA" + + "\020\002\"\270\001\n\027SetNetworkPolicyRequest\022\031\n\nprojec" + + "t_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031" + + "\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022D\n\016network_pol" + + "icy\030\004 \001(\0132\'.google.container.v1beta1.Net" + + "workPolicyB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\276\001\n\033SetMai" + + "ntenancePolicyRequest\022\027\n\nproject_id\030\001 \001(" + + "\tB\003\340A\002\022\021\n\004zone\030\002 \001(\tB\003\340A\002\022\027\n\ncluster_id\030" + + "\003 \001(\tB\003\340A\002\022L\n\022maintenance_policy\030\004 \001(\0132+" + + ".google.container.v1beta1.MaintenancePol" + + "icyB\003\340A\002\022\014\n\004name\030\005 \001(\t\"+\n\024ListLocationsR" + + "equest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\"g\n\025ListLocat" + + "ionsResponse\0225\n\tlocations\030\001 \003(\0132\".google" + + ".container.v1beta1.Location\022\027\n\017next_page" + + "_token\030\002 \001(\t\"\261\001\n\010Location\022=\n\004type\030\001 \001(\0162" + + "/.google.container.v1beta1.Location.Loca" + + "tionType\022\014\n\004name\030\002 \001(\t\022\023\n\013recommended\030\003 " + + "\001(\010\"C\n\014LocationType\022\035\n\031LOCATION_TYPE_UNS" + + "PECIFIED\020\000\022\010\n\004ZONE\020\001\022\n\n\006REGION\020\002\"\262\002\n\017Sta" + + "tusCondition\022@\n\004code\030\001 \001(\0162..google.cont" + + "ainer.v1beta1.StatusCondition.CodeB\002\030\001\022\017" + + "\n\007message\030\002 \001(\t\022(\n\016canonical_code\030\003 \001(\0162" + + "\020.google.rpc.Code\"\241\001\n\004Code\022\013\n\007UNKNOWN\020\000\022" + + "\020\n\014GCE_STOCKOUT\020\001\022\037\n\033GKE_SERVICE_ACCOUNT" + + "_DELETED\020\002\022\026\n\022GCE_QUOTA_EXCEEDED\020\003\022\023\n\017SE" + + "T_BY_OPERATOR\020\004\022\027\n\023CLOUD_KMS_KEY_ERROR\020\007" + + "\022\017\n\013CA_EXPIRING\020\t\032\002\030\001\"\336\t\n\rNetworkConfig\022" + + "\017\n\007network\030\001 \001(\t\022\022\n\nsubnetwork\030\002 \001(\t\022$\n\034" + + "enable_intra_node_visibility\030\005 \001(\010\022H\n\023de" + + "fault_snat_status\030\007 \001(\0132+.google.contain" + + "er.v1beta1.DefaultSnatStatus\022\037\n\027enable_l" + + "4ilb_subsetting\030\n \001(\010\022E\n\021datapath_provid" + + "er\030\013 \001(\0162*.google.container.v1beta1.Data" + + "pathProvider\022U\n\032private_ipv6_google_acce" + + "ss\030\014 \001(\01621.google.container.v1beta1.Priv" + + "ateIPv6GoogleAccess\0227\n\ndns_config\030\r \001(\0132" + + "#.google.container.v1beta1.DNSConfig\022W\n\033" + + "service_external_ips_config\030\017 \001(\01322.goog" + + "le.container.v1beta1.ServiceExternalIPsC" + + "onfig\022F\n\022gateway_api_config\030\020 \001(\0132*.goog" + + "le.container.v1beta1.GatewayAPIConfig\022\037\n" + + "\027enable_multi_networking\030\021 \001(\010\022k\n\032networ" + + "k_performance_config\030\022 \001(\0132G.google.cont" + + "ainer.v1beta1.NetworkConfig.ClusterNetwo" + + "rkPerformanceConfig\022\'\n\032enable_fqdn_netwo" + + "rk_policy\030\023 \001(\010H\000\210\001\001\022^\n\034in_transit_encry" + + "ption_config\030\024 \001(\01623.google.container.v1" + + "beta1.InTransitEncryptionConfigH\001\210\001\001\0225\n(" + + "enable_cilium_clusterwide_network_policy" + + "\030\025 \001(\010H\002\210\001\001\032\343\001\n\037ClusterNetworkPerformanc" + + "eConfig\022v\n\033total_egress_bandwidth_tier\030\001" + + " \001(\0162L.google.container.v1beta1.NetworkC" + + "onfig.ClusterNetworkPerformanceConfig.Ti" + + "erH\000\210\001\001\"(\n\004Tier\022\024\n\020TIER_UNSPECIFIED\020\000\022\n\n" + + "\006TIER_1\020\001B\036\n\034_total_egress_bandwidth_tie" + + "rB\035\n\033_enable_fqdn_network_policyB\037\n\035_in_" + + "transit_encryption_configB+\n)_enable_cil" + + "ium_clusterwide_network_policy\"\301\001\n\020Gatew" + + "ayAPIConfig\022C\n\007channel\030\001 \001(\01622.google.co" + + "ntainer.v1beta1.GatewayAPIConfig.Channel" + + "\"h\n\007Channel\022\027\n\023CHANNEL_UNSPECIFIED\020\000\022\024\n\020" + + "CHANNEL_DISABLED\020\001\022\030\n\024CHANNEL_EXPERIMENT" + + "AL\020\003\022\024\n\020CHANNEL_STANDARD\020\004\"+\n\030ServiceExt" + + "ernalIPsConfig\022\017\n\007enabled\030\001 \001(\010\"j\n\034ListU" + + "sableSubnetworksRequest\022\023\n\006parent\030\001 \001(\tB" + + "\003\340A\002\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\"y\n\035ListUsableSubnetw" + + "orksResponse\022?\n\013subnetworks\030\001 \003(\0132*.goog" + + "le.container.v1beta1.UsableSubnetwork\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\205\002\n\036UsableSubnetw" + + "orkSecondaryRange\022\022\n\nrange_name\030\001 \001(\t\022\025\n" + + "\rip_cidr_range\030\002 \001(\t\022O\n\006status\030\003 \001(\0162?.g" + + "oogle.container.v1beta1.UsableSubnetwork" + + "SecondaryRange.Status\"g\n\006Status\022\013\n\007UNKNO" + + "WN\020\000\022\n\n\006UNUSED\020\001\022\022\n\016IN_USE_SERVICE\020\002\022\030\n\024" + + "IN_USE_SHAREABLE_POD\020\003\022\026\n\022IN_USE_MANAGED" + + "_POD\020\004\"\275\001\n\020UsableSubnetwork\022\022\n\nsubnetwor" + + "k\030\001 \001(\t\022\017\n\007network\030\002 \001(\t\022\025\n\rip_cidr_rang" + + "e\030\003 \001(\t\022U\n\023secondary_ip_ranges\030\004 \003(\01328.g" + + "oogle.container.v1beta1.UsableSubnetwork" + + "SecondaryRange\022\026\n\016status_message\030\005 \001(\t\")" + + "\n\026VerticalPodAutoscaling\022\017\n\007enabled\030\001 \001(" + + "\010\"%\n\021DefaultSnatStatus\022\020\n\010disabled\030\001 \001(\010" + + "\",\n\031IntraNodeVisibilityConfig\022\017\n\007enabled" + + "\030\001 \001(\010\"&\n\023ILBSubsettingConfig\022\017\n\007enabled" + + "\030\001 \001(\010\"\325\002\n\tDNSConfig\022A\n\013cluster_dns\030\001 \001(" + + "\0162,.google.container.v1beta1.DNSConfig.P" + + "rovider\022G\n\021cluster_dns_scope\030\002 \001(\0162,.goo" + + "gle.container.v1beta1.DNSConfig.DNSScope" + + "\022\032\n\022cluster_dns_domain\030\003 \001(\t\"W\n\010Provider" + + "\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\024\n\020PLATFORM_D" + + "EFAULT\020\001\022\r\n\tCLOUD_DNS\020\002\022\014\n\010KUBE_DNS\020\003\"G\n" + + "\010DNSScope\022\031\n\025DNS_SCOPE_UNSPECIFIED\020\000\022\021\n\r" + + "CLUSTER_SCOPE\020\001\022\r\n\tVPC_SCOPE\020\002\".\n\021MaxPod" + + "sConstraint\022\031\n\021max_pods_per_node\030\001 \001(\003\"j" + + "\n\026WorkloadIdentityConfig\022\036\n\022identity_nam" + + "espace\030\001 \001(\tB\002\030\001\022\025\n\rworkload_pool\030\002 \001(\t\022" + + "\031\n\021identity_provider\030\003 \001(\t\"E\n\022WorkloadAL" + + "TSConfig\022/\n\013enable_alts\030\001 \001(\0132\032.google.p" + + "rotobuf.BoolValue\"O\n\024WorkloadCertificate" + + "s\0227\n\023enable_certificates\030\001 \001(\0132\032.google." + + "protobuf.BoolValue\"K\n\020MeshCertificates\0227" + + "\n\023enable_certificates\030\001 \001(\0132\032.google.pro" + + "tobuf.BoolValue\"\235\001\n\022DatabaseEncryption\022\020" + + "\n\010key_name\030\001 \001(\t\022A\n\005state\030\002 \001(\01622.google" + + ".container.v1beta1.DatabaseEncryption.St" + + "ate\"2\n\005State\022\013\n\007UNKNOWN\020\000\022\r\n\tENCRYPTED\020\001" + + "\022\r\n\tDECRYPTED\020\002\"\367\002\n\031ResourceUsageExportC" + + "onfig\022e\n\024bigquery_destination\030\001 \001(\0132G.go" + + "ogle.container.v1beta1.ResourceUsageExpo" + + "rtConfig.BigQueryDestination\022&\n\036enable_n" + + "etwork_egress_metering\030\002 \001(\010\022r\n\033consumpt" + + "ion_metering_config\030\003 \001(\0132M.google.conta" + + "iner.v1beta1.ResourceUsageExportConfig.C" + + "onsumptionMeteringConfig\032)\n\023BigQueryDest" + + "ination\022\022\n\ndataset_id\030\001 \001(\t\032,\n\031Consumpti" + + "onMeteringConfig\022\017\n\007enabled\030\001 \001(\010\" \n\rShi" + + "eldedNodes\022\017\n\007enabled\030\001 \001(\010\"\035\n\nVirtualNI" + + "C\022\017\n\007enabled\030\001 \001(\010\"\035\n\nFastSocket\022\017\n\007enab" + + "led\030\001 \001(\010\"(\n\026GetOpenIDConfigRequest\022\016\n\006p" + + "arent\030\001 \001(\t\"\334\001\n\027GetOpenIDConfigResponse\022" + + "\016\n\006issuer\030\001 \001(\t\022\020\n\010jwks_uri\030\002 \001(\t\022 \n\030res" + + "ponse_types_supported\030\003 \003(\t\022\037\n\027subject_t" + + "ypes_supported\030\004 \003(\t\022-\n%id_token_signing" + + "_alg_values_supported\030\005 \003(\t\022\030\n\020claims_su" + + "pported\030\006 \003(\t\022\023\n\013grant_types\030\007 \003(\t\"\'\n\025Ge" + + "tJSONWebKeysRequest\022\016\n\006parent\030\001 \001(\t\"r\n\003J" + + "wk\022\013\n\003kty\030\001 \001(\t\022\013\n\003alg\030\002 \001(\t\022\013\n\003use\030\003 \001(" + + "\t\022\013\n\003kid\030\004 \001(\t\022\t\n\001n\030\005 \001(\t\022\t\n\001e\030\006 \001(\t\022\t\n\001" + + "x\030\007 \001(\t\022\t\n\001y\030\010 \001(\t\022\013\n\003crv\030\t \001(\t\"E\n\026GetJS" + + "ONWebKeysResponse\022+\n\004keys\030\001 \003(\0132\035.google" + + ".container.v1beta1.Jwk\"2\n\"CheckAutopilot" + + "CompatibilityRequest\022\014\n\004name\030\001 \001(\t\"\201\003\n\033A" + + "utopilotCompatibilityIssue\0224\n\020last_obser" + + "vation\030\001 \001(\0132\032.google.protobuf.Timestamp" + + "\022\027\n\017constraint_type\030\002 \001(\t\022]\n\024incompatibi" + + "lity_type\030\003 \001(\0162?.google.container.v1bet" + + "a1.AutopilotCompatibilityIssue.IssueType" + + "\022\020\n\010subjects\030\004 \003(\t\022\031\n\021documentation_url\030" + + "\005 \001(\t\022\023\n\013description\030\006 \001(\t\"r\n\tIssueType\022" + + "\017\n\013UNSPECIFIED\020\000\022\023\n\017INCOMPATIBILITY\020\001\022\036\n" + + "\032ADDITIONAL_CONFIG_REQUIRED\020\002\022\037\n\033PASSED_" + + "WITH_OPTIONAL_CONFIG\020\003\"}\n#CheckAutopilot" + + "CompatibilityResponse\022E\n\006issues\030\001 \003(\01325." + + "google.container.v1beta1.AutopilotCompat" + + "ibilityIssue\022\017\n\007summary\030\002 \001(\t\"\223\001\n\016Releas" + + "eChannel\022A\n\007channel\030\001 \001(\01620.google.conta" + + "iner.v1beta1.ReleaseChannel.Channel\">\n\007C" + + "hannel\022\017\n\013UNSPECIFIED\020\000\022\t\n\005RAPID\020\001\022\013\n\007RE" + + "GULAR\020\002\022\n\n\006STABLE\020\003\"\'\n\024CostManagementCon" + + "fig\022\017\n\007enabled\030\001 \001(\010\"U\n\tTpuConfig\022\017\n\007ena" + + "bled\030\001 \001(\010\022\036\n\026use_service_networking\030\002 \001" + + "(\010\022\027\n\017ipv4_cidr_block\030\003 \001(\t\"\010\n\006Master\"\224\001" + + "\n\031AutopilotConversionStatus\022M\n\005state\030\002 \001" + + "(\01629.google.container.v1beta1.AutopilotC" + + "onversionStatus.StateB\003\340A\003\"(\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\010\n\004DONE\020\005\"\301\001\n\tAutopil" + + "ot\022\017\n\007enabled\030\001 \001(\010\022N\n\026workload_policy_c" + + "onfig\030\002 \001(\0132..google.container.v1beta1.W" + + "orkloadPolicyConfig\022S\n\021conversion_status" + + "\030\003 \001(\01323.google.container.v1beta1.Autopi" + + "lotConversionStatusB\003\340A\003\"H\n\024WorkloadPoli" + + "cyConfig\022\034\n\017allow_net_admin\030\001 \001(\010H\000\210\001\001B\022" + + "\n\020_allow_net_admin\"\267\003\n\022NotificationConfi" + + "g\022C\n\006pubsub\030\001 \001(\01323.google.container.v1b" + + "eta1.NotificationConfig.PubSub\032\217\001\n\006PubSu" + + "b\022\017\n\007enabled\030\001 \001(\010\022/\n\005topic\030\002 \001(\tB \372A\035\n\033" + + "pubsub.googleapis.com/Topic\022C\n\006filter\030\003 " + + "\001(\01323.google.container.v1beta1.Notificat" + + "ionConfig.Filter\032T\n\006Filter\022J\n\nevent_type" + + "\030\001 \003(\01626.google.container.v1beta1.Notifi" + + "cationConfig.EventType\"t\n\tEventType\022\032\n\026E" + + "VENT_TYPE_UNSPECIFIED\020\000\022\033\n\027UPGRADE_AVAIL" + + "ABLE_EVENT\020\001\022\021\n\rUPGRADE_EVENT\020\002\022\033\n\027SECUR" + + "ITY_BULLETIN_EVENT\020\003\"$\n\021ConfidentialNode" + + "s\022\017\n\007enabled\030\001 \001(\010\"\344\001\n\014UpgradeEvent\022D\n\rr" + + "esource_type\030\001 \001(\0162-.google.container.v1" + + "beta1.UpgradeResourceType\022\021\n\toperation\030\002" + + " \001(\t\0228\n\024operation_start_time\030\003 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022\027\n\017current_versio" + + "n\030\004 \001(\t\022\026\n\016target_version\030\005 \001(\t\022\020\n\010resou" + + "rce\030\006 \001(\t\"\210\002\n\025UpgradeAvailableEvent\022\017\n\007v" + + "ersion\030\001 \001(\t\022D\n\rresource_type\030\002 \001(\0162-.go" + + "ogle.container.v1beta1.UpgradeResourceTy" + + "pe\022A\n\017release_channel\030\003 \001(\0132(.google.con" + + "tainer.v1beta1.ReleaseChannel\022\020\n\010resourc" + + "e\030\004 \001(\t\022C\n\020windows_versions\030\005 \001(\0132).goog" + + "le.container.v1beta1.WindowsVersions\"\236\002\n" + + "\025SecurityBulletinEvent\022\036\n\026resource_type_" + + "affected\030\001 \001(\t\022\023\n\013bulletin_id\030\002 \001(\t\022\017\n\007c" + + "ve_ids\030\003 \003(\t\022\020\n\010severity\030\004 \001(\t\022\024\n\014bullet" + + "in_uri\030\005 \001(\t\022\031\n\021brief_description\030\006 \001(\t\022" + + "!\n\031affected_supported_minors\030\007 \003(\t\022\030\n\020pa" + + "tched_versions\030\010 \003(\t\022 \n\030suggested_upgrad" + + "e_target\030\t \001(\t\022\035\n\025manual_steps_required\030" + + "\n \001(\010\"(\n\025IdentityServiceConfig\022\017\n\007enable" + + "d\030\001 \001(\010\"[\n\rLoggingConfig\022J\n\020component_co" + + "nfig\030\001 \001(\01320.google.container.v1beta1.Lo" + + "ggingComponentConfig\"\364\001\n\026LoggingComponen" + + "tConfig\022U\n\021enable_components\030\001 \003(\0162:.goo" + + "gle.container.v1beta1.LoggingComponentCo" + + "nfig.Component\"\202\001\n\tComponent\022\031\n\025COMPONEN" + + "T_UNSPECIFIED\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\r" + + "\n\tWORKLOADS\020\002\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULE" + + "R\020\004\022\026\n\022CONTROLLER_MANAGER\020\005\"\246\002\n\020Monitori" + + "ngConfig\022M\n\020component_config\030\001 \001(\01323.goo" + + "gle.container.v1beta1.MonitoringComponen" + + "tConfig\022T\n\031managed_prometheus_config\030\002 \001" + + "(\01321.google.container.v1beta1.ManagedPro" + + "metheusConfig\022m\n&advanced_datapath_obser" + + "vability_config\030\003 \001(\0132=.google.container" + + ".v1beta1.AdvancedDatapathObservabilityCo" + + "nfig\"\243\002\n#AdvancedDatapathObservabilityCo" + + "nfig\022\026\n\016enable_metrics\030\001 \001(\010\022[\n\nrelay_mo" + + "de\030\002 \001(\0162G.google.container.v1beta1.Adva" + + "ncedDatapathObservabilityConfig.RelayMod" + + "e\022\031\n\014enable_relay\030\003 \001(\010H\000\210\001\001\"[\n\tRelayMod" + + "e\022\032\n\026RELAY_MODE_UNSPECIFIED\020\000\022\014\n\010DISABLE" + + "D\020\001\022\023\n\017INTERNAL_VPC_LB\020\003\022\017\n\013EXTERNAL_LB\020" + + "\004B\017\n\r_enable_relay\"_\n\025NodePoolLoggingCon" + + "fig\022F\n\016variant_config\030\001 \001(\0132..google.con" + + "tainer.v1beta1.LoggingVariantConfig\"\244\001\n\024" + + "LoggingVariantConfig\022G\n\007variant\030\001 \001(\01626." + + "google.container.v1beta1.LoggingVariantC" + + "onfig.Variant\"C\n\007Variant\022\027\n\023VARIANT_UNSP" + + "ECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\022\n\016MAX_THROUGHPUT" + + "\020\002\"\315\002\n\031MonitoringComponentConfig\022X\n\021enab" + + "le_components\030\001 \003(\0162=.google.container.v" + + "1beta1.MonitoringComponentConfig.Compone" + + "nt\"\325\001\n\tComponent\022\031\n\025COMPONENT_UNSPECIFIE" + + "D\020\000\022\025\n\021SYSTEM_COMPONENTS\020\001\022\021\n\tWORKLOADS\020" + + "\002\032\002\010\001\022\r\n\tAPISERVER\020\003\022\r\n\tSCHEDULER\020\004\022\026\n\022C" + + "ONTROLLER_MANAGER\020\005\022\013\n\007STORAGE\020\007\022\007\n\003HPA\020" + + "\010\022\007\n\003POD\020\t\022\r\n\tDAEMONSET\020\n\022\016\n\nDEPLOYMENT\020" + + "\013\022\017\n\013STATEFULSET\020\014\"D\n\005Fleet\022\017\n\007project\030\001" + + " \001(\t\022\022\n\nmembership\030\002 \001(\t\022\026\n\016pre_register" + + "ed\030\003 \001(\010\"\211\001\n\023ResourceManagerTags\022E\n\004tags" + + "\030\001 \003(\01327.google.container.v1beta1.Resour" + + "ceManagerTags.TagsEntry\032+\n\tTagsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\260\001\n\020Enterpr" + + "iseConfig\022Q\n\014cluster_tier\030\001 \001(\01626.google" + + ".container.v1beta1.EnterpriseConfig.Clus" + + "terTierB\003\340A\003\"I\n\013ClusterTier\022\034\n\030CLUSTER_T" + + "IER_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\016\n\nENTER" + + "PRISE\020\002\"7\n\023SecretManagerConfig\022\024\n\007enable" + + "d\030\001 \001(\010H\000\210\001\001B\n\n\010_enabled\"\240\001\n\021SecondaryBo" + + "otDisk\022>\n\004mode\030\001 \001(\01620.google.container." + + "v1beta1.SecondaryBootDisk.Mode\022\022\n\ndisk_i", + "mage\030\002 \001(\t\"7\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020\000" + + "\022\031\n\025CONTAINER_IMAGE_CACHE\020\001*\306\001\n\027PrivateI" + + "Pv6GoogleAccess\022*\n&PRIVATE_IPV6_GOOGLE_A" + + "CCESS_UNSPECIFIED\020\000\022\'\n#PRIVATE_IPV6_GOOG" + + "LE_ACCESS_DISABLED\020\001\022(\n$PRIVATE_IPV6_GOO" + + "GLE_ACCESS_TO_GOOGLE\020\002\022,\n(PRIVATE_IPV6_G" + + "OOGLE_ACCESS_BIDIRECTIONAL\020\003*W\n\023UpgradeR" + + "esourceType\022%\n!UPGRADE_RESOURCE_TYPE_UNS" + + "PECIFIED\020\000\022\n\n\006MASTER\020\001\022\r\n\tNODE_POOL\020\002*^\n" + + "\026NodePoolUpdateStrategy\022)\n%NODE_POOL_UPD" + + "ATE_STRATEGY_UNSPECIFIED\020\000\022\016\n\nBLUE_GREEN" + + "\020\002\022\t\n\005SURGE\020\003*a\n\020DatapathProvider\022!\n\035DAT" + + "APATH_PROVIDER_UNSPECIFIED\020\000\022\023\n\017LEGACY_D" + + "ATAPATH\020\001\022\025\n\021ADVANCED_DATAPATH\020\002*@\n\tStac" + + "kType\022\032\n\026STACK_TYPE_UNSPECIFIED\020\000\022\010\n\004IPV" + + "4\020\001\022\r\n\tIPV4_IPV6\020\002*\237\001\n\031InTransitEncrypti" + + "onConfig\022,\n(IN_TRANSIT_ENCRYPTION_CONFIG" + + "_UNSPECIFIED\020\000\022\"\n\036IN_TRANSIT_ENCRYPTION_" + + "DISABLED\020\001\0220\n,IN_TRANSIT_ENCRYPTION_INTE" + + "R_NODE_TRANSPARENT\020\0022\246N\n\016ClusterManager\022" + + "\363\001\n\014ListClusters\022-.google.container.v1be" + + "ta1.ListClustersRequest\032..google.contain" + + "er.v1beta1.ListClustersResponse\"\203\001\332A\017pro" + + "ject_id,zone\202\323\344\223\002k\0221/v1beta1/{parent=pro" + + "jects/*/locations/*}/clustersZ6\0224/v1beta" + + "1/projects/{project_id}/zones/{zone}/clu" + + "sters\022\372\001\n\nGetCluster\022+.google.container." + + "v1beta1.GetClusterRequest\032!.google.conta" + + "iner.v1beta1.Cluster\"\233\001\332A\032project_id,zon" + + "e,cluster_id\202\323\344\223\002x\0221/v1beta1/{name=proje" + + "cts/*/locations/*/clusters/*}ZC\022A/v1beta" + + "1/projects/{project_id}/zones/{zone}/clu" + + "sters/{cluster_id}\022\370\001\n\rCreateCluster\022..g" + + "oogle.container.v1beta1.CreateClusterReq" + + "uest\032#.google.container.v1beta1.Operatio" + + "n\"\221\001\332A\027project_id,zone,cluster\202\323\344\223\002q\"1/v" + + "1beta1/{parent=projects/*/locations/*}/c" + + "lusters:\001*Z9\"4/v1beta1/projects/{project" + + "_id}/zones/{zone}/clusters:\001*\022\217\002\n\rUpdate" + + "Cluster\022..google.container.v1beta1.Updat" + + "eClusterRequest\032#.google.container.v1bet" + + "a1.Operation\"\250\001\332A!project_id,zone,cluste" + + "r_id,update\202\323\344\223\002~\0321/v1beta1/{name=projec" + + "ts/*/locations/*/clusters/*}:\001*ZF\032A/v1be" + + "ta1/projects/{project_id}/zones/{zone}/c" + + "lusters/{cluster_id}:\001*\022\232\002\n\016UpdateNodePo" + + "ol\022/.google.container.v1beta1.UpdateNode" + + "PoolRequest\032#.google.container.v1beta1.O" + + "peration\"\261\001\202\323\344\223\002\252\001\032=/v1beta1/{name=proje" + + "cts/*/locations/*/clusters/*/nodePools/*" + + "}:\001*Zf\"a/v1beta1/projects/{project_id}/z" + + "ones/{zone}/clusters/{cluster_id}/nodePo" + + "ols/{node_pool_id}/update:\001*\022\276\002\n\026SetNode" + + "PoolAutoscaling\0227.google.container.v1bet" + + "a1.SetNodePoolAutoscalingRequest\032#.googl" + + "e.container.v1beta1.Operation\"\305\001\202\323\344\223\002\276\001\"" + + "L/v1beta1/{name=projects/*/locations/*/c" + + "lusters/*/nodePools/*}:setAutoscaling:\001*" + + "Zk\"f/v1beta1/projects/{project_id}/zones" + + "/{zone}/clusters/{cluster_id}/nodePools/" + + "{node_pool_id}/autoscaling:\001*\022\264\002\n\021SetLog" + + "gingService\0222.google.container.v1beta1.S" + + "etLoggingServiceRequest\032#.google.contain" + + "er.v1beta1.Operation\"\305\001\332A*project_id,zon" + + "e,cluster_id,logging_service\202\323\344\223\002\221\001\"/v1beta1/{name=projects/*/locations/" + + "*/clusters/*}:setLocations:\001*ZP\"K/v1beta" + + "1/projects/{project_id}/zones/{zone}/clu" + + "sters/{cluster_id}/locations:\001*\022\252\002\n\014Upda" + + "teMaster\022-.google.container.v1beta1.Upda" + + "teMasterRequest\032#.google.container.v1bet" + + "a1.Operation\"\305\001\332A)project_id,zone,cluste" + + "r_id,master_version\202\323\344\223\002\222\001\">/v1beta1/{na" + + "me=projects/*/locations/*/clusters/*}:up" + + "dateMaster:\001*ZM\"H/v1beta1/projects/{proj" + + "ect_id}/zones/{zone}/clusters/{cluster_i" + + "d}/master:\001*\022\210\002\n\rSetMasterAuth\022..google." + + "container.v1beta1.SetMasterAuthRequest\032#" + + ".google.container.v1beta1.Operation\"\241\001\202\323" + + "\344\223\002\232\001\"?/v1beta1/{name=projects/*/locatio" + + "ns/*/clusters/*}:setMasterAuth:\001*ZT\"O/v1" + + "beta1/projects/{project_id}/zones/{zone}" + + "/clusters/{cluster_id}:setMasterAuth:\001*\022" + + "\202\002\n\rDeleteCluster\022..google.container.v1b" + + "eta1.DeleteClusterRequest\032#.google.conta" + + "iner.v1beta1.Operation\"\233\001\332A\032project_id,z" + + "one,cluster_id\202\323\344\223\002x*1/v1beta1/{name=pro" + + "jects/*/locations/*/clusters/*}ZC*A/v1be" + + "ta1/projects/{project_id}/zones/{zone}/c" + + "lusters/{cluster_id}\022\375\001\n\016ListOperations\022" + + "/.google.container.v1beta1.ListOperation" + + "sRequest\0320.google.container.v1beta1.List" + + "OperationsResponse\"\207\001\332A\017project_id,zone\202" + + "\323\344\223\002o\0223/v1beta1/{parent=projects/*/locat" + + "ions/*}/operationsZ8\0226/v1beta1/projects/" + + "{project_id}/zones/{zone}/operations\022\210\002\n" + + "\014GetOperation\022-.google.container.v1beta1" + + ".GetOperationRequest\032#.google.container." + + "v1beta1.Operation\"\243\001\332A\034project_id,zone,o" + + "peration_id\202\323\344\223\002~\0223/v1beta1/{name=projec" + + "ts/*/locations/*/operations/*}ZG\022E/v1bet" + + "a1/projects/{project_id}/zones/{zone}/op" + + "erations/{operation_id}\022\226\002\n\017CancelOperat" + + "ion\0220.google.container.v1beta1.CancelOpe" + + "rationRequest\032\026.google.protobuf.Empty\"\270\001" + + "\332A\034project_id,zone,operation_id\202\323\344\223\002\222\001\":" + + "/v1beta1/{name=projects/*/locations/*/op" + + "erations/*}:cancel:\001*ZQ\"L/v1beta1/projec" + + "ts/{project_id}/zones/{zone}/operations/" + + "{operation_id}:cancel:\001*\022\367\001\n\017GetServerCo" + + "nfig\0220.google.container.v1beta1.GetServe" + + "rConfigRequest\032&.google.container.v1beta" + + "1.ServerConfig\"\211\001\332A\017project_id,zone\202\323\344\223\002" + + "q\0223/v1beta1/{name=projects/*/locations/*" + + "}/serverConfigZ:\0228/v1beta1/projects/{pro" + + "ject_id}/zones/{zone}/serverconfig\022\265\001\n\016G" + + "etJSONWebKeys\022/.google.container.v1beta1" + + ".GetJSONWebKeysRequest\0320.google.containe" + + "r.v1beta1.GetJSONWebKeysResponse\"@\202\323\344\223\002:" + + "\0228/v1beta1/{parent=projects/*/locations/" + + "*/clusters/*}/jwks\022\245\002\n\rListNodePools\022..g" + + "oogle.container.v1beta1.ListNodePoolsReq" + + "uest\032/.google.container.v1beta1.ListNode" + + "PoolsResponse\"\262\001\332A\032project_id,zone,clust" + + "er_id\202\323\344\223\002\216\001\022=/v1beta1/{parent=projects/" + + "*/locations/*/clusters/*}/nodePoolsZM\022K/" + + "v1beta1/projects/{project_id}/zones/{zon" + + "e}/clusters/{cluster_id}/nodePools\022\260\002\n\013G" + + "etNodePool\022,.google.container.v1beta1.Ge" + + "tNodePoolRequest\032\".google.container.v1be" + + "ta1.NodePool\"\316\001\332A\'project_id,zone,cluste" + + "r_id,node_pool_id\202\323\344\223\002\235\001\022=/v1beta1/{name" + + "=projects/*/locations/*/clusters/*/nodeP" + + "ools/*}Z\\\022Z/v1beta1/projects/{project_id" + + "}/zones/{zone}/clusters/{cluster_id}/nod" + + "ePools/{node_pool_id}\022\253\002\n\016CreateNodePool" + + "\022/.google.container.v1beta1.CreateNodePo" + + "olRequest\032#.google.container.v1beta1.Ope" + + "ration\"\302\001\332A$project_id,zone,cluster_id,n" + + "ode_pool\202\323\344\223\002\224\001\"=/v1beta1/{parent=projec" + + "ts/*/locations/*/clusters/*}/nodePools:\001" + + "*ZP\"K/v1beta1/projects/{project_id}/zone" + "s/{zone}/clusters/{cluster_id}/nodePools" - + "/{node_pool_id}/autoscaling:\001*\022\264\002\n\021SetLo" - + "ggingService\0222.google.container.v1beta1." - + "SetLoggingServiceRequest\032#.google.contai" - + "ner.v1beta1.Operation\"\305\001\332A*project_id,zo" - + "ne,cluster_id,logging_service\202\323\344\223\002\221\001\"/v1beta1/{name=projects/*/locations" - + "/*/clusters/*}:setLocations:\001*ZP\"K/v1bet" - + "a1/projects/{project_id}/zones/{zone}/cl" - + "usters/{cluster_id}/locations:\001*\022\252\002\n\014Upd" - + "ateMaster\022-.google.container.v1beta1.Upd" - + "ateMasterRequest\032#.google.container.v1be" - + "ta1.Operation\"\305\001\332A)project_id,zone,clust" - + "er_id,master_version\202\323\344\223\002\222\001\">/v1beta1/{n" - + "ame=projects/*/locations/*/clusters/*}:u" - + "pdateMaster:\001*ZM\"H/v1beta1/projects/{pro" - + "ject_id}/zones/{zone}/clusters/{cluster_" - + "id}/master:\001*\022\210\002\n\rSetMasterAuth\022..google" - + ".container.v1beta1.SetMasterAuthRequest\032" - + "#.google.container.v1beta1.Operation\"\241\001\202" - + "\323\344\223\002\232\001\"?/v1beta1/{name=projects/*/locati" - + "ons/*/clusters/*}:setMasterAuth:\001*ZT\"O/v" - + "1beta1/projects/{project_id}/zones/{zone" - + "}/clusters/{cluster_id}:setMasterAuth:\001*" - + "\022\202\002\n\rDeleteCluster\022..google.container.v1" - + "beta1.DeleteClusterRequest\032#.google.cont" - + "ainer.v1beta1.Operation\"\233\001\332A\032project_id," - + "zone,cluster_id\202\323\344\223\002x*1/v1beta1/{name=pr" - + "ojects/*/locations/*/clusters/*}ZC*A/v1b" - + "eta1/projects/{project_id}/zones/{zone}/" - + "clusters/{cluster_id}\022\375\001\n\016ListOperations" - + "\022/.google.container.v1beta1.ListOperatio" - + "nsRequest\0320.google.container.v1beta1.Lis" - + "tOperationsResponse\"\207\001\332A\017project_id,zone" - + "\202\323\344\223\002o\0223/v1beta1/{parent=projects/*/loca" - + "tions/*}/operationsZ8\0226/v1beta1/projects" - + "/{project_id}/zones/{zone}/operations\022\210\002" - + "\n\014GetOperation\022-.google.container.v1beta" - + "1.GetOperationRequest\032#.google.container" - + ".v1beta1.Operation\"\243\001\332A\034project_id,zone," - + "operation_id\202\323\344\223\002~\0223/v1beta1/{name=proje" - + "cts/*/locations/*/operations/*}ZG\022E/v1be" - + "ta1/projects/{project_id}/zones/{zone}/o" - + "perations/{operation_id}\022\226\002\n\017CancelOpera" - + "tion\0220.google.container.v1beta1.CancelOp" - + "erationRequest\032\026.google.protobuf.Empty\"\270" - + "\001\332A\034project_id,zone,operation_id\202\323\344\223\002\222\001\"" - + ":/v1beta1/{name=projects/*/locations/*/o" - + "perations/*}:cancel:\001*ZQ\"L/v1beta1/proje" - + "cts/{project_id}/zones/{zone}/operations" - + "/{operation_id}:cancel:\001*\022\367\001\n\017GetServerC" - + "onfig\0220.google.container.v1beta1.GetServ" - + "erConfigRequest\032&.google.container.v1bet" - + "a1.ServerConfig\"\211\001\332A\017project_id,zone\202\323\344\223" - + "\002q\0223/v1beta1/{name=projects/*/locations/" - + "*}/serverConfigZ:\0228/v1beta1/projects/{pr" - + "oject_id}/zones/{zone}/serverconfig\022\265\001\n\016" - + "GetJSONWebKeys\022/.google.container.v1beta" - + "1.GetJSONWebKeysRequest\0320.google.contain" - + "er.v1beta1.GetJSONWebKeysResponse\"@\202\323\344\223\002" - + ":\0228/v1beta1/{parent=projects/*/locations" - + "/*/clusters/*}/jwks\022\245\002\n\rListNodePools\022.." - + "google.container.v1beta1.ListNodePoolsRe" - + "quest\032/.google.container.v1beta1.ListNod" - + "ePoolsResponse\"\262\001\332A\032project_id,zone,clus" - + "ter_id\202\323\344\223\002\216\001\022=/v1beta1/{parent=projects" - + "/*/locations/*/clusters/*}/nodePoolsZM\022K" - + "/v1beta1/projects/{project_id}/zones/{zo" - + "ne}/clusters/{cluster_id}/nodePools\022\260\002\n\013" - + "GetNodePool\022,.google.container.v1beta1.G" - + "etNodePoolRequest\032\".google.container.v1b" - + "eta1.NodePool\"\316\001\332A\'project_id,zone,clust" - + "er_id,node_pool_id\202\323\344\223\002\235\001\022=/v1beta1/{nam" - + "e=projects/*/locations/*/clusters/*/node" - + "Pools/*}Z\\\022Z/v1beta1/projects/{project_i" - + "d}/zones/{zone}/clusters/{cluster_id}/no" - + "dePools/{node_pool_id}\022\253\002\n\016CreateNodePoo" - + "l\022/.google.container.v1beta1.CreateNodeP" - + "oolRequest\032#.google.container.v1beta1.Op" - + "eration\"\302\001\332A$project_id,zone,cluster_id," - + "node_pool\202\323\344\223\002\224\001\"=/v1beta1/{parent=proje" - + "cts/*/locations/*/clusters/*}/nodePools:" - + "\001*ZP\"K/v1beta1/projects/{project_id}/zon" - + "es/{zone}/clusters/{cluster_id}/nodePool" - + "s:\001*\022\267\002\n\016DeleteNodePool\022/.google.contain" - + "er.v1beta1.DeleteNodePoolRequest\032#.googl" - + "e.container.v1beta1.Operation\"\316\001\332A\'proje" - + "ct_id,zone,cluster_id,node_pool_id\202\323\344\223\002\235" - + "\001*=/v1beta1/{name=projects/*/locations/*" - + "/clusters/*/nodePools/*}Z\\*Z/v1beta1/pro" + + ":\001*\022\267\002\n\016DeleteNodePool\022/.google.containe" + + "r.v1beta1.DeleteNodePoolRequest\032#.google" + + ".container.v1beta1.Operation\"\316\001\332A\'projec" + + "t_id,zone,cluster_id,node_pool_id\202\323\344\223\002\235\001" + + "*=/v1beta1/{name=projects/*/locations/*/" + + "clusters/*/nodePools/*}Z\\*Z/v1beta1/proj" + + "ects/{project_id}/zones/{zone}/clusters/" + + "{cluster_id}/nodePools/{node_pool_id}\022\305\001" + + "\n\027CompleteNodePoolUpgrade\0228.google.conta" + + "iner.v1beta1.CompleteNodePoolUpgradeRequ" + + "est\032\026.google.protobuf.Empty\"X\202\323\344\223\002R\"M/v1" + + "beta1/{name=projects/*/locations/*/clust" + + "ers/*/nodePools/*}:completeUpgrade:\001*\022\341\002" + + "\n\027RollbackNodePoolUpgrade\0228.google.conta" + + "iner.v1beta1.RollbackNodePoolUpgradeRequ" + + "est\032#.google.container.v1beta1.Operation" + + "\"\346\001\332A\'project_id,zone,cluster_id,node_po" + + "ol_id\202\323\344\223\002\265\001\"F/v1beta1/{name=projects/*/" + + "locations/*/clusters/*/nodePools/*}:roll" + + "back:\001*Zh\"c/v1beta1/projects/{project_id" + + "}/zones/{zone}/clusters/{cluster_id}/nod" + + "ePools/{node_pool_id}:rollback:\001*\022\362\002\n\025Se" + + "tNodePoolManagement\0226.google.container.v" + + "1beta1.SetNodePoolManagementRequest\032#.go" + + "ogle.container.v1beta1.Operation\"\373\001\332A2pr" + + "oject_id,zone,cluster_id,node_pool_id,ma" + + "nagement\202\323\344\223\002\277\001\"K/v1beta1/{name=projects" + + "/*/locations/*/clusters/*/nodePools/*}:s" + + "etManagement:\001*Zm\"h/v1beta1/projects/{pr" + + "oject_id}/zones/{zone}/clusters/{cluster" + + "_id}/nodePools/{node_pool_id}/setManagem" + + "ent:\001*\022\304\002\n\tSetLabels\022*.google.container." + + "v1beta1.SetLabelsRequest\032#.google.contai" + + "ner.v1beta1.Operation\"\345\001\332A * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2607 + * google/container/v1beta1/cluster_service.proto;l=2610 * @return Whether the desiredProtectConfig field is set. */ @java.lang.Override @@ -2421,7 +2421,7 @@ public boolean hasDesiredProtectConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2607 + * google/container/v1beta1/cluster_service.proto;l=2610 * @return The desiredProtectConfig. */ @java.lang.Override @@ -3306,6 +3306,96 @@ public int getDesiredInTransitEncryptionConfigValue() { : result; } + public static final int DESIRED_ENABLE_CILIUM_CLUSTERWIDE_NETWORK_POLICY_FIELD_NUMBER = 138; + private boolean desiredEnableCiliumClusterwideNetworkPolicy_ = false; + /** + * + * + *
                              +   * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +   * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @return Whether the desiredEnableCiliumClusterwideNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasDesiredEnableCiliumClusterwideNetworkPolicy() { + return ((bitField1_ & 0x00010000) != 0); + } + /** + * + * + *
                              +   * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +   * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @return The desiredEnableCiliumClusterwideNetworkPolicy. + */ + @java.lang.Override + public boolean getDesiredEnableCiliumClusterwideNetworkPolicy() { + return desiredEnableCiliumClusterwideNetworkPolicy_; + } + + public static final int DESIRED_SECRET_MANAGER_CONFIG_FIELD_NUMBER = 139; + private com.google.container.v1beta1.SecretManagerConfig desiredSecretManagerConfig_; + /** + * + * + *
                              +   * Enable/Disable Secret Manager Config.
                              +   * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + * + * @return Whether the desiredSecretManagerConfig field is set. + */ + @java.lang.Override + public boolean hasDesiredSecretManagerConfig() { + return ((bitField1_ & 0x00020000) != 0); + } + /** + * + * + *
                              +   * Enable/Disable Secret Manager Config.
                              +   * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + * + * @return The desiredSecretManagerConfig. + */ + @java.lang.Override + public com.google.container.v1beta1.SecretManagerConfig getDesiredSecretManagerConfig() { + return desiredSecretManagerConfig_ == null + ? com.google.container.v1beta1.SecretManagerConfig.getDefaultInstance() + : desiredSecretManagerConfig_; + } + /** + * + * + *
                              +   * Enable/Disable Secret Manager Config.
                              +   * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + */ + @java.lang.Override + public com.google.container.v1beta1.SecretManagerConfigOrBuilder + getDesiredSecretManagerConfigOrBuilder() { + return desiredSecretManagerConfig_ == null + ? com.google.container.v1beta1.SecretManagerConfig.getDefaultInstance() + : desiredSecretManagerConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3503,6 +3593,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField1_ & 0x00008000) != 0)) { output.writeEnum(137, desiredInTransitEncryptionConfig_); } + if (((bitField1_ & 0x00010000) != 0)) { + output.writeBool(138, desiredEnableCiliumClusterwideNetworkPolicy_); + } + if (((bitField1_ & 0x00020000) != 0)) { + output.writeMessage(139, getDesiredSecretManagerConfig()); + } getUnknownFields().writeTo(output); } @@ -3779,6 +3875,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeEnumSize( 137, desiredInTransitEncryptionConfig_); } + if (((bitField1_ & 0x00010000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 138, desiredEnableCiliumClusterwideNetworkPolicy_); + } + if (((bitField1_ & 0x00020000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 139, getDesiredSecretManagerConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4044,6 +4150,17 @@ public boolean equals(final java.lang.Object obj) { if (desiredInTransitEncryptionConfig_ != other.desiredInTransitEncryptionConfig_) return false; } + if (hasDesiredEnableCiliumClusterwideNetworkPolicy() + != other.hasDesiredEnableCiliumClusterwideNetworkPolicy()) return false; + if (hasDesiredEnableCiliumClusterwideNetworkPolicy()) { + if (getDesiredEnableCiliumClusterwideNetworkPolicy() + != other.getDesiredEnableCiliumClusterwideNetworkPolicy()) return false; + } + if (hasDesiredSecretManagerConfig() != other.hasDesiredSecretManagerConfig()) return false; + if (hasDesiredSecretManagerConfig()) { + if (!getDesiredSecretManagerConfig().equals(other.getDesiredSecretManagerConfig())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4274,6 +4391,17 @@ public int hashCode() { hash = (37 * hash) + DESIRED_IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + desiredInTransitEncryptionConfig_; } + if (hasDesiredEnableCiliumClusterwideNetworkPolicy()) { + hash = (37 * hash) + DESIRED_ENABLE_CILIUM_CLUSTERWIDE_NETWORK_POLICY_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getDesiredEnableCiliumClusterwideNetworkPolicy()); + } + if (hasDesiredSecretManagerConfig()) { + hash = (37 * hash) + DESIRED_SECRET_MANAGER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredSecretManagerConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -4461,6 +4589,7 @@ private void maybeForceBuilderInitialization() { getDesiredK8SBetaApisFieldBuilder(); getDesiredHostMaintenancePolicyFieldBuilder(); getDesiredNodePoolAutoConfigResourceManagerTagsFieldBuilder(); + getDesiredSecretManagerConfigFieldBuilder(); } } @@ -4708,6 +4837,12 @@ public Builder clear() { desiredNodePoolAutoConfigResourceManagerTagsBuilder_ = null; } desiredInTransitEncryptionConfig_ = 0; + desiredEnableCiliumClusterwideNetworkPolicy_ = false; + desiredSecretManagerConfig_ = null; + if (desiredSecretManagerConfigBuilder_ != null) { + desiredSecretManagerConfigBuilder_.dispose(); + desiredSecretManagerConfigBuilder_ = null; + } return this; } @@ -5108,6 +5243,18 @@ private void buildPartial1(com.google.container.v1beta1.ClusterUpdate result) { result.desiredInTransitEncryptionConfig_ = desiredInTransitEncryptionConfig_; to_bitField1_ |= 0x00008000; } + if (((from_bitField1_ & 0x08000000) != 0)) { + result.desiredEnableCiliumClusterwideNetworkPolicy_ = + desiredEnableCiliumClusterwideNetworkPolicy_; + to_bitField1_ |= 0x00010000; + } + if (((from_bitField1_ & 0x10000000) != 0)) { + result.desiredSecretManagerConfig_ = + desiredSecretManagerConfigBuilder_ == null + ? desiredSecretManagerConfig_ + : desiredSecretManagerConfigBuilder_.build(); + to_bitField1_ |= 0x00020000; + } result.bitField0_ |= to_bitField0_; result.bitField1_ |= to_bitField1_; } @@ -5357,6 +5504,13 @@ public Builder mergeFrom(com.google.container.v1beta1.ClusterUpdate other) { if (other.hasDesiredInTransitEncryptionConfig()) { setDesiredInTransitEncryptionConfig(other.getDesiredInTransitEncryptionConfig()); } + if (other.hasDesiredEnableCiliumClusterwideNetworkPolicy()) { + setDesiredEnableCiliumClusterwideNetworkPolicy( + other.getDesiredEnableCiliumClusterwideNetworkPolicy()); + } + if (other.hasDesiredSecretManagerConfig()) { + mergeDesiredSecretManagerConfig(other.getDesiredSecretManagerConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5792,6 +5946,19 @@ public Builder mergeFrom( bitField1_ |= 0x04000000; break; } // case 1096 + case 1104: + { + desiredEnableCiliumClusterwideNetworkPolicy_ = input.readBool(); + bitField1_ |= 0x08000000; + break; + } // case 1104 + case 1114: + { + input.readMessage( + getDesiredSecretManagerConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x10000000; + break; + } // case 1114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -13523,7 +13690,7 @@ public Builder clearDesiredNodePoolAutoConfigNetworkTags() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2607 + * google/container/v1beta1/cluster_service.proto;l=2610 * @return Whether the desiredProtectConfig field is set. */ @java.lang.Deprecated @@ -13543,7 +13710,7 @@ public boolean hasDesiredProtectConfig() { * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2607 + * google/container/v1beta1/cluster_service.proto;l=2610 * @return The desiredProtectConfig. */ @java.lang.Deprecated @@ -16580,6 +16747,283 @@ public Builder clearDesiredInTransitEncryptionConfig() { return this; } + private boolean desiredEnableCiliumClusterwideNetworkPolicy_; + /** + * + * + *
                              +     * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +     * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @return Whether the desiredEnableCiliumClusterwideNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasDesiredEnableCiliumClusterwideNetworkPolicy() { + return ((bitField1_ & 0x08000000) != 0); + } + /** + * + * + *
                              +     * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +     * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @return The desiredEnableCiliumClusterwideNetworkPolicy. + */ + @java.lang.Override + public boolean getDesiredEnableCiliumClusterwideNetworkPolicy() { + return desiredEnableCiliumClusterwideNetworkPolicy_; + } + /** + * + * + *
                              +     * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +     * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @param value The desiredEnableCiliumClusterwideNetworkPolicy to set. + * @return This builder for chaining. + */ + public Builder setDesiredEnableCiliumClusterwideNetworkPolicy(boolean value) { + + desiredEnableCiliumClusterwideNetworkPolicy_ = value; + bitField1_ |= 0x08000000; + onChanged(); + return this; + } + /** + * + * + *
                              +     * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +     * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @return This builder for chaining. + */ + public Builder clearDesiredEnableCiliumClusterwideNetworkPolicy() { + bitField1_ = (bitField1_ & ~0x08000000); + desiredEnableCiliumClusterwideNetworkPolicy_ = false; + onChanged(); + return this; + } + + private com.google.container.v1beta1.SecretManagerConfig desiredSecretManagerConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecretManagerConfig, + com.google.container.v1beta1.SecretManagerConfig.Builder, + com.google.container.v1beta1.SecretManagerConfigOrBuilder> + desiredSecretManagerConfigBuilder_; + /** + * + * + *
                              +     * Enable/Disable Secret Manager Config.
                              +     * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + * + * @return Whether the desiredSecretManagerConfig field is set. + */ + public boolean hasDesiredSecretManagerConfig() { + return ((bitField1_ & 0x10000000) != 0); + } + /** + * + * + *
                              +     * Enable/Disable Secret Manager Config.
                              +     * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + * + * @return The desiredSecretManagerConfig. + */ + public com.google.container.v1beta1.SecretManagerConfig getDesiredSecretManagerConfig() { + if (desiredSecretManagerConfigBuilder_ == null) { + return desiredSecretManagerConfig_ == null + ? com.google.container.v1beta1.SecretManagerConfig.getDefaultInstance() + : desiredSecretManagerConfig_; + } else { + return desiredSecretManagerConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                              +     * Enable/Disable Secret Manager Config.
                              +     * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + */ + public Builder setDesiredSecretManagerConfig( + com.google.container.v1beta1.SecretManagerConfig value) { + if (desiredSecretManagerConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredSecretManagerConfig_ = value; + } else { + desiredSecretManagerConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x10000000; + onChanged(); + return this; + } + /** + * + * + *
                              +     * Enable/Disable Secret Manager Config.
                              +     * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + */ + public Builder setDesiredSecretManagerConfig( + com.google.container.v1beta1.SecretManagerConfig.Builder builderForValue) { + if (desiredSecretManagerConfigBuilder_ == null) { + desiredSecretManagerConfig_ = builderForValue.build(); + } else { + desiredSecretManagerConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x10000000; + onChanged(); + return this; + } + /** + * + * + *
                              +     * Enable/Disable Secret Manager Config.
                              +     * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + */ + public Builder mergeDesiredSecretManagerConfig( + com.google.container.v1beta1.SecretManagerConfig value) { + if (desiredSecretManagerConfigBuilder_ == null) { + if (((bitField1_ & 0x10000000) != 0) + && desiredSecretManagerConfig_ != null + && desiredSecretManagerConfig_ + != com.google.container.v1beta1.SecretManagerConfig.getDefaultInstance()) { + getDesiredSecretManagerConfigBuilder().mergeFrom(value); + } else { + desiredSecretManagerConfig_ = value; + } + } else { + desiredSecretManagerConfigBuilder_.mergeFrom(value); + } + if (desiredSecretManagerConfig_ != null) { + bitField1_ |= 0x10000000; + onChanged(); + } + return this; + } + /** + * + * + *
                              +     * Enable/Disable Secret Manager Config.
                              +     * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + */ + public Builder clearDesiredSecretManagerConfig() { + bitField1_ = (bitField1_ & ~0x10000000); + desiredSecretManagerConfig_ = null; + if (desiredSecretManagerConfigBuilder_ != null) { + desiredSecretManagerConfigBuilder_.dispose(); + desiredSecretManagerConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                              +     * Enable/Disable Secret Manager Config.
                              +     * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + */ + public com.google.container.v1beta1.SecretManagerConfig.Builder + getDesiredSecretManagerConfigBuilder() { + bitField1_ |= 0x10000000; + onChanged(); + return getDesiredSecretManagerConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                              +     * Enable/Disable Secret Manager Config.
                              +     * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + */ + public com.google.container.v1beta1.SecretManagerConfigOrBuilder + getDesiredSecretManagerConfigOrBuilder() { + if (desiredSecretManagerConfigBuilder_ != null) { + return desiredSecretManagerConfigBuilder_.getMessageOrBuilder(); + } else { + return desiredSecretManagerConfig_ == null + ? com.google.container.v1beta1.SecretManagerConfig.getDefaultInstance() + : desiredSecretManagerConfig_; + } + } + /** + * + * + *
                              +     * Enable/Disable Secret Manager Config.
                              +     * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecretManagerConfig, + com.google.container.v1beta1.SecretManagerConfig.Builder, + com.google.container.v1beta1.SecretManagerConfigOrBuilder> + getDesiredSecretManagerConfigFieldBuilder() { + if (desiredSecretManagerConfigBuilder_ == null) { + desiredSecretManagerConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.container.v1beta1.SecretManagerConfig, + com.google.container.v1beta1.SecretManagerConfig.Builder, + com.google.container.v1beta1.SecretManagerConfigOrBuilder>( + getDesiredSecretManagerConfig(), getParentForChildren(), isClean()); + desiredSecretManagerConfig_ = null; + } + return desiredSecretManagerConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java index 08c4cc8b4e76..b41746c35ec3 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ClusterUpdateOrBuilder.java @@ -1651,7 +1651,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2607 + * google/container/v1beta1/cluster_service.proto;l=2610 * @return Whether the desiredProtectConfig field is set. */ @java.lang.Deprecated @@ -1669,7 +1669,7 @@ public interface ClusterUpdateOrBuilder * * * @deprecated google.container.v1beta1.ClusterUpdate.desired_protect_config is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2607 + * google/container/v1beta1/cluster_service.proto;l=2610 * @return The desiredProtectConfig. */ @java.lang.Deprecated @@ -2295,4 +2295,71 @@ public interface ClusterUpdateOrBuilder * @return The desiredInTransitEncryptionConfig. */ com.google.container.v1beta1.InTransitEncryptionConfig getDesiredInTransitEncryptionConfig(); + + /** + * + * + *
                              +   * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +   * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @return Whether the desiredEnableCiliumClusterwideNetworkPolicy field is set. + */ + boolean hasDesiredEnableCiliumClusterwideNetworkPolicy(); + /** + * + * + *
                              +   * Enable/Disable Cilium Clusterwide Network Policy for the cluster.
                              +   * 
                              + * + * optional bool desired_enable_cilium_clusterwide_network_policy = 138; + * + * @return The desiredEnableCiliumClusterwideNetworkPolicy. + */ + boolean getDesiredEnableCiliumClusterwideNetworkPolicy(); + + /** + * + * + *
                              +   * Enable/Disable Secret Manager Config.
                              +   * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + * + * @return Whether the desiredSecretManagerConfig field is set. + */ + boolean hasDesiredSecretManagerConfig(); + /** + * + * + *
                              +   * Enable/Disable Secret Manager Config.
                              +   * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + * + * @return The desiredSecretManagerConfig. + */ + com.google.container.v1beta1.SecretManagerConfig getDesiredSecretManagerConfig(); + /** + * + * + *
                              +   * Enable/Disable Secret Manager Config.
                              +   * 
                              + * + * + * optional .google.container.v1beta1.SecretManagerConfig desired_secret_manager_config = 139; + * + */ + com.google.container.v1beta1.SecretManagerConfigOrBuilder + getDesiredSecretManagerConfigOrBuilder(); } diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java index c6ffa0ed6c71..a53750be0bff 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4618 + * google/container/v1beta1/cluster_service.proto;l=4627 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4618 + * google/container/v1beta1/cluster_service.proto;l=4627 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 + * google/container/v1beta1/cluster_service.proto;l=4634 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 + * google/container/v1beta1/cluster_service.proto;l=4634 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4629 + * google/container/v1beta1/cluster_service.proto;l=4638 * @return The clusterId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4629 + * google/container/v1beta1/cluster_service.proto;l=4638 * @return The bytes for clusterId. */ @java.lang.Override @@ -735,7 +735,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4618 + * google/container/v1beta1/cluster_service.proto;l=4627 * @return The projectId. */ @java.lang.Deprecated @@ -763,7 +763,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4618 + * google/container/v1beta1/cluster_service.proto;l=4627 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -791,7 +791,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4618 + * google/container/v1beta1/cluster_service.proto;l=4627 * @param value The projectId to set. * @return This builder for chaining. */ @@ -818,7 +818,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4618 + * google/container/v1beta1/cluster_service.proto;l=4627 * @return This builder for chaining. */ @java.lang.Deprecated @@ -841,7 +841,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4618 + * google/container/v1beta1/cluster_service.proto;l=4627 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -871,7 +871,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 + * google/container/v1beta1/cluster_service.proto;l=4634 * @return The zone. */ @java.lang.Deprecated @@ -899,7 +899,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 + * google/container/v1beta1/cluster_service.proto;l=4634 * @return The bytes for zone. */ @java.lang.Deprecated @@ -927,7 +927,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 + * google/container/v1beta1/cluster_service.proto;l=4634 * @param value The zone to set. * @return This builder for chaining. */ @@ -954,7 +954,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 + * google/container/v1beta1/cluster_service.proto;l=4634 * @return This builder for chaining. */ @java.lang.Deprecated @@ -977,7 +977,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 + * google/container/v1beta1/cluster_service.proto;l=4634 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1006,7 +1006,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4629 + * google/container/v1beta1/cluster_service.proto;l=4638 * @return The clusterId. */ @java.lang.Deprecated @@ -1033,7 +1033,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4629 + * google/container/v1beta1/cluster_service.proto;l=4638 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1060,7 +1060,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4629 + * google/container/v1beta1/cluster_service.proto;l=4638 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1086,7 +1086,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4629 + * google/container/v1beta1/cluster_service.proto;l=4638 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1108,7 +1108,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4629 + * google/container/v1beta1/cluster_service.proto;l=4638 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java index 434b822313ee..386e07992f33 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CompleteIPRotationRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface CompleteIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4618 + * google/container/v1beta1/cluster_service.proto;l=4627 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface CompleteIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4618 + * google/container/v1beta1/cluster_service.proto;l=4627 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 + * google/container/v1beta1/cluster_service.proto;l=4634 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CompleteIPRotationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4625 + * google/container/v1beta1/cluster_service.proto;l=4634 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface CompleteIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4629 + * google/container/v1beta1/cluster_service.proto;l=4638 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface CompleteIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.CompleteIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4629 + * google/container/v1beta1/cluster_service.proto;l=4638 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java index 0eeec9da2fc5..d5288637a7d6 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2953 + * google/container/v1beta1/cluster_service.proto;l=2962 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2953 + * google/container/v1beta1/cluster_service.proto;l=2962 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2960 + * google/container/v1beta1/cluster_service.proto;l=2969 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2960 + * google/container/v1beta1/cluster_service.proto;l=2969 * @return The bytes for zone. */ @java.lang.Override @@ -744,7 +744,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2953 + * google/container/v1beta1/cluster_service.proto;l=2962 * @return The projectId. */ @java.lang.Deprecated @@ -772,7 +772,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2953 + * google/container/v1beta1/cluster_service.proto;l=2962 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -800,7 +800,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2953 + * google/container/v1beta1/cluster_service.proto;l=2962 * @param value The projectId to set. * @return This builder for chaining. */ @@ -827,7 +827,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2953 + * google/container/v1beta1/cluster_service.proto;l=2962 * @return This builder for chaining. */ @java.lang.Deprecated @@ -850,7 +850,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2953 + * google/container/v1beta1/cluster_service.proto;l=2962 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -880,7 +880,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2960 + * google/container/v1beta1/cluster_service.proto;l=2969 * @return The zone. */ @java.lang.Deprecated @@ -908,7 +908,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2960 + * google/container/v1beta1/cluster_service.proto;l=2969 * @return The bytes for zone. */ @java.lang.Deprecated @@ -936,7 +936,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2960 + * google/container/v1beta1/cluster_service.proto;l=2969 * @param value The zone to set. * @return This builder for chaining. */ @@ -963,7 +963,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2960 + * google/container/v1beta1/cluster_service.proto;l=2969 * @return This builder for chaining. */ @java.lang.Deprecated @@ -986,7 +986,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2960 + * google/container/v1beta1/cluster_service.proto;l=2969 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java index cb3d91c03ee0..543b699c6dc1 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateClusterRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface CreateClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2953 + * google/container/v1beta1/cluster_service.proto;l=2962 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface CreateClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.CreateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2953 + * google/container/v1beta1/cluster_service.proto;l=2962 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2960 + * google/container/v1beta1/cluster_service.proto;l=2969 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CreateClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2960 + * google/container/v1beta1/cluster_service.proto;l=2969 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java index 4da94ca09650..63e72c3d8c9d 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3650 + * google/container/v1beta1/cluster_service.proto;l=3659 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3650 + * google/container/v1beta1/cluster_service.proto;l=3659 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 + * google/container/v1beta1/cluster_service.proto;l=3666 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 + * google/container/v1beta1/cluster_service.proto;l=3666 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3661 + * google/container/v1beta1/cluster_service.proto;l=3670 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3661 + * google/container/v1beta1/cluster_service.proto;l=3670 * @return The bytes for clusterId. */ @java.lang.Override @@ -836,7 +836,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3650 + * google/container/v1beta1/cluster_service.proto;l=3659 * @return The projectId. */ @java.lang.Deprecated @@ -864,7 +864,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3650 + * google/container/v1beta1/cluster_service.proto;l=3659 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -892,7 +892,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3650 + * google/container/v1beta1/cluster_service.proto;l=3659 * @param value The projectId to set. * @return This builder for chaining. */ @@ -919,7 +919,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3650 + * google/container/v1beta1/cluster_service.proto;l=3659 * @return This builder for chaining. */ @java.lang.Deprecated @@ -942,7 +942,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3650 + * google/container/v1beta1/cluster_service.proto;l=3659 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -972,7 +972,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 + * google/container/v1beta1/cluster_service.proto;l=3666 * @return The zone. */ @java.lang.Deprecated @@ -1000,7 +1000,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 + * google/container/v1beta1/cluster_service.proto;l=3666 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1028,7 +1028,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 + * google/container/v1beta1/cluster_service.proto;l=3666 * @param value The zone to set. * @return This builder for chaining. */ @@ -1055,7 +1055,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 + * google/container/v1beta1/cluster_service.proto;l=3666 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1078,7 +1078,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 + * google/container/v1beta1/cluster_service.proto;l=3666 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1107,7 +1107,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3661 + * google/container/v1beta1/cluster_service.proto;l=3670 * @return The clusterId. */ @java.lang.Deprecated @@ -1134,7 +1134,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3661 + * google/container/v1beta1/cluster_service.proto;l=3670 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1161,7 +1161,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3661 + * google/container/v1beta1/cluster_service.proto;l=3670 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1187,7 +1187,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3661 + * google/container/v1beta1/cluster_service.proto;l=3670 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1209,7 +1209,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3661 + * google/container/v1beta1/cluster_service.proto;l=3670 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java index 159c620422eb..eb2ea53b4817 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/CreateNodePoolRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface CreateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3650 + * google/container/v1beta1/cluster_service.proto;l=3659 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface CreateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3650 + * google/container/v1beta1/cluster_service.proto;l=3659 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 + * google/container/v1beta1/cluster_service.proto;l=3666 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface CreateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.CreateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3657 + * google/container/v1beta1/cluster_service.proto;l=3666 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface CreateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3661 + * google/container/v1beta1/cluster_service.proto;l=3670 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface CreateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.CreateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3661 + * google/container/v1beta1/cluster_service.proto;l=3670 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java index 9930fb64fc69..53b5e7e670e7 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3415 + * google/container/v1beta1/cluster_service.proto;l=3424 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3415 + * google/container/v1beta1/cluster_service.proto;l=3424 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 + * google/container/v1beta1/cluster_service.proto;l=3431 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 + * google/container/v1beta1/cluster_service.proto;l=3431 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3426 + * google/container/v1beta1/cluster_service.proto;l=3435 * @return The clusterId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3426 + * google/container/v1beta1/cluster_service.proto;l=3435 * @return The bytes for clusterId. */ @java.lang.Override @@ -734,7 +734,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3415 + * google/container/v1beta1/cluster_service.proto;l=3424 * @return The projectId. */ @java.lang.Deprecated @@ -762,7 +762,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3415 + * google/container/v1beta1/cluster_service.proto;l=3424 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -790,7 +790,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3415 + * google/container/v1beta1/cluster_service.proto;l=3424 * @param value The projectId to set. * @return This builder for chaining. */ @@ -817,7 +817,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3415 + * google/container/v1beta1/cluster_service.proto;l=3424 * @return This builder for chaining. */ @java.lang.Deprecated @@ -840,7 +840,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3415 + * google/container/v1beta1/cluster_service.proto;l=3424 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -870,7 +870,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 + * google/container/v1beta1/cluster_service.proto;l=3431 * @return The zone. */ @java.lang.Deprecated @@ -898,7 +898,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 + * google/container/v1beta1/cluster_service.proto;l=3431 * @return The bytes for zone. */ @java.lang.Deprecated @@ -926,7 +926,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 + * google/container/v1beta1/cluster_service.proto;l=3431 * @param value The zone to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 + * google/container/v1beta1/cluster_service.proto;l=3431 * @return This builder for chaining. */ @java.lang.Deprecated @@ -976,7 +976,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 + * google/container/v1beta1/cluster_service.proto;l=3431 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1005,7 +1005,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3426 + * google/container/v1beta1/cluster_service.proto;l=3435 * @return The clusterId. */ @java.lang.Deprecated @@ -1032,7 +1032,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3426 + * google/container/v1beta1/cluster_service.proto;l=3435 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1059,7 +1059,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3426 + * google/container/v1beta1/cluster_service.proto;l=3435 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1085,7 +1085,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3426 + * google/container/v1beta1/cluster_service.proto;l=3435 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1107,7 +1107,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3426 + * google/container/v1beta1/cluster_service.proto;l=3435 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java index 7b8cc5505449..667f7e4839ea 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteClusterRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface DeleteClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3415 + * google/container/v1beta1/cluster_service.proto;l=3424 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface DeleteClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3415 + * google/container/v1beta1/cluster_service.proto;l=3424 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 + * google/container/v1beta1/cluster_service.proto;l=3431 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface DeleteClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3422 + * google/container/v1beta1/cluster_service.proto;l=3431 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface DeleteClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3426 + * google/container/v1beta1/cluster_service.proto;l=3435 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface DeleteClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3426 + * google/container/v1beta1/cluster_service.proto;l=3435 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java index 57193a076dbe..b669a65192aa 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3678 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3678 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 + * google/container/v1beta1/cluster_service.proto;l=3694 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 + * google/container/v1beta1/cluster_service.proto;l=3694 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3689 + * google/container/v1beta1/cluster_service.proto;l=3698 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3689 + * google/container/v1beta1/cluster_service.proto;l=3698 * @return The bytes for clusterId. */ @java.lang.Override @@ -270,7 +270,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3694 + * google/container/v1beta1/cluster_service.proto;l=3703 * @return The nodePoolId. */ @java.lang.Override @@ -298,7 +298,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3694 + * google/container/v1beta1/cluster_service.proto;l=3703 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -822,7 +822,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3678 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The projectId. */ @java.lang.Deprecated @@ -850,7 +850,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3678 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -878,7 +878,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3678 + * google/container/v1beta1/cluster_service.proto;l=3687 * @param value The projectId to set. * @return This builder for chaining. */ @@ -905,7 +905,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3678 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return This builder for chaining. */ @java.lang.Deprecated @@ -928,7 +928,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3678 + * google/container/v1beta1/cluster_service.proto;l=3687 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -958,7 +958,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 + * google/container/v1beta1/cluster_service.proto;l=3694 * @return The zone. */ @java.lang.Deprecated @@ -986,7 +986,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 + * google/container/v1beta1/cluster_service.proto;l=3694 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1014,7 +1014,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 + * google/container/v1beta1/cluster_service.proto;l=3694 * @param value The zone to set. * @return This builder for chaining. */ @@ -1041,7 +1041,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 + * google/container/v1beta1/cluster_service.proto;l=3694 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1064,7 +1064,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 + * google/container/v1beta1/cluster_service.proto;l=3694 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1093,7 +1093,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3689 + * google/container/v1beta1/cluster_service.proto;l=3698 * @return The clusterId. */ @java.lang.Deprecated @@ -1120,7 +1120,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3689 + * google/container/v1beta1/cluster_service.proto;l=3698 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1147,7 +1147,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3689 + * google/container/v1beta1/cluster_service.proto;l=3698 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1173,7 +1173,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3689 + * google/container/v1beta1/cluster_service.proto;l=3698 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1195,7 +1195,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3689 + * google/container/v1beta1/cluster_service.proto;l=3698 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1224,7 +1224,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3694 + * google/container/v1beta1/cluster_service.proto;l=3703 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1251,7 +1251,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3694 + * google/container/v1beta1/cluster_service.proto;l=3703 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1278,7 +1278,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3694 + * google/container/v1beta1/cluster_service.proto;l=3703 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1304,7 +1304,7 @@ public Builder setNodePoolId(java.lang.String value) { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3694 + * google/container/v1beta1/cluster_service.proto;l=3703 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1326,7 +1326,7 @@ public Builder clearNodePoolId() { * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3694 + * google/container/v1beta1/cluster_service.proto;l=3703 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java index e518ea6475c3..d92a398f81ab 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/DeleteNodePoolRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface DeleteNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3678 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface DeleteNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3678 + * google/container/v1beta1/cluster_service.proto;l=3687 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 + * google/container/v1beta1/cluster_service.proto;l=3694 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface DeleteNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3685 + * google/container/v1beta1/cluster_service.proto;l=3694 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface DeleteNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3689 + * google/container/v1beta1/cluster_service.proto;l=3698 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface DeleteNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3689 + * google/container/v1beta1/cluster_service.proto;l=3698 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -145,7 +145,7 @@ public interface DeleteNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3694 + * google/container/v1beta1/cluster_service.proto;l=3703 * @return The nodePoolId. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface DeleteNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.DeleteNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3694 + * google/container/v1beta1/cluster_service.proto;l=3703 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java index f6434ee3a071..e22444f5882e 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2976 + * google/container/v1beta1/cluster_service.proto;l=2985 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2976 + * google/container/v1beta1/cluster_service.proto;l=2985 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2983 + * google/container/v1beta1/cluster_service.proto;l=2992 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2983 + * google/container/v1beta1/cluster_service.proto;l=2992 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2987 + * google/container/v1beta1/cluster_service.proto;l=2996 * @return The clusterId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2987 + * google/container/v1beta1/cluster_service.proto;l=2996 * @return The bytes for clusterId. */ @java.lang.Override @@ -733,7 +733,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2976 + * google/container/v1beta1/cluster_service.proto;l=2985 * @return The projectId. */ @java.lang.Deprecated @@ -761,7 +761,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2976 + * google/container/v1beta1/cluster_service.proto;l=2985 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -789,7 +789,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2976 + * google/container/v1beta1/cluster_service.proto;l=2985 * @param value The projectId to set. * @return This builder for chaining. */ @@ -816,7 +816,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2976 + * google/container/v1beta1/cluster_service.proto;l=2985 * @return This builder for chaining. */ @java.lang.Deprecated @@ -839,7 +839,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2976 + * google/container/v1beta1/cluster_service.proto;l=2985 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -869,7 +869,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2983 + * google/container/v1beta1/cluster_service.proto;l=2992 * @return The zone. */ @java.lang.Deprecated @@ -897,7 +897,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2983 + * google/container/v1beta1/cluster_service.proto;l=2992 * @return The bytes for zone. */ @java.lang.Deprecated @@ -925,7 +925,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2983 + * google/container/v1beta1/cluster_service.proto;l=2992 * @param value The zone to set. * @return This builder for chaining. */ @@ -952,7 +952,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2983 + * google/container/v1beta1/cluster_service.proto;l=2992 * @return This builder for chaining. */ @java.lang.Deprecated @@ -975,7 +975,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2983 + * google/container/v1beta1/cluster_service.proto;l=2992 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1004,7 +1004,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2987 + * google/container/v1beta1/cluster_service.proto;l=2996 * @return The clusterId. */ @java.lang.Deprecated @@ -1031,7 +1031,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2987 + * google/container/v1beta1/cluster_service.proto;l=2996 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1058,7 +1058,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2987 + * google/container/v1beta1/cluster_service.proto;l=2996 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1084,7 +1084,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2987 + * google/container/v1beta1/cluster_service.proto;l=2996 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1106,7 +1106,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2987 + * google/container/v1beta1/cluster_service.proto;l=2996 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java index fa64927302a2..94d91a40509b 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetClusterRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface GetClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2976 + * google/container/v1beta1/cluster_service.proto;l=2985 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface GetClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.GetClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2976 + * google/container/v1beta1/cluster_service.proto;l=2985 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2983 + * google/container/v1beta1/cluster_service.proto;l=2992 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2983 + * google/container/v1beta1/cluster_service.proto;l=2992 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface GetClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2987 + * google/container/v1beta1/cluster_service.proto;l=2996 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface GetClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.GetClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2987 + * google/container/v1beta1/cluster_service.proto;l=2996 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java index 45343890337c..c21ad3b70eea 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3732 + * google/container/v1beta1/cluster_service.proto;l=3741 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3732 + * google/container/v1beta1/cluster_service.proto;l=3741 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 + * google/container/v1beta1/cluster_service.proto;l=3748 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 + * google/container/v1beta1/cluster_service.proto;l=3748 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3743 + * google/container/v1beta1/cluster_service.proto;l=3752 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3743 + * google/container/v1beta1/cluster_service.proto;l=3752 * @return The bytes for clusterId. */ @java.lang.Override @@ -270,7 +270,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3748 + * google/container/v1beta1/cluster_service.proto;l=3757 * @return The nodePoolId. */ @java.lang.Override @@ -298,7 +298,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3748 + * google/container/v1beta1/cluster_service.proto;l=3757 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -822,7 +822,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3732 + * google/container/v1beta1/cluster_service.proto;l=3741 * @return The projectId. */ @java.lang.Deprecated @@ -850,7 +850,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3732 + * google/container/v1beta1/cluster_service.proto;l=3741 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -878,7 +878,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3732 + * google/container/v1beta1/cluster_service.proto;l=3741 * @param value The projectId to set. * @return This builder for chaining. */ @@ -905,7 +905,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3732 + * google/container/v1beta1/cluster_service.proto;l=3741 * @return This builder for chaining. */ @java.lang.Deprecated @@ -928,7 +928,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3732 + * google/container/v1beta1/cluster_service.proto;l=3741 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -958,7 +958,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 + * google/container/v1beta1/cluster_service.proto;l=3748 * @return The zone. */ @java.lang.Deprecated @@ -986,7 +986,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 + * google/container/v1beta1/cluster_service.proto;l=3748 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1014,7 +1014,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 + * google/container/v1beta1/cluster_service.proto;l=3748 * @param value The zone to set. * @return This builder for chaining. */ @@ -1041,7 +1041,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 + * google/container/v1beta1/cluster_service.proto;l=3748 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1064,7 +1064,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 + * google/container/v1beta1/cluster_service.proto;l=3748 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1093,7 +1093,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3743 + * google/container/v1beta1/cluster_service.proto;l=3752 * @return The clusterId. */ @java.lang.Deprecated @@ -1120,7 +1120,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3743 + * google/container/v1beta1/cluster_service.proto;l=3752 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1147,7 +1147,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3743 + * google/container/v1beta1/cluster_service.proto;l=3752 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1173,7 +1173,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3743 + * google/container/v1beta1/cluster_service.proto;l=3752 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1195,7 +1195,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3743 + * google/container/v1beta1/cluster_service.proto;l=3752 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1224,7 +1224,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3748 + * google/container/v1beta1/cluster_service.proto;l=3757 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1251,7 +1251,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3748 + * google/container/v1beta1/cluster_service.proto;l=3757 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1278,7 +1278,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3748 + * google/container/v1beta1/cluster_service.proto;l=3757 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1304,7 +1304,7 @@ public Builder setNodePoolId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3748 + * google/container/v1beta1/cluster_service.proto;l=3757 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1326,7 +1326,7 @@ public Builder clearNodePoolId() { * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3748 + * google/container/v1beta1/cluster_service.proto;l=3757 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java index d646f1ef69d1..f15bb58be72d 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetNodePoolRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface GetNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3732 + * google/container/v1beta1/cluster_service.proto;l=3741 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface GetNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.GetNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3732 + * google/container/v1beta1/cluster_service.proto;l=3741 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 + * google/container/v1beta1/cluster_service.proto;l=3748 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3739 + * google/container/v1beta1/cluster_service.proto;l=3748 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface GetNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3743 + * google/container/v1beta1/cluster_service.proto;l=3752 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface GetNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.GetNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3743 + * google/container/v1beta1/cluster_service.proto;l=3752 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -145,7 +145,7 @@ public interface GetNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3748 + * google/container/v1beta1/cluster_service.proto;l=3757 * @return The nodePoolId. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface GetNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.GetNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3748 + * google/container/v1beta1/cluster_service.proto;l=3757 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java index 79453372c7d4..96770a0976c5 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3470 + * google/container/v1beta1/cluster_service.proto;l=3479 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3470 + * google/container/v1beta1/cluster_service.proto;l=3479 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 + * google/container/v1beta1/cluster_service.proto;l=3486 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 + * google/container/v1beta1/cluster_service.proto;l=3486 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3481 + * google/container/v1beta1/cluster_service.proto;l=3490 * @return The operationId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getOperationId() { * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3481 + * google/container/v1beta1/cluster_service.proto;l=3490 * @return The bytes for operationId. */ @java.lang.Override @@ -734,7 +734,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3470 + * google/container/v1beta1/cluster_service.proto;l=3479 * @return The projectId. */ @java.lang.Deprecated @@ -762,7 +762,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3470 + * google/container/v1beta1/cluster_service.proto;l=3479 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -790,7 +790,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3470 + * google/container/v1beta1/cluster_service.proto;l=3479 * @param value The projectId to set. * @return This builder for chaining. */ @@ -817,7 +817,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3470 + * google/container/v1beta1/cluster_service.proto;l=3479 * @return This builder for chaining. */ @java.lang.Deprecated @@ -840,7 +840,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3470 + * google/container/v1beta1/cluster_service.proto;l=3479 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -870,7 +870,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 + * google/container/v1beta1/cluster_service.proto;l=3486 * @return The zone. */ @java.lang.Deprecated @@ -898,7 +898,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 + * google/container/v1beta1/cluster_service.proto;l=3486 * @return The bytes for zone. */ @java.lang.Deprecated @@ -926,7 +926,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 + * google/container/v1beta1/cluster_service.proto;l=3486 * @param value The zone to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 + * google/container/v1beta1/cluster_service.proto;l=3486 * @return This builder for chaining. */ @java.lang.Deprecated @@ -976,7 +976,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 + * google/container/v1beta1/cluster_service.proto;l=3486 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1005,7 +1005,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3481 + * google/container/v1beta1/cluster_service.proto;l=3490 * @return The operationId. */ @java.lang.Deprecated @@ -1032,7 +1032,7 @@ public java.lang.String getOperationId() { * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3481 + * google/container/v1beta1/cluster_service.proto;l=3490 * @return The bytes for operationId. */ @java.lang.Deprecated @@ -1059,7 +1059,7 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3481 + * google/container/v1beta1/cluster_service.proto;l=3490 * @param value The operationId to set. * @return This builder for chaining. */ @@ -1085,7 +1085,7 @@ public Builder setOperationId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3481 + * google/container/v1beta1/cluster_service.proto;l=3490 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1107,7 +1107,7 @@ public Builder clearOperationId() { * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3481 + * google/container/v1beta1/cluster_service.proto;l=3490 * @param value The bytes for operationId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java index 7c902a5caccc..4c91a97aa974 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetOperationRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface GetOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3470 + * google/container/v1beta1/cluster_service.proto;l=3479 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface GetOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.GetOperationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3470 + * google/container/v1beta1/cluster_service.proto;l=3479 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 + * google/container/v1beta1/cluster_service.proto;l=3486 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetOperationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetOperationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3477 + * google/container/v1beta1/cluster_service.proto;l=3486 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface GetOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3481 + * google/container/v1beta1/cluster_service.proto;l=3490 * @return The operationId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface GetOperationRequestOrBuilder * * * @deprecated google.container.v1beta1.GetOperationRequest.operation_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3481 + * google/container/v1beta1/cluster_service.proto;l=3490 * @return The bytes for operationId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java index c2153f7532cb..a667d7d0fa50 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3548 + * google/container/v1beta1/cluster_service.proto;l=3557 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3548 + * google/container/v1beta1/cluster_service.proto;l=3557 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3555 + * google/container/v1beta1/cluster_service.proto;l=3564 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3555 + * google/container/v1beta1/cluster_service.proto;l=3564 * @return The bytes for zone. */ @java.lang.Override @@ -648,7 +648,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3548 + * google/container/v1beta1/cluster_service.proto;l=3557 * @return The projectId. */ @java.lang.Deprecated @@ -676,7 +676,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3548 + * google/container/v1beta1/cluster_service.proto;l=3557 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -704,7 +704,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3548 + * google/container/v1beta1/cluster_service.proto;l=3557 * @param value The projectId to set. * @return This builder for chaining. */ @@ -731,7 +731,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3548 + * google/container/v1beta1/cluster_service.proto;l=3557 * @return This builder for chaining. */ @java.lang.Deprecated @@ -754,7 +754,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3548 + * google/container/v1beta1/cluster_service.proto;l=3557 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -784,7 +784,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3555 + * google/container/v1beta1/cluster_service.proto;l=3564 * @return The zone. */ @java.lang.Deprecated @@ -812,7 +812,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3555 + * google/container/v1beta1/cluster_service.proto;l=3564 * @return The bytes for zone. */ @java.lang.Deprecated @@ -840,7 +840,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3555 + * google/container/v1beta1/cluster_service.proto;l=3564 * @param value The zone to set. * @return This builder for chaining. */ @@ -867,7 +867,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3555 + * google/container/v1beta1/cluster_service.proto;l=3564 * @return This builder for chaining. */ @java.lang.Deprecated @@ -890,7 +890,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3555 + * google/container/v1beta1/cluster_service.proto;l=3564 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java index 83b687a39f57..bde5e10d608a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/GetServerConfigRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface GetServerConfigRequestOrBuilder * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3548 + * google/container/v1beta1/cluster_service.proto;l=3557 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface GetServerConfigRequestOrBuilder * * * @deprecated google.container.v1beta1.GetServerConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3548 + * google/container/v1beta1/cluster_service.proto;l=3557 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3555 + * google/container/v1beta1/cluster_service.proto;l=3564 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GetServerConfigRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.GetServerConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3555 + * google/container/v1beta1/cluster_service.proto;l=3564 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java index 3327b00feeb6..476ac6caba01 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3439 + * google/container/v1beta1/cluster_service.proto;l=3448 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3439 + * google/container/v1beta1/cluster_service.proto;l=3448 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3446 + * google/container/v1beta1/cluster_service.proto;l=3455 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3446 + * google/container/v1beta1/cluster_service.proto;l=3455 * @return The bytes for zone. */ @java.lang.Override @@ -650,7 +650,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3439 + * google/container/v1beta1/cluster_service.proto;l=3448 * @return The projectId. */ @java.lang.Deprecated @@ -678,7 +678,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3439 + * google/container/v1beta1/cluster_service.proto;l=3448 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -706,7 +706,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3439 + * google/container/v1beta1/cluster_service.proto;l=3448 * @param value The projectId to set. * @return This builder for chaining. */ @@ -733,7 +733,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3439 + * google/container/v1beta1/cluster_service.proto;l=3448 * @return This builder for chaining. */ @java.lang.Deprecated @@ -756,7 +756,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3439 + * google/container/v1beta1/cluster_service.proto;l=3448 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -786,7 +786,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3446 + * google/container/v1beta1/cluster_service.proto;l=3455 * @return The zone. */ @java.lang.Deprecated @@ -814,7 +814,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3446 + * google/container/v1beta1/cluster_service.proto;l=3455 * @return The bytes for zone. */ @java.lang.Deprecated @@ -842,7 +842,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3446 + * google/container/v1beta1/cluster_service.proto;l=3455 * @param value The zone to set. * @return This builder for chaining. */ @@ -869,7 +869,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3446 + * google/container/v1beta1/cluster_service.proto;l=3455 * @return This builder for chaining. */ @java.lang.Deprecated @@ -892,7 +892,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3446 + * google/container/v1beta1/cluster_service.proto;l=3455 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java index dc3c8da66892..87b8e211d34e 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListClustersRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface ListClustersRequestOrBuilder * * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3439 + * google/container/v1beta1/cluster_service.proto;l=3448 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface ListClustersRequestOrBuilder * * * @deprecated google.container.v1beta1.ListClustersRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3439 + * google/container/v1beta1/cluster_service.proto;l=3448 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3446 + * google/container/v1beta1/cluster_service.proto;l=3455 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface ListClustersRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListClustersRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3446 + * google/container/v1beta1/cluster_service.proto;l=3455 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java index b2b5fd83e680..98ff48ea4568 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequest.java @@ -83,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3708 + * google/container/v1beta1/cluster_service.proto;l=3717 * @return The projectId. */ @java.lang.Override @@ -112,7 +112,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3708 + * google/container/v1beta1/cluster_service.proto;l=3717 * @return The bytes for projectId. */ @java.lang.Override @@ -146,7 +146,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 + * google/container/v1beta1/cluster_service.proto;l=3724 * @return The zone. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 + * google/container/v1beta1/cluster_service.proto;l=3724 * @return The bytes for zone. */ @java.lang.Override @@ -208,7 +208,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3719 + * google/container/v1beta1/cluster_service.proto;l=3728 * @return The clusterId. */ @java.lang.Override @@ -236,7 +236,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3719 + * google/container/v1beta1/cluster_service.proto;l=3728 * @return The bytes for clusterId. */ @java.lang.Override @@ -734,7 +734,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3708 + * google/container/v1beta1/cluster_service.proto;l=3717 * @return The projectId. */ @java.lang.Deprecated @@ -762,7 +762,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3708 + * google/container/v1beta1/cluster_service.proto;l=3717 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -790,7 +790,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3708 + * google/container/v1beta1/cluster_service.proto;l=3717 * @param value The projectId to set. * @return This builder for chaining. */ @@ -817,7 +817,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3708 + * google/container/v1beta1/cluster_service.proto;l=3717 * @return This builder for chaining. */ @java.lang.Deprecated @@ -840,7 +840,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3708 + * google/container/v1beta1/cluster_service.proto;l=3717 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -870,7 +870,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 + * google/container/v1beta1/cluster_service.proto;l=3724 * @return The zone. */ @java.lang.Deprecated @@ -898,7 +898,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 + * google/container/v1beta1/cluster_service.proto;l=3724 * @return The bytes for zone. */ @java.lang.Deprecated @@ -926,7 +926,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 + * google/container/v1beta1/cluster_service.proto;l=3724 * @param value The zone to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 + * google/container/v1beta1/cluster_service.proto;l=3724 * @return This builder for chaining. */ @java.lang.Deprecated @@ -976,7 +976,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 + * google/container/v1beta1/cluster_service.proto;l=3724 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1005,7 +1005,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3719 + * google/container/v1beta1/cluster_service.proto;l=3728 * @return The clusterId. */ @java.lang.Deprecated @@ -1032,7 +1032,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3719 + * google/container/v1beta1/cluster_service.proto;l=3728 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1059,7 +1059,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3719 + * google/container/v1beta1/cluster_service.proto;l=3728 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1085,7 +1085,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3719 + * google/container/v1beta1/cluster_service.proto;l=3728 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1107,7 +1107,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3719 + * google/container/v1beta1/cluster_service.proto;l=3728 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java index dbf298c9d754..9a87758b73e0 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListNodePoolsRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface ListNodePoolsRequestOrBuilder * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3708 + * google/container/v1beta1/cluster_service.proto;l=3717 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface ListNodePoolsRequestOrBuilder * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3708 + * google/container/v1beta1/cluster_service.proto;l=3717 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 + * google/container/v1beta1/cluster_service.proto;l=3724 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface ListNodePoolsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListNodePoolsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3715 + * google/container/v1beta1/cluster_service.proto;l=3724 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface ListNodePoolsRequestOrBuilder * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3719 + * google/container/v1beta1/cluster_service.proto;l=3728 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface ListNodePoolsRequestOrBuilder * * * @deprecated google.container.v1beta1.ListNodePoolsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3719 + * google/container/v1beta1/cluster_service.proto;l=3728 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java index ab98dfd05721..2ca257d6e511 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3494 + * google/container/v1beta1/cluster_service.proto;l=3503 * @return The projectId. */ @java.lang.Override @@ -111,7 +111,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3494 + * google/container/v1beta1/cluster_service.proto;l=3503 * @return The bytes for projectId. */ @java.lang.Override @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3501 + * google/container/v1beta1/cluster_service.proto;l=3510 * @return The zone. */ @java.lang.Override @@ -174,7 +174,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3501 + * google/container/v1beta1/cluster_service.proto;l=3510 * @return The bytes for zone. */ @java.lang.Override @@ -650,7 +650,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3494 + * google/container/v1beta1/cluster_service.proto;l=3503 * @return The projectId. */ @java.lang.Deprecated @@ -678,7 +678,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3494 + * google/container/v1beta1/cluster_service.proto;l=3503 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -706,7 +706,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3494 + * google/container/v1beta1/cluster_service.proto;l=3503 * @param value The projectId to set. * @return This builder for chaining. */ @@ -733,7 +733,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3494 + * google/container/v1beta1/cluster_service.proto;l=3503 * @return This builder for chaining. */ @java.lang.Deprecated @@ -756,7 +756,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3494 + * google/container/v1beta1/cluster_service.proto;l=3503 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -786,7 +786,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3501 + * google/container/v1beta1/cluster_service.proto;l=3510 * @return The zone. */ @java.lang.Deprecated @@ -814,7 +814,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3501 + * google/container/v1beta1/cluster_service.proto;l=3510 * @return The bytes for zone. */ @java.lang.Deprecated @@ -842,7 +842,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3501 + * google/container/v1beta1/cluster_service.proto;l=3510 * @param value The zone to set. * @return This builder for chaining. */ @@ -869,7 +869,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3501 + * google/container/v1beta1/cluster_service.proto;l=3510 * @return This builder for chaining. */ @java.lang.Deprecated @@ -892,7 +892,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3501 + * google/container/v1beta1/cluster_service.proto;l=3510 * @param value The bytes for zone to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java index 3a196d56ab5a..0f571fed3116 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/ListOperationsRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface ListOperationsRequestOrBuilder * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3494 + * google/container/v1beta1/cluster_service.proto;l=3503 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface ListOperationsRequestOrBuilder * * * @deprecated google.container.v1beta1.ListOperationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3494 + * google/container/v1beta1/cluster_service.proto;l=3503 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3501 + * google/container/v1beta1/cluster_service.proto;l=3510 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface ListOperationsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.ListOperationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3501 + * google/container/v1beta1/cluster_service.proto;l=3510 * @return The bytes for zone. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java index a3f9eb1c3978..99e0da39eec9 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfig.java @@ -1546,6 +1546,39 @@ public com.google.container.v1beta1.InTransitEncryptionConfig getInTransitEncryp : result; } + public static final int ENABLE_CILIUM_CLUSTERWIDE_NETWORK_POLICY_FIELD_NUMBER = 21; + private boolean enableCiliumClusterwideNetworkPolicy_ = false; + /** + * + * + *
                              +   * Whether CiliumClusterWideNetworkPolicy is enabled on this cluster.
                              +   * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @return Whether the enableCiliumClusterwideNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasEnableCiliumClusterwideNetworkPolicy() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
                              +   * Whether CiliumClusterWideNetworkPolicy is enabled on this cluster.
                              +   * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @return The enableCiliumClusterwideNetworkPolicy. + */ + @java.lang.Override + public boolean getEnableCiliumClusterwideNetworkPolicy() { + return enableCiliumClusterwideNetworkPolicy_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1607,6 +1640,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000040) != 0)) { output.writeEnum(20, inTransitEncryptionConfig_); } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeBool(21, enableCiliumClusterwideNetworkPolicy_); + } getUnknownFields().writeTo(output); } @@ -1667,6 +1703,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, inTransitEncryptionConfig_); } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 21, enableCiliumClusterwideNetworkPolicy_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1718,6 +1759,12 @@ public boolean equals(final java.lang.Object obj) { if (hasInTransitEncryptionConfig()) { if (inTransitEncryptionConfig_ != other.inTransitEncryptionConfig_) return false; } + if (hasEnableCiliumClusterwideNetworkPolicy() + != other.hasEnableCiliumClusterwideNetworkPolicy()) return false; + if (hasEnableCiliumClusterwideNetworkPolicy()) { + if (getEnableCiliumClusterwideNetworkPolicy() + != other.getEnableCiliumClusterwideNetworkPolicy()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1771,6 +1818,12 @@ public int hashCode() { hash = (37 * hash) + IN_TRANSIT_ENCRYPTION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + inTransitEncryptionConfig_; } + if (hasEnableCiliumClusterwideNetworkPolicy()) { + hash = (37 * hash) + ENABLE_CILIUM_CLUSTERWIDE_NETWORK_POLICY_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableCiliumClusterwideNetworkPolicy()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1957,6 +2010,7 @@ public Builder clear() { } enableFqdnNetworkPolicy_ = false; inTransitEncryptionConfig_ = 0; + enableCiliumClusterwideNetworkPolicy_ = false; return this; } @@ -2053,6 +2107,10 @@ private void buildPartial0(com.google.container.v1beta1.NetworkConfig result) { result.inTransitEncryptionConfig_ = inTransitEncryptionConfig_; to_bitField0_ |= 0x00000040; } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.enableCiliumClusterwideNetworkPolicy_ = enableCiliumClusterwideNetworkPolicy_; + to_bitField0_ |= 0x00000080; + } result.bitField0_ |= to_bitField0_; } @@ -2147,6 +2205,9 @@ public Builder mergeFrom(com.google.container.v1beta1.NetworkConfig other) { if (other.hasInTransitEncryptionConfig()) { setInTransitEncryptionConfig(other.getInTransitEncryptionConfig()); } + if (other.hasEnableCiliumClusterwideNetworkPolicy()) { + setEnableCiliumClusterwideNetworkPolicy(other.getEnableCiliumClusterwideNetworkPolicy()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2261,6 +2322,12 @@ public Builder mergeFrom( bitField0_ |= 0x00002000; break; } // case 160 + case 168: + { + enableCiliumClusterwideNetworkPolicy_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 168 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4096,6 +4163,74 @@ public Builder clearInTransitEncryptionConfig() { return this; } + private boolean enableCiliumClusterwideNetworkPolicy_; + /** + * + * + *
                              +     * Whether CiliumClusterWideNetworkPolicy is enabled on this cluster.
                              +     * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @return Whether the enableCiliumClusterwideNetworkPolicy field is set. + */ + @java.lang.Override + public boolean hasEnableCiliumClusterwideNetworkPolicy() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * + * + *
                              +     * Whether CiliumClusterWideNetworkPolicy is enabled on this cluster.
                              +     * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @return The enableCiliumClusterwideNetworkPolicy. + */ + @java.lang.Override + public boolean getEnableCiliumClusterwideNetworkPolicy() { + return enableCiliumClusterwideNetworkPolicy_; + } + /** + * + * + *
                              +     * Whether CiliumClusterWideNetworkPolicy is enabled on this cluster.
                              +     * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @param value The enableCiliumClusterwideNetworkPolicy to set. + * @return This builder for chaining. + */ + public Builder setEnableCiliumClusterwideNetworkPolicy(boolean value) { + + enableCiliumClusterwideNetworkPolicy_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
                              +     * Whether CiliumClusterWideNetworkPolicy is enabled on this cluster.
                              +     * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @return This builder for chaining. + */ + public Builder clearEnableCiliumClusterwideNetworkPolicy() { + bitField0_ = (bitField0_ & ~0x00004000); + enableCiliumClusterwideNetworkPolicy_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java index edc8f9773fe8..76c3a7a21e79 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NetworkConfigOrBuilder.java @@ -451,4 +451,29 @@ public interface NetworkConfigOrBuilder * @return The inTransitEncryptionConfig. */ com.google.container.v1beta1.InTransitEncryptionConfig getInTransitEncryptionConfig(); + + /** + * + * + *
                              +   * Whether CiliumClusterWideNetworkPolicy is enabled on this cluster.
                              +   * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @return Whether the enableCiliumClusterwideNetworkPolicy field is set. + */ + boolean hasEnableCiliumClusterwideNetworkPolicy(); + /** + * + * + *
                              +   * Whether CiliumClusterWideNetworkPolicy is enabled on this cluster.
                              +   * 
                              + * + * optional bool enable_cilium_clusterwide_network_policy = 21; + * + * @return The enableCiliumClusterwideNetworkPolicy. + */ + boolean getEnableCiliumClusterwideNetworkPolicy(); } diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java index 1ee6a6b8a4a2..b5b88583e437 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePool.java @@ -6738,7 +6738,7 @@ public com.google.container.v1beta1.NodePool.Status getStatus() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4037 + * google/container/v1beta1/cluster_service.proto;l=4046 * @return The statusMessage. */ @java.lang.Override @@ -6766,7 +6766,7 @@ public java.lang.String getStatusMessage() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4037 + * google/container/v1beta1/cluster_service.proto;l=4046 * @return The bytes for statusMessage. */ @java.lang.Override @@ -9698,7 +9698,7 @@ public Builder clearStatus() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4037 + * google/container/v1beta1/cluster_service.proto;l=4046 * @return The statusMessage. */ @java.lang.Deprecated @@ -9725,7 +9725,7 @@ public java.lang.String getStatusMessage() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4037 + * google/container/v1beta1/cluster_service.proto;l=4046 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -9752,7 +9752,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4037 + * google/container/v1beta1/cluster_service.proto;l=4046 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -9778,7 +9778,7 @@ public Builder setStatusMessage(java.lang.String value) { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4037 + * google/container/v1beta1/cluster_service.proto;l=4046 * @return This builder for chaining. */ @java.lang.Deprecated @@ -9800,7 +9800,7 @@ public Builder clearStatusMessage() { * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4037 + * google/container/v1beta1/cluster_service.proto;l=4046 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java index e2bc775ff61b..7fd96eb27076 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/NodePoolOrBuilder.java @@ -383,7 +383,7 @@ public interface NodePoolOrBuilder * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4037 + * google/container/v1beta1/cluster_service.proto;l=4046 * @return The statusMessage. */ @java.lang.Deprecated @@ -400,7 +400,7 @@ public interface NodePoolOrBuilder * string status_message = 104 [deprecated = true]; * * @deprecated google.container.v1beta1.NodePool.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4037 + * google/container/v1beta1/cluster_service.proto;l=4046 * @return The bytes for statusMessage. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java index 6f9d9699017f..32870641b811 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/Operation.java @@ -991,7 +991,7 @@ public com.google.protobuf.ByteString getNameBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2841 + * google/container/v1beta1/cluster_service.proto;l=2850 * @return The zone. */ @java.lang.Override @@ -1019,7 +1019,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2841 + * google/container/v1beta1/cluster_service.proto;l=2850 * @return The bytes for zone. */ @java.lang.Override @@ -1174,7 +1174,7 @@ public com.google.protobuf.ByteString getDetailBytes() { * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2854 + * google/container/v1beta1/cluster_service.proto;l=2863 * @return The statusMessage. */ @java.lang.Override @@ -1203,7 +1203,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2854 + * google/container/v1beta1/cluster_service.proto;l=2863 * @return The bytes for statusMessage. */ @java.lang.Override @@ -2719,7 +2719,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2841 + * google/container/v1beta1/cluster_service.proto;l=2850 * @return The zone. */ @java.lang.Deprecated @@ -2746,7 +2746,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2841 + * google/container/v1beta1/cluster_service.proto;l=2850 * @return The bytes for zone. */ @java.lang.Deprecated @@ -2773,7 +2773,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2841 + * google/container/v1beta1/cluster_service.proto;l=2850 * @param value The zone to set. * @return This builder for chaining. */ @@ -2799,7 +2799,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2841 + * google/container/v1beta1/cluster_service.proto;l=2850 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2821,7 +2821,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2841 + * google/container/v1beta1/cluster_service.proto;l=2850 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -3137,7 +3137,7 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2854 + * google/container/v1beta1/cluster_service.proto;l=2863 * @return The statusMessage. */ @java.lang.Deprecated @@ -3165,7 +3165,7 @@ public java.lang.String getStatusMessage() { * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2854 + * google/container/v1beta1/cluster_service.proto;l=2863 * @return The bytes for statusMessage. */ @java.lang.Deprecated @@ -3193,7 +3193,7 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2854 + * google/container/v1beta1/cluster_service.proto;l=2863 * @param value The statusMessage to set. * @return This builder for chaining. */ @@ -3220,7 +3220,7 @@ public Builder setStatusMessage(java.lang.String value) { * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2854 + * google/container/v1beta1/cluster_service.proto;l=2863 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3243,7 +3243,7 @@ public Builder clearStatusMessage() { * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2854 + * google/container/v1beta1/cluster_service.proto;l=2863 * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java index 834f97bce3d5..4669d1f52cc2 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/OperationOrBuilder.java @@ -61,7 +61,7 @@ public interface OperationOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2841 + * google/container/v1beta1/cluster_service.proto;l=2850 * @return The zone. */ @java.lang.Deprecated @@ -78,7 +78,7 @@ public interface OperationOrBuilder * string zone = 2 [deprecated = true]; * * @deprecated google.container.v1beta1.Operation.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2841 + * google/container/v1beta1/cluster_service.proto;l=2850 * @return The bytes for zone. */ @java.lang.Deprecated @@ -172,7 +172,7 @@ public interface OperationOrBuilder * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2854 + * google/container/v1beta1/cluster_service.proto;l=2863 * @return The statusMessage. */ @java.lang.Deprecated @@ -190,7 +190,7 @@ public interface OperationOrBuilder * * * @deprecated google.container.v1beta1.Operation.status_message is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=2854 + * google/container/v1beta1/cluster_service.proto;l=2863 * @return The bytes for statusMessage. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java index c9270c1ad77f..43e455d60783 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequest.java @@ -87,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4310 + * See google/container/v1beta1/cluster_service.proto;l=4319 * @return The projectId. */ @java.lang.Override @@ -116,7 +116,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4310 + * See google/container/v1beta1/cluster_service.proto;l=4319 * @return The bytes for projectId. */ @java.lang.Override @@ -150,7 +150,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4317 + * google/container/v1beta1/cluster_service.proto;l=4326 * @return The zone. */ @java.lang.Override @@ -179,7 +179,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4317 + * google/container/v1beta1/cluster_service.proto;l=4326 * @return The bytes for zone. */ @java.lang.Override @@ -212,7 +212,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4321 + * See google/container/v1beta1/cluster_service.proto;l=4330 * @return The clusterId. */ @java.lang.Override @@ -240,7 +240,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4321 + * See google/container/v1beta1/cluster_service.proto;l=4330 * @return The bytes for clusterId. */ @java.lang.Override @@ -273,7 +273,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4326 + * See google/container/v1beta1/cluster_service.proto;l=4335 * @return The nodePoolId. */ @java.lang.Override @@ -301,7 +301,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4326 + * See google/container/v1beta1/cluster_service.proto;l=4335 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -869,7 +869,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4310 + * See google/container/v1beta1/cluster_service.proto;l=4319 * @return The projectId. */ @java.lang.Deprecated @@ -897,7 +897,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4310 + * See google/container/v1beta1/cluster_service.proto;l=4319 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -925,7 +925,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4310 + * See google/container/v1beta1/cluster_service.proto;l=4319 * @param value The projectId to set. * @return This builder for chaining. */ @@ -952,7 +952,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4310 + * See google/container/v1beta1/cluster_service.proto;l=4319 * @return This builder for chaining. */ @java.lang.Deprecated @@ -975,7 +975,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4310 + * See google/container/v1beta1/cluster_service.proto;l=4319 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1005,7 +1005,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4317 + * google/container/v1beta1/cluster_service.proto;l=4326 * @return The zone. */ @java.lang.Deprecated @@ -1033,7 +1033,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4317 + * google/container/v1beta1/cluster_service.proto;l=4326 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1061,7 +1061,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4317 + * google/container/v1beta1/cluster_service.proto;l=4326 * @param value The zone to set. * @return This builder for chaining. */ @@ -1088,7 +1088,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4317 + * google/container/v1beta1/cluster_service.proto;l=4326 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1111,7 +1111,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4317 + * google/container/v1beta1/cluster_service.proto;l=4326 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1140,7 +1140,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4321 + * See google/container/v1beta1/cluster_service.proto;l=4330 * @return The clusterId. */ @java.lang.Deprecated @@ -1167,7 +1167,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4321 + * See google/container/v1beta1/cluster_service.proto;l=4330 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1194,7 +1194,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4321 + * See google/container/v1beta1/cluster_service.proto;l=4330 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1220,7 +1220,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4321 + * See google/container/v1beta1/cluster_service.proto;l=4330 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1242,7 +1242,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4321 + * See google/container/v1beta1/cluster_service.proto;l=4330 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1271,7 +1271,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4326 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4335 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1298,7 +1298,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4326 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4335 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1325,7 +1325,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4326 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4335 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1351,7 +1351,7 @@ public Builder setNodePoolId(java.lang.String value) { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4326 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4335 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1373,7 +1373,7 @@ public Builder clearNodePoolId() { * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=4326 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=4335 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java index 30d6b33245f3..609c07f2c194 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4310 + * See google/container/v1beta1/cluster_service.proto;l=4319 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4310 + * See google/container/v1beta1/cluster_service.proto;l=4319 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4317 + * google/container/v1beta1/cluster_service.proto;l=4326 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4317 + * google/container/v1beta1/cluster_service.proto;l=4326 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4321 + * See google/container/v1beta1/cluster_service.proto;l=4330 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4321 + * See google/container/v1beta1/cluster_service.proto;l=4330 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -145,7 +145,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4326 + * See google/container/v1beta1/cluster_service.proto;l=4335 * @return The nodePoolId. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * * @deprecated google.container.v1beta1.RollbackNodePoolUpgradeRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4326 + * See google/container/v1beta1/cluster_service.proto;l=4335 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecretManagerConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecretManagerConfig.java new file mode 100644 index 000000000000..3b9cc04a8085 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecretManagerConfig.java @@ -0,0 +1,574 @@ +/* + * 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/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +/** + * + * + *
                              + * SecretManagerConfig is config for secret manager enablement.
                              + * 
                              + * + * Protobuf type {@code google.container.v1beta1.SecretManagerConfig} + */ +public final class SecretManagerConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.container.v1beta1.SecretManagerConfig) + SecretManagerConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecretManagerConfig.newBuilder() to construct. + private SecretManagerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SecretManagerConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecretManagerConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SecretManagerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SecretManagerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SecretManagerConfig.class, + com.google.container.v1beta1.SecretManagerConfig.Builder.class); + } + + private int bitField0_; + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + /** + * + * + *
                              +   * Whether the cluster is configured to use secret manager CSI component.
                              +   * 
                              + * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                              +   * Whether the cluster is configured to use secret manager CSI component.
                              +   * 
                              + * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + 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.writeBool(1, enabled_); + } + 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.computeBoolSize(1, enabled_); + } + 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.container.v1beta1.SecretManagerConfig)) { + return super.equals(obj); + } + com.google.container.v1beta1.SecretManagerConfig other = + (com.google.container.v1beta1.SecretManagerConfig) obj; + + if (hasEnabled() != other.hasEnabled()) return false; + if (hasEnabled()) { + if (getEnabled() != other.getEnabled()) 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 (hasEnabled()) { + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1beta1.SecretManagerConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SecretManagerConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SecretManagerConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SecretManagerConfig 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.container.v1beta1.SecretManagerConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1beta1.SecretManagerConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1beta1.SecretManagerConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SecretManagerConfig 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.container.v1beta1.SecretManagerConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SecretManagerConfig 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.container.v1beta1.SecretManagerConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1beta1.SecretManagerConfig 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.container.v1beta1.SecretManagerConfig 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; + } + /** + * + * + *
                              +   * SecretManagerConfig is config for secret manager enablement.
                              +   * 
                              + * + * Protobuf type {@code google.container.v1beta1.SecretManagerConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1beta1.SecretManagerConfig) + com.google.container.v1beta1.SecretManagerConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SecretManagerConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SecretManagerConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1beta1.SecretManagerConfig.class, + com.google.container.v1beta1.SecretManagerConfig.Builder.class); + } + + // Construct using com.google.container.v1beta1.SecretManagerConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1beta1.ClusterServiceProto + .internal_static_google_container_v1beta1_SecretManagerConfig_descriptor; + } + + @java.lang.Override + public com.google.container.v1beta1.SecretManagerConfig getDefaultInstanceForType() { + return com.google.container.v1beta1.SecretManagerConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.container.v1beta1.SecretManagerConfig build() { + com.google.container.v1beta1.SecretManagerConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.container.v1beta1.SecretManagerConfig buildPartial() { + com.google.container.v1beta1.SecretManagerConfig result = + new com.google.container.v1beta1.SecretManagerConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.container.v1beta1.SecretManagerConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.container.v1beta1.SecretManagerConfig) { + return mergeFrom((com.google.container.v1beta1.SecretManagerConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.container.v1beta1.SecretManagerConfig other) { + if (other == com.google.container.v1beta1.SecretManagerConfig.getDefaultInstance()) + return this; + if (other.hasEnabled()) { + setEnabled(other.getEnabled()); + } + 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: + { + enabled_ = 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 enabled_; + /** + * + * + *
                              +     * Whether the cluster is configured to use secret manager CSI component.
                              +     * 
                              + * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + @java.lang.Override + public boolean hasEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                              +     * Whether the cluster is configured to use secret manager CSI component.
                              +     * 
                              + * + * optional bool enabled = 1; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
                              +     * Whether the cluster is configured to use secret manager CSI component.
                              +     * 
                              + * + * optional bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                              +     * Whether the cluster is configured to use secret manager CSI component.
                              +     * 
                              + * + * optional bool enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = 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.container.v1beta1.SecretManagerConfig) + } + + // @@protoc_insertion_point(class_scope:google.container.v1beta1.SecretManagerConfig) + private static final com.google.container.v1beta1.SecretManagerConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.container.v1beta1.SecretManagerConfig(); + } + + public static com.google.container.v1beta1.SecretManagerConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecretManagerConfig 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.container.v1beta1.SecretManagerConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecretManagerConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecretManagerConfigOrBuilder.java new file mode 100644 index 000000000000..2e124dd73889 --- /dev/null +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SecretManagerConfigOrBuilder.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/container/v1beta1/cluster_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.container.v1beta1; + +public interface SecretManagerConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.container.v1beta1.SecretManagerConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                              +   * Whether the cluster is configured to use secret manager CSI component.
                              +   * 
                              + * + * optional bool enabled = 1; + * + * @return Whether the enabled field is set. + */ + boolean hasEnabled(); + /** + * + * + *
                              +   * Whether the cluster is configured to use secret manager CSI component.
                              +   * 
                              + * + * optional bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java index b1f9b475eda1..6a93c358a285 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3270 + * google/container/v1beta1/cluster_service.proto;l=3279 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3270 + * google/container/v1beta1/cluster_service.proto;l=3279 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 + * google/container/v1beta1/cluster_service.proto;l=3286 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 + * google/container/v1beta1/cluster_service.proto;l=3286 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3281 + * google/container/v1beta1/cluster_service.proto;l=3290 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3281 + * google/container/v1beta1/cluster_service.proto;l=3290 * @return The bytes for clusterId. */ @java.lang.Override @@ -838,7 +838,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3270 + * google/container/v1beta1/cluster_service.proto;l=3279 * @return The projectId. */ @java.lang.Deprecated @@ -866,7 +866,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3270 + * google/container/v1beta1/cluster_service.proto;l=3279 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -894,7 +894,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3270 + * google/container/v1beta1/cluster_service.proto;l=3279 * @param value The projectId to set. * @return This builder for chaining. */ @@ -921,7 +921,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3270 + * google/container/v1beta1/cluster_service.proto;l=3279 * @return This builder for chaining. */ @java.lang.Deprecated @@ -944,7 +944,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3270 + * google/container/v1beta1/cluster_service.proto;l=3279 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -974,7 +974,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 + * google/container/v1beta1/cluster_service.proto;l=3286 * @return The zone. */ @java.lang.Deprecated @@ -1002,7 +1002,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 + * google/container/v1beta1/cluster_service.proto;l=3286 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1030,7 +1030,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 + * google/container/v1beta1/cluster_service.proto;l=3286 * @param value The zone to set. * @return This builder for chaining. */ @@ -1057,7 +1057,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 + * google/container/v1beta1/cluster_service.proto;l=3286 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1080,7 +1080,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 + * google/container/v1beta1/cluster_service.proto;l=3286 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1109,7 +1109,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3281 + * google/container/v1beta1/cluster_service.proto;l=3290 * @return The clusterId. */ @java.lang.Deprecated @@ -1136,7 +1136,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3281 + * google/container/v1beta1/cluster_service.proto;l=3290 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1163,7 +1163,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3281 + * google/container/v1beta1/cluster_service.proto;l=3290 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1189,7 +1189,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3281 + * google/container/v1beta1/cluster_service.proto;l=3290 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1211,7 +1211,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3281 + * google/container/v1beta1/cluster_service.proto;l=3290 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java index 1ac3e6dcb055..b5e05121eb46 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetAddonsConfigRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetAddonsConfigRequestOrBuilder * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3270 + * google/container/v1beta1/cluster_service.proto;l=3279 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetAddonsConfigRequestOrBuilder * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3270 + * google/container/v1beta1/cluster_service.proto;l=3279 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 + * google/container/v1beta1/cluster_service.proto;l=3286 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetAddonsConfigRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3277 + * google/container/v1beta1/cluster_service.proto;l=3286 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetAddonsConfigRequestOrBuilder * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3281 + * google/container/v1beta1/cluster_service.proto;l=3290 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetAddonsConfigRequestOrBuilder * * * @deprecated google.container.v1beta1.SetAddonsConfigRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3281 + * google/container/v1beta1/cluster_service.proto;l=3290 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java index eea8dc7d150a..dedc2efb06d1 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequest.java @@ -98,7 +98,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4526 + * google/container/v1beta1/cluster_service.proto;l=4535 * @return The projectId. */ @java.lang.Override @@ -127,7 +127,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4526 + * google/container/v1beta1/cluster_service.proto;l=4535 * @return The bytes for projectId. */ @java.lang.Override @@ -161,7 +161,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 + * google/container/v1beta1/cluster_service.proto;l=4542 * @return The zone. */ @java.lang.Override @@ -190,7 +190,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 + * google/container/v1beta1/cluster_service.proto;l=4542 * @return The bytes for zone. */ @java.lang.Override @@ -223,7 +223,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4537 + * google/container/v1beta1/cluster_service.proto;l=4546 * @return The clusterId. */ @java.lang.Override @@ -251,7 +251,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4537 + * google/container/v1beta1/cluster_service.proto;l=4546 * @return The bytes for clusterId. */ @java.lang.Override @@ -1001,7 +1001,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4526 + * google/container/v1beta1/cluster_service.proto;l=4535 * @return The projectId. */ @java.lang.Deprecated @@ -1029,7 +1029,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4526 + * google/container/v1beta1/cluster_service.proto;l=4535 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1057,7 +1057,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4526 + * google/container/v1beta1/cluster_service.proto;l=4535 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1084,7 +1084,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4526 + * google/container/v1beta1/cluster_service.proto;l=4535 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1107,7 +1107,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4526 + * google/container/v1beta1/cluster_service.proto;l=4535 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1137,7 +1137,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 + * google/container/v1beta1/cluster_service.proto;l=4542 * @return The zone. */ @java.lang.Deprecated @@ -1165,7 +1165,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 + * google/container/v1beta1/cluster_service.proto;l=4542 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1193,7 +1193,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 + * google/container/v1beta1/cluster_service.proto;l=4542 * @param value The zone to set. * @return This builder for chaining. */ @@ -1220,7 +1220,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 + * google/container/v1beta1/cluster_service.proto;l=4542 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1243,7 +1243,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 + * google/container/v1beta1/cluster_service.proto;l=4542 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1272,7 +1272,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4537 + * google/container/v1beta1/cluster_service.proto;l=4546 * @return The clusterId. */ @java.lang.Deprecated @@ -1299,7 +1299,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4537 + * google/container/v1beta1/cluster_service.proto;l=4546 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1326,7 +1326,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4537 + * google/container/v1beta1/cluster_service.proto;l=4546 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1352,7 +1352,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4537 + * google/container/v1beta1/cluster_service.proto;l=4546 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1374,7 +1374,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4537 + * google/container/v1beta1/cluster_service.proto;l=4546 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java index e9ca8653ce3d..f289171c0866 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLabelsRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetLabelsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4526 + * google/container/v1beta1/cluster_service.proto;l=4535 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetLabelsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLabelsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4526 + * google/container/v1beta1/cluster_service.proto;l=4535 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 + * google/container/v1beta1/cluster_service.proto;l=4542 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLabelsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLabelsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4533 + * google/container/v1beta1/cluster_service.proto;l=4542 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetLabelsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4537 + * google/container/v1beta1/cluster_service.proto;l=4546 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetLabelsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLabelsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4537 + * google/container/v1beta1/cluster_service.proto;l=4546 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java index 1c21956c41fb..3cf93098898f 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4563 + * google/container/v1beta1/cluster_service.proto;l=4572 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4563 + * google/container/v1beta1/cluster_service.proto;l=4572 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 + * google/container/v1beta1/cluster_service.proto;l=4579 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 + * google/container/v1beta1/cluster_service.proto;l=4579 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4574 + * google/container/v1beta1/cluster_service.proto;l=4583 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4574 + * google/container/v1beta1/cluster_service.proto;l=4583 * @return The bytes for clusterId. */ @java.lang.Override @@ -776,7 +776,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4563 + * google/container/v1beta1/cluster_service.proto;l=4572 * @return The projectId. */ @java.lang.Deprecated @@ -804,7 +804,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4563 + * google/container/v1beta1/cluster_service.proto;l=4572 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -832,7 +832,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4563 + * google/container/v1beta1/cluster_service.proto;l=4572 * @param value The projectId to set. * @return This builder for chaining. */ @@ -859,7 +859,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4563 + * google/container/v1beta1/cluster_service.proto;l=4572 * @return This builder for chaining. */ @java.lang.Deprecated @@ -882,7 +882,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4563 + * google/container/v1beta1/cluster_service.proto;l=4572 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -912,7 +912,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 + * google/container/v1beta1/cluster_service.proto;l=4579 * @return The zone. */ @java.lang.Deprecated @@ -940,7 +940,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 + * google/container/v1beta1/cluster_service.proto;l=4579 * @return The bytes for zone. */ @java.lang.Deprecated @@ -968,7 +968,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 + * google/container/v1beta1/cluster_service.proto;l=4579 * @param value The zone to set. * @return This builder for chaining. */ @@ -995,7 +995,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 + * google/container/v1beta1/cluster_service.proto;l=4579 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1018,7 +1018,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 + * google/container/v1beta1/cluster_service.proto;l=4579 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1047,7 +1047,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4574 + * google/container/v1beta1/cluster_service.proto;l=4583 * @return The clusterId. */ @java.lang.Deprecated @@ -1074,7 +1074,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4574 + * google/container/v1beta1/cluster_service.proto;l=4583 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1101,7 +1101,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4574 + * google/container/v1beta1/cluster_service.proto;l=4583 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1127,7 +1127,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4574 + * google/container/v1beta1/cluster_service.proto;l=4583 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1149,7 +1149,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4574 + * google/container/v1beta1/cluster_service.proto;l=4583 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java index ec688ba77c91..33afcb36142d 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLegacyAbacRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetLegacyAbacRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4563 + * google/container/v1beta1/cluster_service.proto;l=4572 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetLegacyAbacRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4563 + * google/container/v1beta1/cluster_service.proto;l=4572 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 + * google/container/v1beta1/cluster_service.proto;l=4579 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLegacyAbacRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4570 + * google/container/v1beta1/cluster_service.proto;l=4579 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetLegacyAbacRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4574 + * google/container/v1beta1/cluster_service.proto;l=4583 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetLegacyAbacRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLegacyAbacRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4574 + * google/container/v1beta1/cluster_service.proto;l=4583 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java index bda3e1516e09..f7b359f724bc 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3298 + * google/container/v1beta1/cluster_service.proto;l=3307 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3298 + * google/container/v1beta1/cluster_service.proto;l=3307 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 + * google/container/v1beta1/cluster_service.proto;l=3314 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 + * google/container/v1beta1/cluster_service.proto;l=3314 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3309 + * google/container/v1beta1/cluster_service.proto;l=3318 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3309 + * google/container/v1beta1/cluster_service.proto;l=3318 * @return The bytes for clusterId. */ @java.lang.Override @@ -861,7 +861,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3298 + * google/container/v1beta1/cluster_service.proto;l=3307 * @return The projectId. */ @java.lang.Deprecated @@ -889,7 +889,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3298 + * google/container/v1beta1/cluster_service.proto;l=3307 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -917,7 +917,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3298 + * google/container/v1beta1/cluster_service.proto;l=3307 * @param value The projectId to set. * @return This builder for chaining. */ @@ -944,7 +944,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3298 + * google/container/v1beta1/cluster_service.proto;l=3307 * @return This builder for chaining. */ @java.lang.Deprecated @@ -967,7 +967,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3298 + * google/container/v1beta1/cluster_service.proto;l=3307 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -997,7 +997,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 + * google/container/v1beta1/cluster_service.proto;l=3314 * @return The zone. */ @java.lang.Deprecated @@ -1025,7 +1025,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 + * google/container/v1beta1/cluster_service.proto;l=3314 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1053,7 +1053,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 + * google/container/v1beta1/cluster_service.proto;l=3314 * @param value The zone to set. * @return This builder for chaining. */ @@ -1080,7 +1080,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 + * google/container/v1beta1/cluster_service.proto;l=3314 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1103,7 +1103,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 + * google/container/v1beta1/cluster_service.proto;l=3314 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1132,7 +1132,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3309 + * google/container/v1beta1/cluster_service.proto;l=3318 * @return The clusterId. */ @java.lang.Deprecated @@ -1159,7 +1159,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3309 + * google/container/v1beta1/cluster_service.proto;l=3318 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1186,7 +1186,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3309 + * google/container/v1beta1/cluster_service.proto;l=3318 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1212,7 +1212,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3309 + * google/container/v1beta1/cluster_service.proto;l=3318 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1234,7 +1234,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3309 + * google/container/v1beta1/cluster_service.proto;l=3318 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java index 23b554f1c78f..84149300e329 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLocationsRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetLocationsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3298 + * google/container/v1beta1/cluster_service.proto;l=3307 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetLocationsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLocationsRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3298 + * google/container/v1beta1/cluster_service.proto;l=3307 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 + * google/container/v1beta1/cluster_service.proto;l=3314 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLocationsRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLocationsRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3305 + * google/container/v1beta1/cluster_service.proto;l=3314 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetLocationsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3309 + * google/container/v1beta1/cluster_service.proto;l=3318 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetLocationsRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLocationsRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3309 + * google/container/v1beta1/cluster_service.proto;l=3318 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java index f51f835d3f32..66d50105581a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3196 + * google/container/v1beta1/cluster_service.proto;l=3205 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3196 + * google/container/v1beta1/cluster_service.proto;l=3205 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 + * google/container/v1beta1/cluster_service.proto;l=3212 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 + * google/container/v1beta1/cluster_service.proto;l=3212 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3207 + * google/container/v1beta1/cluster_service.proto;l=3216 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3207 + * google/container/v1beta1/cluster_service.proto;l=3216 * @return The bytes for clusterId. */ @java.lang.Override @@ -831,7 +831,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3196 + * google/container/v1beta1/cluster_service.proto;l=3205 * @return The projectId. */ @java.lang.Deprecated @@ -859,7 +859,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3196 + * google/container/v1beta1/cluster_service.proto;l=3205 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -887,7 +887,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3196 + * google/container/v1beta1/cluster_service.proto;l=3205 * @param value The projectId to set. * @return This builder for chaining. */ @@ -914,7 +914,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3196 + * google/container/v1beta1/cluster_service.proto;l=3205 * @return This builder for chaining. */ @java.lang.Deprecated @@ -937,7 +937,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3196 + * google/container/v1beta1/cluster_service.proto;l=3205 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -967,7 +967,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 + * google/container/v1beta1/cluster_service.proto;l=3212 * @return The zone. */ @java.lang.Deprecated @@ -995,7 +995,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 + * google/container/v1beta1/cluster_service.proto;l=3212 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1023,7 +1023,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 + * google/container/v1beta1/cluster_service.proto;l=3212 * @param value The zone to set. * @return This builder for chaining. */ @@ -1050,7 +1050,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 + * google/container/v1beta1/cluster_service.proto;l=3212 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1073,7 +1073,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 + * google/container/v1beta1/cluster_service.proto;l=3212 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1102,7 +1102,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3207 + * google/container/v1beta1/cluster_service.proto;l=3216 * @return The clusterId. */ @java.lang.Deprecated @@ -1129,7 +1129,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3207 + * google/container/v1beta1/cluster_service.proto;l=3216 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1156,7 +1156,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3207 + * google/container/v1beta1/cluster_service.proto;l=3216 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1182,7 +1182,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3207 + * google/container/v1beta1/cluster_service.proto;l=3216 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1204,7 +1204,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3207 + * google/container/v1beta1/cluster_service.proto;l=3216 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java index 722cd1bfa2c6..1b0e19784c3b 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetLoggingServiceRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetLoggingServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3196 + * google/container/v1beta1/cluster_service.proto;l=3205 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetLoggingServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3196 + * google/container/v1beta1/cluster_service.proto;l=3205 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 + * google/container/v1beta1/cluster_service.proto;l=3212 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetLoggingServiceRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3203 + * google/container/v1beta1/cluster_service.proto;l=3212 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetLoggingServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3207 + * google/container/v1beta1/cluster_service.proto;l=3216 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetLoggingServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetLoggingServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3207 + * google/container/v1beta1/cluster_service.proto;l=3216 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java index d5777aa70773..ff7c28b637f2 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequest.java @@ -272,7 +272,7 @@ private Action(int value) { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3385 + * google/container/v1beta1/cluster_service.proto;l=3394 * @return The projectId. */ @java.lang.Override @@ -301,7 +301,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3385 + * google/container/v1beta1/cluster_service.proto;l=3394 * @return The bytes for projectId. */ @java.lang.Override @@ -335,7 +335,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 + * google/container/v1beta1/cluster_service.proto;l=3401 * @return The zone. */ @java.lang.Override @@ -364,7 +364,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 + * google/container/v1beta1/cluster_service.proto;l=3401 * @return The bytes for zone. */ @java.lang.Override @@ -397,7 +397,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3396 + * google/container/v1beta1/cluster_service.proto;l=3405 * @return The clusterId. */ @java.lang.Override @@ -425,7 +425,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3396 + * google/container/v1beta1/cluster_service.proto;l=3405 * @return The bytes for clusterId. */ @java.lang.Override @@ -1081,7 +1081,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3385 + * google/container/v1beta1/cluster_service.proto;l=3394 * @return The projectId. */ @java.lang.Deprecated @@ -1109,7 +1109,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3385 + * google/container/v1beta1/cluster_service.proto;l=3394 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -1137,7 +1137,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3385 + * google/container/v1beta1/cluster_service.proto;l=3394 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1164,7 +1164,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3385 + * google/container/v1beta1/cluster_service.proto;l=3394 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1187,7 +1187,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3385 + * google/container/v1beta1/cluster_service.proto;l=3394 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1217,7 +1217,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 + * google/container/v1beta1/cluster_service.proto;l=3401 * @return The zone. */ @java.lang.Deprecated @@ -1245,7 +1245,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 + * google/container/v1beta1/cluster_service.proto;l=3401 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1273,7 +1273,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 + * google/container/v1beta1/cluster_service.proto;l=3401 * @param value The zone to set. * @return This builder for chaining. */ @@ -1300,7 +1300,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 + * google/container/v1beta1/cluster_service.proto;l=3401 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1323,7 +1323,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 + * google/container/v1beta1/cluster_service.proto;l=3401 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1352,7 +1352,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3396 + * google/container/v1beta1/cluster_service.proto;l=3405 * @return The clusterId. */ @java.lang.Deprecated @@ -1379,7 +1379,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3396 + * google/container/v1beta1/cluster_service.proto;l=3405 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1406,7 +1406,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3396 + * google/container/v1beta1/cluster_service.proto;l=3405 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1432,7 +1432,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3396 + * google/container/v1beta1/cluster_service.proto;l=3405 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1454,7 +1454,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3396 + * google/container/v1beta1/cluster_service.proto;l=3405 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java index c37623566d5a..3c33234fa2c7 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMasterAuthRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetMasterAuthRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3385 + * google/container/v1beta1/cluster_service.proto;l=3394 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetMasterAuthRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3385 + * google/container/v1beta1/cluster_service.proto;l=3394 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 + * google/container/v1beta1/cluster_service.proto;l=3401 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetMasterAuthRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMasterAuthRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3392 + * google/container/v1beta1/cluster_service.proto;l=3401 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetMasterAuthRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3396 + * google/container/v1beta1/cluster_service.proto;l=3405 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetMasterAuthRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMasterAuthRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3396 + * google/container/v1beta1/cluster_service.proto;l=3405 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java index e6f4f3315bcd..31a928659b8f 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3233 + * google/container/v1beta1/cluster_service.proto;l=3242 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3233 + * google/container/v1beta1/cluster_service.proto;l=3242 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3240 + * google/container/v1beta1/cluster_service.proto;l=3249 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3240 + * google/container/v1beta1/cluster_service.proto;l=3249 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3244 + * google/container/v1beta1/cluster_service.proto;l=3253 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3244 + * google/container/v1beta1/cluster_service.proto;l=3253 * @return The bytes for clusterId. */ @java.lang.Override @@ -831,7 +831,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3233 + * See google/container/v1beta1/cluster_service.proto;l=3242 * @return The projectId. */ @java.lang.Deprecated @@ -859,7 +859,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3233 + * See google/container/v1beta1/cluster_service.proto;l=3242 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -887,7 +887,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3233 + * See google/container/v1beta1/cluster_service.proto;l=3242 * @param value The projectId to set. * @return This builder for chaining. */ @@ -914,7 +914,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3233 + * See google/container/v1beta1/cluster_service.proto;l=3242 * @return This builder for chaining. */ @java.lang.Deprecated @@ -937,7 +937,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3233 + * See google/container/v1beta1/cluster_service.proto;l=3242 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -967,7 +967,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3240 + * google/container/v1beta1/cluster_service.proto;l=3249 * @return The zone. */ @java.lang.Deprecated @@ -995,7 +995,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3240 + * google/container/v1beta1/cluster_service.proto;l=3249 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1023,7 +1023,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3240 + * google/container/v1beta1/cluster_service.proto;l=3249 * @param value The zone to set. * @return This builder for chaining. */ @@ -1050,7 +1050,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3240 + * google/container/v1beta1/cluster_service.proto;l=3249 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1073,7 +1073,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3240 + * google/container/v1beta1/cluster_service.proto;l=3249 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1102,7 +1102,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3244 + * See google/container/v1beta1/cluster_service.proto;l=3253 * @return The clusterId. */ @java.lang.Deprecated @@ -1129,7 +1129,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3244 + * See google/container/v1beta1/cluster_service.proto;l=3253 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1156,7 +1156,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3244 + * See google/container/v1beta1/cluster_service.proto;l=3253 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1182,7 +1182,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3244 + * See google/container/v1beta1/cluster_service.proto;l=3253 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1204,7 +1204,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3244 + * See google/container/v1beta1/cluster_service.proto;l=3253 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java index b5f2de0363ab..6a92cdac74f7 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetMonitoringServiceRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetMonitoringServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3233 + * google/container/v1beta1/cluster_service.proto;l=3242 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetMonitoringServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3233 + * google/container/v1beta1/cluster_service.proto;l=3242 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3240 + * google/container/v1beta1/cluster_service.proto;l=3249 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetMonitoringServiceRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3240 + * google/container/v1beta1/cluster_service.proto;l=3249 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetMonitoringServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3244 + * google/container/v1beta1/cluster_service.proto;l=3253 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetMonitoringServiceRequestOrBuilder * * * @deprecated google.container.v1beta1.SetMonitoringServiceRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3244 + * google/container/v1beta1/cluster_service.proto;l=3253 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java index 88d9bc32fe71..0f645ef51c65 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4770 + * google/container/v1beta1/cluster_service.proto;l=4779 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4770 + * google/container/v1beta1/cluster_service.proto;l=4779 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 + * google/container/v1beta1/cluster_service.proto;l=4786 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 + * google/container/v1beta1/cluster_service.proto;l=4786 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4781 + * google/container/v1beta1/cluster_service.proto;l=4790 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4781 + * google/container/v1beta1/cluster_service.proto;l=4790 * @return The bytes for clusterId. */ @java.lang.Override @@ -835,7 +835,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4770 + * google/container/v1beta1/cluster_service.proto;l=4779 * @return The projectId. */ @java.lang.Deprecated @@ -863,7 +863,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4770 + * google/container/v1beta1/cluster_service.proto;l=4779 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -891,7 +891,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4770 + * google/container/v1beta1/cluster_service.proto;l=4779 * @param value The projectId to set. * @return This builder for chaining. */ @@ -918,7 +918,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4770 + * google/container/v1beta1/cluster_service.proto;l=4779 * @return This builder for chaining. */ @java.lang.Deprecated @@ -941,7 +941,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4770 + * google/container/v1beta1/cluster_service.proto;l=4779 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -971,7 +971,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 + * google/container/v1beta1/cluster_service.proto;l=4786 * @return The zone. */ @java.lang.Deprecated @@ -999,7 +999,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 + * google/container/v1beta1/cluster_service.proto;l=4786 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1027,7 +1027,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 + * google/container/v1beta1/cluster_service.proto;l=4786 * @param value The zone to set. * @return This builder for chaining. */ @@ -1054,7 +1054,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 + * google/container/v1beta1/cluster_service.proto;l=4786 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1077,7 +1077,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 + * google/container/v1beta1/cluster_service.proto;l=4786 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1106,7 +1106,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4781 + * google/container/v1beta1/cluster_service.proto;l=4790 * @return The clusterId. */ @java.lang.Deprecated @@ -1133,7 +1133,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4781 + * google/container/v1beta1/cluster_service.proto;l=4790 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1160,7 +1160,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4781 + * google/container/v1beta1/cluster_service.proto;l=4790 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1186,7 +1186,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4781 + * google/container/v1beta1/cluster_service.proto;l=4790 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1208,7 +1208,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4781 + * google/container/v1beta1/cluster_service.proto;l=4790 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java index 7860dce772a4..afad74decb95 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNetworkPolicyRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetNetworkPolicyRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4770 + * google/container/v1beta1/cluster_service.proto;l=4779 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetNetworkPolicyRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4770 + * google/container/v1beta1/cluster_service.proto;l=4779 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 + * google/container/v1beta1/cluster_service.proto;l=4786 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNetworkPolicyRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4777 + * google/container/v1beta1/cluster_service.proto;l=4786 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetNetworkPolicyRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4781 + * google/container/v1beta1/cluster_service.proto;l=4790 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetNetworkPolicyRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNetworkPolicyRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4781 + * google/container/v1beta1/cluster_service.proto;l=4790 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java index d46f6f81c5dc..5fdfae9c920a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequest.java @@ -85,7 +85,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3163 + * See google/container/v1beta1/cluster_service.proto;l=3172 * @return The projectId. */ @java.lang.Override @@ -114,7 +114,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3163 + * See google/container/v1beta1/cluster_service.proto;l=3172 * @return The bytes for projectId. */ @java.lang.Override @@ -148,7 +148,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3170 + * google/container/v1beta1/cluster_service.proto;l=3179 * @return The zone. */ @java.lang.Override @@ -177,7 +177,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3170 + * google/container/v1beta1/cluster_service.proto;l=3179 * @return The bytes for zone. */ @java.lang.Override @@ -210,7 +210,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3174 + * See google/container/v1beta1/cluster_service.proto;l=3183 * @return The clusterId. */ @java.lang.Override @@ -238,7 +238,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3174 + * See google/container/v1beta1/cluster_service.proto;l=3183 * @return The bytes for clusterId. */ @java.lang.Override @@ -271,7 +271,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3179 + * See google/container/v1beta1/cluster_service.proto;l=3188 * @return The nodePoolId. */ @java.lang.Override @@ -299,7 +299,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3179 + * See google/container/v1beta1/cluster_service.proto;l=3188 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -924,7 +924,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3163 + * See google/container/v1beta1/cluster_service.proto;l=3172 * @return The projectId. */ @java.lang.Deprecated @@ -952,7 +952,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3163 + * See google/container/v1beta1/cluster_service.proto;l=3172 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -980,7 +980,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3163 + * See google/container/v1beta1/cluster_service.proto;l=3172 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1007,7 +1007,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3163 + * See google/container/v1beta1/cluster_service.proto;l=3172 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1030,7 +1030,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3163 + * See google/container/v1beta1/cluster_service.proto;l=3172 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1060,7 +1060,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3170 + * google/container/v1beta1/cluster_service.proto;l=3179 * @return The zone. */ @java.lang.Deprecated @@ -1088,7 +1088,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3170 + * google/container/v1beta1/cluster_service.proto;l=3179 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1116,7 +1116,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3170 + * google/container/v1beta1/cluster_service.proto;l=3179 * @param value The zone to set. * @return This builder for chaining. */ @@ -1143,7 +1143,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3170 + * google/container/v1beta1/cluster_service.proto;l=3179 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1166,7 +1166,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3170 + * google/container/v1beta1/cluster_service.proto;l=3179 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1195,7 +1195,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3174 + * See google/container/v1beta1/cluster_service.proto;l=3183 * @return The clusterId. */ @java.lang.Deprecated @@ -1222,7 +1222,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3174 + * See google/container/v1beta1/cluster_service.proto;l=3183 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1249,7 +1249,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3174 + * See google/container/v1beta1/cluster_service.proto;l=3183 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1275,7 +1275,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3174 + * See google/container/v1beta1/cluster_service.proto;l=3183 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1297,7 +1297,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3174 + * See google/container/v1beta1/cluster_service.proto;l=3183 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1326,7 +1326,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3179 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3188 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1353,7 +1353,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3179 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3188 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1380,7 +1380,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3179 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3188 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1406,7 +1406,7 @@ public Builder setNodePoolId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3179 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3188 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1428,7 +1428,7 @@ public Builder clearNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is - * deprecated. See google/container/v1beta1/cluster_service.proto;l=3179 + * deprecated. See google/container/v1beta1/cluster_service.proto;l=3188 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java index 03b99fdce599..3c20608fe4d4 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3163 + * See google/container/v1beta1/cluster_service.proto;l=3172 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3163 + * See google/container/v1beta1/cluster_service.proto;l=3172 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3170 + * google/container/v1beta1/cluster_service.proto;l=3179 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3170 + * google/container/v1beta1/cluster_service.proto;l=3179 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3174 + * See google/container/v1beta1/cluster_service.proto;l=3183 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3174 + * See google/container/v1beta1/cluster_service.proto;l=3183 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -145,7 +145,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3179 + * See google/container/v1beta1/cluster_service.proto;l=3188 * @return The nodePoolId. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolAutoscalingRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=3179 + * See google/container/v1beta1/cluster_service.proto;l=3188 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java index 124f63d6ad91..1d4a609c88c5 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequest.java @@ -86,7 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4233 + * google/container/v1beta1/cluster_service.proto;l=4242 * @return The projectId. */ @java.lang.Override @@ -115,7 +115,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4233 + * google/container/v1beta1/cluster_service.proto;l=4242 * @return The bytes for projectId. */ @java.lang.Override @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4240 + * google/container/v1beta1/cluster_service.proto;l=4249 * @return The zone. */ @java.lang.Override @@ -178,7 +178,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4240 + * google/container/v1beta1/cluster_service.proto;l=4249 * @return The bytes for zone. */ @java.lang.Override @@ -211,7 +211,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4244 + * google/container/v1beta1/cluster_service.proto;l=4253 * @return The clusterId. */ @java.lang.Override @@ -239,7 +239,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4244 + * google/container/v1beta1/cluster_service.proto;l=4253 * @return The bytes for clusterId. */ @java.lang.Override @@ -272,7 +272,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4249 + * See google/container/v1beta1/cluster_service.proto;l=4258 * @return The nodePoolId. */ @java.lang.Override @@ -300,7 +300,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4249 + * See google/container/v1beta1/cluster_service.proto;l=4258 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -925,7 +925,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4233 + * See google/container/v1beta1/cluster_service.proto;l=4242 * @return The projectId. */ @java.lang.Deprecated @@ -953,7 +953,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4233 + * See google/container/v1beta1/cluster_service.proto;l=4242 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -981,7 +981,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4233 + * See google/container/v1beta1/cluster_service.proto;l=4242 * @param value The projectId to set. * @return This builder for chaining. */ @@ -1008,7 +1008,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4233 + * See google/container/v1beta1/cluster_service.proto;l=4242 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1031,7 +1031,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4233 + * See google/container/v1beta1/cluster_service.proto;l=4242 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -1061,7 +1061,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4240 + * google/container/v1beta1/cluster_service.proto;l=4249 * @return The zone. */ @java.lang.Deprecated @@ -1089,7 +1089,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4240 + * google/container/v1beta1/cluster_service.proto;l=4249 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1117,7 +1117,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4240 + * google/container/v1beta1/cluster_service.proto;l=4249 * @param value The zone to set. * @return This builder for chaining. */ @@ -1144,7 +1144,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4240 + * google/container/v1beta1/cluster_service.proto;l=4249 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1167,7 +1167,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4240 + * google/container/v1beta1/cluster_service.proto;l=4249 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1196,7 +1196,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4244 + * See google/container/v1beta1/cluster_service.proto;l=4253 * @return The clusterId. */ @java.lang.Deprecated @@ -1223,7 +1223,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4244 + * See google/container/v1beta1/cluster_service.proto;l=4253 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1250,7 +1250,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4244 + * See google/container/v1beta1/cluster_service.proto;l=4253 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1276,7 +1276,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4244 + * See google/container/v1beta1/cluster_service.proto;l=4253 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1298,7 +1298,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4244 + * See google/container/v1beta1/cluster_service.proto;l=4253 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1327,7 +1327,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4249 + * See google/container/v1beta1/cluster_service.proto;l=4258 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1354,7 +1354,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4249 + * See google/container/v1beta1/cluster_service.proto;l=4258 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1381,7 +1381,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4249 + * See google/container/v1beta1/cluster_service.proto;l=4258 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1407,7 +1407,7 @@ public Builder setNodePoolId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4249 + * See google/container/v1beta1/cluster_service.proto;l=4258 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1429,7 +1429,7 @@ public Builder clearNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4249 + * See google/container/v1beta1/cluster_service.proto;l=4258 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java index dae6fb3af56e..f90117ec0c01 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolManagementRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetNodePoolManagementRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4233 + * google/container/v1beta1/cluster_service.proto;l=4242 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetNodePoolManagementRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4233 + * google/container/v1beta1/cluster_service.proto;l=4242 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4240 + * google/container/v1beta1/cluster_service.proto;l=4249 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNodePoolManagementRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4240 + * google/container/v1beta1/cluster_service.proto;l=4249 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetNodePoolManagementRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4244 + * google/container/v1beta1/cluster_service.proto;l=4253 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetNodePoolManagementRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4244 + * google/container/v1beta1/cluster_service.proto;l=4253 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -145,7 +145,7 @@ public interface SetNodePoolManagementRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4249 + * See google/container/v1beta1/cluster_service.proto;l=4258 * @return The nodePoolId. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface SetNodePoolManagementRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolManagementRequest.node_pool_id is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=4249 + * See google/container/v1beta1/cluster_service.proto;l=4258 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java index 2325a51bd14c..a12c561bbe1e 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4266 + * google/container/v1beta1/cluster_service.proto;l=4275 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4266 + * google/container/v1beta1/cluster_service.proto;l=4275 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 + * google/container/v1beta1/cluster_service.proto;l=4282 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 + * google/container/v1beta1/cluster_service.proto;l=4282 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4277 + * google/container/v1beta1/cluster_service.proto;l=4286 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4277 + * google/container/v1beta1/cluster_service.proto;l=4286 * @return The bytes for clusterId. */ @java.lang.Override @@ -270,7 +270,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4282 + * google/container/v1beta1/cluster_service.proto;l=4291 * @return The nodePoolId. */ @java.lang.Override @@ -298,7 +298,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4282 + * google/container/v1beta1/cluster_service.proto;l=4291 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -862,7 +862,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4266 + * google/container/v1beta1/cluster_service.proto;l=4275 * @return The projectId. */ @java.lang.Deprecated @@ -890,7 +890,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4266 + * google/container/v1beta1/cluster_service.proto;l=4275 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -918,7 +918,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4266 + * google/container/v1beta1/cluster_service.proto;l=4275 * @param value The projectId to set. * @return This builder for chaining. */ @@ -945,7 +945,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4266 + * google/container/v1beta1/cluster_service.proto;l=4275 * @return This builder for chaining. */ @java.lang.Deprecated @@ -968,7 +968,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4266 + * google/container/v1beta1/cluster_service.proto;l=4275 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -998,7 +998,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 + * google/container/v1beta1/cluster_service.proto;l=4282 * @return The zone. */ @java.lang.Deprecated @@ -1026,7 +1026,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 + * google/container/v1beta1/cluster_service.proto;l=4282 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1054,7 +1054,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 + * google/container/v1beta1/cluster_service.proto;l=4282 * @param value The zone to set. * @return This builder for chaining. */ @@ -1081,7 +1081,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 + * google/container/v1beta1/cluster_service.proto;l=4282 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1104,7 +1104,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 + * google/container/v1beta1/cluster_service.proto;l=4282 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1133,7 +1133,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4277 + * google/container/v1beta1/cluster_service.proto;l=4286 * @return The clusterId. */ @java.lang.Deprecated @@ -1160,7 +1160,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4277 + * google/container/v1beta1/cluster_service.proto;l=4286 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1187,7 +1187,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4277 + * google/container/v1beta1/cluster_service.proto;l=4286 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1213,7 +1213,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4277 + * google/container/v1beta1/cluster_service.proto;l=4286 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1235,7 +1235,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4277 + * google/container/v1beta1/cluster_service.proto;l=4286 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -1264,7 +1264,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4282 + * google/container/v1beta1/cluster_service.proto;l=4291 * @return The nodePoolId. */ @java.lang.Deprecated @@ -1291,7 +1291,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4282 + * google/container/v1beta1/cluster_service.proto;l=4291 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -1318,7 +1318,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4282 + * google/container/v1beta1/cluster_service.proto;l=4291 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -1344,7 +1344,7 @@ public Builder setNodePoolId(java.lang.String value) { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4282 + * google/container/v1beta1/cluster_service.proto;l=4291 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1366,7 +1366,7 @@ public Builder clearNodePoolId() { * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4282 + * google/container/v1beta1/cluster_service.proto;l=4291 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java index 99ae69e4ccd4..018c5a942c6b 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/SetNodePoolSizeRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface SetNodePoolSizeRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4266 + * google/container/v1beta1/cluster_service.proto;l=4275 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface SetNodePoolSizeRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4266 + * google/container/v1beta1/cluster_service.proto;l=4275 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 + * google/container/v1beta1/cluster_service.proto;l=4282 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface SetNodePoolSizeRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4273 + * google/container/v1beta1/cluster_service.proto;l=4282 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface SetNodePoolSizeRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4277 + * google/container/v1beta1/cluster_service.proto;l=4286 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface SetNodePoolSizeRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4277 + * google/container/v1beta1/cluster_service.proto;l=4286 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -145,7 +145,7 @@ public interface SetNodePoolSizeRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4282 + * google/container/v1beta1/cluster_service.proto;l=4291 * @return The nodePoolId. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface SetNodePoolSizeRequestOrBuilder * * * @deprecated google.container.v1beta1.SetNodePoolSizeRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4282 + * google/container/v1beta1/cluster_service.proto;l=4291 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java index 932af9c1ae66..215f8997c0fd 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4591 + * google/container/v1beta1/cluster_service.proto;l=4600 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4591 + * google/container/v1beta1/cluster_service.proto;l=4600 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4607 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4607 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4602 + * google/container/v1beta1/cluster_service.proto;l=4611 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4602 + * google/container/v1beta1/cluster_service.proto;l=4611 * @return The bytes for clusterId. */ @java.lang.Override @@ -776,7 +776,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4591 + * google/container/v1beta1/cluster_service.proto;l=4600 * @return The projectId. */ @java.lang.Deprecated @@ -804,7 +804,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4591 + * google/container/v1beta1/cluster_service.proto;l=4600 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -832,7 +832,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4591 + * google/container/v1beta1/cluster_service.proto;l=4600 * @param value The projectId to set. * @return This builder for chaining. */ @@ -859,7 +859,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4591 + * google/container/v1beta1/cluster_service.proto;l=4600 * @return This builder for chaining. */ @java.lang.Deprecated @@ -882,7 +882,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4591 + * google/container/v1beta1/cluster_service.proto;l=4600 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -912,7 +912,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4607 * @return The zone. */ @java.lang.Deprecated @@ -940,7 +940,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4607 * @return The bytes for zone. */ @java.lang.Deprecated @@ -968,7 +968,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4607 * @param value The zone to set. * @return This builder for chaining. */ @@ -995,7 +995,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4607 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1018,7 +1018,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4607 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1047,7 +1047,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4602 + * google/container/v1beta1/cluster_service.proto;l=4611 * @return The clusterId. */ @java.lang.Deprecated @@ -1074,7 +1074,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4602 + * google/container/v1beta1/cluster_service.proto;l=4611 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1101,7 +1101,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4602 + * google/container/v1beta1/cluster_service.proto;l=4611 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1127,7 +1127,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4602 + * google/container/v1beta1/cluster_service.proto;l=4611 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1149,7 +1149,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4602 + * google/container/v1beta1/cluster_service.proto;l=4611 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java index 7a8a5be51c9a..00bdede71275 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StartIPRotationRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface StartIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4591 + * google/container/v1beta1/cluster_service.proto;l=4600 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface StartIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.StartIPRotationRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4591 + * google/container/v1beta1/cluster_service.proto;l=4600 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4607 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface StartIPRotationRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.StartIPRotationRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4598 + * google/container/v1beta1/cluster_service.proto;l=4607 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface StartIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4602 + * google/container/v1beta1/cluster_service.proto;l=4611 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface StartIPRotationRequestOrBuilder * * * @deprecated google.container.v1beta1.StartIPRotationRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4602 + * google/container/v1beta1/cluster_service.proto;l=4611 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java index b456ab2ec588..10fbfde8575c 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusCondition.java @@ -333,7 +333,7 @@ private Code(int value) { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4899 + * google/container/v1beta1/cluster_service.proto;l=4908 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -352,7 +352,7 @@ public int getCodeValue() { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4899 + * google/container/v1beta1/cluster_service.proto;l=4908 * @return The code. */ @java.lang.Override @@ -846,7 +846,7 @@ public Builder mergeFrom( * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4899 + * google/container/v1beta1/cluster_service.proto;l=4908 * @return The enum numeric value on the wire for code. */ @java.lang.Override @@ -865,7 +865,7 @@ public int getCodeValue() { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4899 + * google/container/v1beta1/cluster_service.proto;l=4908 * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ @@ -887,7 +887,7 @@ public Builder setCodeValue(int value) { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4899 + * google/container/v1beta1/cluster_service.proto;l=4908 * @return The code. */ @java.lang.Override @@ -910,7 +910,7 @@ public com.google.container.v1beta1.StatusCondition.Code getCode() { * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4899 + * google/container/v1beta1/cluster_service.proto;l=4908 * @param value The code to set. * @return This builder for chaining. */ @@ -935,7 +935,7 @@ public Builder setCode(com.google.container.v1beta1.StatusCondition.Code value) * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4899 + * google/container/v1beta1/cluster_service.proto;l=4908 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java index 4cc2d148e0b6..91d4735753bb 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/StatusConditionOrBuilder.java @@ -35,7 +35,7 @@ public interface StatusConditionOrBuilder * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4899 + * google/container/v1beta1/cluster_service.proto;l=4908 * @return The enum numeric value on the wire for code. */ @java.lang.Deprecated @@ -51,7 +51,7 @@ public interface StatusConditionOrBuilder * .google.container.v1beta1.StatusCondition.Code code = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.StatusCondition.code is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4899 + * google/container/v1beta1/cluster_service.proto;l=4908 * @return The code. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java index f732d44c91e9..0347b72310d5 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3000 + * google/container/v1beta1/cluster_service.proto;l=3009 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3000 + * google/container/v1beta1/cluster_service.proto;l=3009 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3007 + * google/container/v1beta1/cluster_service.proto;l=3016 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3007 + * google/container/v1beta1/cluster_service.proto;l=3016 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3011 + * google/container/v1beta1/cluster_service.proto;l=3020 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3011 + * google/container/v1beta1/cluster_service.proto;l=3020 * @return The bytes for clusterId. */ @java.lang.Override @@ -834,7 +834,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3000 + * google/container/v1beta1/cluster_service.proto;l=3009 * @return The projectId. */ @java.lang.Deprecated @@ -862,7 +862,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3000 + * google/container/v1beta1/cluster_service.proto;l=3009 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -890,7 +890,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3000 + * google/container/v1beta1/cluster_service.proto;l=3009 * @param value The projectId to set. * @return This builder for chaining. */ @@ -917,7 +917,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3000 + * google/container/v1beta1/cluster_service.proto;l=3009 * @return This builder for chaining. */ @java.lang.Deprecated @@ -940,7 +940,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3000 + * google/container/v1beta1/cluster_service.proto;l=3009 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -970,7 +970,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3007 + * google/container/v1beta1/cluster_service.proto;l=3016 * @return The zone. */ @java.lang.Deprecated @@ -998,7 +998,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3007 + * google/container/v1beta1/cluster_service.proto;l=3016 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1026,7 +1026,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3007 + * google/container/v1beta1/cluster_service.proto;l=3016 * @param value The zone to set. * @return This builder for chaining. */ @@ -1053,7 +1053,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3007 + * google/container/v1beta1/cluster_service.proto;l=3016 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1076,7 +1076,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3007 + * google/container/v1beta1/cluster_service.proto;l=3016 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1105,7 +1105,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3011 + * google/container/v1beta1/cluster_service.proto;l=3020 * @return The clusterId. */ @java.lang.Deprecated @@ -1132,7 +1132,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3011 + * google/container/v1beta1/cluster_service.proto;l=3020 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1159,7 +1159,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3011 + * google/container/v1beta1/cluster_service.proto;l=3020 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1185,7 +1185,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3011 + * google/container/v1beta1/cluster_service.proto;l=3020 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1207,7 +1207,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3011 + * google/container/v1beta1/cluster_service.proto;l=3020 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java index b55ffa1ab487..602a7234344e 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateClusterRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface UpdateClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3000 + * google/container/v1beta1/cluster_service.proto;l=3009 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface UpdateClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateClusterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3000 + * google/container/v1beta1/cluster_service.proto;l=3009 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3007 + * google/container/v1beta1/cluster_service.proto;l=3016 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface UpdateClusterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateClusterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3007 + * google/container/v1beta1/cluster_service.proto;l=3016 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface UpdateClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3011 + * google/container/v1beta1/cluster_service.proto;l=3020 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface UpdateClusterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateClusterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3011 + * google/container/v1beta1/cluster_service.proto;l=3020 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java index ac1ba49b7c54..0323becbce49 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequest.java @@ -84,7 +84,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3331 + * google/container/v1beta1/cluster_service.proto;l=3340 * @return The projectId. */ @java.lang.Override @@ -113,7 +113,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3331 + * google/container/v1beta1/cluster_service.proto;l=3340 * @return The bytes for projectId. */ @java.lang.Override @@ -147,7 +147,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 + * google/container/v1beta1/cluster_service.proto;l=3347 * @return The zone. */ @java.lang.Override @@ -176,7 +176,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 + * google/container/v1beta1/cluster_service.proto;l=3347 * @return The bytes for zone. */ @java.lang.Override @@ -209,7 +209,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3342 + * google/container/v1beta1/cluster_service.proto;l=3351 * @return The clusterId. */ @java.lang.Override @@ -237,7 +237,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3342 + * google/container/v1beta1/cluster_service.proto;l=3351 * @return The bytes for clusterId. */ @java.lang.Override @@ -828,7 +828,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3331 + * google/container/v1beta1/cluster_service.proto;l=3340 * @return The projectId. */ @java.lang.Deprecated @@ -856,7 +856,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3331 + * google/container/v1beta1/cluster_service.proto;l=3340 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -884,7 +884,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3331 + * google/container/v1beta1/cluster_service.proto;l=3340 * @param value The projectId to set. * @return This builder for chaining. */ @@ -911,7 +911,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3331 + * google/container/v1beta1/cluster_service.proto;l=3340 * @return This builder for chaining. */ @java.lang.Deprecated @@ -934,7 +934,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3331 + * google/container/v1beta1/cluster_service.proto;l=3340 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -964,7 +964,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 + * google/container/v1beta1/cluster_service.proto;l=3347 * @return The zone. */ @java.lang.Deprecated @@ -992,7 +992,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 + * google/container/v1beta1/cluster_service.proto;l=3347 * @return The bytes for zone. */ @java.lang.Deprecated @@ -1020,7 +1020,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 + * google/container/v1beta1/cluster_service.proto;l=3347 * @param value The zone to set. * @return This builder for chaining. */ @@ -1047,7 +1047,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 + * google/container/v1beta1/cluster_service.proto;l=3347 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1070,7 +1070,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 + * google/container/v1beta1/cluster_service.proto;l=3347 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -1099,7 +1099,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3342 + * google/container/v1beta1/cluster_service.proto;l=3351 * @return The clusterId. */ @java.lang.Deprecated @@ -1126,7 +1126,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3342 + * google/container/v1beta1/cluster_service.proto;l=3351 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -1153,7 +1153,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3342 + * google/container/v1beta1/cluster_service.proto;l=3351 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -1179,7 +1179,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3342 + * google/container/v1beta1/cluster_service.proto;l=3351 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1201,7 +1201,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3342 + * google/container/v1beta1/cluster_service.proto;l=3351 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java index 46b9a94327ed..6f81320d46dd 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateMasterRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface UpdateMasterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3331 + * google/container/v1beta1/cluster_service.proto;l=3340 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface UpdateMasterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateMasterRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3331 + * google/container/v1beta1/cluster_service.proto;l=3340 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 + * google/container/v1beta1/cluster_service.proto;l=3347 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface UpdateMasterRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateMasterRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3338 + * google/container/v1beta1/cluster_service.proto;l=3347 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface UpdateMasterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3342 + * google/container/v1beta1/cluster_service.proto;l=3351 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface UpdateMasterRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateMasterRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3342 + * google/container/v1beta1/cluster_service.proto;l=3351 * @return The bytes for clusterId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java index ab4bff16603f..9fbdc5d938a7 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequest.java @@ -91,7 +91,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3027 + * google/container/v1beta1/cluster_service.proto;l=3036 * @return The projectId. */ @java.lang.Override @@ -120,7 +120,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3027 + * google/container/v1beta1/cluster_service.proto;l=3036 * @return The bytes for projectId. */ @java.lang.Override @@ -154,7 +154,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3034 + * google/container/v1beta1/cluster_service.proto;l=3043 * @return The zone. */ @java.lang.Override @@ -183,7 +183,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3034 + * google/container/v1beta1/cluster_service.proto;l=3043 * @return The bytes for zone. */ @java.lang.Override @@ -216,7 +216,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3038 + * google/container/v1beta1/cluster_service.proto;l=3047 * @return The clusterId. */ @java.lang.Override @@ -244,7 +244,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3038 + * google/container/v1beta1/cluster_service.proto;l=3047 * @return The bytes for clusterId. */ @java.lang.Override @@ -277,7 +277,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3052 * @return The nodePoolId. */ @java.lang.Override @@ -305,7 +305,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3052 * @return The bytes for nodePoolId. */ @java.lang.Override @@ -2870,7 +2870,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3027 + * google/container/v1beta1/cluster_service.proto;l=3036 * @return The projectId. */ @java.lang.Deprecated @@ -2898,7 +2898,7 @@ public java.lang.String getProjectId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3027 + * google/container/v1beta1/cluster_service.proto;l=3036 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -2926,7 +2926,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3027 + * google/container/v1beta1/cluster_service.proto;l=3036 * @param value The projectId to set. * @return This builder for chaining. */ @@ -2953,7 +2953,7 @@ public Builder setProjectId(java.lang.String value) { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3027 + * google/container/v1beta1/cluster_service.proto;l=3036 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2976,7 +2976,7 @@ public Builder clearProjectId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3027 + * google/container/v1beta1/cluster_service.proto;l=3036 * @param value The bytes for projectId to set. * @return This builder for chaining. */ @@ -3006,7 +3006,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3034 + * google/container/v1beta1/cluster_service.proto;l=3043 * @return The zone. */ @java.lang.Deprecated @@ -3034,7 +3034,7 @@ public java.lang.String getZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3034 + * google/container/v1beta1/cluster_service.proto;l=3043 * @return The bytes for zone. */ @java.lang.Deprecated @@ -3062,7 +3062,7 @@ public com.google.protobuf.ByteString getZoneBytes() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3034 + * google/container/v1beta1/cluster_service.proto;l=3043 * @param value The zone to set. * @return This builder for chaining. */ @@ -3089,7 +3089,7 @@ public Builder setZone(java.lang.String value) { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3034 + * google/container/v1beta1/cluster_service.proto;l=3043 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3112,7 +3112,7 @@ public Builder clearZone() { * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3034 + * google/container/v1beta1/cluster_service.proto;l=3043 * @param value The bytes for zone to set. * @return This builder for chaining. */ @@ -3141,7 +3141,7 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3038 + * google/container/v1beta1/cluster_service.proto;l=3047 * @return The clusterId. */ @java.lang.Deprecated @@ -3168,7 +3168,7 @@ public java.lang.String getClusterId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3038 + * google/container/v1beta1/cluster_service.proto;l=3047 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -3195,7 +3195,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3038 + * google/container/v1beta1/cluster_service.proto;l=3047 * @param value The clusterId to set. * @return This builder for chaining. */ @@ -3221,7 +3221,7 @@ public Builder setClusterId(java.lang.String value) { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3038 + * google/container/v1beta1/cluster_service.proto;l=3047 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3243,7 +3243,7 @@ public Builder clearClusterId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3038 + * google/container/v1beta1/cluster_service.proto;l=3047 * @param value The bytes for clusterId to set. * @return This builder for chaining. */ @@ -3272,7 +3272,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3052 * @return The nodePoolId. */ @java.lang.Deprecated @@ -3299,7 +3299,7 @@ public java.lang.String getNodePoolId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3052 * @return The bytes for nodePoolId. */ @java.lang.Deprecated @@ -3326,7 +3326,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3052 * @param value The nodePoolId to set. * @return This builder for chaining. */ @@ -3352,7 +3352,7 @@ public Builder setNodePoolId(java.lang.String value) { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3052 * @return This builder for chaining. */ @java.lang.Deprecated @@ -3374,7 +3374,7 @@ public Builder clearNodePoolId() { * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3052 * @param value The bytes for nodePoolId to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java index c339d6aa4e49..f56bd7a1801a 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/UpdateNodePoolRequestOrBuilder.java @@ -37,7 +37,7 @@ public interface UpdateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3027 + * google/container/v1beta1/cluster_service.proto;l=3036 * @return The projectId. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface UpdateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.project_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3027 + * google/container/v1beta1/cluster_service.proto;l=3036 * @return The bytes for projectId. */ @java.lang.Deprecated @@ -74,7 +74,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3034 + * google/container/v1beta1/cluster_service.proto;l=3043 * @return The zone. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface UpdateNodePoolRequestOrBuilder * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.zone is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3034 + * google/container/v1beta1/cluster_service.proto;l=3043 * @return The bytes for zone. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface UpdateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3038 + * google/container/v1beta1/cluster_service.proto;l=3047 * @return The clusterId. */ @java.lang.Deprecated @@ -127,7 +127,7 @@ public interface UpdateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.cluster_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3038 + * google/container/v1beta1/cluster_service.proto;l=3047 * @return The bytes for clusterId. */ @java.lang.Deprecated @@ -145,7 +145,7 @@ public interface UpdateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3052 * @return The nodePoolId. */ @java.lang.Deprecated @@ -162,7 +162,7 @@ public interface UpdateNodePoolRequestOrBuilder * * * @deprecated google.container.v1beta1.UpdateNodePoolRequest.node_pool_id is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=3043 + * google/container/v1beta1/cluster_service.proto;l=3052 * @return The bytes for nodePoolId. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java index c0f7c9e288be..50803adccdcf 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfig.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5185 + * See google/container/v1beta1/cluster_service.proto;l=5197 * @return The identityNamespace. */ @java.lang.Override @@ -106,7 +106,7 @@ public java.lang.String getIdentityNamespace() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5185 + * See google/container/v1beta1/cluster_service.proto;l=5197 * @return The bytes for identityNamespace. */ @java.lang.Override @@ -627,7 +627,7 @@ public Builder mergeFrom( * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5185 + * See google/container/v1beta1/cluster_service.proto;l=5197 * @return The identityNamespace. */ @java.lang.Deprecated @@ -652,7 +652,7 @@ public java.lang.String getIdentityNamespace() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5185 + * See google/container/v1beta1/cluster_service.proto;l=5197 * @return The bytes for identityNamespace. */ @java.lang.Deprecated @@ -677,7 +677,7 @@ public com.google.protobuf.ByteString getIdentityNamespaceBytes() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5185 + * See google/container/v1beta1/cluster_service.proto;l=5197 * @param value The identityNamespace to set. * @return This builder for chaining. */ @@ -701,7 +701,7 @@ public Builder setIdentityNamespace(java.lang.String value) { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5185 + * See google/container/v1beta1/cluster_service.proto;l=5197 * @return This builder for chaining. */ @java.lang.Deprecated @@ -721,7 +721,7 @@ public Builder clearIdentityNamespace() { * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5185 + * See google/container/v1beta1/cluster_service.proto;l=5197 * @param value The bytes for identityNamespace to set. * @return This builder for chaining. */ diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java index a4d33c129a7b..3c37a18ecc55 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadIdentityConfigOrBuilder.java @@ -34,7 +34,7 @@ public interface WorkloadIdentityConfigOrBuilder * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5185 + * See google/container/v1beta1/cluster_service.proto;l=5197 * @return The identityNamespace. */ @java.lang.Deprecated @@ -49,7 +49,7 @@ public interface WorkloadIdentityConfigOrBuilder * string identity_namespace = 1 [deprecated = true]; * * @deprecated google.container.v1beta1.WorkloadIdentityConfig.identity_namespace is deprecated. - * See google/container/v1beta1/cluster_service.proto;l=5185 + * See google/container/v1beta1/cluster_service.proto;l=5197 * @return The bytes for identityNamespace. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java index 08f6473b9530..78f3c31c91b4 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfig.java @@ -452,7 +452,7 @@ private Mode(int value) { * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4758 + * google/container/v1beta1/cluster_service.proto;l=4767 * @return The enum numeric value on the wire for nodeMetadata. */ @java.lang.Override @@ -473,7 +473,7 @@ public int getNodeMetadataValue() { * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4758 + * google/container/v1beta1/cluster_service.proto;l=4767 * @return The nodeMetadata. */ @java.lang.Override @@ -908,7 +908,7 @@ public Builder mergeFrom( * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4758 + * google/container/v1beta1/cluster_service.proto;l=4767 * @return The enum numeric value on the wire for nodeMetadata. */ @java.lang.Override @@ -929,7 +929,7 @@ public int getNodeMetadataValue() { * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4758 + * google/container/v1beta1/cluster_service.proto;l=4767 * @param value The enum numeric value on the wire for nodeMetadata to set. * @return This builder for chaining. */ @@ -953,7 +953,7 @@ public Builder setNodeMetadataValue(int value) { * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4758 + * google/container/v1beta1/cluster_service.proto;l=4767 * @return The nodeMetadata. */ @java.lang.Override @@ -978,7 +978,7 @@ public com.google.container.v1beta1.WorkloadMetadataConfig.NodeMetadata getNodeM * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4758 + * google/container/v1beta1/cluster_service.proto;l=4767 * @param value The nodeMetadata to set. * @return This builder for chaining. */ @@ -1006,7 +1006,7 @@ public Builder setNodeMetadata( * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4758 + * google/container/v1beta1/cluster_service.proto;l=4767 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java index 0c8be206ddf6..225ee5fd16af 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/java/com/google/container/v1beta1/WorkloadMetadataConfigOrBuilder.java @@ -37,7 +37,7 @@ public interface WorkloadMetadataConfigOrBuilder * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4758 + * google/container/v1beta1/cluster_service.proto;l=4767 * @return The enum numeric value on the wire for nodeMetadata. */ @java.lang.Deprecated @@ -55,7 +55,7 @@ public interface WorkloadMetadataConfigOrBuilder * * * @deprecated google.container.v1beta1.WorkloadMetadataConfig.node_metadata is deprecated. See - * google/container/v1beta1/cluster_service.proto;l=4758 + * google/container/v1beta1/cluster_service.proto;l=4767 * @return The nodeMetadata. */ @java.lang.Deprecated diff --git a/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto b/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto index 48231f393094..eeed7476891e 100644 --- a/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto +++ b/java-container/proto-google-cloud-container-v1beta1/src/main/proto/google/container/v1beta1/cluster_service.proto @@ -2284,6 +2284,9 @@ message Cluster { // GKE Enterprise Configuration. EnterpriseConfig enterprise_config = 149; + + // Secret CSI driver configuration. + SecretManagerConfig secret_manager_config = 150; } // Kubernetes open source beta apis enabled on the cluster. @@ -2664,6 +2667,12 @@ message ClusterUpdate { // Specify the details of in-transit encryption. optional InTransitEncryptionConfig desired_in_transit_encryption_config = 137; + + // Enable/Disable Cilium Clusterwide Network Policy for the cluster. + optional bool desired_enable_cilium_clusterwide_network_policy = 138; + + // Enable/Disable Secret Manager Config. + optional SecretManagerConfig desired_secret_manager_config = 139; } // AdditionalPodRangesConfig is the configuration for additional pod secondary @@ -4979,6 +4988,9 @@ message NetworkConfig { // Specify the details of in-transit encryption. optional InTransitEncryptionConfig in_transit_encryption_config = 20; + + // Whether CiliumClusterWideNetworkPolicy is enabled on this cluster. + optional bool enable_cilium_clusterwide_network_policy = 21; } // GatewayAPIConfig contains the desired config of Gateway API on this cluster. @@ -5942,6 +5954,12 @@ message EnterpriseConfig { ClusterTier cluster_tier = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// SecretManagerConfig is config for secret manager enablement. +message SecretManagerConfig { + // Whether the cluster is configured to use secret manager CSI component. + optional bool enabled = 1; +} + // SecondaryBootDisk represents a persistent disk attached to a node // with special configurations based on its mode. message SecondaryBootDisk { diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedback.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedback.java index 4d9a80cfa944..faa507f1269a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedback.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AgentAssistantFeedback.java @@ -649,6 +649,69 @@ public interface SummarizationFeedbackOrBuilder * @return The bytes for summaryText. */ com.google.protobuf.ByteString getSummaryTextBytes(); + + /** + * + * + *
                              +     * Optional. Actual text sections of submitted summary.
                              +     * 
                              + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTextSectionsCount(); + /** + * + * + *
                              +     * Optional. Actual text sections of submitted summary.
                              +     * 
                              + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsTextSections(java.lang.String key); + /** Use {@link #getTextSectionsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getTextSections(); + /** + * + * + *
                              +     * Optional. Actual text sections of submitted summary.
                              +     * 
                              + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getTextSectionsMap(); + /** + * + * + *
                              +     * Optional. Actual text sections of submitted summary.
                              +     * 
                              + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getTextSectionsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
                              +     * Optional. Actual text sections of submitted summary.
                              +     * 
                              + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getTextSectionsOrThrow(java.lang.String key); } /** * @@ -684,6 +747,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetTextSections(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -839,6 +914,114 @@ public com.google.protobuf.ByteString getSummaryTextBytes() { } } + public static final int TEXT_SECTIONS_FIELD_NUMBER = 4; + + private static final class TextSectionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dialogflow.v2.AnswerRecordsProto + .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_TextSectionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField textSections_; + + private com.google.protobuf.MapField + internalGetTextSections() { + if (textSections_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TextSectionsDefaultEntryHolder.defaultEntry); + } + return textSections_; + } + + public int getTextSectionsCount() { + return internalGetTextSections().getMap().size(); + } + /** + * + * + *
                              +     * Optional. Actual text sections of submitted summary.
                              +     * 
                              + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTextSections(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTextSections().getMap().containsKey(key); + } + /** Use {@link #getTextSectionsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTextSections() { + return getTextSectionsMap(); + } + /** + * + * + *
                              +     * Optional. Actual text sections of submitted summary.
                              +     * 
                              + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTextSectionsMap() { + return internalGetTextSections().getMap(); + } + /** + * + * + *
                              +     * Optional. Actual text sections of submitted summary.
                              +     * 
                              + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTextSectionsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTextSections().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
                              +     * Optional. Actual text sections of submitted summary.
                              +     * 
                              + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTextSectionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTextSections().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -862,6 +1045,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summaryText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, summaryText_); } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetTextSections(), TextSectionsDefaultEntryHolder.defaultEntry, 4); getUnknownFields().writeTo(output); } @@ -880,6 +1065,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(summaryText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, summaryText_); } + for (java.util.Map.Entry entry : + internalGetTextSections().getMap().entrySet()) { + com.google.protobuf.MapEntry textSections__ = + TextSectionsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, textSections__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -906,6 +1101,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSubmitTime().equals(other.getSubmitTime())) return false; } if (!getSummaryText().equals(other.getSummaryText())) return false; + if (!internalGetTextSections().equals(other.internalGetTextSections())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -927,6 +1123,10 @@ public int hashCode() { } hash = (37 * hash) + SUMMARY_TEXT_FIELD_NUMBER; hash = (53 * hash) + getSummaryText().hashCode(); + if (!internalGetTextSections().getMap().isEmpty()) { + hash = (37 * hash) + TEXT_SECTIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetTextSections().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1054,6 +1254,28 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetTextSections(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableTextSections(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -1098,6 +1320,7 @@ public Builder clear() { submitTimeBuilder_ = null; } summaryText_ = ""; + internalGetMutableTextSections().clear(); return this; } @@ -1152,6 +1375,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.summaryText_ = summaryText_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.textSections_ = internalGetTextSections(); + result.textSections_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -1219,6 +1446,8 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; onChanged(); } + internalGetMutableTextSections().mergeFrom(other.internalGetTextSections()); + bitField0_ |= 0x00000008; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1263,6 +1492,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + com.google.protobuf.MapEntry textSections__ = + input.readMessage( + TextSectionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableTextSections() + .getMutableMap() + .put(textSections__.getKey(), textSections__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1758,6 +1999,186 @@ public Builder setSummaryTextBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.MapField textSections_; + + private com.google.protobuf.MapField + internalGetTextSections() { + if (textSections_ == null) { + return com.google.protobuf.MapField.emptyMapField( + TextSectionsDefaultEntryHolder.defaultEntry); + } + return textSections_; + } + + private com.google.protobuf.MapField + internalGetMutableTextSections() { + if (textSections_ == null) { + textSections_ = + com.google.protobuf.MapField.newMapField(TextSectionsDefaultEntryHolder.defaultEntry); + } + if (!textSections_.isMutable()) { + textSections_ = textSections_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return textSections_; + } + + public int getTextSectionsCount() { + return internalGetTextSections().getMap().size(); + } + /** + * + * + *
                              +       * Optional. Actual text sections of submitted summary.
                              +       * 
                              + * + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsTextSections(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetTextSections().getMap().containsKey(key); + } + /** Use {@link #getTextSectionsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getTextSections() { + return getTextSectionsMap(); + } + /** + * + * + *
                              +       * Optional. Actual text sections of submitted summary.
                              +       * 
                              + * + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getTextSectionsMap() { + return internalGetTextSections().getMap(); + } + /** + * + * + *
                              +       * Optional. Actual text sections of submitted summary.
                              +       * 
                              + * + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getTextSectionsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTextSections().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
                              +       * Optional. Actual text sections of submitted summary.
                              +       * 
                              + * + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getTextSectionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetTextSections().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearTextSections() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableTextSections().getMutableMap().clear(); + return this; + } + /** + * + * + *
                              +       * Optional. Actual text sections of submitted summary.
                              +       * 
                              + * + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTextSections(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableTextSections().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableTextSections() { + bitField0_ |= 0x00000008; + return internalGetMutableTextSections().getMutableMap(); + } + /** + * + * + *
                              +       * Optional. Actual text sections of submitted summary.
                              +       * 
                              + * + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putTextSections(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableTextSections().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * + * + *
                              +       * Optional. Actual text sections of submitted summary.
                              +       * 
                              + * + * + * map<string, string> text_sections = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllTextSections(java.util.Map values) { + internalGetMutableTextSections().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsProto.java index 57dbc2704494..536b7a2e9409 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsProto.java @@ -56,6 +56,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_TextSectionsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_TextSectionsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_KnowledgeSearchFeedback_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -112,7 +116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "f.Timestamp\"p\n\020CorrectnessLevel\022!\n\035CORRE" + "CTNESS_LEVEL_UNSPECIFIED\020\000\022\017\n\013NOT_CORREC" + "T\020\001\022\025\n\021PARTIALLY_CORRECT\020\002\022\021\n\rFULLY_CORR" - + "ECT\020\003B\021\n\017detail_feedback\"\222\010\n\026AgentAssist" + + "ECT\020\003B\021\n\017detail_feedback\"\277\t\n\026AgentAssist" + "antFeedback\022a\n\020answer_relevance\030\001 \001(\0162B." + "google.cloud.dialogflow.v2.AgentAssistan" + "tFeedback.AnswerRelevanceB\003\340A\001\022i\n\024docume" @@ -126,48 +130,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "edback.SummarizationFeedbackB\003\340A\001\022r\n\031kno" + "wledge_search_feedback\030\005 \001(\0132J.google.cl" + "oud.dialogflow.v2.AgentAssistantFeedback" - + ".KnowledgeSearchFeedbackB\003\340A\001\032\216\001\n\025Summar" + + ".KnowledgeSearchFeedbackB\003\340A\001\032\273\002\n\025Summar" + "izationFeedback\022.\n\nstart_time\030\001 \001(\0132\032.go" + "ogle.protobuf.Timestamp\022/\n\013submit_time\030\002" + " \001(\0132\032.google.protobuf.Timestamp\022\024\n\014summ" - + "ary_text\030\003 \001(\t\032F\n\027KnowledgeSearchFeedbac" - + "k\022\025\n\ranswer_copied\030\001 \001(\010\022\024\n\014clicked_uris" - + "\030\002 \003(\t\"Q\n\017AnswerRelevance\022 \n\034ANSWER_RELE" - + "VANCE_UNSPECIFIED\020\000\022\016\n\nIRRELEVANT\020\001\022\014\n\010R" - + "ELEVANT\020\002\"W\n\023DocumentCorrectness\022$\n DOCU" - + "MENT_CORRECTNESS_UNSPECIFIED\020\000\022\r\n\tINCORR" - + "ECT\020\001\022\013\n\007CORRECT\020\002\"Y\n\022DocumentEfficiency" - + "\022#\n\037DOCUMENT_EFFICIENCY_UNSPECIFIED\020\000\022\017\n" - + "\013INEFFICIENT\020\001\022\r\n\tEFFICIENT\020\002\"\224\002\n\024AgentA" - + "ssistantRecord\022S\n\031article_suggestion_ans" - + "wer\030\005 \001(\0132).google.cloud.dialogflow.v2.A" - + "rticleAnswerB\003\340A\003H\000\022@\n\nfaq_answer\030\006 \001(\0132" - + "%.google.cloud.dialogflow.v2.FaqAnswerB\003" - + "\340A\003H\000\022[\n\030dialogflow_assist_answer\030\007 \001(\0132" - + "2.google.cloud.dialogflow.v2.DialogflowA" - + "ssistAnswerB\003\340A\003H\000B\010\n\006answer2\255\005\n\rAnswerR" - + "ecords\022\355\001\n\021ListAnswerRecords\0224.google.cl" - + "oud.dialogflow.v2.ListAnswerRecordsReque" - + "st\0325.google.cloud.dialogflow.v2.ListAnsw" - + "erRecordsResponse\"k\332A\006parent\202\323\344\223\002\\\022%/v2/" - + "{parent=projects/*}/answerRecordsZ3\0221/v2" - + "/{parent=projects/*/locations/*}/answerR" - + "ecords\022\261\002\n\022UpdateAnswerRecord\0225.google.c" - + "loud.dialogflow.v2.UpdateAnswerRecordReq" - + "uest\032(.google.cloud.dialogflow.v2.Answer" - + "Record\"\271\001\332A\031answer_record,update_mask\202\323\344" - + "\223\002\226\00123/v2/{answer_record.name=projects/*" - + "/answerRecords/*}:\ranswer_recordZP2?/v2/" - + "{answer_record.name=projects/*/locations" - + "/*/answerRecords/*}:\ranswer_record\032x\312A\031d" - + "ialogflow.googleapis.com\322AYhttps://www.g" - + "oogleapis.com/auth/cloud-platform,https:" - + "//www.googleapis.com/auth/dialogflowB\233\001\n" - + "\036com.google.cloud.dialogflow.v2B\022AnswerR" - + "ecordsProtoP\001Z>cloud.google.com/go/dialo" - + "gflow/apiv2/dialogflowpb;dialogflowpb\370\001\001" - + "\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006prot" - + "o3" + + "ary_text\030\003 \001(\t\022v\n\rtext_sections\030\004 \003(\0132Z." + + "google.cloud.dialogflow.v2.AgentAssistan" + + "tFeedback.SummarizationFeedback.TextSect" + + "ionsEntryB\003\340A\001\0323\n\021TextSectionsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032F\n\027Knowledge" + + "SearchFeedback\022\025\n\ranswer_copied\030\001 \001(\010\022\024\n" + + "\014clicked_uris\030\002 \003(\t\"Q\n\017AnswerRelevance\022 " + + "\n\034ANSWER_RELEVANCE_UNSPECIFIED\020\000\022\016\n\nIRRE" + + "LEVANT\020\001\022\014\n\010RELEVANT\020\002\"W\n\023DocumentCorrec" + + "tness\022$\n DOCUMENT_CORRECTNESS_UNSPECIFIE" + + "D\020\000\022\r\n\tINCORRECT\020\001\022\013\n\007CORRECT\020\002\"Y\n\022Docum" + + "entEfficiency\022#\n\037DOCUMENT_EFFICIENCY_UNS" + + "PECIFIED\020\000\022\017\n\013INEFFICIENT\020\001\022\r\n\tEFFICIENT" + + "\020\002\"\224\002\n\024AgentAssistantRecord\022S\n\031article_s" + + "uggestion_answer\030\005 \001(\0132).google.cloud.di" + + "alogflow.v2.ArticleAnswerB\003\340A\003H\000\022@\n\nfaq_" + + "answer\030\006 \001(\0132%.google.cloud.dialogflow.v" + + "2.FaqAnswerB\003\340A\003H\000\022[\n\030dialogflow_assist_" + + "answer\030\007 \001(\01322.google.cloud.dialogflow.v" + + "2.DialogflowAssistAnswerB\003\340A\003H\000B\010\n\006answe" + + "r2\255\005\n\rAnswerRecords\022\355\001\n\021ListAnswerRecord" + + "s\0224.google.cloud.dialogflow.v2.ListAnswe" + + "rRecordsRequest\0325.google.cloud.dialogflo" + + "w.v2.ListAnswerRecordsResponse\"k\332A\006paren" + + "t\202\323\344\223\002\\\022%/v2/{parent=projects/*}/answerR" + + "ecordsZ3\0221/v2/{parent=projects/*/locatio" + + "ns/*}/answerRecords\022\261\002\n\022UpdateAnswerReco" + + "rd\0225.google.cloud.dialogflow.v2.UpdateAn" + + "swerRecordRequest\032(.google.cloud.dialogf" + + "low.v2.AnswerRecord\"\271\001\332A\031answer_record,u" + + "pdate_mask\202\323\344\223\002\226\00123/v2/{answer_record.na" + + "me=projects/*/answerRecords/*}:\ranswer_r" + + "ecordZP2?/v2/{answer_record.name=project" + + "s/*/locations/*/answerRecords/*}:\ranswer" + + "_record\032x\312A\031dialogflow.googleapis.com\322AY" + + "https://www.googleapis.com/auth/cloud-pl" + + "atform,https://www.googleapis.com/auth/d" + + "ialogflowB\233\001\n\036com.google.cloud.dialogflo" + + "w.v2B\022AnswerRecordsProtoP\001Z>cloud.google" + + ".com/go/dialogflow/apiv2/dialogflowpb;di" + + "alogflowpb\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dialog" + + "flow.V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -247,7 +255,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_descriptor, new java.lang.String[] { - "StartTime", "SubmitTime", "SummaryText", + "StartTime", "SubmitTime", "SummaryText", "TextSections", + }); + internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_TextSectionsEntry_descriptor = + internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_TextSectionsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_SummarizationFeedback_TextSectionsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_KnowledgeSearchFeedback_descriptor = internal_static_google_cloud_dialogflow_v2_AgentAssistantFeedback_descriptor diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java index ae574d3ce7b1..f5d249fcac69 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java @@ -78,7 +78,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "dInfo\022\014\n\004word\030\003 \001(\t\022/\n\014start_offset\030\001 \001(" + "\0132\031.google.protobuf.Duration\022-\n\nend_offs" + "et\030\002 \001(\0132\031.google.protobuf.Duration\022\022\n\nc" - + "onfidence\030\004 \001(\002\"\320\003\n\020InputAudioConfig\022F\n\016" + + "onfidence\030\004 \001(\002\"\373\003\n\020InputAudioConfig\022F\n\016" + "audio_encoding\030\001 \001(\0162).google.cloud.dial" + "ogflow.v2.AudioEncodingB\003\340A\002\022\036\n\021sample_r" + "ate_hertz\030\002 \001(\005B\003\340A\002\022\032\n\rlanguage_code\030\003 " @@ -90,61 +90,62 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "chModelVariant\022\030\n\020single_utterance\030\010 \001(\010" + "\022*\n\"disable_no_speech_recognized_event\030\016" + " \001(\010\022$\n\034enable_automatic_punctuation\030\021 \001" - + "(\010\"p\n\024VoiceSelectionParams\022\021\n\004name\030\001 \001(\t" - + "B\003\340A\001\022E\n\013ssml_gender\030\002 \001(\0162+.google.clou" - + "d.dialogflow.v2.SsmlVoiceGenderB\003\340A\001\"\314\001\n" - + "\026SynthesizeSpeechConfig\022\032\n\rspeaking_rate" - + "\030\001 \001(\001B\003\340A\001\022\022\n\005pitch\030\002 \001(\001B\003\340A\001\022\033\n\016volum" - + "e_gain_db\030\003 \001(\001B\003\340A\001\022\037\n\022effects_profile_" - + "id\030\005 \003(\tB\003\340A\001\022D\n\005voice\030\004 \001(\01320.google.cl" - + "oud.dialogflow.v2.VoiceSelectionParamsB\003" - + "\340A\001\"\322\001\n\021OutputAudioConfig\022L\n\016audio_encod" - + "ing\030\001 \001(\0162/.google.cloud.dialogflow.v2.O" - + "utputAudioEncodingB\003\340A\002\022\031\n\021sample_rate_h" - + "ertz\030\002 \001(\005\022T\n\030synthesize_speech_config\030\003" - + " \001(\01322.google.cloud.dialogflow.v2.Synthe" - + "sizeSpeechConfig\"U\n\023TelephonyDtmfEvents\022" - + ">\n\013dtmf_events\030\001 \003(\0162).google.cloud.dial" - + "ogflow.v2.TelephonyDtmf\"\230\001\n\022SpeechToText" - + "Config\022L\n\024speech_model_variant\030\001 \001(\0162..g" - + "oogle.cloud.dialogflow.v2.SpeechModelVar" - + "iant\022\r\n\005model\030\002 \001(\t\022%\n\035use_timeout_based" - + "_endpointing\030\013 \001(\010*\224\002\n\rTelephonyDtmf\022\036\n\032" - + "TELEPHONY_DTMF_UNSPECIFIED\020\000\022\014\n\010DTMF_ONE" - + "\020\001\022\014\n\010DTMF_TWO\020\002\022\016\n\nDTMF_THREE\020\003\022\r\n\tDTMF" - + "_FOUR\020\004\022\r\n\tDTMF_FIVE\020\005\022\014\n\010DTMF_SIX\020\006\022\016\n\n" - + "DTMF_SEVEN\020\007\022\016\n\nDTMF_EIGHT\020\010\022\r\n\tDTMF_NIN" - + "E\020\t\022\r\n\tDTMF_ZERO\020\n\022\n\n\006DTMF_A\020\013\022\n\n\006DTMF_B" - + "\020\014\022\n\n\006DTMF_C\020\r\022\n\n\006DTMF_D\020\016\022\r\n\tDTMF_STAR\020" - + "\017\022\016\n\nDTMF_POUND\020\020*\373\001\n\rAudioEncoding\022\036\n\032A" - + "UDIO_ENCODING_UNSPECIFIED\020\000\022\034\n\030AUDIO_ENC" - + "ODING_LINEAR_16\020\001\022\027\n\023AUDIO_ENCODING_FLAC" - + "\020\002\022\030\n\024AUDIO_ENCODING_MULAW\020\003\022\026\n\022AUDIO_EN" - + "CODING_AMR\020\004\022\031\n\025AUDIO_ENCODING_AMR_WB\020\005\022" - + "\033\n\027AUDIO_ENCODING_OGG_OPUS\020\006\022)\n%AUDIO_EN" - + "CODING_SPEEX_WITH_HEADER_BYTE\020\007*v\n\022Speec" - + "hModelVariant\022$\n SPEECH_MODEL_VARIANT_UN" - + "SPECIFIED\020\000\022\026\n\022USE_BEST_AVAILABLE\020\001\022\020\n\014U" - + "SE_STANDARD\020\002\022\020\n\014USE_ENHANCED\020\003*\215\001\n\017Ssml" - + "VoiceGender\022!\n\035SSML_VOICE_GENDER_UNSPECI" - + "FIED\020\000\022\032\n\026SSML_VOICE_GENDER_MALE\020\001\022\034\n\030SS" - + "ML_VOICE_GENDER_FEMALE\020\002\022\035\n\031SSML_VOICE_G" - + "ENDER_NEUTRAL\020\003*\354\001\n\023OutputAudioEncoding\022" - + "%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\020\000\022#" - + "\n\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022\035\n\031O" - + "UTPUT_AUDIO_ENCODING_MP3\020\002\022%\n!OUTPUT_AUD" - + "IO_ENCODING_MP3_64_KBPS\020\004\022\"\n\036OUTPUT_AUDI" - + "O_ENCODING_OGG_OPUS\020\003\022\037\n\033OUTPUT_AUDIO_EN" - + "CODING_MULAW\020\005B\326\002\n\036com.google.cloud.dial" - + "ogflow.v2B\020AudioConfigProtoP\001Z>cloud.goo" - + "gle.com/go/dialogflow/apiv2/dialogflowpb" - + ";dialogflowpb\370\001\001\242\002\002DF\252\002\032Google.Cloud.Dia" - + "logflow.V2\352AU\n\033automl.googleapis.com/Mod" - + "el\0226projects/{project}/locations/{locati" - + "on}/models/{model}\352Ab\n\037speech.googleapis" - + ".com/PhraseSet\022?projects/{project}/locat" - + "ions/{location}/phraseSets/{phrase_set}b" - + "\006proto3" + + "(\010\022)\n!opt_out_conformer_model_migration\030" + + "\032 \001(\010\"p\n\024VoiceSelectionParams\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\001\022E\n\013ssml_gender\030\002 \001(\0162+.google.c" + + "loud.dialogflow.v2.SsmlVoiceGenderB\003\340A\001\"" + + "\314\001\n\026SynthesizeSpeechConfig\022\032\n\rspeaking_r" + + "ate\030\001 \001(\001B\003\340A\001\022\022\n\005pitch\030\002 \001(\001B\003\340A\001\022\033\n\016vo" + + "lume_gain_db\030\003 \001(\001B\003\340A\001\022\037\n\022effects_profi" + + "le_id\030\005 \003(\tB\003\340A\001\022D\n\005voice\030\004 \001(\01320.google" + + ".cloud.dialogflow.v2.VoiceSelectionParam" + + "sB\003\340A\001\"\322\001\n\021OutputAudioConfig\022L\n\016audio_en" + + "coding\030\001 \001(\0162/.google.cloud.dialogflow.v" + + "2.OutputAudioEncodingB\003\340A\002\022\031\n\021sample_rat" + + "e_hertz\030\002 \001(\005\022T\n\030synthesize_speech_confi" + + "g\030\003 \001(\01322.google.cloud.dialogflow.v2.Syn" + + "thesizeSpeechConfig\"U\n\023TelephonyDtmfEven" + + "ts\022>\n\013dtmf_events\030\001 \003(\0162).google.cloud.d" + + "ialogflow.v2.TelephonyDtmf\"\230\001\n\022SpeechToT" + + "extConfig\022L\n\024speech_model_variant\030\001 \001(\0162" + + "..google.cloud.dialogflow.v2.SpeechModel" + + "Variant\022\r\n\005model\030\002 \001(\t\022%\n\035use_timeout_ba" + + "sed_endpointing\030\013 \001(\010*\224\002\n\rTelephonyDtmf\022" + + "\036\n\032TELEPHONY_DTMF_UNSPECIFIED\020\000\022\014\n\010DTMF_" + + "ONE\020\001\022\014\n\010DTMF_TWO\020\002\022\016\n\nDTMF_THREE\020\003\022\r\n\tD" + + "TMF_FOUR\020\004\022\r\n\tDTMF_FIVE\020\005\022\014\n\010DTMF_SIX\020\006\022" + + "\016\n\nDTMF_SEVEN\020\007\022\016\n\nDTMF_EIGHT\020\010\022\r\n\tDTMF_" + + "NINE\020\t\022\r\n\tDTMF_ZERO\020\n\022\n\n\006DTMF_A\020\013\022\n\n\006DTM" + + "F_B\020\014\022\n\n\006DTMF_C\020\r\022\n\n\006DTMF_D\020\016\022\r\n\tDTMF_ST" + + "AR\020\017\022\016\n\nDTMF_POUND\020\020*\373\001\n\rAudioEncoding\022\036" + + "\n\032AUDIO_ENCODING_UNSPECIFIED\020\000\022\034\n\030AUDIO_" + + "ENCODING_LINEAR_16\020\001\022\027\n\023AUDIO_ENCODING_F" + + "LAC\020\002\022\030\n\024AUDIO_ENCODING_MULAW\020\003\022\026\n\022AUDIO" + + "_ENCODING_AMR\020\004\022\031\n\025AUDIO_ENCODING_AMR_WB" + + "\020\005\022\033\n\027AUDIO_ENCODING_OGG_OPUS\020\006\022)\n%AUDIO" + + "_ENCODING_SPEEX_WITH_HEADER_BYTE\020\007*v\n\022Sp" + + "eechModelVariant\022$\n SPEECH_MODEL_VARIANT" + + "_UNSPECIFIED\020\000\022\026\n\022USE_BEST_AVAILABLE\020\001\022\020" + + "\n\014USE_STANDARD\020\002\022\020\n\014USE_ENHANCED\020\003*\215\001\n\017S" + + "smlVoiceGender\022!\n\035SSML_VOICE_GENDER_UNSP" + + "ECIFIED\020\000\022\032\n\026SSML_VOICE_GENDER_MALE\020\001\022\034\n" + + "\030SSML_VOICE_GENDER_FEMALE\020\002\022\035\n\031SSML_VOIC" + + "E_GENDER_NEUTRAL\020\003*\354\001\n\023OutputAudioEncodi" + + "ng\022%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\020" + + "\000\022#\n\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022\035" + + "\n\031OUTPUT_AUDIO_ENCODING_MP3\020\002\022%\n!OUTPUT_" + + "AUDIO_ENCODING_MP3_64_KBPS\020\004\022\"\n\036OUTPUT_A" + + "UDIO_ENCODING_OGG_OPUS\020\003\022\037\n\033OUTPUT_AUDIO" + + "_ENCODING_MULAW\020\005B\326\002\n\036com.google.cloud.d" + + "ialogflow.v2B\020AudioConfigProtoP\001Z>cloud." + + "google.com/go/dialogflow/apiv2/dialogflo" + + "wpb;dialogflowpb\370\001\001\242\002\002DF\252\002\032Google.Cloud." + + "Dialogflow.V2\352AU\n\033automl.googleapis.com/" + + "Model\0226projects/{project}/locations/{loc" + + "ation}/models/{model}\352Ab\n\037speech.googlea" + + "pis.com/PhraseSet\022?projects/{project}/lo" + + "cations/{location}/phraseSets/{phrase_se" + + "t}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -187,6 +188,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SingleUtterance", "DisableNoSpeechRecognizedEvent", "EnableAutomaticPunctuation", + "OptOutConformerModelMigration", }); internal_static_google_cloud_dialogflow_v2_VoiceSelectionParams_descriptor = getDescriptor().getMessageTypes().get(3); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java index 455fc3f4c686..37dc8d9b6a77 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfig.java @@ -574,6 +574,27 @@ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; } + public static final int OPT_OUT_CONFORMER_MODEL_MIGRATION_FIELD_NUMBER = 26; + private boolean optOutConformerModelMigration_ = false; + /** + * + * + *
                              +   * If `true`, the request will opt out for STT conformer model migration.
                              +   * This field will be deprecated once force migration takes place in June
                              +   * 2024. Please refer to [Dialogflow ES Speech model
                              +   * migration](https://cloud.google.com/dialogflow/es/docs/speech-model-migration).
                              +   * 
                              + * + * bool opt_out_conformer_model_migration = 26; + * + * @return The optOutConformerModelMigration. + */ + @java.lang.Override + public boolean getOptOutConformerModelMigration() { + return optOutConformerModelMigration_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -624,6 +645,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableAutomaticPunctuation_ != false) { output.writeBool(17, enableAutomaticPunctuation_); } + if (optOutConformerModelMigration_ != false) { + output.writeBool(26, optOutConformerModelMigration_); + } getUnknownFields().writeTo(output); } @@ -677,6 +701,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, enableAutomaticPunctuation_); } + if (optOutConformerModelMigration_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(26, optOutConformerModelMigration_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -705,6 +733,8 @@ public boolean equals(final java.lang.Object obj) { if (getDisableNoSpeechRecognizedEvent() != other.getDisableNoSpeechRecognizedEvent()) return false; if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; + if (getOptOutConformerModelMigration() != other.getOptOutConformerModelMigration()) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -743,6 +773,9 @@ public int hashCode() { (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableNoSpeechRecognizedEvent()); hash = (37 * hash) + ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAutomaticPunctuation()); + hash = (37 * hash) + OPT_OUT_CONFORMER_MODEL_MIGRATION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptOutConformerModelMigration()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -899,6 +932,7 @@ public Builder clear() { singleUtterance_ = false; disableNoSpeechRecognizedEvent_ = false; enableAutomaticPunctuation_ = false; + optOutConformerModelMigration_ = false; return this; } @@ -980,6 +1014,9 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.InputAudioConfig resul if (((from_bitField0_ & 0x00000400) != 0)) { result.enableAutomaticPunctuation_ = enableAutomaticPunctuation_; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.optOutConformerModelMigration_ = optOutConformerModelMigration_; + } } @java.lang.Override @@ -1096,6 +1133,9 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.InputAudioConfig other) if (other.getEnableAutomaticPunctuation() != false) { setEnableAutomaticPunctuation(other.getEnableAutomaticPunctuation()); } + if (other.getOptOutConformerModelMigration() != false) { + setOptOutConformerModelMigration(other.getOptOutConformerModelMigration()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1196,6 +1236,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; break; } // case 136 + case 208: + { + optOutConformerModelMigration_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 208 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2698,6 +2744,68 @@ public Builder clearEnableAutomaticPunctuation() { return this; } + private boolean optOutConformerModelMigration_; + /** + * + * + *
                              +     * If `true`, the request will opt out for STT conformer model migration.
                              +     * This field will be deprecated once force migration takes place in June
                              +     * 2024. Please refer to [Dialogflow ES Speech model
                              +     * migration](https://cloud.google.com/dialogflow/es/docs/speech-model-migration).
                              +     * 
                              + * + * bool opt_out_conformer_model_migration = 26; + * + * @return The optOutConformerModelMigration. + */ + @java.lang.Override + public boolean getOptOutConformerModelMigration() { + return optOutConformerModelMigration_; + } + /** + * + * + *
                              +     * If `true`, the request will opt out for STT conformer model migration.
                              +     * This field will be deprecated once force migration takes place in June
                              +     * 2024. Please refer to [Dialogflow ES Speech model
                              +     * migration](https://cloud.google.com/dialogflow/es/docs/speech-model-migration).
                              +     * 
                              + * + * bool opt_out_conformer_model_migration = 26; + * + * @param value The optOutConformerModelMigration to set. + * @return This builder for chaining. + */ + public Builder setOptOutConformerModelMigration(boolean value) { + + optOutConformerModelMigration_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
                              +     * If `true`, the request will opt out for STT conformer model migration.
                              +     * This field will be deprecated once force migration takes place in June
                              +     * 2024. Please refer to [Dialogflow ES Speech model
                              +     * migration](https://cloud.google.com/dialogflow/es/docs/speech-model-migration).
                              +     * 
                              + * + * bool opt_out_conformer_model_migration = 26; + * + * @return This builder for chaining. + */ + public Builder clearOptOutConformerModelMigration() { + bitField0_ = (bitField0_ & ~0x00000800); + optOutConformerModelMigration_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java index 01eda3a5150e..c5affb2c77d6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/InputAudioConfigOrBuilder.java @@ -399,4 +399,20 @@ public interface InputAudioConfigOrBuilder * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); + + /** + * + * + *
                              +   * If `true`, the request will opt out for STT conformer model migration.
                              +   * This field will be deprecated once force migration takes place in June
                              +   * 2024. Please refer to [Dialogflow ES Speech model
                              +   * migration](https://cloud.google.com/dialogflow/es/docs/speech-model-migration).
                              +   * 
                              + * + * bool opt_out_conformer_model_migration = 26; + * + * @return The optOutConformerModelMigration. + */ + boolean getOptOutConformerModelMigration(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java index 32474493df90..7b5dc680e85a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java @@ -136,8 +136,8 @@ public enum MessageType implements com.google.protobuf.ProtocolMessageEnum { * * *
                              -     * Event indicates that the server has detected the end of the user's speech
                              -     * utterance and expects no additional inputs.
                              +     * This event indicates that the server has detected the end of the user's
                              +     * speech utterance and expects no additional inputs.
                                    * Therefore, the server will not process additional audio (although it may
                                    * subsequently return additional results). The client should stop sending
                                    * additional audio data, half-close the gRPC connection, and wait for any
                              @@ -176,8 +176,8 @@ public enum MessageType implements com.google.protobuf.ProtocolMessageEnum {
                                    *
                                    *
                                    * 
                              -     * Event indicates that the server has detected the end of the user's speech
                              -     * utterance and expects no additional inputs.
                              +     * This event indicates that the server has detected the end of the user's
                              +     * speech utterance and expects no additional inputs.
                                    * Therefore, the server will not process additional audio (although it may
                                    * subsequently return additional results). The client should stop sending
                                    * additional audio data, half-close the gRPC connection, and wait for any
                              diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto
                              index 8463144ddba1..ffafe805e710 100644
                              --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto
                              +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/answer_record.proto
                              @@ -271,6 +271,10 @@ message AgentAssistantFeedback {
                               
                                   // Text of actual submitted summary.
                                   string summary_text = 3;
                              +
                              +    // Optional. Actual text sections of submitted summary.
                              +    map text_sections = 4
                              +        [(google.api.field_behavior) = OPTIONAL];
                                 }
                               
                                 // Feedback for knowledge search.
                              diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto
                              index 6d08164a29ae..204737f52247 100644
                              --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto
                              +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto
                              @@ -167,6 +167,12 @@ message InputAudioConfig {
                               
                                 // Enable automatic punctuation option at the speech backend.
                                 bool enable_automatic_punctuation = 17;
                              +
                              +  // If `true`, the request will opt out for STT conformer model migration.
                              +  // This field will be deprecated once force migration takes place in June
                              +  // 2024. Please refer to [Dialogflow ES Speech model
                              +  // migration](https://cloud.google.com/dialogflow/es/docs/speech-model-migration).
                              +  bool opt_out_conformer_model_migration = 26;
                               }
                               
                               // Description of which voice to use for speech synthesis.
                              diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto
                              index 14ee524d100b..e93e2672ea8e 100644
                              --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto
                              +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto
                              @@ -655,8 +655,8 @@ message StreamingRecognitionResult {
                                   // Message contains a (possibly partial) transcript.
                                   TRANSCRIPT = 1;
                               
                              -    // Event indicates that the server has detected the end of the user's speech
                              -    // utterance and expects no additional inputs.
                              +    // This event indicates that the server has detected the end of the user's
                              +    // speech utterance and expects no additional inputs.
                                   // Therefore, the server will not process additional audio (although it may
                                   // subsequently return additional results). The client should stop sending
                                   // additional audio data, half-close the gRPC connection, and wait for any
                              diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceClient.java
                              new file mode 100644
                              index 000000000000..db77ee2a58f4
                              --- /dev/null
                              +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceClient.java
                              @@ -0,0 +1,403 @@
                              +/*
                              + * 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.
                              + */
                              +
                              +package com.google.cloud.discoveryengine.v1alpha;
                              +
                              +import com.google.api.core.BetaApi;
                              +import com.google.api.gax.core.BackgroundResource;
                              +import com.google.api.gax.rpc.UnaryCallable;
                              +import com.google.cloud.discoveryengine.v1alpha.stub.AclConfigServiceStub;
                              +import com.google.cloud.discoveryengine.v1alpha.stub.AclConfigServiceStubSettings;
                              +import java.io.IOException;
                              +import java.util.concurrent.TimeUnit;
                              +import javax.annotation.Generated;
                              +
                              +// AUTO-GENERATED DOCUMENTATION AND CLASS.
                              +/**
                              + * Service Description: Service for managing Acl Configuration.
                              + *
                              + * 

                              This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

                              {@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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
                              + *   UpdateAclConfigRequest request =
                              + *       UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build();
                              + *   AclConfig response = aclConfigServiceClient.updateAclConfig(request);
                              + * }
                              + * }
                              + * + *

                              Note: close() needs to be called on the AclConfigServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
                              Methods
                              MethodDescriptionMethod Variants

                              UpdateAclConfig

                              Default Acl Configuration for use in a location of a customer's project. Updates will only reflect to new data stores. Existing data stores will still use the old value.

                              + *

                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                              + *
                                + *
                              • updateAclConfig(UpdateAclConfigRequest request) + *

                              + *

                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                              + *
                                + *
                              • updateAclConfigCallable() + *

                              + *

                              GetAclConfig

                              Gets the [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig].

                              + *

                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                              + *
                                + *
                              • getAclConfig(GetAclConfigRequest request) + *

                              + *

                              "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                              + *
                                + *
                              • getAclConfig(AclConfigName name) + *

                              • getAclConfig(String name) + *

                              + *

                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                              + *
                                + *
                              • getAclConfigCallable() + *

                              + *
                              + * + *

                              See the individual methods for example code. + * + *

                              Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                              This class can be customized by passing in a custom instance of AclConfigServiceSettings to + * create(). For example: + * + *

                              To customize credentials: + * + *

                              {@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
                              + * AclConfigServiceSettings aclConfigServiceSettings =
                              + *     AclConfigServiceSettings.newBuilder()
                              + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                              + *         .build();
                              + * AclConfigServiceClient aclConfigServiceClient =
                              + *     AclConfigServiceClient.create(aclConfigServiceSettings);
                              + * }
                              + * + *

                              To customize the endpoint: + * + *

                              {@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
                              + * AclConfigServiceSettings aclConfigServiceSettings =
                              + *     AclConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
                              + * AclConfigServiceClient aclConfigServiceClient =
                              + *     AclConfigServiceClient.create(aclConfigServiceSettings);
                              + * }
                              + * + *

                              To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

                              {@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
                              + * AclConfigServiceSettings aclConfigServiceSettings =
                              + *     AclConfigServiceSettings.newHttpJsonBuilder().build();
                              + * AclConfigServiceClient aclConfigServiceClient =
                              + *     AclConfigServiceClient.create(aclConfigServiceSettings);
                              + * }
                              + * + *

                              Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class AclConfigServiceClient implements BackgroundResource { + private final AclConfigServiceSettings settings; + private final AclConfigServiceStub stub; + + /** Constructs an instance of AclConfigServiceClient with default settings. */ + public static final AclConfigServiceClient create() throws IOException { + return create(AclConfigServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AclConfigServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AclConfigServiceClient create(AclConfigServiceSettings settings) + throws IOException { + return new AclConfigServiceClient(settings); + } + + /** + * Constructs an instance of AclConfigServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(AclConfigServiceSettings). + */ + public static final AclConfigServiceClient create(AclConfigServiceStub stub) { + return new AclConfigServiceClient(stub); + } + + /** + * Constructs an instance of AclConfigServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected AclConfigServiceClient(AclConfigServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AclConfigServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected AclConfigServiceClient(AclConfigServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final AclConfigServiceSettings getSettings() { + return settings; + } + + public AclConfigServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Default Acl Configuration for use in a location of a customer's project. Updates will only + * reflect to new data stores. Existing data stores will still use the old value. + * + *

                              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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
                              +   *   UpdateAclConfigRequest request =
                              +   *       UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build();
                              +   *   AclConfig response = aclConfigServiceClient.updateAclConfig(request);
                              +   * }
                              +   * }
                              + * + * @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 AclConfig updateAclConfig(UpdateAclConfigRequest request) { + return updateAclConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Default Acl Configuration for use in a location of a customer's project. Updates will only + * reflect to new data stores. Existing data stores will still use the old value. + * + *

                              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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
                              +   *   UpdateAclConfigRequest request =
                              +   *       UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build();
                              +   *   ApiFuture future =
                              +   *       aclConfigServiceClient.updateAclConfigCallable().futureCall(request);
                              +   *   // Do something.
                              +   *   AclConfig response = future.get();
                              +   * }
                              +   * }
                              + */ + public final UnaryCallable updateAclConfigCallable() { + return stub.updateAclConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig]. + * + *

                              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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
                              +   *   AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]");
                              +   *   AclConfig response = aclConfigServiceClient.getAclConfig(name);
                              +   * }
                              +   * }
                              + * + * @param name Required. Resource name of + * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], such as + * `projects/*/locations/*/aclConfig`. + *

                              If the caller does not have permission to access the + * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], regardless of whether or not + * it exists, a PERMISSION_DENIED error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclConfig getAclConfig(AclConfigName name) { + GetAclConfigRequest request = + GetAclConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAclConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig]. + * + *

                              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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
                              +   *   String name = AclConfigName.of("[PROJECT]", "[LOCATION]").toString();
                              +   *   AclConfig response = aclConfigServiceClient.getAclConfig(name);
                              +   * }
                              +   * }
                              + * + * @param name Required. Resource name of + * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], such as + * `projects/*/locations/*/aclConfig`. + *

                              If the caller does not have permission to access the + * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], regardless of whether or not + * it exists, a PERMISSION_DENIED error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclConfig getAclConfig(String name) { + GetAclConfigRequest request = GetAclConfigRequest.newBuilder().setName(name).build(); + return getAclConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig]. + * + *

                              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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
                              +   *   GetAclConfigRequest request =
                              +   *       GetAclConfigRequest.newBuilder()
                              +   *           .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString())
                              +   *           .build();
                              +   *   AclConfig response = aclConfigServiceClient.getAclConfig(request);
                              +   * }
                              +   * }
                              + * + * @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 AclConfig getAclConfig(GetAclConfigRequest request) { + return getAclConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig]. + * + *

                              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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
                              +   *   GetAclConfigRequest request =
                              +   *       GetAclConfigRequest.newBuilder()
                              +   *           .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString())
                              +   *           .build();
                              +   *   ApiFuture future =
                              +   *       aclConfigServiceClient.getAclConfigCallable().futureCall(request);
                              +   *   // Do something.
                              +   *   AclConfig response = future.get();
                              +   * }
                              +   * }
                              + */ + public final UnaryCallable getAclConfigCallable() { + return stub.getAclConfigCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceSettings.java new file mode 100644 index 000000000000..7bc035da11a4 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceSettings.java @@ -0,0 +1,214 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.AclConfigServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AclConfigServiceClient}. + * + *

                              The default instance has everything set to sensible defaults: + * + *

                                + *
                              • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
                              • Credentials are acquired automatically through Application Default Credentials. + *
                              • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                              + * + *

                              The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                              For example, to set the total timeout of updateAclConfig to 30 seconds: + * + *

                              {@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
                              + * AclConfigServiceSettings.Builder aclConfigServiceSettingsBuilder =
                              + *     AclConfigServiceSettings.newBuilder();
                              + * aclConfigServiceSettingsBuilder
                              + *     .updateAclConfigSettings()
                              + *     .setRetrySettings(
                              + *         aclConfigServiceSettingsBuilder
                              + *             .updateAclConfigSettings()
                              + *             .getRetrySettings()
                              + *             .toBuilder()
                              + *             .setTotalTimeout(Duration.ofSeconds(30))
                              + *             .build());
                              + * AclConfigServiceSettings aclConfigServiceSettings = aclConfigServiceSettingsBuilder.build();
                              + * }
                              + */ +@BetaApi +@Generated("by gapic-generator-java") +public class AclConfigServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to updateAclConfig. */ + public UnaryCallSettings updateAclConfigSettings() { + return ((AclConfigServiceStubSettings) getStubSettings()).updateAclConfigSettings(); + } + + /** Returns the object with the settings used for calls to getAclConfig. */ + public UnaryCallSettings getAclConfigSettings() { + return ((AclConfigServiceStubSettings) getStubSettings()).getAclConfigSettings(); + } + + public static final AclConfigServiceSettings create(AclConfigServiceStubSettings stub) + throws IOException { + return new AclConfigServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AclConfigServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AclConfigServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AclConfigServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AclConfigServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AclConfigServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AclConfigServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AclConfigServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AclConfigServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AclConfigServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AclConfigServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AclConfigServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(AclConfigServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AclConfigServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AclConfigServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AclConfigServiceStubSettings.newHttpJsonBuilder()); + } + + public AclConfigServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AclConfigServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                              Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to updateAclConfig. */ + public UnaryCallSettings.Builder updateAclConfigSettings() { + return getStubSettingsBuilder().updateAclConfigSettings(); + } + + /** Returns the builder for the settings used for calls to getAclConfig. */ + public UnaryCallSettings.Builder getAclConfigSettings() { + return getStubSettingsBuilder().getAclConfigSettings(); + } + + @Override + public AclConfigServiceSettings build() throws IOException { + return new AclConfigServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceClient.java new file mode 100644 index 000000000000..a4dc6ff2271d --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceClient.java @@ -0,0 +1,637 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.stub.ChunkServiceStub; +import com.google.cloud.discoveryengine.v1alpha.stub.ChunkServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for displaying processed + * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] information of the customer's unstructured + * data. + * + *

                              This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

                              {@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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) {
                              + *   ChunkName name =
                              + *       ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName(
                              + *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]", "[CHUNK]");
                              + *   Chunk response = chunkServiceClient.getChunk(name);
                              + * }
                              + * }
                              + * + *

                              Note: close() needs to be called on the ChunkServiceClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
                              Methods
                              MethodDescriptionMethod Variants

                              GetChunk

                              Gets a [Document][google.cloud.discoveryengine.v1alpha.Document].

                              + *

                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                              + *
                                + *
                              • getChunk(GetChunkRequest request) + *

                              + *

                              "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                              + *
                                + *
                              • getChunk(ChunkName name) + *

                              • getChunk(String name) + *

                              + *

                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                              + *
                                + *
                              • getChunkCallable() + *

                              + *

                              ListChunks

                              Gets a list of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.

                              + *

                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                              + *
                                + *
                              • listChunks(ListChunksRequest request) + *

                              + *

                              "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                              + *
                                + *
                              • listChunks(DocumentName parent) + *

                              • listChunks(String parent) + *

                              + *

                              Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                              + *
                                + *
                              • listChunksPagedCallable() + *

                              • listChunksCallable() + *

                              + *
                              + * + *

                              See the individual methods for example code. + * + *

                              Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                              This class can be customized by passing in a custom instance of ChunkServiceSettings to + * create(). For example: + * + *

                              To customize credentials: + * + *

                              {@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
                              + * ChunkServiceSettings chunkServiceSettings =
                              + *     ChunkServiceSettings.newBuilder()
                              + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                              + *         .build();
                              + * ChunkServiceClient chunkServiceClient = ChunkServiceClient.create(chunkServiceSettings);
                              + * }
                              + * + *

                              To customize the endpoint: + * + *

                              {@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
                              + * ChunkServiceSettings chunkServiceSettings =
                              + *     ChunkServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
                              + * ChunkServiceClient chunkServiceClient = ChunkServiceClient.create(chunkServiceSettings);
                              + * }
                              + * + *

                              To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

                              {@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
                              + * ChunkServiceSettings chunkServiceSettings = ChunkServiceSettings.newHttpJsonBuilder().build();
                              + * ChunkServiceClient chunkServiceClient = ChunkServiceClient.create(chunkServiceSettings);
                              + * }
                              + * + *

                              Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ChunkServiceClient implements BackgroundResource { + private final ChunkServiceSettings settings; + private final ChunkServiceStub stub; + + /** Constructs an instance of ChunkServiceClient with default settings. */ + public static final ChunkServiceClient create() throws IOException { + return create(ChunkServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ChunkServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ChunkServiceClient create(ChunkServiceSettings settings) throws IOException { + return new ChunkServiceClient(settings); + } + + /** + * Constructs an instance of ChunkServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(ChunkServiceSettings). + */ + public static final ChunkServiceClient create(ChunkServiceStub stub) { + return new ChunkServiceClient(stub); + } + + /** + * Constructs an instance of ChunkServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected ChunkServiceClient(ChunkServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ChunkServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ChunkServiceClient(ChunkServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ChunkServiceSettings getSettings() { + return settings; + } + + public ChunkServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

                              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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) {
                              +   *   ChunkName name =
                              +   *       ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName(
                              +   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]", "[CHUNK]");
                              +   *   Chunk response = chunkServiceClient.getChunk(name);
                              +   * }
                              +   * }
                              + * + * @param name Required. Full resource name of + * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], such as + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`. + *

                              If the caller does not have permission to access the + * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], regardless of whether or not it + * exists, a `PERMISSION_DENIED` error is returned. + *

                              If the requested [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] does not exist, a + * `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Chunk getChunk(ChunkName name) { + GetChunkRequest request = + GetChunkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getChunk(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

                              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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) {
                              +   *   String name =
                              +   *       ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName(
                              +   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]", "[CHUNK]")
                              +   *           .toString();
                              +   *   Chunk response = chunkServiceClient.getChunk(name);
                              +   * }
                              +   * }
                              + * + * @param name Required. Full resource name of + * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], such as + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`. + *

                              If the caller does not have permission to access the + * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], regardless of whether or not it + * exists, a `PERMISSION_DENIED` error is returned. + *

                              If the requested [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] does not exist, a + * `NOT_FOUND` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Chunk getChunk(String name) { + GetChunkRequest request = GetChunkRequest.newBuilder().setName(name).build(); + return getChunk(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

                              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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) {
                              +   *   GetChunkRequest request =
                              +   *       GetChunkRequest.newBuilder()
                              +   *           .setName(
                              +   *               ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName(
                              +   *                       "[PROJECT]",
                              +   *                       "[LOCATION]",
                              +   *                       "[DATA_STORE]",
                              +   *                       "[BRANCH]",
                              +   *                       "[DOCUMENT]",
                              +   *                       "[CHUNK]")
                              +   *                   .toString())
                              +   *           .build();
                              +   *   Chunk response = chunkServiceClient.getChunk(request);
                              +   * }
                              +   * }
                              + * + * @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 Chunk getChunk(GetChunkRequest request) { + return getChunkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

                              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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) {
                              +   *   GetChunkRequest request =
                              +   *       GetChunkRequest.newBuilder()
                              +   *           .setName(
                              +   *               ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName(
                              +   *                       "[PROJECT]",
                              +   *                       "[LOCATION]",
                              +   *                       "[DATA_STORE]",
                              +   *                       "[BRANCH]",
                              +   *                       "[DOCUMENT]",
                              +   *                       "[CHUNK]")
                              +   *                   .toString())
                              +   *           .build();
                              +   *   ApiFuture future = chunkServiceClient.getChunkCallable().futureCall(request);
                              +   *   // Do something.
                              +   *   Chunk response = future.get();
                              +   * }
                              +   * }
                              + */ + public final UnaryCallable getChunkCallable() { + return stub.getChunkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s. + * + *

                              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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) {
                              +   *   DocumentName parent =
                              +   *       DocumentName.ofProjectLocationDataStoreBranchDocumentName(
                              +   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]");
                              +   *   for (Chunk element : chunkServiceClient.listChunks(parent).iterateAll()) {
                              +   *     // doThingsWith(element);
                              +   *   }
                              +   * }
                              +   * }
                              + * + * @param parent Required. The parent document resource name, such as + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. + *

                              If the caller does not have permission to list + * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s under this document, regardless of + * whether or not this document exists, a `PERMISSION_DENIED` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListChunksPagedResponse listChunks(DocumentName parent) { + ListChunksRequest request = + ListChunksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listChunks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s. + * + *

                              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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) {
                              +   *   String parent =
                              +   *       DocumentName.ofProjectLocationDataStoreBranchDocumentName(
                              +   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]")
                              +   *           .toString();
                              +   *   for (Chunk element : chunkServiceClient.listChunks(parent).iterateAll()) {
                              +   *     // doThingsWith(element);
                              +   *   }
                              +   * }
                              +   * }
                              + * + * @param parent Required. The parent document resource name, such as + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. + *

                              If the caller does not have permission to list + * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s under this document, regardless of + * whether or not this document exists, a `PERMISSION_DENIED` error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListChunksPagedResponse listChunks(String parent) { + ListChunksRequest request = ListChunksRequest.newBuilder().setParent(parent).build(); + return listChunks(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s. + * + *

                              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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) {
                              +   *   ListChunksRequest request =
                              +   *       ListChunksRequest.newBuilder()
                              +   *           .setParent(
                              +   *               DocumentName.ofProjectLocationDataStoreBranchDocumentName(
                              +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]")
                              +   *                   .toString())
                              +   *           .setPageSize(883849137)
                              +   *           .setPageToken("pageToken873572522")
                              +   *           .build();
                              +   *   for (Chunk element : chunkServiceClient.listChunks(request).iterateAll()) {
                              +   *     // doThingsWith(element);
                              +   *   }
                              +   * }
                              +   * }
                              + * + * @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 ListChunksPagedResponse listChunks(ListChunksRequest request) { + return listChunksPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s. + * + *

                              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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) {
                              +   *   ListChunksRequest request =
                              +   *       ListChunksRequest.newBuilder()
                              +   *           .setParent(
                              +   *               DocumentName.ofProjectLocationDataStoreBranchDocumentName(
                              +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]")
                              +   *                   .toString())
                              +   *           .setPageSize(883849137)
                              +   *           .setPageToken("pageToken873572522")
                              +   *           .build();
                              +   *   ApiFuture future = chunkServiceClient.listChunksPagedCallable().futureCall(request);
                              +   *   // Do something.
                              +   *   for (Chunk element : future.get().iterateAll()) {
                              +   *     // doThingsWith(element);
                              +   *   }
                              +   * }
                              +   * }
                              + */ + public final UnaryCallable listChunksPagedCallable() { + return stub.listChunksPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a list of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s. + * + *

                              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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) {
                              +   *   ListChunksRequest request =
                              +   *       ListChunksRequest.newBuilder()
                              +   *           .setParent(
                              +   *               DocumentName.ofProjectLocationDataStoreBranchDocumentName(
                              +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]")
                              +   *                   .toString())
                              +   *           .setPageSize(883849137)
                              +   *           .setPageToken("pageToken873572522")
                              +   *           .build();
                              +   *   while (true) {
                              +   *     ListChunksResponse response = chunkServiceClient.listChunksCallable().call(request);
                              +   *     for (Chunk element : response.getChunksList()) {
                              +   *       // doThingsWith(element);
                              +   *     }
                              +   *     String nextPageToken = response.getNextPageToken();
                              +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                              +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                              +   *     } else {
                              +   *       break;
                              +   *     }
                              +   *   }
                              +   * }
                              +   * }
                              + */ + public final UnaryCallable listChunksCallable() { + return stub.listChunksCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListChunksPagedResponse + extends AbstractPagedListResponse< + ListChunksRequest, + ListChunksResponse, + Chunk, + ListChunksPage, + ListChunksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListChunksPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListChunksPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListChunksPagedResponse(ListChunksPage page) { + super(page, ListChunksFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListChunksPage + extends AbstractPage { + + private ListChunksPage( + PageContext context, + ListChunksResponse response) { + super(context, response); + } + + private static ListChunksPage createEmptyPage() { + return new ListChunksPage(null, null); + } + + @Override + protected ListChunksPage createPage( + PageContext context, + ListChunksResponse response) { + return new ListChunksPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListChunksFixedSizeCollection + extends AbstractFixedSizeCollection< + ListChunksRequest, + ListChunksResponse, + Chunk, + ListChunksPage, + ListChunksFixedSizeCollection> { + + private ListChunksFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListChunksFixedSizeCollection createEmptyCollection() { + return new ListChunksFixedSizeCollection(null, 0); + } + + @Override + protected ListChunksFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListChunksFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceSettings.java new file mode 100644 index 000000000000..0af7458c6cf8 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceSettings.java @@ -0,0 +1,218 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient.ListChunksPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.ChunkServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ChunkServiceClient}. + * + *

                              The default instance has everything set to sensible defaults: + * + *

                                + *
                              • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
                              • Credentials are acquired automatically through Application Default Credentials. + *
                              • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                              + * + *

                              The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                              For example, to set the total timeout of getChunk to 30 seconds: + * + *

                              {@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
                              + * ChunkServiceSettings.Builder chunkServiceSettingsBuilder = ChunkServiceSettings.newBuilder();
                              + * chunkServiceSettingsBuilder
                              + *     .getChunkSettings()
                              + *     .setRetrySettings(
                              + *         chunkServiceSettingsBuilder
                              + *             .getChunkSettings()
                              + *             .getRetrySettings()
                              + *             .toBuilder()
                              + *             .setTotalTimeout(Duration.ofSeconds(30))
                              + *             .build());
                              + * ChunkServiceSettings chunkServiceSettings = chunkServiceSettingsBuilder.build();
                              + * }
                              + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ChunkServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getChunk. */ + public UnaryCallSettings getChunkSettings() { + return ((ChunkServiceStubSettings) getStubSettings()).getChunkSettings(); + } + + /** Returns the object with the settings used for calls to listChunks. */ + public PagedCallSettings + listChunksSettings() { + return ((ChunkServiceStubSettings) getStubSettings()).listChunksSettings(); + } + + public static final ChunkServiceSettings create(ChunkServiceStubSettings stub) + throws IOException { + return new ChunkServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ChunkServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ChunkServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ChunkServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ChunkServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ChunkServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ChunkServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ChunkServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ChunkServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ChunkServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ChunkServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ChunkServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ChunkServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ChunkServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ChunkServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(ChunkServiceStubSettings.newHttpJsonBuilder()); + } + + public ChunkServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ChunkServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                              Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getChunk. */ + public UnaryCallSettings.Builder getChunkSettings() { + return getStubSettingsBuilder().getChunkSettings(); + } + + /** Returns the builder for the settings used for calls to listChunks. */ + public PagedCallSettings.Builder + listChunksSettings() { + return getStubSettingsBuilder().listChunksSettings(); + } + + @Override + public ChunkServiceSettings build() throws IOException { + return new ChunkServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java index 11fd5438e4ba..af6ee7f2a912 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClient.java @@ -18,9 +18,13 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.discoveryengine.v1alpha.stub.CompletionServiceStub; import com.google.cloud.discoveryengine.v1alpha.stub.CompletionServiceStubSettings; +import com.google.longrunning.Operation; import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -79,6 +83,36 @@ *

                            * * + * + *

                            ImportSuggestionDenyListEntries + *

                            Imports all [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry] for a DataStore. + * + *

                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                            + *
                              + *
                            • importSuggestionDenyListEntriesAsync(ImportSuggestionDenyListEntriesRequest request) + *

                            + *

                            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                            + *
                              + *
                            • importSuggestionDenyListEntriesOperationCallable() + *

                            • importSuggestionDenyListEntriesCallable() + *

                            + * + * + * + *

                            PurgeSuggestionDenyListEntries + *

                            Permanently deletes all [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry] for a DataStore. + * + *

                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                            + *
                              + *
                            • purgeSuggestionDenyListEntriesAsync(PurgeSuggestionDenyListEntriesRequest request) + *

                            + *

                            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                            + *
                              + *
                            • purgeSuggestionDenyListEntriesOperationCallable() + *

                            • purgeSuggestionDenyListEntriesCallable() + *

                            + * + * * * *

                            See the individual methods for example code. @@ -142,6 +176,8 @@ public class CompletionServiceClient implements BackgroundResource { private final CompletionServiceSettings settings; private final CompletionServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of CompletionServiceClient with default settings. */ public static final CompletionServiceClient create() throws IOException { @@ -173,11 +209,17 @@ public static final CompletionServiceClient create(CompletionServiceStub stub) { protected CompletionServiceClient(CompletionServiceSettings settings) throws IOException { this.settings = settings; this.stub = ((CompletionServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected CompletionServiceClient(CompletionServiceStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final CompletionServiceSettings getSettings() { @@ -188,6 +230,23 @@ public CompletionServiceStub getStub() { return stub; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Completes the specified user input with keyword suggestions. @@ -258,6 +317,228 @@ public final UnaryCallable complete return stub.completeQueryCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports all + * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry] for a + * DataStore. + * + *

                            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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
                            +   *   ImportSuggestionDenyListEntriesRequest request =
                            +   *       ImportSuggestionDenyListEntriesRequest.newBuilder()
                            +   *           .setParent(
                            +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
                            +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
                            +   *                   .toString())
                            +   *           .build();
                            +   *   ImportSuggestionDenyListEntriesResponse response =
                            +   *       completionServiceClient.importSuggestionDenyListEntriesAsync(request).get();
                            +   * }
                            +   * }
                            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + ImportSuggestionDenyListEntriesResponse, ImportSuggestionDenyListEntriesMetadata> + importSuggestionDenyListEntriesAsync(ImportSuggestionDenyListEntriesRequest request) { + return importSuggestionDenyListEntriesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports all + * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry] for a + * DataStore. + * + *

                            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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
                            +   *   ImportSuggestionDenyListEntriesRequest request =
                            +   *       ImportSuggestionDenyListEntriesRequest.newBuilder()
                            +   *           .setParent(
                            +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
                            +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
                            +   *                   .toString())
                            +   *           .build();
                            +   *   OperationFuture<
                            +   *           ImportSuggestionDenyListEntriesResponse, ImportSuggestionDenyListEntriesMetadata>
                            +   *       future =
                            +   *           completionServiceClient
                            +   *               .importSuggestionDenyListEntriesOperationCallable()
                            +   *               .futureCall(request);
                            +   *   // Do something.
                            +   *   ImportSuggestionDenyListEntriesResponse response = future.get();
                            +   * }
                            +   * }
                            + */ + public final OperationCallable< + ImportSuggestionDenyListEntriesRequest, + ImportSuggestionDenyListEntriesResponse, + ImportSuggestionDenyListEntriesMetadata> + importSuggestionDenyListEntriesOperationCallable() { + return stub.importSuggestionDenyListEntriesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports all + * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry] for a + * DataStore. + * + *

                            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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
                            +   *   ImportSuggestionDenyListEntriesRequest request =
                            +   *       ImportSuggestionDenyListEntriesRequest.newBuilder()
                            +   *           .setParent(
                            +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
                            +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
                            +   *                   .toString())
                            +   *           .build();
                            +   *   ApiFuture future =
                            +   *       completionServiceClient.importSuggestionDenyListEntriesCallable().futureCall(request);
                            +   *   // Do something.
                            +   *   Operation response = future.get();
                            +   * }
                            +   * }
                            + */ + public final UnaryCallable + importSuggestionDenyListEntriesCallable() { + return stub.importSuggestionDenyListEntriesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all + * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry] for a + * DataStore. + * + *

                            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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
                            +   *   PurgeSuggestionDenyListEntriesRequest request =
                            +   *       PurgeSuggestionDenyListEntriesRequest.newBuilder()
                            +   *           .setParent(
                            +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
                            +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
                            +   *                   .toString())
                            +   *           .build();
                            +   *   PurgeSuggestionDenyListEntriesResponse response =
                            +   *       completionServiceClient.purgeSuggestionDenyListEntriesAsync(request).get();
                            +   * }
                            +   * }
                            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + PurgeSuggestionDenyListEntriesResponse, PurgeSuggestionDenyListEntriesMetadata> + purgeSuggestionDenyListEntriesAsync(PurgeSuggestionDenyListEntriesRequest request) { + return purgeSuggestionDenyListEntriesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all + * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry] for a + * DataStore. + * + *

                            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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
                            +   *   PurgeSuggestionDenyListEntriesRequest request =
                            +   *       PurgeSuggestionDenyListEntriesRequest.newBuilder()
                            +   *           .setParent(
                            +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
                            +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
                            +   *                   .toString())
                            +   *           .build();
                            +   *   OperationFuture<
                            +   *           PurgeSuggestionDenyListEntriesResponse, PurgeSuggestionDenyListEntriesMetadata>
                            +   *       future =
                            +   *           completionServiceClient
                            +   *               .purgeSuggestionDenyListEntriesOperationCallable()
                            +   *               .futureCall(request);
                            +   *   // Do something.
                            +   *   PurgeSuggestionDenyListEntriesResponse response = future.get();
                            +   * }
                            +   * }
                            + */ + public final OperationCallable< + PurgeSuggestionDenyListEntriesRequest, + PurgeSuggestionDenyListEntriesResponse, + PurgeSuggestionDenyListEntriesMetadata> + purgeSuggestionDenyListEntriesOperationCallable() { + return stub.purgeSuggestionDenyListEntriesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Permanently deletes all + * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry] for a + * DataStore. + * + *

                            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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
                            +   *   PurgeSuggestionDenyListEntriesRequest request =
                            +   *       PurgeSuggestionDenyListEntriesRequest.newBuilder()
                            +   *           .setParent(
                            +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
                            +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
                            +   *                   .toString())
                            +   *           .build();
                            +   *   ApiFuture future =
                            +   *       completionServiceClient.purgeSuggestionDenyListEntriesCallable().futureCall(request);
                            +   *   // Do something.
                            +   *   Operation response = future.get();
                            +   * }
                            +   * }
                            + */ + public final UnaryCallable + purgeSuggestionDenyListEntriesCallable() { + return stub.purgeSuggestionDenyListEntriesCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceSettings.java index ed00b0cd768e..2e14a9af158d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceSettings.java @@ -25,9 +25,11 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1alpha.stub.CompletionServiceStubSettings; +import com.google.longrunning.Operation; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -79,6 +81,40 @@ public UnaryCallSettings completeQu return ((CompletionServiceStubSettings) getStubSettings()).completeQuerySettings(); } + /** Returns the object with the settings used for calls to importSuggestionDenyListEntries. */ + public UnaryCallSettings + importSuggestionDenyListEntriesSettings() { + return ((CompletionServiceStubSettings) getStubSettings()) + .importSuggestionDenyListEntriesSettings(); + } + + /** Returns the object with the settings used for calls to importSuggestionDenyListEntries. */ + public OperationCallSettings< + ImportSuggestionDenyListEntriesRequest, + ImportSuggestionDenyListEntriesResponse, + ImportSuggestionDenyListEntriesMetadata> + importSuggestionDenyListEntriesOperationSettings() { + return ((CompletionServiceStubSettings) getStubSettings()) + .importSuggestionDenyListEntriesOperationSettings(); + } + + /** Returns the object with the settings used for calls to purgeSuggestionDenyListEntries. */ + public UnaryCallSettings + purgeSuggestionDenyListEntriesSettings() { + return ((CompletionServiceStubSettings) getStubSettings()) + .purgeSuggestionDenyListEntriesSettings(); + } + + /** Returns the object with the settings used for calls to purgeSuggestionDenyListEntries. */ + public OperationCallSettings< + PurgeSuggestionDenyListEntriesRequest, + PurgeSuggestionDenyListEntriesResponse, + PurgeSuggestionDenyListEntriesMetadata> + purgeSuggestionDenyListEntriesOperationSettings() { + return ((CompletionServiceStubSettings) getStubSettings()) + .purgeSuggestionDenyListEntriesOperationSettings(); + } + public static final CompletionServiceSettings create(CompletionServiceStubSettings stub) throws IOException { return new CompletionServiceSettings.Builder(stub.toBuilder()).build(); @@ -197,6 +233,36 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().completeQuerySettings(); } + /** Returns the builder for the settings used for calls to importSuggestionDenyListEntries. */ + public UnaryCallSettings.Builder + importSuggestionDenyListEntriesSettings() { + return getStubSettingsBuilder().importSuggestionDenyListEntriesSettings(); + } + + /** Returns the builder for the settings used for calls to importSuggestionDenyListEntries. */ + public OperationCallSettings.Builder< + ImportSuggestionDenyListEntriesRequest, + ImportSuggestionDenyListEntriesResponse, + ImportSuggestionDenyListEntriesMetadata> + importSuggestionDenyListEntriesOperationSettings() { + return getStubSettingsBuilder().importSuggestionDenyListEntriesOperationSettings(); + } + + /** Returns the builder for the settings used for calls to purgeSuggestionDenyListEntries. */ + public UnaryCallSettings.Builder + purgeSuggestionDenyListEntriesSettings() { + return getStubSettingsBuilder().purgeSuggestionDenyListEntriesSettings(); + } + + /** Returns the builder for the settings used for calls to purgeSuggestionDenyListEntries. */ + public OperationCallSettings.Builder< + PurgeSuggestionDenyListEntriesRequest, + PurgeSuggestionDenyListEntriesResponse, + PurgeSuggestionDenyListEntriesMetadata> + purgeSuggestionDenyListEntriesOperationSettings() { + return getStubSettingsBuilder().purgeSuggestionDenyListEntriesOperationSettings(); + } + @Override public CompletionServiceSettings build() throws IOException { return new CompletionServiceSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java index 11233126d769..5e07556fe1fb 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceClient.java @@ -410,6 +410,7 @@ public final ConverseConversationResponse converseConversation(String name, Text * .putAllUserLabels(new HashMap()) * .setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.newBuilder().build()) * .setFilter("filter-1274492040") + * .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) * .build(); * ConverseConversationResponse response = * conversationalSearchServiceClient.converseConversation(request); @@ -454,6 +455,7 @@ public final ConverseConversationResponse converseConversation( * .putAllUserLabels(new HashMap()) * .setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.newBuilder().build()) * .setFilter("filter-1274492040") + * .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) * .build(); * ApiFuture future = * conversationalSearchServiceClient.converseConversationCallable().futureCall(request); @@ -789,7 +791,7 @@ public final UnaryCallable deleteConversationC * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to update. The following * are NOT supported: *
                              - *
                            • [conversation.name][] + *
                            • [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] *
                            *

                            If not set or empty, all supported fields are updated. * @throws com.google.api.gax.rpc.ApiException if the remote call fails diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClient.java index b4322f66c963..02f60571482c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClient.java @@ -169,6 +169,43 @@ *

                          * * + * + *

                          GetDocumentProcessingConfig + *

                          Gets a [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + * + *

                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                          + *
                            + *
                          • getDocumentProcessingConfig(GetDocumentProcessingConfigRequest request) + *

                          + *

                          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                          + *
                            + *
                          • getDocumentProcessingConfig(DocumentProcessingConfigName name) + *

                          • getDocumentProcessingConfig(String name) + *

                          + *

                          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                          + *
                            + *
                          • getDocumentProcessingConfigCallable() + *

                          + * + * + * + *

                          UpdateDocumentProcessingConfig + *

                          Updates the [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig] is a singleon resource of [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. It's empty when [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is created. The first call to this method will set up [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + * + *

                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                          + *
                            + *
                          • updateDocumentProcessingConfig(UpdateDocumentProcessingConfigRequest request) + *

                          + *

                          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                          + *
                            + *
                          • updateDocumentProcessingConfig(DocumentProcessingConfig documentProcessingConfig, FieldMask updateMask) + *

                          + *

                          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                          + *
                            + *
                          • updateDocumentProcessingConfigCallable() + *

                          + * + * * * *

                          See the individual methods for example code. @@ -661,7 +698,8 @@ public final UnaryCallable getDataStoreCallable( * * @param parent Required. The parent branch resource name, such as * `projects/{project}/locations/{location}/collections/{collection_id}`. - *

                          If the caller does not have permission to list [DataStores][]s under this location, + *

                          If the caller does not have permission to list + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s under this location, * regardless of whether or not this data store exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -696,7 +734,8 @@ public final ListDataStoresPagedResponse listDataStores(CollectionName parent) { * * @param parent Required. The parent branch resource name, such as * `projects/{project}/locations/{location}/collections/{collection_id}`. - *

                          If the caller does not have permission to list [DataStores][]s under this location, + *

                          If the caller does not have permission to list + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s under this location, * regardless of whether or not this data store exists, a PERMISSION_DENIED error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1080,6 +1119,268 @@ public final UnaryCallable updateDataStoreCal return stub.updateDataStoreCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + * + *

                          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 (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) {
                          +   *   DocumentProcessingConfigName name =
                          +   *       DocumentProcessingConfigName.ofProjectLocationDataStoreName(
                          +   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]");
                          +   *   DocumentProcessingConfig response = dataStoreServiceClient.getDocumentProcessingConfig(name);
                          +   * }
                          +   * }
                          + * + * @param name Required. Full DocumentProcessingConfig resource name. Format: + * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DocumentProcessingConfig getDocumentProcessingConfig( + DocumentProcessingConfigName name) { + GetDocumentProcessingConfigRequest request = + GetDocumentProcessingConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDocumentProcessingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + * + *

                          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 (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) {
                          +   *   String name =
                          +   *       DocumentProcessingConfigName.ofProjectLocationDataStoreName(
                          +   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
                          +   *           .toString();
                          +   *   DocumentProcessingConfig response = dataStoreServiceClient.getDocumentProcessingConfig(name);
                          +   * }
                          +   * }
                          + * + * @param name Required. Full DocumentProcessingConfig resource name. Format: + * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DocumentProcessingConfig getDocumentProcessingConfig(String name) { + GetDocumentProcessingConfigRequest request = + GetDocumentProcessingConfigRequest.newBuilder().setName(name).build(); + return getDocumentProcessingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + * + *

                          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 (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) {
                          +   *   GetDocumentProcessingConfigRequest request =
                          +   *       GetDocumentProcessingConfigRequest.newBuilder()
                          +   *           .setName(
                          +   *               DocumentProcessingConfigName.ofProjectLocationDataStoreName(
                          +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
                          +   *                   .toString())
                          +   *           .build();
                          +   *   DocumentProcessingConfig response =
                          +   *       dataStoreServiceClient.getDocumentProcessingConfig(request);
                          +   * }
                          +   * }
                          + * + * @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 DocumentProcessingConfig getDocumentProcessingConfig( + GetDocumentProcessingConfigRequest request) { + return getDocumentProcessingConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + * + *

                          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 (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) {
                          +   *   GetDocumentProcessingConfigRequest request =
                          +   *       GetDocumentProcessingConfigRequest.newBuilder()
                          +   *           .setName(
                          +   *               DocumentProcessingConfigName.ofProjectLocationDataStoreName(
                          +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
                          +   *                   .toString())
                          +   *           .build();
                          +   *   ApiFuture future =
                          +   *       dataStoreServiceClient.getDocumentProcessingConfigCallable().futureCall(request);
                          +   *   // Do something.
                          +   *   DocumentProcessingConfig response = future.get();
                          +   * }
                          +   * }
                          + */ + public final UnaryCallable + getDocumentProcessingConfigCallable() { + return stub.getDocumentProcessingConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig] is a + * singleon resource of [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. It's empty + * when [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is created. The first call to + * this method will set up + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + * + *

                          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 (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) {
                          +   *   DocumentProcessingConfig documentProcessingConfig =
                          +   *       DocumentProcessingConfig.newBuilder().build();
                          +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                          +   *   DocumentProcessingConfig response =
                          +   *       dataStoreServiceClient.updateDocumentProcessingConfig(
                          +   *           documentProcessingConfig, updateMask);
                          +   * }
                          +   * }
                          + * + * @param documentProcessingConfig Required. The + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig] + * to update. + *

                          If the caller does not have permission to update the + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig], + * then a PERMISSION_DENIED error is returned. + *

                          If the + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig] + * to update does not exist, a NOT_FOUND error is returned. + * @param updateMask Indicates which fields in the provided + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig] + * to update. The following are the only supported fields: + *

                            + *
                          • [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config] + *
                          + *

                          If not set, all supported fields are updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DocumentProcessingConfig updateDocumentProcessingConfig( + DocumentProcessingConfig documentProcessingConfig, FieldMask updateMask) { + UpdateDocumentProcessingConfigRequest request = + UpdateDocumentProcessingConfigRequest.newBuilder() + .setDocumentProcessingConfig(documentProcessingConfig) + .setUpdateMask(updateMask) + .build(); + return updateDocumentProcessingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig] is a + * singleon resource of [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. It's empty + * when [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is created. The first call to + * this method will set up + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + * + *

                          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 (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) {
                          +   *   UpdateDocumentProcessingConfigRequest request =
                          +   *       UpdateDocumentProcessingConfigRequest.newBuilder()
                          +   *           .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build())
                          +   *           .setUpdateMask(FieldMask.newBuilder().build())
                          +   *           .build();
                          +   *   DocumentProcessingConfig response =
                          +   *       dataStoreServiceClient.updateDocumentProcessingConfig(request);
                          +   * }
                          +   * }
                          + * + * @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 DocumentProcessingConfig updateDocumentProcessingConfig( + UpdateDocumentProcessingConfigRequest request) { + return updateDocumentProcessingConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig] is a + * singleon resource of [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. It's empty + * when [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is created. The first call to + * this method will set up + * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + * + *

                          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 (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) {
                          +   *   UpdateDocumentProcessingConfigRequest request =
                          +   *       UpdateDocumentProcessingConfigRequest.newBuilder()
                          +   *           .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build())
                          +   *           .setUpdateMask(FieldMask.newBuilder().build())
                          +   *           .build();
                          +   *   ApiFuture future =
                          +   *       dataStoreServiceClient.updateDocumentProcessingConfigCallable().futureCall(request);
                          +   *   // Do something.
                          +   *   DocumentProcessingConfig response = future.get();
                          +   * }
                          +   * }
                          + */ + public final UnaryCallable + updateDocumentProcessingConfigCallable() { + return stub.updateDocumentProcessingConfigCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceSettings.java index d23132b23895..eed121e4bb88 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceSettings.java @@ -119,6 +119,19 @@ public UnaryCallSettings updateDataStoreSetti return ((DataStoreServiceStubSettings) getStubSettings()).updateDataStoreSettings(); } + /** Returns the object with the settings used for calls to getDocumentProcessingConfig. */ + public UnaryCallSettings + getDocumentProcessingConfigSettings() { + return ((DataStoreServiceStubSettings) getStubSettings()).getDocumentProcessingConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateDocumentProcessingConfig. */ + public UnaryCallSettings + updateDocumentProcessingConfigSettings() { + return ((DataStoreServiceStubSettings) getStubSettings()) + .updateDocumentProcessingConfigSettings(); + } + public static final DataStoreServiceSettings create(DataStoreServiceStubSettings stub) throws IOException { return new DataStoreServiceSettings.Builder(stub.toBuilder()).build(); @@ -270,6 +283,19 @@ public UnaryCallSettings.Builder updateDataSt return getStubSettingsBuilder().updateDataStoreSettings(); } + /** Returns the builder for the settings used for calls to getDocumentProcessingConfig. */ + public UnaryCallSettings.Builder + getDocumentProcessingConfigSettings() { + return getStubSettingsBuilder().getDocumentProcessingConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateDocumentProcessingConfig. */ + public UnaryCallSettings.Builder< + UpdateDocumentProcessingConfigRequest, DocumentProcessingConfig> + updateDocumentProcessingConfigSettings() { + return getStubSettingsBuilder().updateDocumentProcessingConfigSettings(); + } + @Override public DataStoreServiceSettings build() throws IOException { return new DataStoreServiceSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java index a20778d1396d..7b7d4df58bc9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClient.java @@ -33,6 +33,7 @@ import com.google.common.util.concurrent.MoreExecutors; import com.google.longrunning.Operation; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -137,6 +138,10 @@ *
                            *
                          • updateDocument(UpdateDocumentRequest request) *

                          + *

                          "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                          + *
                            + *
                          • updateDocument(Document document, FieldMask updateMask) + *

                          *

                          Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                          *
                            *
                          • updateDocumentCallable() @@ -816,6 +821,43 @@ public final UnaryCallable createDocumentCallab return stub.createDocumentCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a [Document][google.cloud.discoveryengine.v1alpha.Document]. + * + *

                            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 (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) {
                            +   *   Document document = Document.newBuilder().build();
                            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                            +   *   Document response = documentServiceClient.updateDocument(document, updateMask);
                            +   * }
                            +   * }
                            + * + * @param document Required. The document to update/create. + *

                            If the caller does not have permission to update the + * [Document][google.cloud.discoveryengine.v1alpha.Document], regardless of whether or not it + * exists, a `PERMISSION_DENIED` error is returned. + *

                            If the [Document][google.cloud.discoveryengine.v1alpha.Document] to update does not + * exist and + * [allow_missing][google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest.allow_missing] + * is not set, a `NOT_FOUND` error is returned. + * @param updateMask Indicates which fields in the provided imported 'document' to update. If not + * set, will by default update all fields. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Document updateDocument(Document document, FieldMask updateMask) { + UpdateDocumentRequest request = + UpdateDocumentRequest.newBuilder().setDocument(document).setUpdateMask(updateMask).build(); + return updateDocument(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a [Document][google.cloud.discoveryengine.v1alpha.Document]. @@ -833,6 +875,7 @@ public final UnaryCallable createDocumentCallab * UpdateDocumentRequest.newBuilder() * .setDocument(Document.newBuilder().build()) * .setAllowMissing(true) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * Document response = documentServiceClient.updateDocument(request); * } @@ -862,6 +905,7 @@ public final Document updateDocument(UpdateDocumentRequest request) { * UpdateDocumentRequest.newBuilder() * .setDocument(Document.newBuilder().build()) * .setAllowMissing(true) + * .setUpdateMask(FieldMask.newBuilder().build()) * .build(); * ApiFuture future = * documentServiceClient.updateDocumentCallable().futureCall(request); @@ -1158,6 +1202,7 @@ public final UnaryCallable importDocumentsCal * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setFilter("filter-1274492040") + * .setErrorConfig(PurgeErrorConfig.newBuilder().build()) * .setForce(true) * .build(); * PurgeDocumentsResponse response = documentServiceClient.purgeDocumentsAsync(request).get(); @@ -1206,6 +1251,7 @@ public final OperationFuture pur * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setFilter("filter-1274492040") + * .setErrorConfig(PurgeErrorConfig.newBuilder().build()) * .setForce(true) * .build(); * OperationFuture future = @@ -1255,6 +1301,7 @@ public final OperationFuture pur * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setFilter("filter-1274492040") + * .setErrorConfig(PurgeErrorConfig.newBuilder().build()) * .setForce(true) * .build(); * ApiFuture future = diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceClient.java index 6a8e60eeab11..f50ea3211f32 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceClient.java @@ -169,7 +169,7 @@ * * *

                            PauseEngine - *

                            Pauses the training of an existing engine. Only applicable if [solution_type][] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. + *

                            Pauses the training of an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                            *
                              @@ -207,7 +207,7 @@ * * *

                              TuneEngine - *

                              Tunes an existing engine. Only applicable if [solution_type][] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. + *

                              Tunes an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                              *
                                @@ -1064,7 +1064,8 @@ public final UnaryCallable listEnginesC // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pauses the training of an existing engine. Only applicable if [solution_type][] is + * Pauses the training of an existing engine. Only applicable if + * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

                                Sample code: @@ -1093,7 +1094,8 @@ public final Engine pauseEngine(EngineName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pauses the training of an existing engine. Only applicable if [solution_type][] is + * Pauses the training of an existing engine. Only applicable if + * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

                                Sample code: @@ -1121,7 +1123,8 @@ public final Engine pauseEngine(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pauses the training of an existing engine. Only applicable if [solution_type][] is + * Pauses the training of an existing engine. Only applicable if + * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

                                Sample code: @@ -1151,7 +1154,8 @@ public final Engine pauseEngine(PauseEngineRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pauses the training of an existing engine. Only applicable if [solution_type][] is + * Pauses the training of an existing engine. Only applicable if + * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

                                Sample code: @@ -1300,7 +1304,8 @@ public final UnaryCallable resumeEngineCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Tunes an existing engine. Only applicable if [solution_type][] is + * Tunes an existing engine. Only applicable if + * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

                                Sample code: @@ -1330,7 +1335,8 @@ public final OperationFuture tuneEngineA // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Tunes an existing engine. Only applicable if [solution_type][] is + * Tunes an existing engine. Only applicable if + * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

                                Sample code: @@ -1359,7 +1365,8 @@ public final OperationFuture tuneEngineA // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Tunes an existing engine. Only applicable if [solution_type][] is + * Tunes an existing engine. Only applicable if + * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

                                Sample code: @@ -1390,7 +1397,8 @@ public final OperationFuture tuneEngineA // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Tunes an existing engine. Only applicable if [solution_type][] is + * Tunes an existing engine. Only applicable if + * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

                                Sample code: @@ -1421,7 +1429,8 @@ public final OperationFuture tuneEngineA // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Tunes an existing engine. Only applicable if [solution_type][] is + * Tunes an existing engine. Only applicable if + * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

                                Sample code: diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceClient.java new file mode 100644 index 000000000000..cd2fc5299076 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceClient.java @@ -0,0 +1,337 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.stub.EstimateBillingServiceStub; +import com.google.cloud.discoveryengine.v1alpha.stub.EstimateBillingServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing billing estimations resources. + * + *

                                This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

                                {@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 (EstimateBillingServiceClient estimateBillingServiceClient =
                                + *     EstimateBillingServiceClient.create()) {
                                + *   EstimateDataSizeRequest request =
                                + *       EstimateDataSizeRequest.newBuilder()
                                + *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                + *           .build();
                                + *   EstimateDataSizeResponse response =
                                + *       estimateBillingServiceClient.estimateDataSizeAsync(request).get();
                                + * }
                                + * }
                                + * + *

                                Note: close() needs to be called on the EstimateBillingServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + *
                                Methods
                                MethodDescriptionMethod Variants

                                EstimateDataSize

                                Estimates the data size to be used by a customer.

                                + *

                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                + *
                                  + *
                                • estimateDataSizeAsync(EstimateDataSizeRequest request) + *

                                + *

                                Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                + *
                                  + *
                                • estimateDataSizeOperationCallable() + *

                                • estimateDataSizeCallable() + *

                                + *
                                + * + *

                                See the individual methods for example code. + * + *

                                Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                                This class can be customized by passing in a custom instance of EstimateBillingServiceSettings + * to create(). For example: + * + *

                                To customize credentials: + * + *

                                {@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
                                + * EstimateBillingServiceSettings estimateBillingServiceSettings =
                                + *     EstimateBillingServiceSettings.newBuilder()
                                + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                + *         .build();
                                + * EstimateBillingServiceClient estimateBillingServiceClient =
                                + *     EstimateBillingServiceClient.create(estimateBillingServiceSettings);
                                + * }
                                + * + *

                                To customize the endpoint: + * + *

                                {@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
                                + * EstimateBillingServiceSettings estimateBillingServiceSettings =
                                + *     EstimateBillingServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
                                + * EstimateBillingServiceClient estimateBillingServiceClient =
                                + *     EstimateBillingServiceClient.create(estimateBillingServiceSettings);
                                + * }
                                + * + *

                                To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

                                {@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
                                + * EstimateBillingServiceSettings estimateBillingServiceSettings =
                                + *     EstimateBillingServiceSettings.newHttpJsonBuilder().build();
                                + * EstimateBillingServiceClient estimateBillingServiceClient =
                                + *     EstimateBillingServiceClient.create(estimateBillingServiceSettings);
                                + * }
                                + * + *

                                Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class EstimateBillingServiceClient implements BackgroundResource { + private final EstimateBillingServiceSettings settings; + private final EstimateBillingServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of EstimateBillingServiceClient with default settings. */ + public static final EstimateBillingServiceClient create() throws IOException { + return create(EstimateBillingServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of EstimateBillingServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final EstimateBillingServiceClient create(EstimateBillingServiceSettings settings) + throws IOException { + return new EstimateBillingServiceClient(settings); + } + + /** + * Constructs an instance of EstimateBillingServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(EstimateBillingServiceSettings). + */ + public static final EstimateBillingServiceClient create(EstimateBillingServiceStub stub) { + return new EstimateBillingServiceClient(stub); + } + + /** + * Constructs an instance of EstimateBillingServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected EstimateBillingServiceClient(EstimateBillingServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((EstimateBillingServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected EstimateBillingServiceClient(EstimateBillingServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final EstimateBillingServiceSettings getSettings() { + return settings; + } + + public EstimateBillingServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Estimates the data size to be used by a customer. + * + *

                                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 (EstimateBillingServiceClient estimateBillingServiceClient =
                                +   *     EstimateBillingServiceClient.create()) {
                                +   *   EstimateDataSizeRequest request =
                                +   *       EstimateDataSizeRequest.newBuilder()
                                +   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                +   *           .build();
                                +   *   EstimateDataSizeResponse response =
                                +   *       estimateBillingServiceClient.estimateDataSizeAsync(request).get();
                                +   * }
                                +   * }
                                + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + estimateDataSizeAsync(EstimateDataSizeRequest request) { + return estimateDataSizeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Estimates the data size to be used by a customer. + * + *

                                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 (EstimateBillingServiceClient estimateBillingServiceClient =
                                +   *     EstimateBillingServiceClient.create()) {
                                +   *   EstimateDataSizeRequest request =
                                +   *       EstimateDataSizeRequest.newBuilder()
                                +   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                +   *           .build();
                                +   *   OperationFuture future =
                                +   *       estimateBillingServiceClient.estimateDataSizeOperationCallable().futureCall(request);
                                +   *   // Do something.
                                +   *   EstimateDataSizeResponse response = future.get();
                                +   * }
                                +   * }
                                + */ + public final OperationCallable< + EstimateDataSizeRequest, EstimateDataSizeResponse, EstimateDataSizeMetadata> + estimateDataSizeOperationCallable() { + return stub.estimateDataSizeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Estimates the data size to be used by a customer. + * + *

                                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 (EstimateBillingServiceClient estimateBillingServiceClient =
                                +   *     EstimateBillingServiceClient.create()) {
                                +   *   EstimateDataSizeRequest request =
                                +   *       EstimateDataSizeRequest.newBuilder()
                                +   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                +   *           .build();
                                +   *   ApiFuture future =
                                +   *       estimateBillingServiceClient.estimateDataSizeCallable().futureCall(request);
                                +   *   // Do something.
                                +   *   Operation response = future.get();
                                +   * }
                                +   * }
                                + */ + public final UnaryCallable estimateDataSizeCallable() { + return stub.estimateDataSizeCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceSettings.java new file mode 100644 index 000000000000..edf3b8b63195 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceSettings.java @@ -0,0 +1,224 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.EstimateBillingServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link EstimateBillingServiceClient}. + * + *

                                The default instance has everything set to sensible defaults: + * + *

                                  + *
                                • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
                                • Credentials are acquired automatically through Application Default Credentials. + *
                                • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                + * + *

                                The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                For example, to set the total timeout of estimateDataSize to 30 seconds: + * + *

                                {@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
                                + * EstimateBillingServiceSettings.Builder estimateBillingServiceSettingsBuilder =
                                + *     EstimateBillingServiceSettings.newBuilder();
                                + * estimateBillingServiceSettingsBuilder
                                + *     .estimateDataSizeSettings()
                                + *     .setRetrySettings(
                                + *         estimateBillingServiceSettingsBuilder
                                + *             .estimateDataSizeSettings()
                                + *             .getRetrySettings()
                                + *             .toBuilder()
                                + *             .setTotalTimeout(Duration.ofSeconds(30))
                                + *             .build());
                                + * EstimateBillingServiceSettings estimateBillingServiceSettings =
                                + *     estimateBillingServiceSettingsBuilder.build();
                                + * }
                                + */ +@BetaApi +@Generated("by gapic-generator-java") +public class EstimateBillingServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to estimateDataSize. */ + public UnaryCallSettings estimateDataSizeSettings() { + return ((EstimateBillingServiceStubSettings) getStubSettings()).estimateDataSizeSettings(); + } + + /** Returns the object with the settings used for calls to estimateDataSize. */ + public OperationCallSettings< + EstimateDataSizeRequest, EstimateDataSizeResponse, EstimateDataSizeMetadata> + estimateDataSizeOperationSettings() { + return ((EstimateBillingServiceStubSettings) getStubSettings()) + .estimateDataSizeOperationSettings(); + } + + public static final EstimateBillingServiceSettings create(EstimateBillingServiceStubSettings stub) + throws IOException { + return new EstimateBillingServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return EstimateBillingServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return EstimateBillingServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return EstimateBillingServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return EstimateBillingServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return EstimateBillingServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return EstimateBillingServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return EstimateBillingServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return EstimateBillingServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected EstimateBillingServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for EstimateBillingServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(EstimateBillingServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(EstimateBillingServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(EstimateBillingServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(EstimateBillingServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(EstimateBillingServiceStubSettings.newHttpJsonBuilder()); + } + + public EstimateBillingServiceStubSettings.Builder getStubSettingsBuilder() { + return ((EstimateBillingServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to estimateDataSize. */ + public UnaryCallSettings.Builder + estimateDataSizeSettings() { + return getStubSettingsBuilder().estimateDataSizeSettings(); + } + + /** Returns the builder for the settings used for calls to estimateDataSize. */ + public OperationCallSettings.Builder< + EstimateDataSizeRequest, EstimateDataSizeResponse, EstimateDataSizeMetadata> + estimateDataSizeOperationSettings() { + return getStubSettingsBuilder().estimateDataSizeOperationSettings(); + } + + @Override + public EstimateBillingServiceSettings build() throws IOException { + return new EstimateBillingServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java index 41128cc80c28..cb3eb628722f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClient.java @@ -62,6 +62,7 @@ * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) + * .addAllDataStoreSpecs(new ArrayList()) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -77,6 +78,7 @@ * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) * .build(); * for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { * // doThingsWith(element); @@ -243,6 +245,7 @@ public SearchServiceStub getStub() { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) + * .addAllDataStoreSpecs(new ArrayList()) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -258,6 +261,7 @@ public SearchServiceStub getStub() { * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) * .build(); * for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { * // doThingsWith(element); @@ -300,6 +304,7 @@ public final SearchPagedResponse search(SearchRequest request) { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) + * .addAllDataStoreSpecs(new ArrayList()) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -315,6 +320,7 @@ public final SearchPagedResponse search(SearchRequest request) { * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) * .build(); * ApiFuture future = * searchServiceClient.searchPagedCallable().futureCall(request); @@ -357,6 +363,7 @@ public final UnaryCallable searchPagedCallab * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) + * .addAllDataStoreSpecs(new ArrayList()) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -372,6 +379,7 @@ public final UnaryCallable searchPagedCallab * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) * .build(); * while (true) { * SearchResponse response = searchServiceClient.searchCallable().call(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceClient.java new file mode 100644 index 000000000000..6c73f12d51be --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceClient.java @@ -0,0 +1,812 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.stub.ServingConfigServiceStub; +import com.google.cloud.discoveryengine.v1alpha.stub.ServingConfigServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for operations related to [ServingConfig][]. + * + *

                                This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

                                {@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 (ServingConfigServiceClient servingConfigServiceClient =
                                + *     ServingConfigServiceClient.create()) {
                                + *   ServingConfig servingConfig = ServingConfig.newBuilder().build();
                                + *   FieldMask updateMask = FieldMask.newBuilder().build();
                                + *   ServingConfig response =
                                + *       servingConfigServiceClient.updateServingConfig(servingConfig, updateMask);
                                + * }
                                + * }
                                + * + *

                                Note: close() needs to be called on the ServingConfigServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
                                Methods
                                MethodDescriptionMethod Variants

                                UpdateServingConfig

                                Updates a ServingConfig. + *

                                Returns a NOT_FOUND error if the ServingConfig does not exist.

                                + *

                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                + *
                                  + *
                                • updateServingConfig(UpdateServingConfigRequest request) + *

                                + *

                                "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                + *
                                  + *
                                • updateServingConfig(ServingConfig servingConfig, FieldMask updateMask) + *

                                + *

                                Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                + *
                                  + *
                                • updateServingConfigCallable() + *

                                + *

                                GetServingConfig

                                Gets a ServingConfig. + *

                                Returns a NotFound error if the ServingConfig does not exist.

                                + *

                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                + *
                                  + *
                                • getServingConfig(GetServingConfigRequest request) + *

                                + *

                                "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                + *
                                  + *
                                • getServingConfig(ServingConfigName name) + *

                                • getServingConfig(String name) + *

                                + *

                                Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                + *
                                  + *
                                • getServingConfigCallable() + *

                                + *

                                ListServingConfigs

                                Lists all ServingConfigs linked to this dataStore.

                                + *

                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                + *
                                  + *
                                • listServingConfigs(ListServingConfigsRequest request) + *

                                + *

                                "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                + *
                                  + *
                                • listServingConfigs(DataStoreName parent) + *

                                • listServingConfigs(EngineName parent) + *

                                • listServingConfigs(String parent) + *

                                + *

                                Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                + *
                                  + *
                                • listServingConfigsPagedCallable() + *

                                • listServingConfigsCallable() + *

                                + *
                                + * + *

                                See the individual methods for example code. + * + *

                                Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                                This class can be customized by passing in a custom instance of ServingConfigServiceSettings + * to create(). For example: + * + *

                                To customize credentials: + * + *

                                {@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
                                + * ServingConfigServiceSettings servingConfigServiceSettings =
                                + *     ServingConfigServiceSettings.newBuilder()
                                + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                + *         .build();
                                + * ServingConfigServiceClient servingConfigServiceClient =
                                + *     ServingConfigServiceClient.create(servingConfigServiceSettings);
                                + * }
                                + * + *

                                To customize the endpoint: + * + *

                                {@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
                                + * ServingConfigServiceSettings servingConfigServiceSettings =
                                + *     ServingConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
                                + * ServingConfigServiceClient servingConfigServiceClient =
                                + *     ServingConfigServiceClient.create(servingConfigServiceSettings);
                                + * }
                                + * + *

                                To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

                                {@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
                                + * ServingConfigServiceSettings servingConfigServiceSettings =
                                + *     ServingConfigServiceSettings.newHttpJsonBuilder().build();
                                + * ServingConfigServiceClient servingConfigServiceClient =
                                + *     ServingConfigServiceClient.create(servingConfigServiceSettings);
                                + * }
                                + * + *

                                Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ServingConfigServiceClient implements BackgroundResource { + private final ServingConfigServiceSettings settings; + private final ServingConfigServiceStub stub; + + /** Constructs an instance of ServingConfigServiceClient with default settings. */ + public static final ServingConfigServiceClient create() throws IOException { + return create(ServingConfigServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of ServingConfigServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final ServingConfigServiceClient create(ServingConfigServiceSettings settings) + throws IOException { + return new ServingConfigServiceClient(settings); + } + + /** + * Constructs an instance of ServingConfigServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(ServingConfigServiceSettings). + */ + public static final ServingConfigServiceClient create(ServingConfigServiceStub stub) { + return new ServingConfigServiceClient(stub); + } + + /** + * Constructs an instance of ServingConfigServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected ServingConfigServiceClient(ServingConfigServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((ServingConfigServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected ServingConfigServiceClient(ServingConfigServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final ServingConfigServiceSettings getSettings() { + return settings; + } + + public ServingConfigServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a ServingConfig. + * + *

                                Returns a NOT_FOUND error if the ServingConfig does not exist. + * + *

                                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 (ServingConfigServiceClient servingConfigServiceClient =
                                +   *     ServingConfigServiceClient.create()) {
                                +   *   ServingConfig servingConfig = ServingConfig.newBuilder().build();
                                +   *   FieldMask updateMask = FieldMask.newBuilder().build();
                                +   *   ServingConfig response =
                                +   *       servingConfigServiceClient.updateServingConfig(servingConfig, updateMask);
                                +   * }
                                +   * }
                                + * + * @param servingConfig Required. The ServingConfig to update. + * @param updateMask Indicates which fields in the provided + * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to update. The + * following are NOT supported: + *
                                  + *
                                • [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name] + *
                                + *

                                If not set, all supported fields are updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServingConfig updateServingConfig( + ServingConfig servingConfig, FieldMask updateMask) { + UpdateServingConfigRequest request = + UpdateServingConfigRequest.newBuilder() + .setServingConfig(servingConfig) + .setUpdateMask(updateMask) + .build(); + return updateServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a ServingConfig. + * + *

                                Returns a NOT_FOUND error if the ServingConfig does not exist. + * + *

                                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 (ServingConfigServiceClient servingConfigServiceClient =
                                +   *     ServingConfigServiceClient.create()) {
                                +   *   UpdateServingConfigRequest request =
                                +   *       UpdateServingConfigRequest.newBuilder()
                                +   *           .setServingConfig(ServingConfig.newBuilder().build())
                                +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                +   *           .build();
                                +   *   ServingConfig response = servingConfigServiceClient.updateServingConfig(request);
                                +   * }
                                +   * }
                                + * + * @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 ServingConfig updateServingConfig(UpdateServingConfigRequest request) { + return updateServingConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a ServingConfig. + * + *

                                Returns a NOT_FOUND error if the ServingConfig does not exist. + * + *

                                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 (ServingConfigServiceClient servingConfigServiceClient =
                                +   *     ServingConfigServiceClient.create()) {
                                +   *   UpdateServingConfigRequest request =
                                +   *       UpdateServingConfigRequest.newBuilder()
                                +   *           .setServingConfig(ServingConfig.newBuilder().build())
                                +   *           .setUpdateMask(FieldMask.newBuilder().build())
                                +   *           .build();
                                +   *   ApiFuture future =
                                +   *       servingConfigServiceClient.updateServingConfigCallable().futureCall(request);
                                +   *   // Do something.
                                +   *   ServingConfig response = future.get();
                                +   * }
                                +   * }
                                + */ + public final UnaryCallable + updateServingConfigCallable() { + return stub.updateServingConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ServingConfig. + * + *

                                Returns a NotFound error if the ServingConfig does not exist. + * + *

                                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 (ServingConfigServiceClient servingConfigServiceClient =
                                +   *     ServingConfigServiceClient.create()) {
                                +   *   ServingConfigName name =
                                +   *       ServingConfigName.ofProjectLocationDataStoreServingConfigName(
                                +   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]");
                                +   *   ServingConfig response = servingConfigServiceClient.getServingConfig(name);
                                +   * }
                                +   * }
                                + * + * @param name Required. The resource name of the ServingConfig to get. Format: + * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServingConfig getServingConfig(ServingConfigName name) { + GetServingConfigRequest request = + GetServingConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ServingConfig. + * + *

                                Returns a NotFound error if the ServingConfig does not exist. + * + *

                                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 (ServingConfigServiceClient servingConfigServiceClient =
                                +   *     ServingConfigServiceClient.create()) {
                                +   *   String name =
                                +   *       ServingConfigName.ofProjectLocationDataStoreServingConfigName(
                                +   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
                                +   *           .toString();
                                +   *   ServingConfig response = servingConfigServiceClient.getServingConfig(name);
                                +   * }
                                +   * }
                                + * + * @param name Required. The resource name of the ServingConfig to get. Format: + * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServingConfig getServingConfig(String name) { + GetServingConfigRequest request = GetServingConfigRequest.newBuilder().setName(name).build(); + return getServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ServingConfig. + * + *

                                Returns a NotFound error if the ServingConfig does not exist. + * + *

                                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 (ServingConfigServiceClient servingConfigServiceClient =
                                +   *     ServingConfigServiceClient.create()) {
                                +   *   GetServingConfigRequest request =
                                +   *       GetServingConfigRequest.newBuilder()
                                +   *           .setName(
                                +   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
                                +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
                                +   *                   .toString())
                                +   *           .build();
                                +   *   ServingConfig response = servingConfigServiceClient.getServingConfig(request);
                                +   * }
                                +   * }
                                + * + * @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 ServingConfig getServingConfig(GetServingConfigRequest request) { + return getServingConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a ServingConfig. + * + *

                                Returns a NotFound error if the ServingConfig does not exist. + * + *

                                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 (ServingConfigServiceClient servingConfigServiceClient =
                                +   *     ServingConfigServiceClient.create()) {
                                +   *   GetServingConfigRequest request =
                                +   *       GetServingConfigRequest.newBuilder()
                                +   *           .setName(
                                +   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
                                +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
                                +   *                   .toString())
                                +   *           .build();
                                +   *   ApiFuture future =
                                +   *       servingConfigServiceClient.getServingConfigCallable().futureCall(request);
                                +   *   // Do something.
                                +   *   ServingConfig response = future.get();
                                +   * }
                                +   * }
                                + */ + public final UnaryCallable getServingConfigCallable() { + return stub.getServingConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ServingConfigs linked to this dataStore. + * + *

                                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 (ServingConfigServiceClient servingConfigServiceClient =
                                +   *     ServingConfigServiceClient.create()) {
                                +   *   DataStoreName parent =
                                +   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]");
                                +   *   for (ServingConfig element :
                                +   *       servingConfigServiceClient.listServingConfigs(parent).iterateAll()) {
                                +   *     // doThingsWith(element);
                                +   *   }
                                +   * }
                                +   * }
                                + * + * @param parent Required. Full resource name of the parent resource. Format: + * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServingConfigsPagedResponse listServingConfigs(DataStoreName parent) { + ListServingConfigsRequest request = + ListServingConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listServingConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ServingConfigs linked to this dataStore. + * + *

                                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 (ServingConfigServiceClient servingConfigServiceClient =
                                +   *     ServingConfigServiceClient.create()) {
                                +   *   EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]");
                                +   *   for (ServingConfig element :
                                +   *       servingConfigServiceClient.listServingConfigs(parent).iterateAll()) {
                                +   *     // doThingsWith(element);
                                +   *   }
                                +   * }
                                +   * }
                                + * + * @param parent Required. Full resource name of the parent resource. Format: + * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServingConfigsPagedResponse listServingConfigs(EngineName parent) { + ListServingConfigsRequest request = + ListServingConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listServingConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ServingConfigs linked to this dataStore. + * + *

                                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 (ServingConfigServiceClient servingConfigServiceClient =
                                +   *     ServingConfigServiceClient.create()) {
                                +   *   String parent =
                                +   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]")
                                +   *           .toString();
                                +   *   for (ServingConfig element :
                                +   *       servingConfigServiceClient.listServingConfigs(parent).iterateAll()) {
                                +   *     // doThingsWith(element);
                                +   *   }
                                +   * }
                                +   * }
                                + * + * @param parent Required. Full resource name of the parent resource. Format: + * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServingConfigsPagedResponse listServingConfigs(String parent) { + ListServingConfigsRequest request = + ListServingConfigsRequest.newBuilder().setParent(parent).build(); + return listServingConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ServingConfigs linked to this dataStore. + * + *

                                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 (ServingConfigServiceClient servingConfigServiceClient =
                                +   *     ServingConfigServiceClient.create()) {
                                +   *   ListServingConfigsRequest request =
                                +   *       ListServingConfigsRequest.newBuilder()
                                +   *           .setParent(
                                +   *               DataStoreName.ofProjectLocationDataStoreName(
                                +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
                                +   *                   .toString())
                                +   *           .setPageSize(883849137)
                                +   *           .setPageToken("pageToken873572522")
                                +   *           .build();
                                +   *   for (ServingConfig element :
                                +   *       servingConfigServiceClient.listServingConfigs(request).iterateAll()) {
                                +   *     // doThingsWith(element);
                                +   *   }
                                +   * }
                                +   * }
                                + * + * @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 ListServingConfigsPagedResponse listServingConfigs( + ListServingConfigsRequest request) { + return listServingConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ServingConfigs linked to this dataStore. + * + *

                                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 (ServingConfigServiceClient servingConfigServiceClient =
                                +   *     ServingConfigServiceClient.create()) {
                                +   *   ListServingConfigsRequest request =
                                +   *       ListServingConfigsRequest.newBuilder()
                                +   *           .setParent(
                                +   *               DataStoreName.ofProjectLocationDataStoreName(
                                +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
                                +   *                   .toString())
                                +   *           .setPageSize(883849137)
                                +   *           .setPageToken("pageToken873572522")
                                +   *           .build();
                                +   *   ApiFuture future =
                                +   *       servingConfigServiceClient.listServingConfigsPagedCallable().futureCall(request);
                                +   *   // Do something.
                                +   *   for (ServingConfig element : future.get().iterateAll()) {
                                +   *     // doThingsWith(element);
                                +   *   }
                                +   * }
                                +   * }
                                + */ + public final UnaryCallable + listServingConfigsPagedCallable() { + return stub.listServingConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ServingConfigs linked to this dataStore. + * + *

                                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 (ServingConfigServiceClient servingConfigServiceClient =
                                +   *     ServingConfigServiceClient.create()) {
                                +   *   ListServingConfigsRequest request =
                                +   *       ListServingConfigsRequest.newBuilder()
                                +   *           .setParent(
                                +   *               DataStoreName.ofProjectLocationDataStoreName(
                                +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
                                +   *                   .toString())
                                +   *           .setPageSize(883849137)
                                +   *           .setPageToken("pageToken873572522")
                                +   *           .build();
                                +   *   while (true) {
                                +   *     ListServingConfigsResponse response =
                                +   *         servingConfigServiceClient.listServingConfigsCallable().call(request);
                                +   *     for (ServingConfig element : response.getServingConfigsList()) {
                                +   *       // doThingsWith(element);
                                +   *     }
                                +   *     String nextPageToken = response.getNextPageToken();
                                +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                +   *     } else {
                                +   *       break;
                                +   *     }
                                +   *   }
                                +   * }
                                +   * }
                                + */ + public final UnaryCallable + listServingConfigsCallable() { + return stub.listServingConfigsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListServingConfigsPagedResponse + extends AbstractPagedListResponse< + ListServingConfigsRequest, + ListServingConfigsResponse, + ServingConfig, + ListServingConfigsPage, + ListServingConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListServingConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListServingConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListServingConfigsPagedResponse(ListServingConfigsPage page) { + super(page, ListServingConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListServingConfigsPage + extends AbstractPage< + ListServingConfigsRequest, + ListServingConfigsResponse, + ServingConfig, + ListServingConfigsPage> { + + private ListServingConfigsPage( + PageContext context, + ListServingConfigsResponse response) { + super(context, response); + } + + private static ListServingConfigsPage createEmptyPage() { + return new ListServingConfigsPage(null, null); + } + + @Override + protected ListServingConfigsPage createPage( + PageContext context, + ListServingConfigsResponse response) { + return new ListServingConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListServingConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListServingConfigsRequest, + ListServingConfigsResponse, + ServingConfig, + ListServingConfigsPage, + ListServingConfigsFixedSizeCollection> { + + private ListServingConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListServingConfigsFixedSizeCollection createEmptyCollection() { + return new ListServingConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListServingConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListServingConfigsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceSettings.java new file mode 100644 index 000000000000..c35334d39c7b --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceSettings.java @@ -0,0 +1,236 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient.ListServingConfigsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.stub.ServingConfigServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ServingConfigServiceClient}. + * + *

                                The default instance has everything set to sensible defaults: + * + *

                                  + *
                                • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
                                • Credentials are acquired automatically through Application Default Credentials. + *
                                • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                + * + *

                                The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                For example, to set the total timeout of updateServingConfig to 30 seconds: + * + *

                                {@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
                                + * ServingConfigServiceSettings.Builder servingConfigServiceSettingsBuilder =
                                + *     ServingConfigServiceSettings.newBuilder();
                                + * servingConfigServiceSettingsBuilder
                                + *     .updateServingConfigSettings()
                                + *     .setRetrySettings(
                                + *         servingConfigServiceSettingsBuilder
                                + *             .updateServingConfigSettings()
                                + *             .getRetrySettings()
                                + *             .toBuilder()
                                + *             .setTotalTimeout(Duration.ofSeconds(30))
                                + *             .build());
                                + * ServingConfigServiceSettings servingConfigServiceSettings =
                                + *     servingConfigServiceSettingsBuilder.build();
                                + * }
                                + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ServingConfigServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to updateServingConfig. */ + public UnaryCallSettings + updateServingConfigSettings() { + return ((ServingConfigServiceStubSettings) getStubSettings()).updateServingConfigSettings(); + } + + /** Returns the object with the settings used for calls to getServingConfig. */ + public UnaryCallSettings getServingConfigSettings() { + return ((ServingConfigServiceStubSettings) getStubSettings()).getServingConfigSettings(); + } + + /** Returns the object with the settings used for calls to listServingConfigs. */ + public PagedCallSettings< + ListServingConfigsRequest, ListServingConfigsResponse, ListServingConfigsPagedResponse> + listServingConfigsSettings() { + return ((ServingConfigServiceStubSettings) getStubSettings()).listServingConfigsSettings(); + } + + public static final ServingConfigServiceSettings create(ServingConfigServiceStubSettings stub) + throws IOException { + return new ServingConfigServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return ServingConfigServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return ServingConfigServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return ServingConfigServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return ServingConfigServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return ServingConfigServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ServingConfigServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return ServingConfigServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ServingConfigServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ServingConfigServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for ServingConfigServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(ServingConfigServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(ServingConfigServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(ServingConfigServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(ServingConfigServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(ServingConfigServiceStubSettings.newHttpJsonBuilder()); + } + + public ServingConfigServiceStubSettings.Builder getStubSettingsBuilder() { + return ((ServingConfigServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to updateServingConfig. */ + public UnaryCallSettings.Builder + updateServingConfigSettings() { + return getStubSettingsBuilder().updateServingConfigSettings(); + } + + /** Returns the builder for the settings used for calls to getServingConfig. */ + public UnaryCallSettings.Builder + getServingConfigSettings() { + return getStubSettingsBuilder().getServingConfigSettings(); + } + + /** Returns the builder for the settings used for calls to listServingConfigs. */ + public PagedCallSettings.Builder< + ListServingConfigsRequest, ListServingConfigsResponse, ListServingConfigsPagedResponse> + listServingConfigsSettings() { + return getStubSettingsBuilder().listServingConfigsSettings(); + } + + @Override + public ServingConfigServiceSettings build() throws IOException { + return new ServingConfigServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/gapic_metadata.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/gapic_metadata.json index f7da92d8476c..19a22ebc2133 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/gapic_metadata.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/gapic_metadata.json @@ -5,6 +5,36 @@ "protoPackage": "google.cloud.discoveryengine.v1alpha", "libraryPackage": "com.google.cloud.discoveryengine.v1alpha", "services": { + "AclConfigService": { + "clients": { + "grpc": { + "libraryClient": "AclConfigServiceClient", + "rpcs": { + "GetAclConfig": { + "methods": ["getAclConfig", "getAclConfig", "getAclConfig", "getAclConfigCallable"] + }, + "UpdateAclConfig": { + "methods": ["updateAclConfig", "updateAclConfigCallable"] + } + } + } + } + }, + "ChunkService": { + "clients": { + "grpc": { + "libraryClient": "ChunkServiceClient", + "rpcs": { + "GetChunk": { + "methods": ["getChunk", "getChunk", "getChunk", "getChunkCallable"] + }, + "ListChunks": { + "methods": ["listChunks", "listChunks", "listChunks", "listChunksPagedCallable", "listChunksCallable"] + } + } + } + } + }, "CompletionService": { "clients": { "grpc": { @@ -12,6 +42,12 @@ "rpcs": { "CompleteQuery": { "methods": ["completeQuery", "completeQueryCallable"] + }, + "ImportSuggestionDenyListEntries": { + "methods": ["importSuggestionDenyListEntriesAsync", "importSuggestionDenyListEntriesOperationCallable", "importSuggestionDenyListEntriesCallable"] + }, + "PurgeSuggestionDenyListEntries": { + "methods": ["purgeSuggestionDenyListEntriesAsync", "purgeSuggestionDenyListEntriesOperationCallable", "purgeSuggestionDenyListEntriesCallable"] } } } @@ -58,11 +94,17 @@ "GetDataStore": { "methods": ["getDataStore", "getDataStore", "getDataStore", "getDataStoreCallable"] }, + "GetDocumentProcessingConfig": { + "methods": ["getDocumentProcessingConfig", "getDocumentProcessingConfig", "getDocumentProcessingConfig", "getDocumentProcessingConfigCallable"] + }, "ListDataStores": { "methods": ["listDataStores", "listDataStores", "listDataStores", "listDataStoresPagedCallable", "listDataStoresCallable"] }, "UpdateDataStore": { "methods": ["updateDataStore", "updateDataStore", "updateDataStoreCallable"] + }, + "UpdateDocumentProcessingConfig": { + "methods": ["updateDocumentProcessingConfig", "updateDocumentProcessingConfig", "updateDocumentProcessingConfigCallable"] } } } @@ -92,7 +134,7 @@ "methods": ["purgeDocumentsAsync", "purgeDocumentsOperationCallable", "purgeDocumentsCallable"] }, "UpdateDocument": { - "methods": ["updateDocument", "updateDocumentCallable"] + "methods": ["updateDocument", "updateDocument", "updateDocumentCallable"] } } } @@ -131,6 +173,18 @@ } } }, + "EstimateBillingService": { + "clients": { + "grpc": { + "libraryClient": "EstimateBillingServiceClient", + "rpcs": { + "EstimateDataSize": { + "methods": ["estimateDataSizeAsync", "estimateDataSizeOperationCallable", "estimateDataSizeCallable"] + } + } + } + } + }, "RecommendationService": { "clients": { "grpc": { @@ -191,6 +245,24 @@ } } }, + "ServingConfigService": { + "clients": { + "grpc": { + "libraryClient": "ServingConfigServiceClient", + "rpcs": { + "GetServingConfig": { + "methods": ["getServingConfig", "getServingConfig", "getServingConfig", "getServingConfigCallable"] + }, + "ListServingConfigs": { + "methods": ["listServingConfigs", "listServingConfigs", "listServingConfigs", "listServingConfigs", "listServingConfigsPagedCallable", "listServingConfigsCallable"] + }, + "UpdateServingConfig": { + "methods": ["updateServingConfig", "updateServingConfig", "updateServingConfigCallable"] + } + } + } + } + }, "SiteSearchEngineService": { "clients": { "grpc": { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/package-info.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/package-info.java index 6f874ce415d9..3e71f8b14740 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/package-info.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/package-info.java @@ -19,6 +19,47 @@ * *

                                The interfaces provided are listed below, along with usage samples. * + *

                                ======================= AclConfigServiceClient ======================= + * + *

                                Service Description: Service for managing Acl Configuration. + * + *

                                Sample for AclConfigServiceClient: + * + *

                                {@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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
                                + *   UpdateAclConfigRequest request =
                                + *       UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build();
                                + *   AclConfig response = aclConfigServiceClient.updateAclConfig(request);
                                + * }
                                + * }
                                + * + *

                                ======================= ChunkServiceClient ======================= + * + *

                                Service Description: Service for displaying processed + * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] information of the customer's unstructured + * data. + * + *

                                Sample for ChunkServiceClient: + * + *

                                {@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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) {
                                + *   ChunkName name =
                                + *       ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName(
                                + *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]", "[CHUNK]");
                                + *   Chunk response = chunkServiceClient.getChunk(name);
                                + * }
                                + * }
                                + * *

                                ======================= CompletionServiceClient ======================= * *

                                Service Description: Service for Auto-Completion. @@ -131,6 +172,29 @@ * } * } * + *

                                ======================= EstimateBillingServiceClient ======================= + * + *

                                Service Description: Service for managing billing estimations resources. + * + *

                                Sample for EstimateBillingServiceClient: + * + *

                                {@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 (EstimateBillingServiceClient estimateBillingServiceClient =
                                + *     EstimateBillingServiceClient.create()) {
                                + *   EstimateDataSizeRequest request =
                                + *       EstimateDataSizeRequest.newBuilder()
                                + *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                                + *           .build();
                                + *   EstimateDataSizeResponse response =
                                + *       estimateBillingServiceClient.estimateDataSizeAsync(request).get();
                                + * }
                                + * }
                                + * *

                                ======================= RecommendationServiceClient ======================= * *

                                Service Description: Service for making recommendations. @@ -211,6 +275,7 @@ * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) + * .addAllDataStoreSpecs(new ArrayList()) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -226,6 +291,7 @@ * .setRankingExpression("rankingExpression2110320494") * .setSafeSearch(true) * .putAllUserLabels(new HashMap()) + * .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) * .build(); * for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { * // doThingsWith(element); @@ -260,6 +326,27 @@ * } * } * + *

                                ======================= ServingConfigServiceClient ======================= + * + *

                                Service Description: Service for operations related to [ServingConfig][]. + * + *

                                Sample for ServingConfigServiceClient: + * + *

                                {@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 (ServingConfigServiceClient servingConfigServiceClient =
                                + *     ServingConfigServiceClient.create()) {
                                + *   ServingConfig servingConfig = ServingConfig.newBuilder().build();
                                + *   FieldMask updateMask = FieldMask.newBuilder().build();
                                + *   ServingConfig response =
                                + *       servingConfigServiceClient.updateServingConfig(servingConfig, updateMask);
                                + * }
                                + * }
                                + * *

                                ======================= SiteSearchEngineServiceClient ======================= * *

                                Service Description: Service for managing site search related resources. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/AclConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/AclConfigServiceStub.java new file mode 100644 index 000000000000..62682ee01fe5 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/AclConfigServiceStub.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.AclConfig; +import com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest; +import com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AclConfigService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class AclConfigServiceStub implements BackgroundResource { + + public UnaryCallable updateAclConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateAclConfigCallable()"); + } + + public UnaryCallable getAclConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getAclConfigCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/AclConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/AclConfigServiceStubSettings.java new file mode 100644 index 000000000000..e11d746025a4 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/AclConfigServiceStubSettings.java @@ -0,0 +1,359 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.AclConfig; +import com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest; +import com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AclConfigServiceStub}. + * + *

                                The default instance has everything set to sensible defaults: + * + *

                                  + *
                                • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
                                • Credentials are acquired automatically through Application Default Credentials. + *
                                • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                + * + *

                                The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                For example, to set the total timeout of updateAclConfig to 30 seconds: + * + *

                                {@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
                                + * AclConfigServiceStubSettings.Builder aclConfigServiceSettingsBuilder =
                                + *     AclConfigServiceStubSettings.newBuilder();
                                + * aclConfigServiceSettingsBuilder
                                + *     .updateAclConfigSettings()
                                + *     .setRetrySettings(
                                + *         aclConfigServiceSettingsBuilder
                                + *             .updateAclConfigSettings()
                                + *             .getRetrySettings()
                                + *             .toBuilder()
                                + *             .setTotalTimeout(Duration.ofSeconds(30))
                                + *             .build());
                                + * AclConfigServiceStubSettings aclConfigServiceSettings = aclConfigServiceSettingsBuilder.build();
                                + * }
                                + */ +@BetaApi +@Generated("by gapic-generator-java") +public class AclConfigServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings updateAclConfigSettings; + private final UnaryCallSettings getAclConfigSettings; + + /** Returns the object with the settings used for calls to updateAclConfig. */ + public UnaryCallSettings updateAclConfigSettings() { + return updateAclConfigSettings; + } + + /** Returns the object with the settings used for calls to getAclConfig. */ + public UnaryCallSettings getAclConfigSettings() { + return getAclConfigSettings; + } + + public AclConfigServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAclConfigServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAclConfigServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AclConfigServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AclConfigServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AclConfigServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AclConfigServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + updateAclConfigSettings = settingsBuilder.updateAclConfigSettings().build(); + getAclConfigSettings = settingsBuilder.getAclConfigSettings().build(); + } + + /** Builder for AclConfigServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + updateAclConfigSettings; + private final UnaryCallSettings.Builder getAclConfigSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + updateAclConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getAclConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + updateAclConfigSettings, getAclConfigSettings); + initDefaults(this); + } + + protected Builder(AclConfigServiceStubSettings settings) { + super(settings); + + updateAclConfigSettings = settings.updateAclConfigSettings.toBuilder(); + getAclConfigSettings = settings.getAclConfigSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + updateAclConfigSettings, getAclConfigSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .updateAclConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getAclConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to updateAclConfig. */ + public UnaryCallSettings.Builder updateAclConfigSettings() { + return updateAclConfigSettings; + } + + /** Returns the builder for the settings used for calls to getAclConfig. */ + public UnaryCallSettings.Builder getAclConfigSettings() { + return getAclConfigSettings; + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + @Override + public AclConfigServiceStubSettings build() throws IOException { + return new AclConfigServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ChunkServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ChunkServiceStub.java new file mode 100644 index 000000000000..7d2ec215f4f0 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ChunkServiceStub.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient.ListChunksPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.Chunk; +import com.google.cloud.discoveryengine.v1alpha.GetChunkRequest; +import com.google.cloud.discoveryengine.v1alpha.ListChunksRequest; +import com.google.cloud.discoveryengine.v1alpha.ListChunksResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ChunkService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class ChunkServiceStub implements BackgroundResource { + + public UnaryCallable getChunkCallable() { + throw new UnsupportedOperationException("Not implemented: getChunkCallable()"); + } + + public UnaryCallable listChunksPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listChunksPagedCallable()"); + } + + public UnaryCallable listChunksCallable() { + throw new UnsupportedOperationException("Not implemented: listChunksCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ChunkServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ChunkServiceStubSettings.java new file mode 100644 index 000000000000..f89aa285cf81 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ChunkServiceStubSettings.java @@ -0,0 +1,424 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient.ListChunksPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.Chunk; +import com.google.cloud.discoveryengine.v1alpha.GetChunkRequest; +import com.google.cloud.discoveryengine.v1alpha.ListChunksRequest; +import com.google.cloud.discoveryengine.v1alpha.ListChunksResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ChunkServiceStub}. + * + *

                                The default instance has everything set to sensible defaults: + * + *

                                  + *
                                • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
                                • Credentials are acquired automatically through Application Default Credentials. + *
                                • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                + * + *

                                The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                For example, to set the total timeout of getChunk to 30 seconds: + * + *

                                {@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
                                + * ChunkServiceStubSettings.Builder chunkServiceSettingsBuilder =
                                + *     ChunkServiceStubSettings.newBuilder();
                                + * chunkServiceSettingsBuilder
                                + *     .getChunkSettings()
                                + *     .setRetrySettings(
                                + *         chunkServiceSettingsBuilder
                                + *             .getChunkSettings()
                                + *             .getRetrySettings()
                                + *             .toBuilder()
                                + *             .setTotalTimeout(Duration.ofSeconds(30))
                                + *             .build());
                                + * ChunkServiceStubSettings chunkServiceSettings = chunkServiceSettingsBuilder.build();
                                + * }
                                + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ChunkServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings getChunkSettings; + private final PagedCallSettings + listChunksSettings; + + private static final PagedListDescriptor + LIST_CHUNKS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListChunksRequest injectToken(ListChunksRequest payload, String token) { + return ListChunksRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListChunksRequest injectPageSize(ListChunksRequest payload, int pageSize) { + return ListChunksRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListChunksRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListChunksResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListChunksResponse payload) { + return payload.getChunksList() == null + ? ImmutableList.of() + : payload.getChunksList(); + } + }; + + private static final PagedListResponseFactory< + ListChunksRequest, ListChunksResponse, ListChunksPagedResponse> + LIST_CHUNKS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListChunksRequest, ListChunksResponse, ListChunksPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListChunksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_CHUNKS_PAGE_STR_DESC, request, context); + return ListChunksPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getChunk. */ + public UnaryCallSettings getChunkSettings() { + return getChunkSettings; + } + + /** Returns the object with the settings used for calls to listChunks. */ + public PagedCallSettings + listChunksSettings() { + return listChunksSettings; + } + + public ChunkServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcChunkServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonChunkServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ChunkServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ChunkServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ChunkServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ChunkServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getChunkSettings = settingsBuilder.getChunkSettings().build(); + listChunksSettings = settingsBuilder.listChunksSettings().build(); + } + + /** Builder for ChunkServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getChunkSettings; + private final PagedCallSettings.Builder< + ListChunksRequest, ListChunksResponse, ListChunksPagedResponse> + listChunksSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getChunkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listChunksSettings = PagedCallSettings.newBuilder(LIST_CHUNKS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getChunkSettings, listChunksSettings); + initDefaults(this); + } + + protected Builder(ChunkServiceStubSettings settings) { + super(settings); + + getChunkSettings = settings.getChunkSettings.toBuilder(); + listChunksSettings = settings.listChunksSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(getChunkSettings, listChunksSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getChunkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listChunksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getChunk. */ + public UnaryCallSettings.Builder getChunkSettings() { + return getChunkSettings; + } + + /** Returns the builder for the settings used for calls to listChunks. */ + public PagedCallSettings.Builder + listChunksSettings() { + return listChunksSettings; + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + @Override + public ChunkServiceStubSettings build() throws IOException { + return new ChunkServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStub.java index a0474a6f548c..5f132f526f91 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStub.java @@ -18,9 +18,18 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest; import com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -33,10 +42,48 @@ @Generated("by gapic-generator-java") public abstract class CompletionServiceStub implements BackgroundResource { + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + public UnaryCallable completeQueryCallable() { throw new UnsupportedOperationException("Not implemented: completeQueryCallable()"); } + public OperationCallable< + ImportSuggestionDenyListEntriesRequest, + ImportSuggestionDenyListEntriesResponse, + ImportSuggestionDenyListEntriesMetadata> + importSuggestionDenyListEntriesOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: importSuggestionDenyListEntriesOperationCallable()"); + } + + public UnaryCallable + importSuggestionDenyListEntriesCallable() { + throw new UnsupportedOperationException( + "Not implemented: importSuggestionDenyListEntriesCallable()"); + } + + public OperationCallable< + PurgeSuggestionDenyListEntriesRequest, + PurgeSuggestionDenyListEntriesResponse, + PurgeSuggestionDenyListEntriesMetadata> + purgeSuggestionDenyListEntriesOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: purgeSuggestionDenyListEntriesOperationCallable()"); + } + + public UnaryCallable + purgeSuggestionDenyListEntriesCallable() { + throw new UnsupportedOperationException( + "Not implemented: purgeSuggestionDenyListEntriesCallable()"); + } + @Override public abstract void close(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java index bf04b3febe0f..733afa9bd01a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/CompletionServiceStubSettings.java @@ -24,22 +24,33 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; import com.google.api.gax.httpjson.GaxHttpJsonProperties; import com.google.api.gax.httpjson.HttpJsonTransportChannel; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest; import com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.longrunning.Operation; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -93,12 +104,56 @@ public class CompletionServiceStubSettings extends StubSettings completeQuerySettings; + private final UnaryCallSettings + importSuggestionDenyListEntriesSettings; + private final OperationCallSettings< + ImportSuggestionDenyListEntriesRequest, + ImportSuggestionDenyListEntriesResponse, + ImportSuggestionDenyListEntriesMetadata> + importSuggestionDenyListEntriesOperationSettings; + private final UnaryCallSettings + purgeSuggestionDenyListEntriesSettings; + private final OperationCallSettings< + PurgeSuggestionDenyListEntriesRequest, + PurgeSuggestionDenyListEntriesResponse, + PurgeSuggestionDenyListEntriesMetadata> + purgeSuggestionDenyListEntriesOperationSettings; /** Returns the object with the settings used for calls to completeQuery. */ public UnaryCallSettings completeQuerySettings() { return completeQuerySettings; } + /** Returns the object with the settings used for calls to importSuggestionDenyListEntries. */ + public UnaryCallSettings + importSuggestionDenyListEntriesSettings() { + return importSuggestionDenyListEntriesSettings; + } + + /** Returns the object with the settings used for calls to importSuggestionDenyListEntries. */ + public OperationCallSettings< + ImportSuggestionDenyListEntriesRequest, + ImportSuggestionDenyListEntriesResponse, + ImportSuggestionDenyListEntriesMetadata> + importSuggestionDenyListEntriesOperationSettings() { + return importSuggestionDenyListEntriesOperationSettings; + } + + /** Returns the object with the settings used for calls to purgeSuggestionDenyListEntries. */ + public UnaryCallSettings + purgeSuggestionDenyListEntriesSettings() { + return purgeSuggestionDenyListEntriesSettings; + } + + /** Returns the object with the settings used for calls to purgeSuggestionDenyListEntries. */ + public OperationCallSettings< + PurgeSuggestionDenyListEntriesRequest, + PurgeSuggestionDenyListEntriesResponse, + PurgeSuggestionDenyListEntriesMetadata> + purgeSuggestionDenyListEntriesOperationSettings() { + return purgeSuggestionDenyListEntriesOperationSettings; + } + public CompletionServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -219,6 +274,14 @@ protected CompletionServiceStubSettings(Builder settingsBuilder) throws IOExcept super(settingsBuilder); completeQuerySettings = settingsBuilder.completeQuerySettings().build(); + importSuggestionDenyListEntriesSettings = + settingsBuilder.importSuggestionDenyListEntriesSettings().build(); + importSuggestionDenyListEntriesOperationSettings = + settingsBuilder.importSuggestionDenyListEntriesOperationSettings().build(); + purgeSuggestionDenyListEntriesSettings = + settingsBuilder.purgeSuggestionDenyListEntriesSettings().build(); + purgeSuggestionDenyListEntriesOperationSettings = + settingsBuilder.purgeSuggestionDenyListEntriesOperationSettings().build(); } /** Builder for CompletionServiceStubSettings. */ @@ -226,6 +289,20 @@ public static class Builder extends StubSettings.Builder> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder completeQuerySettings; + private final UnaryCallSettings.Builder + importSuggestionDenyListEntriesSettings; + private final OperationCallSettings.Builder< + ImportSuggestionDenyListEntriesRequest, + ImportSuggestionDenyListEntriesResponse, + ImportSuggestionDenyListEntriesMetadata> + importSuggestionDenyListEntriesOperationSettings; + private final UnaryCallSettings.Builder + purgeSuggestionDenyListEntriesSettings; + private final OperationCallSettings.Builder< + PurgeSuggestionDenyListEntriesRequest, + PurgeSuggestionDenyListEntriesResponse, + PurgeSuggestionDenyListEntriesMetadata> + purgeSuggestionDenyListEntriesOperationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -265,9 +342,16 @@ protected Builder(ClientContext clientContext) { super(clientContext); completeQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importSuggestionDenyListEntriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importSuggestionDenyListEntriesOperationSettings = OperationCallSettings.newBuilder(); + purgeSuggestionDenyListEntriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + purgeSuggestionDenyListEntriesOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = - ImmutableList.>of(completeQuerySettings); + ImmutableList.>of( + completeQuerySettings, + importSuggestionDenyListEntriesSettings, + purgeSuggestionDenyListEntriesSettings); initDefaults(this); } @@ -275,9 +359,20 @@ protected Builder(CompletionServiceStubSettings settings) { super(settings); completeQuerySettings = settings.completeQuerySettings.toBuilder(); + importSuggestionDenyListEntriesSettings = + settings.importSuggestionDenyListEntriesSettings.toBuilder(); + importSuggestionDenyListEntriesOperationSettings = + settings.importSuggestionDenyListEntriesOperationSettings.toBuilder(); + purgeSuggestionDenyListEntriesSettings = + settings.purgeSuggestionDenyListEntriesSettings.toBuilder(); + purgeSuggestionDenyListEntriesOperationSettings = + settings.purgeSuggestionDenyListEntriesOperationSettings.toBuilder(); unaryMethodSettingsBuilders = - ImmutableList.>of(completeQuerySettings); + ImmutableList.>of( + completeQuerySettings, + importSuggestionDenyListEntriesSettings, + purgeSuggestionDenyListEntriesSettings); } private static Builder createDefault() { @@ -310,6 +405,70 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .importSuggestionDenyListEntriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .purgeSuggestionDenyListEntriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .importSuggestionDenyListEntriesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + ImportSuggestionDenyListEntriesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + ImportSuggestionDenyListEntriesMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .purgeSuggestionDenyListEntriesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + PurgeSuggestionDenyListEntriesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + PurgeSuggestionDenyListEntriesMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -334,6 +493,36 @@ public Builder applyToAllUnaryMethods( return completeQuerySettings; } + /** Returns the builder for the settings used for calls to importSuggestionDenyListEntries. */ + public UnaryCallSettings.Builder + importSuggestionDenyListEntriesSettings() { + return importSuggestionDenyListEntriesSettings; + } + + /** Returns the builder for the settings used for calls to importSuggestionDenyListEntries. */ + public OperationCallSettings.Builder< + ImportSuggestionDenyListEntriesRequest, + ImportSuggestionDenyListEntriesResponse, + ImportSuggestionDenyListEntriesMetadata> + importSuggestionDenyListEntriesOperationSettings() { + return importSuggestionDenyListEntriesOperationSettings; + } + + /** Returns the builder for the settings used for calls to purgeSuggestionDenyListEntries. */ + public UnaryCallSettings.Builder + purgeSuggestionDenyListEntriesSettings() { + return purgeSuggestionDenyListEntriesSettings; + } + + /** Returns the builder for the settings used for calls to purgeSuggestionDenyListEntries. */ + public OperationCallSettings.Builder< + PurgeSuggestionDenyListEntriesRequest, + PurgeSuggestionDenyListEntriesResponse, + PurgeSuggestionDenyListEntriesMetadata> + purgeSuggestionDenyListEntriesOperationSettings() { + return purgeSuggestionDenyListEntriesOperationSettings; + } + /** Returns the endpoint set by the user or the the service's default endpoint. */ @Override public String getEndpoint() { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStub.java index 429312636278..7d60a8d32330 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStub.java @@ -27,10 +27,13 @@ import com.google.cloud.discoveryengine.v1alpha.DataStore; import com.google.cloud.discoveryengine.v1alpha.DeleteDataStoreMetadata; import com.google.cloud.discoveryengine.v1alpha.DeleteDataStoreRequest; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig; import com.google.cloud.discoveryengine.v1alpha.GetDataStoreRequest; +import com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest; import com.google.cloud.discoveryengine.v1alpha.ListDataStoresRequest; import com.google.cloud.discoveryengine.v1alpha.ListDataStoresResponse; import com.google.cloud.discoveryengine.v1alpha.UpdateDataStoreRequest; +import com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -89,6 +92,18 @@ public UnaryCallable updateDataStoreCallable( throw new UnsupportedOperationException("Not implemented: updateDataStoreCallable()"); } + public UnaryCallable + getDocumentProcessingConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: getDocumentProcessingConfigCallable()"); + } + + public UnaryCallable + updateDocumentProcessingConfigCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateDocumentProcessingConfigCallable()"); + } + @Override public abstract void close(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java index 49ae3cc5cc1f..a8deb1f709dd 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/DataStoreServiceStubSettings.java @@ -52,10 +52,13 @@ import com.google.cloud.discoveryengine.v1alpha.DataStore; import com.google.cloud.discoveryengine.v1alpha.DeleteDataStoreMetadata; import com.google.cloud.discoveryengine.v1alpha.DeleteDataStoreRequest; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig; import com.google.cloud.discoveryengine.v1alpha.GetDataStoreRequest; +import com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest; import com.google.cloud.discoveryengine.v1alpha.ListDataStoresRequest; import com.google.cloud.discoveryengine.v1alpha.ListDataStoresResponse; import com.google.cloud.discoveryengine.v1alpha.UpdateDataStoreRequest; +import com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -123,6 +126,10 @@ public class DataStoreServiceStubSettings extends StubSettings deleteDataStoreOperationSettings; private final UnaryCallSettings updateDataStoreSettings; + private final UnaryCallSettings + getDocumentProcessingConfigSettings; + private final UnaryCallSettings + updateDocumentProcessingConfigSettings; private static final PagedListDescriptor LIST_DATA_STORES_PAGE_STR_DESC = @@ -217,6 +224,18 @@ public UnaryCallSettings updateDataStoreSetti return updateDataStoreSettings; } + /** Returns the object with the settings used for calls to getDocumentProcessingConfig. */ + public UnaryCallSettings + getDocumentProcessingConfigSettings() { + return getDocumentProcessingConfigSettings; + } + + /** Returns the object with the settings used for calls to updateDocumentProcessingConfig. */ + public UnaryCallSettings + updateDocumentProcessingConfigSettings() { + return updateDocumentProcessingConfigSettings; + } + public DataStoreServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -343,6 +362,10 @@ protected DataStoreServiceStubSettings(Builder settingsBuilder) throws IOExcepti deleteDataStoreSettings = settingsBuilder.deleteDataStoreSettings().build(); deleteDataStoreOperationSettings = settingsBuilder.deleteDataStoreOperationSettings().build(); updateDataStoreSettings = settingsBuilder.updateDataStoreSettings().build(); + getDocumentProcessingConfigSettings = + settingsBuilder.getDocumentProcessingConfigSettings().build(); + updateDocumentProcessingConfigSettings = + settingsBuilder.updateDocumentProcessingConfigSettings().build(); } /** Builder for DataStoreServiceStubSettings. */ @@ -364,6 +387,12 @@ public static class Builder extends StubSettings.Builder updateDataStoreSettings; + private final UnaryCallSettings.Builder< + GetDocumentProcessingConfigRequest, DocumentProcessingConfig> + getDocumentProcessingConfigSettings; + private final UnaryCallSettings.Builder< + UpdateDocumentProcessingConfigRequest, DocumentProcessingConfig> + updateDocumentProcessingConfigSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -398,6 +427,8 @@ protected Builder(ClientContext clientContext) { deleteDataStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteDataStoreOperationSettings = OperationCallSettings.newBuilder(); updateDataStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getDocumentProcessingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDocumentProcessingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -405,7 +436,9 @@ protected Builder(ClientContext clientContext) { getDataStoreSettings, listDataStoresSettings, deleteDataStoreSettings, - updateDataStoreSettings); + updateDataStoreSettings, + getDocumentProcessingConfigSettings, + updateDocumentProcessingConfigSettings); initDefaults(this); } @@ -419,6 +452,10 @@ protected Builder(DataStoreServiceStubSettings settings) { deleteDataStoreSettings = settings.deleteDataStoreSettings.toBuilder(); deleteDataStoreOperationSettings = settings.deleteDataStoreOperationSettings.toBuilder(); updateDataStoreSettings = settings.updateDataStoreSettings.toBuilder(); + getDocumentProcessingConfigSettings = + settings.getDocumentProcessingConfigSettings.toBuilder(); + updateDocumentProcessingConfigSettings = + settings.updateDocumentProcessingConfigSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -426,7 +463,9 @@ protected Builder(DataStoreServiceStubSettings settings) { getDataStoreSettings, listDataStoresSettings, deleteDataStoreSettings, - updateDataStoreSettings); + updateDataStoreSettings, + getDocumentProcessingConfigSettings, + updateDocumentProcessingConfigSettings); } private static Builder createDefault() { @@ -479,6 +518,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .getDocumentProcessingConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateDocumentProcessingConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createDataStoreOperationSettings() .setInitialCallSettings( @@ -584,6 +633,19 @@ public UnaryCallSettings.Builder updateDataSt return updateDataStoreSettings; } + /** Returns the builder for the settings used for calls to getDocumentProcessingConfig. */ + public UnaryCallSettings.Builder + getDocumentProcessingConfigSettings() { + return getDocumentProcessingConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateDocumentProcessingConfig. */ + public UnaryCallSettings.Builder< + UpdateDocumentProcessingConfigRequest, DocumentProcessingConfig> + updateDocumentProcessingConfigSettings() { + return updateDocumentProcessingConfigSettings; + } + /** Returns the endpoint set by the user or the the service's default endpoint. */ @Override public String getEndpoint() { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStub.java new file mode 100644 index 000000000000..ce26121f122b --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStub.java @@ -0,0 +1,60 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the EstimateBillingService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class EstimateBillingServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable< + EstimateDataSizeRequest, EstimateDataSizeResponse, EstimateDataSizeMetadata> + estimateDataSizeOperationCallable() { + throw new UnsupportedOperationException("Not implemented: estimateDataSizeOperationCallable()"); + } + + public UnaryCallable estimateDataSizeCallable() { + throw new UnsupportedOperationException("Not implemented: estimateDataSizeCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStubSettings.java new file mode 100644 index 000000000000..6200e674cad8 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/EstimateBillingServiceStubSettings.java @@ -0,0 +1,394 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link EstimateBillingServiceStub}. + * + *

                                The default instance has everything set to sensible defaults: + * + *

                                  + *
                                • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
                                • Credentials are acquired automatically through Application Default Credentials. + *
                                • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                + * + *

                                The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                For example, to set the total timeout of estimateDataSize to 30 seconds: + * + *

                                {@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
                                + * EstimateBillingServiceStubSettings.Builder estimateBillingServiceSettingsBuilder =
                                + *     EstimateBillingServiceStubSettings.newBuilder();
                                + * estimateBillingServiceSettingsBuilder
                                + *     .estimateDataSizeSettings()
                                + *     .setRetrySettings(
                                + *         estimateBillingServiceSettingsBuilder
                                + *             .estimateDataSizeSettings()
                                + *             .getRetrySettings()
                                + *             .toBuilder()
                                + *             .setTotalTimeout(Duration.ofSeconds(30))
                                + *             .build());
                                + * EstimateBillingServiceStubSettings estimateBillingServiceSettings =
                                + *     estimateBillingServiceSettingsBuilder.build();
                                + * }
                                + */ +@BetaApi +@Generated("by gapic-generator-java") +public class EstimateBillingServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings estimateDataSizeSettings; + private final OperationCallSettings< + EstimateDataSizeRequest, EstimateDataSizeResponse, EstimateDataSizeMetadata> + estimateDataSizeOperationSettings; + + /** Returns the object with the settings used for calls to estimateDataSize. */ + public UnaryCallSettings estimateDataSizeSettings() { + return estimateDataSizeSettings; + } + + /** Returns the object with the settings used for calls to estimateDataSize. */ + public OperationCallSettings< + EstimateDataSizeRequest, EstimateDataSizeResponse, EstimateDataSizeMetadata> + estimateDataSizeOperationSettings() { + return estimateDataSizeOperationSettings; + } + + public EstimateBillingServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcEstimateBillingServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonEstimateBillingServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(EstimateBillingServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(EstimateBillingServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return EstimateBillingServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected EstimateBillingServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + estimateDataSizeSettings = settingsBuilder.estimateDataSizeSettings().build(); + estimateDataSizeOperationSettings = settingsBuilder.estimateDataSizeOperationSettings().build(); + } + + /** Builder for EstimateBillingServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + estimateDataSizeSettings; + private final OperationCallSettings.Builder< + EstimateDataSizeRequest, EstimateDataSizeResponse, EstimateDataSizeMetadata> + estimateDataSizeOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + estimateDataSizeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + estimateDataSizeOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(estimateDataSizeSettings); + initDefaults(this); + } + + protected Builder(EstimateBillingServiceStubSettings settings) { + super(settings); + + estimateDataSizeSettings = settings.estimateDataSizeSettings.toBuilder(); + estimateDataSizeOperationSettings = settings.estimateDataSizeOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(estimateDataSizeSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .estimateDataSizeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .estimateDataSizeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(EstimateDataSizeResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(EstimateDataSizeMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to estimateDataSize. */ + public UnaryCallSettings.Builder + estimateDataSizeSettings() { + return estimateDataSizeSettings; + } + + /** Returns the builder for the settings used for calls to estimateDataSize. */ + public OperationCallSettings.Builder< + EstimateDataSizeRequest, EstimateDataSizeResponse, EstimateDataSizeMetadata> + estimateDataSizeOperationSettings() { + return estimateDataSizeOperationSettings; + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + @Override + public EstimateBillingServiceStubSettings build() throws IOException { + return new EstimateBillingServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcAclConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcAclConfigServiceCallableFactory.java new file mode 100644 index 000000000000..3cc8444eb8b1 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcAclConfigServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the AclConfigService service API. + * + *

                                This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAclConfigServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcAclConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcAclConfigServiceStub.java new file mode 100644 index 000000000000..15092a9959d5 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcAclConfigServiceStub.java @@ -0,0 +1,195 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.AclConfig; +import com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest; +import com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AclConfigService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAclConfigServiceStub extends AclConfigServiceStub { + private static final MethodDescriptor + updateAclConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.AclConfigService/UpdateAclConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAclConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getAclConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.AclConfigService/GetAclConfig") + .setRequestMarshaller(ProtoUtils.marshaller(GetAclConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclConfig.getDefaultInstance())) + .build(); + + private final UnaryCallable updateAclConfigCallable; + private final UnaryCallable getAclConfigCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAclConfigServiceStub create(AclConfigServiceStubSettings settings) + throws IOException { + return new GrpcAclConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAclConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcAclConfigServiceStub( + AclConfigServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAclConfigServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAclConfigServiceStub( + AclConfigServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAclConfigServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAclConfigServiceStub( + AclConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAclConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcAclConfigServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAclConfigServiceStub( + AclConfigServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings updateAclConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAclConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("acl_config.name", String.valueOf(request.getAclConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getAclConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAclConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.updateAclConfigCallable = + callableFactory.createUnaryCallable( + updateAclConfigTransportSettings, settings.updateAclConfigSettings(), clientContext); + this.getAclConfigCallable = + callableFactory.createUnaryCallable( + getAclConfigTransportSettings, settings.getAclConfigSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable updateAclConfigCallable() { + return updateAclConfigCallable; + } + + @Override + public UnaryCallable getAclConfigCallable() { + return getAclConfigCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcChunkServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcChunkServiceCallableFactory.java new file mode 100644 index 000000000000..567949cdb341 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcChunkServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the ChunkService service API. + * + *

                                This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcChunkServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcChunkServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcChunkServiceStub.java new file mode 100644 index 000000000000..8f8b433623ba --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcChunkServiceStub.java @@ -0,0 +1,201 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient.ListChunksPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.Chunk; +import com.google.cloud.discoveryengine.v1alpha.GetChunkRequest; +import com.google.cloud.discoveryengine.v1alpha.ListChunksRequest; +import com.google.cloud.discoveryengine.v1alpha.ListChunksResponse; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the ChunkService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcChunkServiceStub extends ChunkServiceStub { + private static final MethodDescriptor getChunkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1alpha.ChunkService/GetChunk") + .setRequestMarshaller(ProtoUtils.marshaller(GetChunkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Chunk.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listChunksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1alpha.ChunkService/ListChunks") + .setRequestMarshaller(ProtoUtils.marshaller(ListChunksRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListChunksResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable getChunkCallable; + private final UnaryCallable listChunksCallable; + private final UnaryCallable listChunksPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcChunkServiceStub create(ChunkServiceStubSettings settings) + throws IOException { + return new GrpcChunkServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcChunkServiceStub create(ClientContext clientContext) throws IOException { + return new GrpcChunkServiceStub(ChunkServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcChunkServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcChunkServiceStub( + ChunkServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcChunkServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcChunkServiceStub(ChunkServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcChunkServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcChunkServiceStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcChunkServiceStub( + ChunkServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getChunkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getChunkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listChunksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listChunksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getChunkCallable = + callableFactory.createUnaryCallable( + getChunkTransportSettings, settings.getChunkSettings(), clientContext); + this.listChunksCallable = + callableFactory.createUnaryCallable( + listChunksTransportSettings, settings.listChunksSettings(), clientContext); + this.listChunksPagedCallable = + callableFactory.createPagedCallable( + listChunksTransportSettings, settings.listChunksSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getChunkCallable() { + return getChunkCallable; + } + + @Override + public UnaryCallable listChunksCallable() { + return listChunksCallable; + } + + @Override + public UnaryCallable listChunksPagedCallable() { + return listChunksPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcCompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcCompletionServiceStub.java index c68b5173d0ca..bdbdca28f259 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcCompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcCompletionServiceStub.java @@ -22,10 +22,18 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +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.discoveryengine.v1alpha.CompleteQueryRequest; import com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse; +import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; @@ -54,7 +62,44 @@ public class GrpcCompletionServiceStub extends CompletionServiceStub { ProtoUtils.marshaller(CompleteQueryResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + importSuggestionDenyListEntriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.CompletionService/ImportSuggestionDenyListEntries") + .setRequestMarshaller( + ProtoUtils.marshaller( + ImportSuggestionDenyListEntriesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + purgeSuggestionDenyListEntriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.CompletionService/PurgeSuggestionDenyListEntries") + .setRequestMarshaller( + ProtoUtils.marshaller(PurgeSuggestionDenyListEntriesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private final UnaryCallable completeQueryCallable; + private final UnaryCallable + importSuggestionDenyListEntriesCallable; + private final OperationCallable< + ImportSuggestionDenyListEntriesRequest, + ImportSuggestionDenyListEntriesResponse, + ImportSuggestionDenyListEntriesMetadata> + importSuggestionDenyListEntriesOperationCallable; + private final UnaryCallable + purgeSuggestionDenyListEntriesCallable; + private final OperationCallable< + PurgeSuggestionDenyListEntriesRequest, + PurgeSuggestionDenyListEntriesResponse, + PurgeSuggestionDenyListEntriesMetadata> + purgeSuggestionDenyListEntriesOperationCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -110,10 +155,54 @@ protected GrpcCompletionServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + importSuggestionDenyListEntriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importSuggestionDenyListEntriesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + purgeSuggestionDenyListEntriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(purgeSuggestionDenyListEntriesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.completeQueryCallable = callableFactory.createUnaryCallable( completeQueryTransportSettings, settings.completeQuerySettings(), clientContext); + this.importSuggestionDenyListEntriesCallable = + callableFactory.createUnaryCallable( + importSuggestionDenyListEntriesTransportSettings, + settings.importSuggestionDenyListEntriesSettings(), + clientContext); + this.importSuggestionDenyListEntriesOperationCallable = + callableFactory.createOperationCallable( + importSuggestionDenyListEntriesTransportSettings, + settings.importSuggestionDenyListEntriesOperationSettings(), + clientContext, + operationsStub); + this.purgeSuggestionDenyListEntriesCallable = + callableFactory.createUnaryCallable( + purgeSuggestionDenyListEntriesTransportSettings, + settings.purgeSuggestionDenyListEntriesSettings(), + clientContext); + this.purgeSuggestionDenyListEntriesOperationCallable = + callableFactory.createOperationCallable( + purgeSuggestionDenyListEntriesTransportSettings, + settings.purgeSuggestionDenyListEntriesOperationSettings(), + clientContext, + operationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -128,6 +217,36 @@ public UnaryCallable completeQueryC return completeQueryCallable; } + @Override + public UnaryCallable + importSuggestionDenyListEntriesCallable() { + return importSuggestionDenyListEntriesCallable; + } + + @Override + public OperationCallable< + ImportSuggestionDenyListEntriesRequest, + ImportSuggestionDenyListEntriesResponse, + ImportSuggestionDenyListEntriesMetadata> + importSuggestionDenyListEntriesOperationCallable() { + return importSuggestionDenyListEntriesOperationCallable; + } + + @Override + public UnaryCallable + purgeSuggestionDenyListEntriesCallable() { + return purgeSuggestionDenyListEntriesCallable; + } + + @Override + public OperationCallable< + PurgeSuggestionDenyListEntriesRequest, + PurgeSuggestionDenyListEntriesResponse, + PurgeSuggestionDenyListEntriesMetadata> + purgeSuggestionDenyListEntriesOperationCallable() { + return purgeSuggestionDenyListEntriesOperationCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcDataStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcDataStoreServiceStub.java index 997a7c971364..c7e08a9d115f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcDataStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcDataStoreServiceStub.java @@ -32,10 +32,13 @@ import com.google.cloud.discoveryengine.v1alpha.DataStore; import com.google.cloud.discoveryengine.v1alpha.DeleteDataStoreMetadata; import com.google.cloud.discoveryengine.v1alpha.DeleteDataStoreRequest; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig; import com.google.cloud.discoveryengine.v1alpha.GetDataStoreRequest; +import com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest; import com.google.cloud.discoveryengine.v1alpha.ListDataStoresRequest; import com.google.cloud.discoveryengine.v1alpha.ListDataStoresResponse; import com.google.cloud.discoveryengine.v1alpha.UpdateDataStoreRequest; +import com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; @@ -109,6 +112,34 @@ public class GrpcDataStoreServiceStub extends DataStoreServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(DataStore.getDefaultInstance())) .build(); + private static final MethodDescriptor< + GetDocumentProcessingConfigRequest, DocumentProcessingConfig> + getDocumentProcessingConfigMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DataStoreService/GetDocumentProcessingConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDocumentProcessingConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DocumentProcessingConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + UpdateDocumentProcessingConfigRequest, DocumentProcessingConfig> + updateDocumentProcessingConfigMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DataStoreService/UpdateDocumentProcessingConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDocumentProcessingConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DocumentProcessingConfig.getDefaultInstance())) + .build(); + private final UnaryCallable createDataStoreCallable; private final OperationCallable createDataStoreOperationCallable; @@ -120,6 +151,10 @@ public class GrpcDataStoreServiceStub extends DataStoreServiceStub { private final OperationCallable deleteDataStoreOperationCallable; private final UnaryCallable updateDataStoreCallable; + private final UnaryCallable + getDocumentProcessingConfigCallable; + private final UnaryCallable + updateDocumentProcessingConfigCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -216,6 +251,32 @@ protected GrpcDataStoreServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + getDocumentProcessingConfigTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getDocumentProcessingConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateDocumentProcessingConfigTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(updateDocumentProcessingConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "document_processing_config.name", + String.valueOf(request.getDocumentProcessingConfig().getName())); + return builder.build(); + }) + .build(); this.createDataStoreCallable = callableFactory.createUnaryCallable( @@ -247,6 +308,16 @@ protected GrpcDataStoreServiceStub( this.updateDataStoreCallable = callableFactory.createUnaryCallable( updateDataStoreTransportSettings, settings.updateDataStoreSettings(), clientContext); + this.getDocumentProcessingConfigCallable = + callableFactory.createUnaryCallable( + getDocumentProcessingConfigTransportSettings, + settings.getDocumentProcessingConfigSettings(), + clientContext); + this.updateDocumentProcessingConfigCallable = + callableFactory.createUnaryCallable( + updateDocumentProcessingConfigTransportSettings, + settings.updateDocumentProcessingConfigSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -299,6 +370,18 @@ public UnaryCallable updateDataStoreCallable( return updateDataStoreCallable; } + @Override + public UnaryCallable + getDocumentProcessingConfigCallable() { + return getDocumentProcessingConfigCallable; + } + + @Override + public UnaryCallable + updateDocumentProcessingConfigCallable() { + return updateDocumentProcessingConfigCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcEstimateBillingServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcEstimateBillingServiceCallableFactory.java new file mode 100644 index 000000000000..e23279090371 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcEstimateBillingServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the EstimateBillingService service API. + * + *

                                This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcEstimateBillingServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcEstimateBillingServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcEstimateBillingServiceStub.java new file mode 100644 index 000000000000..74363b1f22ab --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcEstimateBillingServiceStub.java @@ -0,0 +1,184 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +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.discoveryengine.v1alpha.EstimateDataSizeMetadata; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the EstimateBillingService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcEstimateBillingServiceStub extends EstimateBillingServiceStub { + private static final MethodDescriptor + estimateDataSizeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.EstimateBillingService/EstimateDataSize") + .setRequestMarshaller( + ProtoUtils.marshaller(EstimateDataSizeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable estimateDataSizeCallable; + private final OperationCallable< + EstimateDataSizeRequest, EstimateDataSizeResponse, EstimateDataSizeMetadata> + estimateDataSizeOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcEstimateBillingServiceStub create( + EstimateBillingServiceStubSettings settings) throws IOException { + return new GrpcEstimateBillingServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcEstimateBillingServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcEstimateBillingServiceStub( + EstimateBillingServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcEstimateBillingServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcEstimateBillingServiceStub( + EstimateBillingServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcEstimateBillingServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcEstimateBillingServiceStub( + EstimateBillingServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcEstimateBillingServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcEstimateBillingServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcEstimateBillingServiceStub( + EstimateBillingServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings estimateDataSizeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(estimateDataSizeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .build(); + + this.estimateDataSizeCallable = + callableFactory.createUnaryCallable( + estimateDataSizeTransportSettings, settings.estimateDataSizeSettings(), clientContext); + this.estimateDataSizeOperationCallable = + callableFactory.createOperationCallable( + estimateDataSizeTransportSettings, + settings.estimateDataSizeOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable estimateDataSizeCallable() { + return estimateDataSizeCallable; + } + + @Override + public OperationCallable< + EstimateDataSizeRequest, EstimateDataSizeResponse, EstimateDataSizeMetadata> + estimateDataSizeOperationCallable() { + return estimateDataSizeOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcServingConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcServingConfigServiceCallableFactory.java new file mode 100644 index 000000000000..0d40f6ff6333 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcServingConfigServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the ServingConfigService service API. + * + *

                                This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcServingConfigServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcServingConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcServingConfigServiceStub.java new file mode 100644 index 000000000000..81da708f4d53 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/GrpcServingConfigServiceStub.java @@ -0,0 +1,255 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient.ListServingConfigsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest; +import com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse; +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the ServingConfigService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcServingConfigServiceStub extends ServingConfigServiceStub { + private static final MethodDescriptor + updateServingConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ServingConfigService/UpdateServingConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateServingConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ServingConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getServingConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ServingConfigService/GetServingConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetServingConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ServingConfig.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listServingConfigsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ServingConfigService/ListServingConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListServingConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListServingConfigsResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable + updateServingConfigCallable; + private final UnaryCallable getServingConfigCallable; + private final UnaryCallable + listServingConfigsCallable; + private final UnaryCallable + listServingConfigsPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcServingConfigServiceStub create(ServingConfigServiceStubSettings settings) + throws IOException { + return new GrpcServingConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcServingConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcServingConfigServiceStub( + ServingConfigServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcServingConfigServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcServingConfigServiceStub( + ServingConfigServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcServingConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcServingConfigServiceStub( + ServingConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcServingConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcServingConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcServingConfigServiceStub( + ServingConfigServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + updateServingConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateServingConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "serving_config.name", + String.valueOf(request.getServingConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getServingConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getServingConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listServingConfigsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listServingConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.updateServingConfigCallable = + callableFactory.createUnaryCallable( + updateServingConfigTransportSettings, + settings.updateServingConfigSettings(), + clientContext); + this.getServingConfigCallable = + callableFactory.createUnaryCallable( + getServingConfigTransportSettings, settings.getServingConfigSettings(), clientContext); + this.listServingConfigsCallable = + callableFactory.createUnaryCallable( + listServingConfigsTransportSettings, + settings.listServingConfigsSettings(), + clientContext); + this.listServingConfigsPagedCallable = + callableFactory.createPagedCallable( + listServingConfigsTransportSettings, + settings.listServingConfigsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable updateServingConfigCallable() { + return updateServingConfigCallable; + } + + @Override + public UnaryCallable getServingConfigCallable() { + return getServingConfigCallable; + } + + @Override + public UnaryCallable + listServingConfigsCallable() { + return listServingConfigsCallable; + } + + @Override + public UnaryCallable + listServingConfigsPagedCallable() { + return listServingConfigsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonAclConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonAclConfigServiceCallableFactory.java new file mode 100644 index 000000000000..6feb1a25e503 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonAclConfigServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AclConfigService service API. + * + *

                                This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAclConfigServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonAclConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonAclConfigServiceStub.java new file mode 100644 index 000000000000..98f429a33a08 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonAclConfigServiceStub.java @@ -0,0 +1,261 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.AclConfig; +import com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest; +import com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AclConfigService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAclConfigServiceStub extends AclConfigServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + updateAclConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.AclConfigService/UpdateAclConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{aclConfig.name=projects/*/locations/*/aclConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "aclConfig.name", request.getAclConfig().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("aclConfig", request.getAclConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAclConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.AclConfigService/GetAclConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/aclConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable updateAclConfigCallable; + private final UnaryCallable getAclConfigCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAclConfigServiceStub create(AclConfigServiceStubSettings settings) + throws IOException { + return new HttpJsonAclConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAclConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAclConfigServiceStub( + AclConfigServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAclConfigServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAclConfigServiceStub( + AclConfigServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAclConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAclConfigServiceStub( + AclConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAclConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAclConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAclConfigServiceStub( + AclConfigServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings updateAclConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAclConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("acl_config.name", String.valueOf(request.getAclConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getAclConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAclConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.updateAclConfigCallable = + callableFactory.createUnaryCallable( + updateAclConfigTransportSettings, settings.updateAclConfigSettings(), clientContext); + this.getAclConfigCallable = + callableFactory.createUnaryCallable( + getAclConfigTransportSettings, settings.getAclConfigSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(updateAclConfigMethodDescriptor); + methodDescriptors.add(getAclConfigMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable updateAclConfigCallable() { + return updateAclConfigCallable; + } + + @Override + public UnaryCallable getAclConfigCallable() { + return getAclConfigCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonChunkServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonChunkServiceCallableFactory.java new file mode 100644 index 000000000000..d12570747a67 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonChunkServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ChunkService service API. + * + *

                                This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonChunkServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonChunkServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonChunkServiceStub.java new file mode 100644 index 000000000000..a9de766e2bfa --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonChunkServiceStub.java @@ -0,0 +1,272 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient.ListChunksPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.Chunk; +import com.google.cloud.discoveryengine.v1alpha.GetChunkRequest; +import com.google.cloud.discoveryengine.v1alpha.ListChunksRequest; +import com.google.cloud.discoveryengine.v1alpha.ListChunksResponse; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ChunkService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonChunkServiceStub extends ChunkServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor getChunkMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1alpha.ChunkService/GetChunk") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*/chunks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*/chunks/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Chunk.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listChunksMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1alpha.ChunkService/ListChunks") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*/branches/*/documents/*}/chunks", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}/chunks") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListChunksResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getChunkCallable; + private final UnaryCallable listChunksCallable; + private final UnaryCallable listChunksPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonChunkServiceStub create(ChunkServiceStubSettings settings) + throws IOException { + return new HttpJsonChunkServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonChunkServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonChunkServiceStub( + ChunkServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonChunkServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonChunkServiceStub( + ChunkServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonChunkServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonChunkServiceStub(ChunkServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonChunkServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonChunkServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonChunkServiceStub( + ChunkServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getChunkTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getChunkMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listChunksTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listChunksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getChunkCallable = + callableFactory.createUnaryCallable( + getChunkTransportSettings, settings.getChunkSettings(), clientContext); + this.listChunksCallable = + callableFactory.createUnaryCallable( + listChunksTransportSettings, settings.listChunksSettings(), clientContext); + this.listChunksPagedCallable = + callableFactory.createPagedCallable( + listChunksTransportSettings, settings.listChunksSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getChunkMethodDescriptor); + methodDescriptors.add(listChunksMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getChunkCallable() { + return getChunkCallable; + } + + @Override + public UnaryCallable listChunksCallable() { + return listChunksCallable; + } + + @Override + public UnaryCallable listChunksPagedCallable() { + return listChunksPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonCompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonCompletionServiceStub.java index 28a0cc516582..ee88cf21240c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonCompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonCompletionServiceStub.java @@ -16,21 +16,33 @@ package com.google.cloud.discoveryengine.v1alpha.stub; +import com.google.api.HttpRule; import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; import com.google.api.gax.httpjson.ApiMethodDescriptor; import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; import com.google.api.gax.rpc.ClientContext; +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.discoveryengine.v1alpha.CompleteQueryRequest; import com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; import com.google.protobuf.TypeRegistry; import java.io.IOException; import java.util.ArrayList; @@ -49,7 +61,13 @@ @BetaApi @Generated("by gapic-generator-java") public class HttpJsonCompletionServiceStub extends CompletionServiceStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(PurgeSuggestionDenyListEntriesResponse.getDescriptor()) + .add(ImportSuggestionDenyListEntriesResponse.getDescriptor()) + .add(PurgeSuggestionDenyListEntriesMetadata.getDescriptor()) + .add(ImportSuggestionDenyListEntriesMetadata.getDescriptor()) + .build(); private static final ApiMethodDescriptor completeQueryMethodDescriptor = @@ -96,9 +114,110 @@ public class HttpJsonCompletionServiceStub extends CompletionServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + importSuggestionDenyListEntriesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.CompletionService/ImportSuggestionDenyListEntries") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntries:import", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/suggestionDenyListEntries:import") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ImportSuggestionDenyListEntriesRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + purgeSuggestionDenyListEntriesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.CompletionService/PurgeSuggestionDenyListEntries") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntries:purge", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/dataStores/**}/suggestionDenyListEntries:purge") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (PurgeSuggestionDenyListEntriesRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private final UnaryCallable completeQueryCallable; + private final UnaryCallable + importSuggestionDenyListEntriesCallable; + private final OperationCallable< + ImportSuggestionDenyListEntriesRequest, + ImportSuggestionDenyListEntriesResponse, + ImportSuggestionDenyListEntriesMetadata> + importSuggestionDenyListEntriesOperationCallable; + private final UnaryCallable + purgeSuggestionDenyListEntriesCallable; + private final OperationCallable< + PurgeSuggestionDenyListEntriesRequest, + PurgeSuggestionDenyListEntriesResponse, + PurgeSuggestionDenyListEntriesMetadata> + purgeSuggestionDenyListEntriesOperationCallable; private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; private final HttpJsonStubCallableFactory callableFactory; public static final HttpJsonCompletionServiceStub create(CompletionServiceStubSettings settings) @@ -139,6 +258,151 @@ protected HttpJsonCompletionServiceStub( HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*}/operations") + .build()) + .build()) + .build()); HttpJsonCallSettings completeQueryTransportSettings = @@ -152,10 +416,56 @@ protected HttpJsonCompletionServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + importSuggestionDenyListEntriesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importSuggestionDenyListEntriesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + purgeSuggestionDenyListEntriesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(purgeSuggestionDenyListEntriesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.completeQueryCallable = callableFactory.createUnaryCallable( completeQueryTransportSettings, settings.completeQuerySettings(), clientContext); + this.importSuggestionDenyListEntriesCallable = + callableFactory.createUnaryCallable( + importSuggestionDenyListEntriesTransportSettings, + settings.importSuggestionDenyListEntriesSettings(), + clientContext); + this.importSuggestionDenyListEntriesOperationCallable = + callableFactory.createOperationCallable( + importSuggestionDenyListEntriesTransportSettings, + settings.importSuggestionDenyListEntriesOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.purgeSuggestionDenyListEntriesCallable = + callableFactory.createUnaryCallable( + purgeSuggestionDenyListEntriesTransportSettings, + settings.purgeSuggestionDenyListEntriesSettings(), + clientContext); + this.purgeSuggestionDenyListEntriesOperationCallable = + callableFactory.createOperationCallable( + purgeSuggestionDenyListEntriesTransportSettings, + settings.purgeSuggestionDenyListEntriesOperationSettings(), + clientContext, + httpJsonOperationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -165,14 +475,50 @@ protected HttpJsonCompletionServiceStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(completeQueryMethodDescriptor); + methodDescriptors.add(importSuggestionDenyListEntriesMethodDescriptor); + methodDescriptors.add(purgeSuggestionDenyListEntriesMethodDescriptor); return methodDescriptors; } + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + @Override public UnaryCallable completeQueryCallable() { return completeQueryCallable; } + @Override + public UnaryCallable + importSuggestionDenyListEntriesCallable() { + return importSuggestionDenyListEntriesCallable; + } + + @Override + public OperationCallable< + ImportSuggestionDenyListEntriesRequest, + ImportSuggestionDenyListEntriesResponse, + ImportSuggestionDenyListEntriesMetadata> + importSuggestionDenyListEntriesOperationCallable() { + return importSuggestionDenyListEntriesOperationCallable; + } + + @Override + public UnaryCallable + purgeSuggestionDenyListEntriesCallable() { + return purgeSuggestionDenyListEntriesCallable; + } + + @Override + public OperationCallable< + PurgeSuggestionDenyListEntriesRequest, + PurgeSuggestionDenyListEntriesResponse, + PurgeSuggestionDenyListEntriesMetadata> + purgeSuggestionDenyListEntriesOperationCallable() { + return purgeSuggestionDenyListEntriesOperationCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDataStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDataStoreServiceStub.java index 230838281891..19ca794e682f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDataStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDataStoreServiceStub.java @@ -40,10 +40,13 @@ import com.google.cloud.discoveryengine.v1alpha.DataStore; import com.google.cloud.discoveryengine.v1alpha.DeleteDataStoreMetadata; import com.google.cloud.discoveryengine.v1alpha.DeleteDataStoreRequest; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig; import com.google.cloud.discoveryengine.v1alpha.GetDataStoreRequest; +import com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest; import com.google.cloud.discoveryengine.v1alpha.ListDataStoresRequest; import com.google.cloud.discoveryengine.v1alpha.ListDataStoresResponse; import com.google.cloud.discoveryengine.v1alpha.UpdateDataStoreRequest; +import com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.protobuf.Empty; @@ -281,6 +284,94 @@ public class HttpJsonDataStoreServiceStub extends DataStoreServiceStub { .build()) .build(); + private static final ApiMethodDescriptor< + GetDocumentProcessingConfigRequest, DocumentProcessingConfig> + getDocumentProcessingConfigMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DataStoreService/GetDocumentProcessingConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/documentProcessingConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DocumentProcessingConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + UpdateDocumentProcessingConfigRequest, DocumentProcessingConfig> + updateDocumentProcessingConfigMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.DataStoreService/UpdateDocumentProcessingConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{documentProcessingConfig.name=projects/*/locations/*/dataStores/*/documentProcessingConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "documentProcessingConfig.name", + request.getDocumentProcessingConfig().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{documentProcessingConfig.name=projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "documentProcessingConfig", + request.getDocumentProcessingConfig(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DocumentProcessingConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable createDataStoreCallable; private final OperationCallable createDataStoreOperationCallable; @@ -292,6 +383,10 @@ public class HttpJsonDataStoreServiceStub extends DataStoreServiceStub { private final OperationCallable deleteDataStoreOperationCallable; private final UnaryCallable updateDataStoreCallable; + private final UnaryCallable + getDocumentProcessingConfigCallable; + private final UnaryCallable + updateDocumentProcessingConfigCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -537,6 +632,34 @@ protected HttpJsonDataStoreServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + getDocumentProcessingConfigTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getDocumentProcessingConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateDocumentProcessingConfigTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(updateDocumentProcessingConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "document_processing_config.name", + String.valueOf(request.getDocumentProcessingConfig().getName())); + return builder.build(); + }) + .build(); this.createDataStoreCallable = callableFactory.createUnaryCallable( @@ -568,6 +691,16 @@ protected HttpJsonDataStoreServiceStub( this.updateDataStoreCallable = callableFactory.createUnaryCallable( updateDataStoreTransportSettings, settings.updateDataStoreSettings(), clientContext); + this.getDocumentProcessingConfigCallable = + callableFactory.createUnaryCallable( + getDocumentProcessingConfigTransportSettings, + settings.getDocumentProcessingConfigSettings(), + clientContext); + this.updateDocumentProcessingConfigCallable = + callableFactory.createUnaryCallable( + updateDocumentProcessingConfigTransportSettings, + settings.updateDocumentProcessingConfigSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -581,6 +714,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(listDataStoresMethodDescriptor); methodDescriptors.add(deleteDataStoreMethodDescriptor); methodDescriptors.add(updateDataStoreMethodDescriptor); + methodDescriptors.add(getDocumentProcessingConfigMethodDescriptor); + methodDescriptors.add(updateDocumentProcessingConfigMethodDescriptor); return methodDescriptors; } @@ -631,6 +766,18 @@ public UnaryCallable updateDataStoreCallable( return updateDataStoreCallable; } + @Override + public UnaryCallable + getDocumentProcessingConfigCallable() { + return getDocumentProcessingConfigCallable; + } + + @Override + public UnaryCallable + updateDocumentProcessingConfigCallable() { + return updateDocumentProcessingConfigCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDocumentServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDocumentServiceStub.java index 0f00accf2c44..07046cc59ba3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDocumentServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonDocumentServiceStub.java @@ -221,6 +221,7 @@ public class HttpJsonDocumentServiceStub extends DocumentServiceStub { ProtoRestSerializer.create(); serializer.putQueryParam( fields, "allowMissing", request.getAllowMissing()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonEstimateBillingServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonEstimateBillingServiceCallableFactory.java new file mode 100644 index 000000000000..18a004cddb79 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonEstimateBillingServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the EstimateBillingService service API. + * + *

                                This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonEstimateBillingServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonEstimateBillingServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonEstimateBillingServiceStub.java new file mode 100644 index 000000000000..cba0f24f0fc8 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonEstimateBillingServiceStub.java @@ -0,0 +1,385 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +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.discoveryengine.v1alpha.EstimateDataSizeMetadata; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the EstimateBillingService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonEstimateBillingServiceStub extends EstimateBillingServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(EstimateDataSizeMetadata.getDescriptor()) + .add(EstimateDataSizeResponse.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + estimateDataSizeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.EstimateBillingService/EstimateDataSize") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{location=projects/*/locations/*}:estimateDataSize", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "location", request.getLocation()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearLocation().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (EstimateDataSizeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable estimateDataSizeCallable; + private final OperationCallable< + EstimateDataSizeRequest, EstimateDataSizeResponse, EstimateDataSizeMetadata> + estimateDataSizeOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonEstimateBillingServiceStub create( + EstimateBillingServiceStubSettings settings) throws IOException { + return new HttpJsonEstimateBillingServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonEstimateBillingServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonEstimateBillingServiceStub( + EstimateBillingServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonEstimateBillingServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonEstimateBillingServiceStub( + EstimateBillingServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonEstimateBillingServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonEstimateBillingServiceStub( + EstimateBillingServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonEstimateBillingServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonEstimateBillingServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonEstimateBillingServiceStub( + EstimateBillingServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataConnector}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1alpha/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1alpha/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings estimateDataSizeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(estimateDataSizeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .build(); + + this.estimateDataSizeCallable = + callableFactory.createUnaryCallable( + estimateDataSizeTransportSettings, settings.estimateDataSizeSettings(), clientContext); + this.estimateDataSizeOperationCallable = + callableFactory.createOperationCallable( + estimateDataSizeTransportSettings, + settings.estimateDataSizeOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(estimateDataSizeMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable estimateDataSizeCallable() { + return estimateDataSizeCallable; + } + + @Override + public OperationCallable< + EstimateDataSizeRequest, EstimateDataSizeResponse, EstimateDataSizeMetadata> + estimateDataSizeOperationCallable() { + return estimateDataSizeOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonServingConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonServingConfigServiceCallableFactory.java new file mode 100644 index 000000000000..6a7d4be2bf31 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonServingConfigServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the ServingConfigService service API. + * + *

                                This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonServingConfigServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonServingConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonServingConfigServiceStub.java new file mode 100644 index 000000000000..9337891b3db8 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/HttpJsonServingConfigServiceStub.java @@ -0,0 +1,359 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient.ListServingConfigsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest; +import com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse; +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the ServingConfigService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonServingConfigServiceStub extends ServingConfigServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + updateServingConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ServingConfigService/UpdateServingConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{servingConfig.name=projects/*/locations/*/dataStores/*/servingConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "servingConfig.name", request.getServingConfig().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{servingConfig.name=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}", + "/v1alpha/{servingConfig.name=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("servingConfig", request.getServingConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ServingConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getServingConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ServingConfigService/GetServingConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=projects/*/locations/*/dataStores/*/servingConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}", + "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ServingConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listServingConfigsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1alpha.ServingConfigService/ListServingConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/servingConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/servingConfigs", + "/v1alpha/{parent=projects/*/locations/*/collections/*/engines/*}/servingConfigs") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListServingConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + updateServingConfigCallable; + private final UnaryCallable getServingConfigCallable; + private final UnaryCallable + listServingConfigsCallable; + private final UnaryCallable + listServingConfigsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonServingConfigServiceStub create( + ServingConfigServiceStubSettings settings) throws IOException { + return new HttpJsonServingConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonServingConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonServingConfigServiceStub( + ServingConfigServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonServingConfigServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonServingConfigServiceStub( + ServingConfigServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonServingConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonServingConfigServiceStub( + ServingConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonServingConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonServingConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonServingConfigServiceStub( + ServingConfigServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + updateServingConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateServingConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "serving_config.name", + String.valueOf(request.getServingConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getServingConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getServingConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listServingConfigsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listServingConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.updateServingConfigCallable = + callableFactory.createUnaryCallable( + updateServingConfigTransportSettings, + settings.updateServingConfigSettings(), + clientContext); + this.getServingConfigCallable = + callableFactory.createUnaryCallable( + getServingConfigTransportSettings, settings.getServingConfigSettings(), clientContext); + this.listServingConfigsCallable = + callableFactory.createUnaryCallable( + listServingConfigsTransportSettings, + settings.listServingConfigsSettings(), + clientContext); + this.listServingConfigsPagedCallable = + callableFactory.createPagedCallable( + listServingConfigsTransportSettings, + settings.listServingConfigsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(updateServingConfigMethodDescriptor); + methodDescriptors.add(getServingConfigMethodDescriptor); + methodDescriptors.add(listServingConfigsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable updateServingConfigCallable() { + return updateServingConfigCallable; + } + + @Override + public UnaryCallable getServingConfigCallable() { + return getServingConfigCallable; + } + + @Override + public UnaryCallable + listServingConfigsCallable() { + return listServingConfigsCallable; + } + + @Override + public UnaryCallable + listServingConfigsPagedCallable() { + return listServingConfigsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ServingConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ServingConfigServiceStub.java new file mode 100644 index 000000000000..739701aed7f6 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ServingConfigServiceStub.java @@ -0,0 +1,61 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient.ListServingConfigsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest; +import com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse; +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the ServingConfigService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class ServingConfigServiceStub implements BackgroundResource { + + public UnaryCallable updateServingConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateServingConfigCallable()"); + } + + public UnaryCallable getServingConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getServingConfigCallable()"); + } + + public UnaryCallable + listServingConfigsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listServingConfigsPagedCallable()"); + } + + public UnaryCallable + listServingConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listServingConfigsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ServingConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ServingConfigServiceStubSettings.java new file mode 100644 index 000000000000..ad65f9da4cac --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/ServingConfigServiceStubSettings.java @@ -0,0 +1,467 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub; + +import static com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient.ListServingConfigsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest; +import com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse; +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link ServingConfigServiceStub}. + * + *

                                The default instance has everything set to sensible defaults: + * + *

                                  + *
                                • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
                                • Credentials are acquired automatically through Application Default Credentials. + *
                                • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                + * + *

                                The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                For example, to set the total timeout of updateServingConfig to 30 seconds: + * + *

                                {@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
                                + * ServingConfigServiceStubSettings.Builder servingConfigServiceSettingsBuilder =
                                + *     ServingConfigServiceStubSettings.newBuilder();
                                + * servingConfigServiceSettingsBuilder
                                + *     .updateServingConfigSettings()
                                + *     .setRetrySettings(
                                + *         servingConfigServiceSettingsBuilder
                                + *             .updateServingConfigSettings()
                                + *             .getRetrySettings()
                                + *             .toBuilder()
                                + *             .setTotalTimeout(Duration.ofSeconds(30))
                                + *             .build());
                                + * ServingConfigServiceStubSettings servingConfigServiceSettings =
                                + *     servingConfigServiceSettingsBuilder.build();
                                + * }
                                + */ +@BetaApi +@Generated("by gapic-generator-java") +public class ServingConfigServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + updateServingConfigSettings; + private final UnaryCallSettings getServingConfigSettings; + private final PagedCallSettings< + ListServingConfigsRequest, ListServingConfigsResponse, ListServingConfigsPagedResponse> + listServingConfigsSettings; + + private static final PagedListDescriptor< + ListServingConfigsRequest, ListServingConfigsResponse, ServingConfig> + LIST_SERVING_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListServingConfigsRequest, ListServingConfigsResponse, ServingConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListServingConfigsRequest injectToken( + ListServingConfigsRequest payload, String token) { + return ListServingConfigsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListServingConfigsRequest injectPageSize( + ListServingConfigsRequest payload, int pageSize) { + return ListServingConfigsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListServingConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListServingConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListServingConfigsResponse payload) { + return payload.getServingConfigsList() == null + ? ImmutableList.of() + : payload.getServingConfigsList(); + } + }; + + private static final PagedListResponseFactory< + ListServingConfigsRequest, ListServingConfigsResponse, ListServingConfigsPagedResponse> + LIST_SERVING_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListServingConfigsRequest, + ListServingConfigsResponse, + ListServingConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListServingConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_SERVING_CONFIGS_PAGE_STR_DESC, request, context); + return ListServingConfigsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to updateServingConfig. */ + public UnaryCallSettings + updateServingConfigSettings() { + return updateServingConfigSettings; + } + + /** Returns the object with the settings used for calls to getServingConfig. */ + public UnaryCallSettings getServingConfigSettings() { + return getServingConfigSettings; + } + + /** Returns the object with the settings used for calls to listServingConfigs. */ + public PagedCallSettings< + ListServingConfigsRequest, ListServingConfigsResponse, ListServingConfigsPagedResponse> + listServingConfigsSettings() { + return listServingConfigsSettings; + } + + public ServingConfigServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcServingConfigServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonServingConfigServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ServingConfigServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ServingConfigServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ServingConfigServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected ServingConfigServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + updateServingConfigSettings = settingsBuilder.updateServingConfigSettings().build(); + getServingConfigSettings = settingsBuilder.getServingConfigSettings().build(); + listServingConfigsSettings = settingsBuilder.listServingConfigsSettings().build(); + } + + /** Builder for ServingConfigServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + updateServingConfigSettings; + private final UnaryCallSettings.Builder + getServingConfigSettings; + private final PagedCallSettings.Builder< + ListServingConfigsRequest, ListServingConfigsResponse, ListServingConfigsPagedResponse> + listServingConfigsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + updateServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listServingConfigsSettings = PagedCallSettings.newBuilder(LIST_SERVING_CONFIGS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + updateServingConfigSettings, getServingConfigSettings, listServingConfigsSettings); + initDefaults(this); + } + + protected Builder(ServingConfigServiceStubSettings settings) { + super(settings); + + updateServingConfigSettings = settings.updateServingConfigSettings.toBuilder(); + getServingConfigSettings = settings.getServingConfigSettings.toBuilder(); + listServingConfigsSettings = settings.listServingConfigsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + updateServingConfigSettings, getServingConfigSettings, listServingConfigsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .updateServingConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getServingConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listServingConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to updateServingConfig. */ + public UnaryCallSettings.Builder + updateServingConfigSettings() { + return updateServingConfigSettings; + } + + /** Returns the builder for the settings used for calls to getServingConfig. */ + public UnaryCallSettings.Builder + getServingConfigSettings() { + return getServingConfigSettings; + } + + /** Returns the builder for the settings used for calls to listServingConfigs. */ + public PagedCallSettings.Builder< + ListServingConfigsRequest, ListServingConfigsResponse, ListServingConfigsPagedResponse> + listServingConfigsSettings() { + return listServingConfigsSettings; + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + @Override + public ServingConfigServiceStubSettings build() throws IOException { + return new ServingConfigServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java index bace2eb36ae3..a824c2dc81be 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java @@ -410,6 +410,7 @@ public final ConverseConversationResponse converseConversation(String name, Text * .putAllUserLabels(new HashMap()) * .setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.newBuilder().build()) * .setFilter("filter-1274492040") + * .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) * .build(); * ConverseConversationResponse response = * conversationalSearchServiceClient.converseConversation(request); @@ -454,6 +455,7 @@ public final ConverseConversationResponse converseConversation( * .putAllUserLabels(new HashMap()) * .setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.newBuilder().build()) * .setFilter("filter-1274492040") + * .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) * .build(); * ApiFuture future = * conversationalSearchServiceClient.converseConversationCallable().futureCall(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java index 1b1db852045d..57a4badb626c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java @@ -62,6 +62,7 @@ * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) + * .addAllDataStoreSpecs(new ArrayList()) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -243,6 +244,7 @@ public SearchServiceStub getStub() { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) + * .addAllDataStoreSpecs(new ArrayList()) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -300,6 +302,7 @@ public final SearchPagedResponse search(SearchRequest request) { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) + * .addAllDataStoreSpecs(new ArrayList()) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -357,6 +360,7 @@ public final UnaryCallable searchPagedCallab * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) + * .addAllDataStoreSpecs(new ArrayList()) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceClient.java new file mode 100644 index 000000000000..259e37dd010f --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceClient.java @@ -0,0 +1,352 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.stub.SearchTuningServiceStub; +import com.google.cloud.discoveryengine.v1beta.stub.SearchTuningServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for search tuning. + * + *

                                This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

                                {@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 (SearchTuningServiceClient searchTuningServiceClient = SearchTuningServiceClient.create()) {
                                + *   TrainCustomModelRequest request =
                                + *       TrainCustomModelRequest.newBuilder()
                                + *           .setDataStore(
                                + *               DataStoreName.ofProjectLocationCollectionDataStoreName(
                                + *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
                                + *                   .toString())
                                + *           .setModelType("modelType-2010627581")
                                + *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
                                + *           .build();
                                + *   TrainCustomModelResponse response =
                                + *       searchTuningServiceClient.trainCustomModelAsync(request).get();
                                + * }
                                + * }
                                + * + *

                                Note: close() needs to be called on the SearchTuningServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + *
                                Methods
                                MethodDescriptionMethod Variants

                                TrainCustomModel

                                Trains a custom model.

                                + *

                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                + *
                                  + *
                                • trainCustomModelAsync(TrainCustomModelRequest request) + *

                                + *

                                Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                + *
                                  + *
                                • trainCustomModelOperationCallable() + *

                                • trainCustomModelCallable() + *

                                + *
                                + * + *

                                See the individual methods for example code. + * + *

                                Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

                                This class can be customized by passing in a custom instance of SearchTuningServiceSettings to + * create(). For example: + * + *

                                To customize credentials: + * + *

                                {@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
                                + * SearchTuningServiceSettings searchTuningServiceSettings =
                                + *     SearchTuningServiceSettings.newBuilder()
                                + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
                                + *         .build();
                                + * SearchTuningServiceClient searchTuningServiceClient =
                                + *     SearchTuningServiceClient.create(searchTuningServiceSettings);
                                + * }
                                + * + *

                                To customize the endpoint: + * + *

                                {@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
                                + * SearchTuningServiceSettings searchTuningServiceSettings =
                                + *     SearchTuningServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
                                + * SearchTuningServiceClient searchTuningServiceClient =
                                + *     SearchTuningServiceClient.create(searchTuningServiceSettings);
                                + * }
                                + * + *

                                To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

                                {@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
                                + * SearchTuningServiceSettings searchTuningServiceSettings =
                                + *     SearchTuningServiceSettings.newHttpJsonBuilder().build();
                                + * SearchTuningServiceClient searchTuningServiceClient =
                                + *     SearchTuningServiceClient.create(searchTuningServiceSettings);
                                + * }
                                + * + *

                                Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SearchTuningServiceClient implements BackgroundResource { + private final SearchTuningServiceSettings settings; + private final SearchTuningServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of SearchTuningServiceClient with default settings. */ + public static final SearchTuningServiceClient create() throws IOException { + return create(SearchTuningServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SearchTuningServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SearchTuningServiceClient create(SearchTuningServiceSettings settings) + throws IOException { + return new SearchTuningServiceClient(settings); + } + + /** + * Constructs an instance of SearchTuningServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(SearchTuningServiceSettings). + */ + public static final SearchTuningServiceClient create(SearchTuningServiceStub stub) { + return new SearchTuningServiceClient(stub); + } + + /** + * Constructs an instance of SearchTuningServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected SearchTuningServiceClient(SearchTuningServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((SearchTuningServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected SearchTuningServiceClient(SearchTuningServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final SearchTuningServiceSettings getSettings() { + return settings; + } + + public SearchTuningServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Trains a custom model. + * + *

                                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 (SearchTuningServiceClient searchTuningServiceClient = SearchTuningServiceClient.create()) {
                                +   *   TrainCustomModelRequest request =
                                +   *       TrainCustomModelRequest.newBuilder()
                                +   *           .setDataStore(
                                +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
                                +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
                                +   *                   .toString())
                                +   *           .setModelType("modelType-2010627581")
                                +   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
                                +   *           .build();
                                +   *   TrainCustomModelResponse response =
                                +   *       searchTuningServiceClient.trainCustomModelAsync(request).get();
                                +   * }
                                +   * }
                                + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + trainCustomModelAsync(TrainCustomModelRequest request) { + return trainCustomModelOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Trains a custom model. + * + *

                                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 (SearchTuningServiceClient searchTuningServiceClient = SearchTuningServiceClient.create()) {
                                +   *   TrainCustomModelRequest request =
                                +   *       TrainCustomModelRequest.newBuilder()
                                +   *           .setDataStore(
                                +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
                                +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
                                +   *                   .toString())
                                +   *           .setModelType("modelType-2010627581")
                                +   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
                                +   *           .build();
                                +   *   OperationFuture future =
                                +   *       searchTuningServiceClient.trainCustomModelOperationCallable().futureCall(request);
                                +   *   // Do something.
                                +   *   TrainCustomModelResponse response = future.get();
                                +   * }
                                +   * }
                                + */ + public final OperationCallable< + TrainCustomModelRequest, TrainCustomModelResponse, TrainCustomModelMetadata> + trainCustomModelOperationCallable() { + return stub.trainCustomModelOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Trains a custom model. + * + *

                                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 (SearchTuningServiceClient searchTuningServiceClient = SearchTuningServiceClient.create()) {
                                +   *   TrainCustomModelRequest request =
                                +   *       TrainCustomModelRequest.newBuilder()
                                +   *           .setDataStore(
                                +   *               DataStoreName.ofProjectLocationCollectionDataStoreName(
                                +   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
                                +   *                   .toString())
                                +   *           .setModelType("modelType-2010627581")
                                +   *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
                                +   *           .build();
                                +   *   ApiFuture future =
                                +   *       searchTuningServiceClient.trainCustomModelCallable().futureCall(request);
                                +   *   // Do something.
                                +   *   Operation response = future.get();
                                +   * }
                                +   * }
                                + */ + public final UnaryCallable trainCustomModelCallable() { + return stub.trainCustomModelCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceSettings.java new file mode 100644 index 000000000000..dcb166759941 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceSettings.java @@ -0,0 +1,223 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1beta.stub.SearchTuningServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SearchTuningServiceClient}. + * + *

                                The default instance has everything set to sensible defaults: + * + *

                                  + *
                                • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
                                • Credentials are acquired automatically through Application Default Credentials. + *
                                • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                + * + *

                                The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                For example, to set the total timeout of trainCustomModel to 30 seconds: + * + *

                                {@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
                                + * SearchTuningServiceSettings.Builder searchTuningServiceSettingsBuilder =
                                + *     SearchTuningServiceSettings.newBuilder();
                                + * searchTuningServiceSettingsBuilder
                                + *     .trainCustomModelSettings()
                                + *     .setRetrySettings(
                                + *         searchTuningServiceSettingsBuilder
                                + *             .trainCustomModelSettings()
                                + *             .getRetrySettings()
                                + *             .toBuilder()
                                + *             .setTotalTimeout(Duration.ofSeconds(30))
                                + *             .build());
                                + * SearchTuningServiceSettings searchTuningServiceSettings =
                                + *     searchTuningServiceSettingsBuilder.build();
                                + * }
                                + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SearchTuningServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to trainCustomModel. */ + public UnaryCallSettings trainCustomModelSettings() { + return ((SearchTuningServiceStubSettings) getStubSettings()).trainCustomModelSettings(); + } + + /** Returns the object with the settings used for calls to trainCustomModel. */ + public OperationCallSettings< + TrainCustomModelRequest, TrainCustomModelResponse, TrainCustomModelMetadata> + trainCustomModelOperationSettings() { + return ((SearchTuningServiceStubSettings) getStubSettings()) + .trainCustomModelOperationSettings(); + } + + public static final SearchTuningServiceSettings create(SearchTuningServiceStubSettings stub) + throws IOException { + return new SearchTuningServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SearchTuningServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SearchTuningServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SearchTuningServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SearchTuningServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SearchTuningServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SearchTuningServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SearchTuningServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SearchTuningServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SearchTuningServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SearchTuningServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(SearchTuningServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(SearchTuningServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SearchTuningServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(SearchTuningServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(SearchTuningServiceStubSettings.newHttpJsonBuilder()); + } + + public SearchTuningServiceStubSettings.Builder getStubSettingsBuilder() { + return ((SearchTuningServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to trainCustomModel. */ + public UnaryCallSettings.Builder + trainCustomModelSettings() { + return getStubSettingsBuilder().trainCustomModelSettings(); + } + + /** Returns the builder for the settings used for calls to trainCustomModel. */ + public OperationCallSettings.Builder< + TrainCustomModelRequest, TrainCustomModelResponse, TrainCustomModelMetadata> + trainCustomModelOperationSettings() { + return getStubSettingsBuilder().trainCustomModelOperationSettings(); + } + + @Override + public SearchTuningServiceSettings build() throws IOException { + return new SearchTuningServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClient.java index 78fbb4850735..85e0da3ad654 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClient.java @@ -36,7 +36,8 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Service Description: Service for modifying ServingConfig. + * Service Description: Service for operations related to + * [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]. * *

                                This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -117,6 +118,7 @@ *

                                "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                *
                                  *
                                • listServingConfigs(DataStoreName parent) + *

                                • listServingConfigs(EngineName parent) *

                                • listServingConfigs(String parent) *

                                *

                                Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                @@ -367,7 +369,7 @@ public final ServingConfig updateServingConfig(UpdateServingConfigRequest reques * } * * @param name Required. The resource name of the ServingConfig to get. Format: - * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}` + * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServingConfig getServingConfig(ServingConfigName name) { @@ -401,7 +403,7 @@ public final ServingConfig getServingConfig(ServingConfigName name) { * } * * @param name Required. The resource name of the ServingConfig to get. Format: - * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}` + * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServingConfig getServingConfig(String name) { @@ -500,8 +502,8 @@ public final UnaryCallable getServingCon * } * } * - * @param parent Required. The dataStore resource name. Format: - * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}` + * @param parent Required. Full resource name of the parent resource. Format: + * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListServingConfigsPagedResponse listServingConfigs(DataStoreName parent) { @@ -512,6 +514,40 @@ public final ListServingConfigsPagedResponse listServingConfigs(DataStoreName pa return listServingConfigs(request); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ServingConfigs linked to this dataStore. + * + *

                                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 (ServingConfigServiceClient servingConfigServiceClient =
                                +   *     ServingConfigServiceClient.create()) {
                                +   *   EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]");
                                +   *   for (ServingConfig element :
                                +   *       servingConfigServiceClient.listServingConfigs(parent).iterateAll()) {
                                +   *     // doThingsWith(element);
                                +   *   }
                                +   * }
                                +   * }
                                + * + * @param parent Required. Full resource name of the parent resource. Format: + * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServingConfigsPagedResponse listServingConfigs(EngineName parent) { + ListServingConfigsRequest request = + ListServingConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listServingConfigs(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all ServingConfigs linked to this dataStore. @@ -536,8 +572,8 @@ public final ListServingConfigsPagedResponse listServingConfigs(DataStoreName pa * } * } * - * @param parent Required. The dataStore resource name. Format: - * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}` + * @param parent Required. Full resource name of the parent resource. Format: + * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListServingConfigsPagedResponse listServingConfigs(String parent) { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json index 504080cc339e..72381006498f 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json @@ -176,6 +176,18 @@ } } }, + "SearchTuningService": { + "clients": { + "grpc": { + "libraryClient": "SearchTuningServiceClient", + "rpcs": { + "TrainCustomModel": { + "methods": ["trainCustomModelAsync", "trainCustomModelOperationCallable", "trainCustomModelCallable"] + } + } + } + } + }, "ServingConfigService": { "clients": { "grpc": { @@ -185,7 +197,7 @@ "methods": ["getServingConfig", "getServingConfig", "getServingConfig", "getServingConfigCallable"] }, "ListServingConfigs": { - "methods": ["listServingConfigs", "listServingConfigs", "listServingConfigs", "listServingConfigsPagedCallable", "listServingConfigsCallable"] + "methods": ["listServingConfigs", "listServingConfigs", "listServingConfigs", "listServingConfigs", "listServingConfigsPagedCallable", "listServingConfigsCallable"] }, "UpdateServingConfig": { "methods": ["updateServingConfig", "updateServingConfig", "updateServingConfigCallable"] diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java index f0df2c5e74a0..8840cb4df7c1 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java @@ -211,6 +211,7 @@ * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) + * .addAllDataStoreSpecs(new ArrayList()) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -233,9 +234,37 @@ * } * } * + *

                                ======================= SearchTuningServiceClient ======================= + * + *

                                Service Description: Service for search tuning. + * + *

                                Sample for SearchTuningServiceClient: + * + *

                                {@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 (SearchTuningServiceClient searchTuningServiceClient = SearchTuningServiceClient.create()) {
                                + *   TrainCustomModelRequest request =
                                + *       TrainCustomModelRequest.newBuilder()
                                + *           .setDataStore(
                                + *               DataStoreName.ofProjectLocationCollectionDataStoreName(
                                + *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]")
                                + *                   .toString())
                                + *           .setModelType("modelType-2010627581")
                                + *           .setErrorConfig(ImportErrorConfig.newBuilder().build())
                                + *           .build();
                                + *   TrainCustomModelResponse response =
                                + *       searchTuningServiceClient.trainCustomModelAsync(request).get();
                                + * }
                                + * }
                                + * *

                                ======================= ServingConfigServiceClient ======================= * - *

                                Service Description: Service for modifying ServingConfig. + *

                                Service Description: Service for operations related to + * [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]. * *

                                Sample for ServingConfigServiceClient: * diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchTuningServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchTuningServiceCallableFactory.java new file mode 100644 index 000000000000..e65c57f6751d --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchTuningServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SearchTuningService service API. + * + *

                                This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSearchTuningServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchTuningServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchTuningServiceStub.java new file mode 100644 index 000000000000..53bb40a36868 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcSearchTuningServiceStub.java @@ -0,0 +1,184 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +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.discoveryengine.v1beta.TrainCustomModelMetadata; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SearchTuningService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSearchTuningServiceStub extends SearchTuningServiceStub { + private static final MethodDescriptor + trainCustomModelMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SearchTuningService/TrainCustomModel") + .setRequestMarshaller( + ProtoUtils.marshaller(TrainCustomModelRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private final UnaryCallable trainCustomModelCallable; + private final OperationCallable< + TrainCustomModelRequest, TrainCustomModelResponse, TrainCustomModelMetadata> + trainCustomModelOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSearchTuningServiceStub create(SearchTuningServiceStubSettings settings) + throws IOException { + return new GrpcSearchTuningServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSearchTuningServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcSearchTuningServiceStub( + SearchTuningServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSearchTuningServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSearchTuningServiceStub( + SearchTuningServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSearchTuningServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcSearchTuningServiceStub( + SearchTuningServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcSearchTuningServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcSearchTuningServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcSearchTuningServiceStub( + SearchTuningServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings trainCustomModelTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(trainCustomModelMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("data_store", String.valueOf(request.getDataStore())); + return builder.build(); + }) + .build(); + + this.trainCustomModelCallable = + callableFactory.createUnaryCallable( + trainCustomModelTransportSettings, settings.trainCustomModelSettings(), clientContext); + this.trainCustomModelOperationCallable = + callableFactory.createOperationCallable( + trainCustomModelTransportSettings, + settings.trainCustomModelOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable trainCustomModelCallable() { + return trainCustomModelCallable; + } + + @Override + public OperationCallable< + TrainCustomModelRequest, TrainCustomModelResponse, TrainCustomModelMetadata> + trainCustomModelOperationCallable() { + return trainCustomModelOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchTuningServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchTuningServiceCallableFactory.java new file mode 100644 index 000000000000..c29dc2f88f18 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchTuningServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SearchTuningService service API. + * + *

                                This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSearchTuningServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchTuningServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchTuningServiceStub.java new file mode 100644 index 000000000000..814269c060a1 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchTuningServiceStub.java @@ -0,0 +1,385 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +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.discoveryengine.v1beta.TrainCustomModelMetadata; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SearchTuningService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSearchTuningServiceStub extends SearchTuningServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(TrainCustomModelResponse.getDescriptor()) + .add(TrainCustomModelMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + trainCustomModelMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.SearchTuningService/TrainCustomModel") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{dataStore=projects/*/locations/*/collections/*/dataStores/*}:trainCustomModel", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "dataStore", request.getDataStore()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearDataStore().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (TrainCustomModelRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable trainCustomModelCallable; + private final OperationCallable< + TrainCustomModelRequest, TrainCustomModelResponse, TrainCustomModelMetadata> + trainCustomModelOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSearchTuningServiceStub create( + SearchTuningServiceStubSettings settings) throws IOException { + return new HttpJsonSearchTuningServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSearchTuningServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSearchTuningServiceStub( + SearchTuningServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSearchTuningServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSearchTuningServiceStub( + SearchTuningServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonSearchTuningServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSearchTuningServiceStub( + SearchTuningServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSearchTuningServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSearchTuningServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSearchTuningServiceStub( + SearchTuningServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings trainCustomModelTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(trainCustomModelMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("data_store", String.valueOf(request.getDataStore())); + return builder.build(); + }) + .build(); + + this.trainCustomModelCallable = + callableFactory.createUnaryCallable( + trainCustomModelTransportSettings, settings.trainCustomModelSettings(), clientContext); + this.trainCustomModelOperationCallable = + callableFactory.createOperationCallable( + trainCustomModelTransportSettings, + settings.trainCustomModelOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(trainCustomModelMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable trainCustomModelCallable() { + return trainCustomModelCallable; + } + + @Override + public OperationCallable< + TrainCustomModelRequest, TrainCustomModelResponse, TrainCustomModelMetadata> + trainCustomModelOperationCallable() { + return trainCustomModelOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStub.java new file mode 100644 index 000000000000..67fa964a00bd --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStub.java @@ -0,0 +1,60 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SearchTuningService service API. + * + *

                                This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class SearchTuningServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable< + TrainCustomModelRequest, TrainCustomModelResponse, TrainCustomModelMetadata> + trainCustomModelOperationCallable() { + throw new UnsupportedOperationException("Not implemented: trainCustomModelOperationCallable()"); + } + + public UnaryCallable trainCustomModelCallable() { + throw new UnsupportedOperationException("Not implemented: trainCustomModelCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java new file mode 100644 index 000000000000..ed0faf573e3a --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java @@ -0,0 +1,393 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SearchTuningServiceStub}. + * + *

                                The default instance has everything set to sensible defaults: + * + *

                                  + *
                                • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
                                • Credentials are acquired automatically through Application Default Credentials. + *
                                • Retries are configured for idempotent methods but not for non-idempotent methods. + *
                                + * + *

                                The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

                                For example, to set the total timeout of trainCustomModel to 30 seconds: + * + *

                                {@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
                                + * SearchTuningServiceStubSettings.Builder searchTuningServiceSettingsBuilder =
                                + *     SearchTuningServiceStubSettings.newBuilder();
                                + * searchTuningServiceSettingsBuilder
                                + *     .trainCustomModelSettings()
                                + *     .setRetrySettings(
                                + *         searchTuningServiceSettingsBuilder
                                + *             .trainCustomModelSettings()
                                + *             .getRetrySettings()
                                + *             .toBuilder()
                                + *             .setTotalTimeout(Duration.ofSeconds(30))
                                + *             .build());
                                + * SearchTuningServiceStubSettings searchTuningServiceSettings =
                                + *     searchTuningServiceSettingsBuilder.build();
                                + * }
                                + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SearchTuningServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings trainCustomModelSettings; + private final OperationCallSettings< + TrainCustomModelRequest, TrainCustomModelResponse, TrainCustomModelMetadata> + trainCustomModelOperationSettings; + + /** Returns the object with the settings used for calls to trainCustomModel. */ + public UnaryCallSettings trainCustomModelSettings() { + return trainCustomModelSettings; + } + + /** Returns the object with the settings used for calls to trainCustomModel. */ + public OperationCallSettings< + TrainCustomModelRequest, TrainCustomModelResponse, TrainCustomModelMetadata> + trainCustomModelOperationSettings() { + return trainCustomModelOperationSettings; + } + + public SearchTuningServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSearchTuningServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSearchTuningServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SearchTuningServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SearchTuningServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SearchTuningServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SearchTuningServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + trainCustomModelSettings = settingsBuilder.trainCustomModelSettings().build(); + trainCustomModelOperationSettings = settingsBuilder.trainCustomModelOperationSettings().build(); + } + + /** Builder for SearchTuningServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + trainCustomModelSettings; + private final OperationCallSettings.Builder< + TrainCustomModelRequest, TrainCustomModelResponse, TrainCustomModelMetadata> + trainCustomModelOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + trainCustomModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + trainCustomModelOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(trainCustomModelSettings); + initDefaults(this); + } + + protected Builder(SearchTuningServiceStubSettings settings) { + super(settings); + + trainCustomModelSettings = settings.trainCustomModelSettings.toBuilder(); + trainCustomModelOperationSettings = settings.trainCustomModelOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(trainCustomModelSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .trainCustomModelSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .trainCustomModelOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(TrainCustomModelResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(TrainCustomModelMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

                                Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to trainCustomModel. */ + public UnaryCallSettings.Builder + trainCustomModelSettings() { + return trainCustomModelSettings; + } + + /** Returns the builder for the settings used for calls to trainCustomModel. */ + public OperationCallSettings.Builder< + TrainCustomModelRequest, TrainCustomModelResponse, TrainCustomModelMetadata> + trainCustomModelOperationSettings() { + return trainCustomModelOperationSettings; + } + + /** Returns the endpoint set by the user or the the service's default endpoint. */ + @Override + public String getEndpoint() { + if (super.getEndpoint() != null) { + return super.getEndpoint(); + } + return getDefaultEndpoint(); + } + + @Override + public SearchTuningServiceStubSettings build() throws IOException { + return new SearchTuningServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json index 182201abd10a..bf5166f3e635 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1alpha/reflect-config.json @@ -395,6 +395,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.AclConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.AclConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.BatchCreateTargetSiteMetadata", "queryAllDeclaredConstructors": true, @@ -521,6 +539,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Chunk", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Chunk$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Chunk$DocumentMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Chunk$DocumentMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.CollectUserEventRequest", "queryAllDeclaredConstructors": true, @@ -908,6 +962,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.DataStore", "queryAllDeclaredConstructors": true, @@ -1178,6 +1250,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Document$AclInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Document$AclInfo$AccessRestriction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Document$AclInfo$AccessRestriction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.Document$AclInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.Document$Builder", "queryAllDeclaredConstructors": true, @@ -1223,6 +1331,132 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig$ChunkingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig$ChunkingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig$ChunkingConfig$LayoutBasedChunkingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig$ChunkingConfig$LayoutBasedChunkingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig$ParsingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig$ParsingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig$ParsingConfig$DigitalParsingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig$ParsingConfig$DigitalParsingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig$ParsingConfig$LayoutParsingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig$ParsingConfig$LayoutParsingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig$ParsingConfig$OcrParsingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig$ParsingConfig$OcrParsingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.DoubleList", "queryAllDeclaredConstructors": true, @@ -1241,6 +1475,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.EnableAdvancedSiteSearchMetadata", "queryAllDeclaredConstructors": true, @@ -1503,7 +1755,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.FetchDomainVerificationStatusRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +1764,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.FetchDomainVerificationStatusRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +1773,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.FetchDomainVerificationStatusResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +1782,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.FetchDomainVerificationStatusResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +1791,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig", + "name": "com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest$FileDataSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +1800,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest$FileDataSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +1809,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$CompletableOption", + "name": "com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest$WebsiteDataSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +1818,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$DynamicFacetableOption", + "name": "com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest$WebsiteDataSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +1827,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$FieldType", + "name": "com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest$WebsiteDataSource$EstimatorUriPattern", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +1836,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$FilterableOption", + "name": "com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest$WebsiteDataSource$EstimatorUriPattern$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +1845,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$IndexableOption", + "name": "com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +1854,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$RetrievableOption", + "name": "com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +1863,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$SearchableOption", + "name": "com.google.cloud.discoveryengine.v1alpha.FetchDomainVerificationStatusRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +1872,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GcsSource", + "name": "com.google.cloud.discoveryengine.v1alpha.FetchDomainVerificationStatusRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +1881,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GcsSource$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.FetchDomainVerificationStatusResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +1890,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetConversationRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.FetchDomainVerificationStatusResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +1899,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetConversationRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +1908,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetDataStoreRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +1917,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetDataStoreRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$CompletableOption", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +1926,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$DynamicFacetableOption", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +1935,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$FieldType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +1944,169 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetEngineRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$FilterableOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$IndexableOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$RetrievableOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.FieldConfig$SearchableOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GcsSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GcsSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetChunkRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetChunkRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetConversationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetConversationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetDataStoreRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetDataStoreRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetDocumentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetEngineRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +2133,322 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.GetSchemaRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetSiteSearchEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetSiteSearchEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetTargetSiteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GetTargetSiteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig$ExternalIdpConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig$ExternalIdpConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.IdpConfig$IdpType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$ReconciliationMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +2457,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetSiteSearchEngineRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +2466,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetSiteSearchEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +2475,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetTargetSiteRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +2484,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.GetTargetSiteRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +2493,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata", + "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +2502,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.IndustryVertical", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +2511,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.Interval", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +2520,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.Interval$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +2529,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1alpha.ListChunksRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +2538,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListChunksRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +2547,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsRequest$ReconciliationMode", + "name": "com.google.cloud.discoveryengine.v1alpha.ListChunksResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +2556,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ListChunksResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +2565,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportDocumentsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +2574,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig", + "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +2583,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportErrorConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +2592,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata", + "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +2601,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +2610,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +2619,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +2628,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +2637,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +2646,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1926,7 +2655,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ImportUserEventsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1935,7 +2664,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.IndustryVertical", + "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1944,7 +2673,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.Interval", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1953,7 +2682,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.Interval$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1962,7 +2691,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1971,7 +2700,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1980,7 +2709,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1989,7 +2718,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListConversationsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1998,7 +2727,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2007,7 +2736,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2016,7 +2745,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2025,7 +2754,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDataStoresResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2034,7 +2763,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2043,7 +2772,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2052,7 +2781,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.ListTargetSitesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2061,7 +2790,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListDocumentsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListTargetSitesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2070,7 +2799,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.ListTargetSitesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2079,7 +2808,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.ListTargetSitesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2088,7 +2817,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.MediaInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2097,7 +2826,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListEnginesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.MediaInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2106,7 +2835,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.PageInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2115,7 +2844,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListSchemasRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.PageInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2124,7 +2853,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.PanelInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2133,7 +2862,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListSchemasResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.PanelInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2142,7 +2871,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListTargetSitesRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.PauseEngineRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2151,7 +2880,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListTargetSitesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.PauseEngineRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2160,7 +2889,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListTargetSitesResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.Principal", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2169,7 +2898,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.ListTargetSitesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.Principal$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2178,7 +2907,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.MediaInfo", + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2187,7 +2916,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.MediaInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2196,7 +2925,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.PageInfo", + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2205,7 +2934,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.PageInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2214,7 +2943,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.PanelInfo", + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2223,7 +2952,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.PanelInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2232,7 +2961,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.PauseEngineRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2241,7 +2970,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.PauseEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2250,7 +2979,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata", + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2259,7 +2988,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2268,7 +2997,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest", + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2277,7 +3006,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2286,7 +3015,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse", + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2295,7 +3024,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2699,6 +3428,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$ContentSearchSpec$SearchResultMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$ContentSearchSpec$SnippetSpec", "queryAllDeclaredConstructors": true, @@ -2771,6 +3509,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$DataStoreSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$DataStoreSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.SearchRequest$EmbeddingSpec", "queryAllDeclaredConstructors": true, @@ -3203,6 +3959,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ServingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ServingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ServingConfig$GenericConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ServingConfig$GenericConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ServingConfig$MediaConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.ServingConfig$MediaConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.SiteSearchEngine", "queryAllDeclaredConstructors": true, @@ -3257,6 +4067,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry$MatchOperator", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.TargetSite", "queryAllDeclaredConstructors": true, @@ -3491,6 +4328,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.UpdateConversationRequest", "queryAllDeclaredConstructors": true, @@ -3527,6 +4382,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest", "queryAllDeclaredConstructors": true, @@ -3599,6 +4472,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1alpha.UpdateTargetSiteMetadata", "queryAllDeclaredConstructors": true, diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json index 06e7ecb20e11..7144f0dd4919 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json @@ -1223,6 +1223,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$DigitalParsingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$DigitalParsingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$OcrParsingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$OcrParsingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.DoubleList", "queryAllDeclaredConstructors": true, @@ -2699,6 +2771,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$DataStoreSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$DataStoreSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec", "queryAllDeclaredConstructors": true, @@ -3338,6 +3428,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest$GcsTrainingInput", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest$GcsTrainingInput$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.TransactionInfo", "queryAllDeclaredConstructors": true, @@ -3572,6 +3734,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.location.GetLocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.longrunning.CancelOperationRequest", "queryAllDeclaredConstructors": true, diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..2328e1009d05 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceClientHttpJsonTest.java @@ -0,0 +1,222 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1alpha.stub.HttpJsonAclConfigServiceStub; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AclConfigServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static AclConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAclConfigServiceStub.getMethodDescriptors(), + AclConfigServiceSettings.getDefaultEndpoint()); + AclConfigServiceSettings settings = + AclConfigServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AclConfigServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AclConfigServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void updateAclConfigTest() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder() + .setAclConfig( + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build()) + .build(); + + AclConfig actualResponse = client.updateAclConfig(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAclConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder() + .setAclConfig( + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build()) + .build(); + client.updateAclConfig(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclConfigTest() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + + AclConfig actualResponse = client.getAclConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAclConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + client.getAclConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclConfigTest2() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-599/locations/location-599/aclConfig"; + + AclConfig actualResponse = client.getAclConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAclConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-599/locations/location-599/aclConfig"; + client.getAclConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceClientTest.java new file mode 100644 index 000000000000..49a0632cc701 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceClientTest.java @@ -0,0 +1,199 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.AbstractMessage; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AclConfigServiceClientTest { + private static MockAclConfigService mockAclConfigService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AclConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockAclConfigService = new MockAclConfigService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAclConfigService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AclConfigServiceSettings settings = + AclConfigServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AclConfigServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void updateAclConfigTest() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockAclConfigService.addResponse(expectedResponse); + + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build(); + + AclConfig actualResponse = client.updateAclConfig(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAclConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAclConfigRequest actualRequest = ((UpdateAclConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getAclConfig(), actualRequest.getAclConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAclConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAclConfigService.addException(exception); + + try { + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build(); + client.updateAclConfig(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclConfigTest() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockAclConfigService.addResponse(expectedResponse); + + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + + AclConfig actualResponse = client.getAclConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAclConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAclConfigRequest actualRequest = ((GetAclConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAclConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAclConfigService.addException(exception); + + try { + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + client.getAclConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclConfigTest2() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockAclConfigService.addResponse(expectedResponse); + + String name = "name3373707"; + + AclConfig actualResponse = client.getAclConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAclConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAclConfigRequest actualRequest = ((GetAclConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAclConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAclConfigService.addException(exception); + + try { + String name = "name3373707"; + client.getAclConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..095cb397683c --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceClientHttpJsonTest.java @@ -0,0 +1,302 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient.ListChunksPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1alpha.stub.HttpJsonChunkServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Struct; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ChunkServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ChunkServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonChunkServiceStub.getMethodDescriptors(), + ChunkServiceSettings.getDefaultEndpoint()); + ChunkServiceSettings settings = + ChunkServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ChunkServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ChunkServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getChunkTest() throws Exception { + Chunk expectedResponse = + Chunk.newBuilder() + .setName( + ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName( + "[PROJECT]", + "[LOCATION]", + "[DATA_STORE]", + "[BRANCH]", + "[DOCUMENT]", + "[CHUNK]") + .toString()) + .setId("id3355") + .setContent("content951530617") + .setDocumentMetadata(Chunk.DocumentMetadata.newBuilder().build()) + .setDerivedStructData(Struct.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ChunkName name = + ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]", "[CHUNK]"); + + Chunk actualResponse = client.getChunk(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getChunkExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ChunkName name = + ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]", "[CHUNK]"); + client.getChunk(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getChunkTest2() throws Exception { + Chunk expectedResponse = + Chunk.newBuilder() + .setName( + ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName( + "[PROJECT]", + "[LOCATION]", + "[DATA_STORE]", + "[BRANCH]", + "[DOCUMENT]", + "[CHUNK]") + .toString()) + .setId("id3355") + .setContent("content951530617") + .setDocumentMetadata(Chunk.DocumentMetadata.newBuilder().build()) + .setDerivedStructData(Struct.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6658/locations/location-6658/dataStores/dataStore-6658/branches/branche-6658/documents/document-6658/chunks/chunk-6658"; + + Chunk actualResponse = client.getChunk(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getChunkExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6658/locations/location-6658/dataStores/dataStore-6658/branches/branche-6658/documents/document-6658/chunks/chunk-6658"; + client.getChunk(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listChunksTest() throws Exception { + Chunk responsesElement = Chunk.newBuilder().build(); + ListChunksResponse expectedResponse = + ListChunksResponse.newBuilder() + .setNextPageToken("") + .addAllChunks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DocumentName parent = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + + ListChunksPagedResponse pagedListResponse = client.listChunks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChunksList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listChunksExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DocumentName parent = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + client.listChunks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listChunksTest2() throws Exception { + Chunk responsesElement = Chunk.newBuilder().build(); + ListChunksResponse expectedResponse = + ListChunksResponse.newBuilder() + .setNextPageToken("") + .addAllChunks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-3185/locations/location-3185/dataStores/dataStore-3185/branches/branche-3185/documents/document-3185"; + + ListChunksPagedResponse pagedListResponse = client.listChunks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChunksList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listChunksExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-3185/locations/location-3185/dataStores/dataStore-3185/branches/branche-3185/documents/document-3185"; + client.listChunks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceClientTest.java new file mode 100644 index 000000000000..613b594fcb00 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceClientTest.java @@ -0,0 +1,280 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient.ListChunksPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Struct; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ChunkServiceClientTest { + private static MockChunkService mockChunkService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private ChunkServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockChunkService = new MockChunkService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockChunkService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ChunkServiceSettings settings = + ChunkServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ChunkServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getChunkTest() throws Exception { + Chunk expectedResponse = + Chunk.newBuilder() + .setName( + ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName( + "[PROJECT]", + "[LOCATION]", + "[DATA_STORE]", + "[BRANCH]", + "[DOCUMENT]", + "[CHUNK]") + .toString()) + .setId("id3355") + .setContent("content951530617") + .setDocumentMetadata(Chunk.DocumentMetadata.newBuilder().build()) + .setDerivedStructData(Struct.newBuilder().build()) + .build(); + mockChunkService.addResponse(expectedResponse); + + ChunkName name = + ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]", "[CHUNK]"); + + Chunk actualResponse = client.getChunk(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChunkService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetChunkRequest actualRequest = ((GetChunkRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getChunkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChunkService.addException(exception); + + try { + ChunkName name = + ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]", "[CHUNK]"); + client.getChunk(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getChunkTest2() throws Exception { + Chunk expectedResponse = + Chunk.newBuilder() + .setName( + ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName( + "[PROJECT]", + "[LOCATION]", + "[DATA_STORE]", + "[BRANCH]", + "[DOCUMENT]", + "[CHUNK]") + .toString()) + .setId("id3355") + .setContent("content951530617") + .setDocumentMetadata(Chunk.DocumentMetadata.newBuilder().build()) + .setDerivedStructData(Struct.newBuilder().build()) + .build(); + mockChunkService.addResponse(expectedResponse); + + String name = "name3373707"; + + Chunk actualResponse = client.getChunk(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChunkService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetChunkRequest actualRequest = ((GetChunkRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getChunkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChunkService.addException(exception); + + try { + String name = "name3373707"; + client.getChunk(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listChunksTest() throws Exception { + Chunk responsesElement = Chunk.newBuilder().build(); + ListChunksResponse expectedResponse = + ListChunksResponse.newBuilder() + .setNextPageToken("") + .addAllChunks(Arrays.asList(responsesElement)) + .build(); + mockChunkService.addResponse(expectedResponse); + + DocumentName parent = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + + ListChunksPagedResponse pagedListResponse = client.listChunks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChunksList().get(0), resources.get(0)); + + List actualRequests = mockChunkService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListChunksRequest actualRequest = ((ListChunksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listChunksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChunkService.addException(exception); + + try { + DocumentName parent = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + client.listChunks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listChunksTest2() throws Exception { + Chunk responsesElement = Chunk.newBuilder().build(); + ListChunksResponse expectedResponse = + ListChunksResponse.newBuilder() + .setNextPageToken("") + .addAllChunks(Arrays.asList(responsesElement)) + .build(); + mockChunkService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListChunksPagedResponse pagedListResponse = client.listChunks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChunksList().get(0), resources.get(0)); + + List actualRequests = mockChunkService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListChunksRequest actualRequest = ((ListChunksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listChunksExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChunkService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listChunks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientHttpJsonTest.java index 09ecd0f6b28d..11922a32ecaa 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientHttpJsonTest.java @@ -26,9 +26,13 @@ import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; import com.google.cloud.discoveryengine.v1alpha.stub.HttpJsonCompletionServiceStub; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.rpc.Status; import java.io.IOException; import java.util.ArrayList; import java.util.List; +import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; @@ -136,4 +140,131 @@ public void completeQueryExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void importSuggestionDenyListEntriesTest() throws Exception { + ImportSuggestionDenyListEntriesResponse expectedResponse = + ImportSuggestionDenyListEntriesResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setImportedEntriesCount(-325324123) + .setFailedEntriesCount(-1467071458) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importSuggestionDenyListEntriesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ImportSuggestionDenyListEntriesRequest request = + ImportSuggestionDenyListEntriesRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + + ImportSuggestionDenyListEntriesResponse actualResponse = + client.importSuggestionDenyListEntriesAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void importSuggestionDenyListEntriesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ImportSuggestionDenyListEntriesRequest request = + ImportSuggestionDenyListEntriesRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + client.importSuggestionDenyListEntriesAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void purgeSuggestionDenyListEntriesTest() throws Exception { + PurgeSuggestionDenyListEntriesResponse expectedResponse = + PurgeSuggestionDenyListEntriesResponse.newBuilder() + .setPurgeCount(575305851) + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeSuggestionDenyListEntriesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PurgeSuggestionDenyListEntriesRequest request = + PurgeSuggestionDenyListEntriesRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + + PurgeSuggestionDenyListEntriesResponse actualResponse = + client.purgeSuggestionDenyListEntriesAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void purgeSuggestionDenyListEntriesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PurgeSuggestionDenyListEntriesRequest request = + PurgeSuggestionDenyListEntriesRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + client.purgeSuggestionDenyListEntriesAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientTest.java index 435b8e7316ba..bc80a3337aad 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceClientTest.java @@ -23,13 +23,18 @@ import com.google.api.gax.grpc.testing.MockServiceHelper; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.rpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.UUID; +import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; @@ -142,4 +147,129 @@ public void completeQueryExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void importSuggestionDenyListEntriesTest() throws Exception { + ImportSuggestionDenyListEntriesResponse expectedResponse = + ImportSuggestionDenyListEntriesResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setImportedEntriesCount(-325324123) + .setFailedEntriesCount(-1467071458) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importSuggestionDenyListEntriesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCompletionService.addResponse(resultOperation); + + ImportSuggestionDenyListEntriesRequest request = + ImportSuggestionDenyListEntriesRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + + ImportSuggestionDenyListEntriesResponse actualResponse = + client.importSuggestionDenyListEntriesAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompletionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportSuggestionDenyListEntriesRequest actualRequest = + ((ImportSuggestionDenyListEntriesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getInlineSource(), actualRequest.getInlineSource()); + Assert.assertEquals(request.getGcsSource(), actualRequest.getGcsSource()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importSuggestionDenyListEntriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCompletionService.addException(exception); + + try { + ImportSuggestionDenyListEntriesRequest request = + ImportSuggestionDenyListEntriesRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + client.importSuggestionDenyListEntriesAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void purgeSuggestionDenyListEntriesTest() throws Exception { + PurgeSuggestionDenyListEntriesResponse expectedResponse = + PurgeSuggestionDenyListEntriesResponse.newBuilder() + .setPurgeCount(575305851) + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeSuggestionDenyListEntriesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCompletionService.addResponse(resultOperation); + + PurgeSuggestionDenyListEntriesRequest request = + PurgeSuggestionDenyListEntriesRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + + PurgeSuggestionDenyListEntriesResponse actualResponse = + client.purgeSuggestionDenyListEntriesAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompletionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PurgeSuggestionDenyListEntriesRequest actualRequest = + ((PurgeSuggestionDenyListEntriesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void purgeSuggestionDenyListEntriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCompletionService.addException(exception); + + try { + PurgeSuggestionDenyListEntriesRequest request = + PurgeSuggestionDenyListEntriesRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + client.purgeSuggestionDenyListEntriesAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClientHttpJsonTest.java index e4fa7fa17107..758b0a32777b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClientHttpJsonTest.java @@ -37,6 +37,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.concurrent.ExecutionException; import javax.annotation.Generated; @@ -95,6 +96,10 @@ public void createDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setAclEnabled(true) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -156,6 +161,10 @@ public void createDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setAclEnabled(true) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -217,6 +226,10 @@ public void getDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setAclEnabled(true) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -271,6 +284,10 @@ public void getDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setAclEnabled(true) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -515,6 +532,10 @@ public void updateDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setAclEnabled(true) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -529,6 +550,10 @@ public void updateDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setAclEnabled(true) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -569,6 +594,10 @@ public void updateDataStoreExceptionTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setAclEnabled(true) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateDataStore(dataStore, updateMask); @@ -577,4 +606,186 @@ public void updateDataStoreExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void getDocumentProcessingConfigTest() throws Exception { + DocumentProcessingConfig expectedResponse = + DocumentProcessingConfig.newBuilder() + .setName( + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setChunkingConfig(DocumentProcessingConfig.ChunkingConfig.newBuilder().build()) + .setDefaultParsingConfig(DocumentProcessingConfig.ParsingConfig.newBuilder().build()) + .putAllParsingConfigOverrides( + new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + DocumentProcessingConfigName name = + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + + DocumentProcessingConfig actualResponse = client.getDocumentProcessingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDocumentProcessingConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DocumentProcessingConfigName name = + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + client.getDocumentProcessingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDocumentProcessingConfigTest2() throws Exception { + DocumentProcessingConfig expectedResponse = + DocumentProcessingConfig.newBuilder() + .setName( + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setChunkingConfig(DocumentProcessingConfig.ChunkingConfig.newBuilder().build()) + .setDefaultParsingConfig(DocumentProcessingConfig.ParsingConfig.newBuilder().build()) + .putAllParsingConfigOverrides( + new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7379/locations/location-7379/dataStores/dataStore-7379/documentProcessingConfig"; + + DocumentProcessingConfig actualResponse = client.getDocumentProcessingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getDocumentProcessingConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7379/locations/location-7379/dataStores/dataStore-7379/documentProcessingConfig"; + client.getDocumentProcessingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDocumentProcessingConfigTest() throws Exception { + DocumentProcessingConfig expectedResponse = + DocumentProcessingConfig.newBuilder() + .setName( + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setChunkingConfig(DocumentProcessingConfig.ChunkingConfig.newBuilder().build()) + .setDefaultParsingConfig(DocumentProcessingConfig.ParsingConfig.newBuilder().build()) + .putAllParsingConfigOverrides( + new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + DocumentProcessingConfig documentProcessingConfig = + DocumentProcessingConfig.newBuilder() + .setName( + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setChunkingConfig(DocumentProcessingConfig.ChunkingConfig.newBuilder().build()) + .setDefaultParsingConfig(DocumentProcessingConfig.ParsingConfig.newBuilder().build()) + .putAllParsingConfigOverrides( + new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DocumentProcessingConfig actualResponse = + client.updateDocumentProcessingConfig(documentProcessingConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateDocumentProcessingConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DocumentProcessingConfig documentProcessingConfig = + DocumentProcessingConfig.newBuilder() + .setName( + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setChunkingConfig(DocumentProcessingConfig.ChunkingConfig.newBuilder().build()) + .setDefaultParsingConfig(DocumentProcessingConfig.ParsingConfig.newBuilder().build()) + .putAllParsingConfigOverrides( + new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDocumentProcessingConfig(documentProcessingConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClientTest.java index 8fd8074bf515..72bd41427d01 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceClientTest.java @@ -37,6 +37,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; @@ -102,6 +103,10 @@ public void createDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setAclEnabled(true) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -162,6 +167,10 @@ public void createDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setAclEnabled(true) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -222,6 +231,10 @@ public void getDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setAclEnabled(true) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); mockDataStoreService.addResponse(expectedResponse); @@ -270,6 +283,10 @@ public void getDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setAclEnabled(true) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); mockDataStoreService.addResponse(expectedResponse); @@ -490,6 +507,10 @@ public void updateDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setAclEnabled(true) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); mockDataStoreService.addResponse(expectedResponse); @@ -525,4 +546,152 @@ public void updateDataStoreExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void getDocumentProcessingConfigTest() throws Exception { + DocumentProcessingConfig expectedResponse = + DocumentProcessingConfig.newBuilder() + .setName( + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setChunkingConfig(DocumentProcessingConfig.ChunkingConfig.newBuilder().build()) + .setDefaultParsingConfig(DocumentProcessingConfig.ParsingConfig.newBuilder().build()) + .putAllParsingConfigOverrides( + new HashMap()) + .build(); + mockDataStoreService.addResponse(expectedResponse); + + DocumentProcessingConfigName name = + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + + DocumentProcessingConfig actualResponse = client.getDocumentProcessingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDocumentProcessingConfigRequest actualRequest = + ((GetDocumentProcessingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDocumentProcessingConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataStoreService.addException(exception); + + try { + DocumentProcessingConfigName name = + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + client.getDocumentProcessingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDocumentProcessingConfigTest2() throws Exception { + DocumentProcessingConfig expectedResponse = + DocumentProcessingConfig.newBuilder() + .setName( + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setChunkingConfig(DocumentProcessingConfig.ChunkingConfig.newBuilder().build()) + .setDefaultParsingConfig(DocumentProcessingConfig.ParsingConfig.newBuilder().build()) + .putAllParsingConfigOverrides( + new HashMap()) + .build(); + mockDataStoreService.addResponse(expectedResponse); + + String name = "name3373707"; + + DocumentProcessingConfig actualResponse = client.getDocumentProcessingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDocumentProcessingConfigRequest actualRequest = + ((GetDocumentProcessingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDocumentProcessingConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataStoreService.addException(exception); + + try { + String name = "name3373707"; + client.getDocumentProcessingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDocumentProcessingConfigTest() throws Exception { + DocumentProcessingConfig expectedResponse = + DocumentProcessingConfig.newBuilder() + .setName( + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setChunkingConfig(DocumentProcessingConfig.ChunkingConfig.newBuilder().build()) + .setDefaultParsingConfig(DocumentProcessingConfig.ParsingConfig.newBuilder().build()) + .putAllParsingConfigOverrides( + new HashMap()) + .build(); + mockDataStoreService.addResponse(expectedResponse); + + DocumentProcessingConfig documentProcessingConfig = + DocumentProcessingConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DocumentProcessingConfig actualResponse = + client.updateDocumentProcessingConfig(documentProcessingConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDocumentProcessingConfigRequest actualRequest = + ((UpdateDocumentProcessingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(documentProcessingConfig, actualRequest.getDocumentProcessingConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDocumentProcessingConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataStoreService.addException(exception); + + try { + DocumentProcessingConfig documentProcessingConfig = + DocumentProcessingConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDocumentProcessingConfig(documentProcessingConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientHttpJsonTest.java index 302e60562e83..763f6c951cad 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientHttpJsonTest.java @@ -32,7 +32,9 @@ import com.google.longrunning.Operation; import com.google.protobuf.Any; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import com.google.protobuf.Struct; +import com.google.protobuf.Timestamp; import com.google.rpc.Status; import java.io.IOException; import java.util.ArrayList; @@ -95,6 +97,8 @@ public void getDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -151,6 +155,8 @@ public void getDocumentTest2() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -311,6 +317,8 @@ public void createDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -371,6 +379,8 @@ public void createDocumentTest2() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -429,27 +439,28 @@ public void updateDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); - UpdateDocumentRequest request = - UpdateDocumentRequest.newBuilder() - .setDocument( - Document.newBuilder() - .setName( - DocumentName.ofProjectLocationDataStoreBranchDocumentName( - "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") - .toString()) - .setId("id3355") - .setSchemaId("schemaId-697673060") - .setContent(Document.Content.newBuilder().build()) - .setParentDocumentId("parentDocumentId1990105056") - .setDerivedStructData(Struct.newBuilder().build()) - .build()) - .setAllowMissing(true) + Document document = + Document.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setId("id3355") + .setSchemaId("schemaId-697673060") + .setContent(Document.Content.newBuilder().build()) + .setParentDocumentId("parentDocumentId1990105056") + .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - Document actualResponse = client.updateDocument(request); + Document actualResponse = client.updateDocument(document, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -475,27 +486,22 @@ public void updateDocumentExceptionTest() throws Exception { mockService.addException(exception); try { - UpdateDocumentRequest request = - UpdateDocumentRequest.newBuilder() - .setDocument( - Document.newBuilder() - .setName( - DocumentName.ofProjectLocationDataStoreBranchDocumentName( - "[PROJECT]", - "[LOCATION]", - "[DATA_STORE]", - "[BRANCH]", - "[DOCUMENT]") - .toString()) - .setId("id3355") - .setSchemaId("schemaId-697673060") - .setContent(Document.Content.newBuilder().build()) - .setParentDocumentId("parentDocumentId1990105056") - .setDerivedStructData(Struct.newBuilder().build()) - .build()) - .setAllowMissing(true) + Document document = + Document.newBuilder() + .setName( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setId("id3355") + .setSchemaId("schemaId-697673060") + .setContent(Document.Content.newBuilder().build()) + .setParentDocumentId("parentDocumentId1990105056") + .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); - client.updateDocument(request); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDocument(document, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -678,6 +684,7 @@ public void purgeDocumentsTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setFilter("filter-1274492040") + .setErrorConfig(PurgeErrorConfig.newBuilder().build()) .setForce(true) .build(); @@ -714,6 +721,7 @@ public void purgeDocumentsExceptionTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setFilter("filter-1274492040") + .setErrorConfig(PurgeErrorConfig.newBuilder().build()) .setForce(true) .build(); client.purgeDocumentsAsync(request).get(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientTest.java index 23967bff3129..8b2ee3b98f50 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceClientTest.java @@ -31,7 +31,9 @@ import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; import com.google.protobuf.Struct; +import com.google.protobuf.Timestamp; import com.google.rpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; @@ -102,6 +104,8 @@ public void getDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockDocumentService.addResponse(expectedResponse); @@ -152,6 +156,8 @@ public void getDocumentTest2() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockDocumentService.addResponse(expectedResponse); @@ -290,6 +296,8 @@ public void createDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockDocumentService.addResponse(expectedResponse); @@ -346,6 +354,8 @@ public void createDocumentTest2() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockDocumentService.addResponse(expectedResponse); @@ -398,24 +408,23 @@ public void updateDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockDocumentService.addResponse(expectedResponse); - UpdateDocumentRequest request = - UpdateDocumentRequest.newBuilder() - .setDocument(Document.newBuilder().build()) - .setAllowMissing(true) - .build(); + Document document = Document.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - Document actualResponse = client.updateDocument(request); + Document actualResponse = client.updateDocument(document, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockDocumentService.getRequests(); Assert.assertEquals(1, actualRequests.size()); UpdateDocumentRequest actualRequest = ((UpdateDocumentRequest) actualRequests.get(0)); - Assert.assertEquals(request.getDocument(), actualRequest.getDocument()); - Assert.assertEquals(request.getAllowMissing(), actualRequest.getAllowMissing()); + Assert.assertEquals(document, actualRequest.getDocument()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -428,12 +437,9 @@ public void updateDocumentExceptionTest() throws Exception { mockDocumentService.addException(exception); try { - UpdateDocumentRequest request = - UpdateDocumentRequest.newBuilder() - .setDocument(Document.newBuilder().build()) - .setAllowMissing(true) - .build(); - client.updateDocument(request); + Document document = Document.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDocument(document, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -606,6 +612,7 @@ public void purgeDocumentsTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setFilter("filter-1274492040") + .setErrorConfig(PurgeErrorConfig.newBuilder().build()) .setForce(true) .build(); @@ -616,8 +623,10 @@ public void purgeDocumentsTest() throws Exception { Assert.assertEquals(1, actualRequests.size()); PurgeDocumentsRequest actualRequest = ((PurgeDocumentsRequest) actualRequests.get(0)); + Assert.assertEquals(request.getGcsSource(), actualRequest.getGcsSource()); Assert.assertEquals(request.getParent(), actualRequest.getParent()); Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getErrorConfig(), actualRequest.getErrorConfig()); Assert.assertEquals(request.getForce(), actualRequest.getForce()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -638,6 +647,7 @@ public void purgeDocumentsExceptionTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setFilter("filter-1274492040") + .setErrorConfig(PurgeErrorConfig.newBuilder().build()) .setForce(true) .build(); client.purgeDocumentsAsync(request).get(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..d7148d9be893 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceClientHttpJsonTest.java @@ -0,0 +1,131 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1alpha.stub.HttpJsonEstimateBillingServiceStub; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class EstimateBillingServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static EstimateBillingServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonEstimateBillingServiceStub.getMethodDescriptors(), + EstimateBillingServiceSettings.getDefaultEndpoint()); + EstimateBillingServiceSettings settings = + EstimateBillingServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + EstimateBillingServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = EstimateBillingServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void estimateDataSizeTest() throws Exception { + EstimateDataSizeResponse expectedResponse = + EstimateDataSizeResponse.newBuilder() + .setDataSizeBytes(-2110122398) + .setDocumentCount(1892156651) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("estimateDataSizeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + EstimateDataSizeRequest request = + EstimateDataSizeRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + + EstimateDataSizeResponse actualResponse = client.estimateDataSizeAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void estimateDataSizeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EstimateDataSizeRequest request = + EstimateDataSizeRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + client.estimateDataSizeAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceClientTest.java new file mode 100644 index 000000000000..41928933126d --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceClientTest.java @@ -0,0 +1,139 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class EstimateBillingServiceClientTest { + private static MockEstimateBillingService mockEstimateBillingService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private EstimateBillingServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockEstimateBillingService = new MockEstimateBillingService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockEstimateBillingService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + EstimateBillingServiceSettings settings = + EstimateBillingServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = EstimateBillingServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void estimateDataSizeTest() throws Exception { + EstimateDataSizeResponse expectedResponse = + EstimateDataSizeResponse.newBuilder() + .setDataSizeBytes(-2110122398) + .setDocumentCount(1892156651) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("estimateDataSizeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockEstimateBillingService.addResponse(resultOperation); + + EstimateDataSizeRequest request = + EstimateDataSizeRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + + EstimateDataSizeResponse actualResponse = client.estimateDataSizeAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEstimateBillingService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EstimateDataSizeRequest actualRequest = ((EstimateDataSizeRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getWebsiteDataSource(), actualRequest.getWebsiteDataSource()); + Assert.assertEquals(request.getFileDataSource(), actualRequest.getFileDataSource()); + Assert.assertEquals(request.getLocation(), actualRequest.getLocation()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void estimateDataSizeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEstimateBillingService.addException(exception); + + try { + EstimateDataSizeRequest request = + EstimateDataSizeRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + client.estimateDataSizeAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockAclConfigService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockAclConfigService.java new file mode 100644 index 000000000000..430375052324 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockAclConfigService.java @@ -0,0 +1,59 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAclConfigService implements MockGrpcService { + private final MockAclConfigServiceImpl serviceImpl; + + public MockAclConfigService() { + serviceImpl = new MockAclConfigServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockAclConfigServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockAclConfigServiceImpl.java new file mode 100644 index 000000000000..c7bc1d4ce302 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockAclConfigServiceImpl.java @@ -0,0 +1,102 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceGrpc.AclConfigServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAclConfigServiceImpl extends AclConfigServiceImplBase { + private List requests; + private Queue responses; + + public MockAclConfigServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void updateAclConfig( + UpdateAclConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AclConfig) { + requests.add(request); + responseObserver.onNext(((AclConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateAclConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AclConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAclConfig( + GetAclConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AclConfig) { + requests.add(request); + responseObserver.onNext(((AclConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetAclConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AclConfig.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockChunkService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockChunkService.java new file mode 100644 index 000000000000..6e4cd2649da9 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockChunkService.java @@ -0,0 +1,59 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockChunkService implements MockGrpcService { + private final MockChunkServiceImpl serviceImpl; + + public MockChunkService() { + serviceImpl = new MockChunkServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockChunkServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockChunkServiceImpl.java new file mode 100644 index 000000000000..42f4ee0cc2ba --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockChunkServiceImpl.java @@ -0,0 +1,101 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceGrpc.ChunkServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockChunkServiceImpl extends ChunkServiceImplBase { + private List requests; + private Queue responses; + + public MockChunkServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getChunk(GetChunkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Chunk) { + requests.add(request); + responseObserver.onNext(((Chunk) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetChunk, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Chunk.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listChunks( + ListChunksRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListChunksResponse) { + requests.add(request); + responseObserver.onNext(((ListChunksResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListChunks, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListChunksResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockCompletionServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockCompletionServiceImpl.java index 6edb0f8e0fed..edb8d742d690 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockCompletionServiceImpl.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockCompletionServiceImpl.java @@ -18,6 +18,7 @@ import com.google.api.core.BetaApi; import com.google.cloud.discoveryengine.v1alpha.CompletionServiceGrpc.CompletionServiceImplBase; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import io.grpc.stub.StreamObserver; import java.util.ArrayList; @@ -78,4 +79,46 @@ public void completeQuery( Exception.class.getName()))); } } + + @Override + public void importSuggestionDenyListEntries( + ImportSuggestionDenyListEntriesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ImportSuggestionDenyListEntries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void purgeSuggestionDenyListEntries( + PurgeSuggestionDenyListEntriesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PurgeSuggestionDenyListEntries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockDataStoreServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockDataStoreServiceImpl.java index f3ccc70364dd..00134cc241db 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockDataStoreServiceImpl.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockDataStoreServiceImpl.java @@ -163,4 +163,48 @@ public void updateDataStore( Exception.class.getName()))); } } + + @Override + public void getDocumentProcessingConfig( + GetDocumentProcessingConfigRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DocumentProcessingConfig) { + requests.add(request); + responseObserver.onNext(((DocumentProcessingConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetDocumentProcessingConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DocumentProcessingConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDocumentProcessingConfig( + UpdateDocumentProcessingConfigRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DocumentProcessingConfig) { + requests.add(request); + responseObserver.onNext(((DocumentProcessingConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateDocumentProcessingConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DocumentProcessingConfig.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockEstimateBillingService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockEstimateBillingService.java new file mode 100644 index 000000000000..416d3b05b51c --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockEstimateBillingService.java @@ -0,0 +1,59 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockEstimateBillingService implements MockGrpcService { + private final MockEstimateBillingServiceImpl serviceImpl; + + public MockEstimateBillingService() { + serviceImpl = new MockEstimateBillingServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockEstimateBillingServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockEstimateBillingServiceImpl.java new file mode 100644 index 000000000000..eda8ed734dab --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockEstimateBillingServiceImpl.java @@ -0,0 +1,82 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceGrpc.EstimateBillingServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockEstimateBillingServiceImpl extends EstimateBillingServiceImplBase { + private List requests; + private Queue responses; + + public MockEstimateBillingServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void estimateDataSize( + EstimateDataSizeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method EstimateDataSize, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockServingConfigService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockServingConfigService.java new file mode 100644 index 000000000000..934785e2889a --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockServingConfigService.java @@ -0,0 +1,59 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockServingConfigService implements MockGrpcService { + private final MockServingConfigServiceImpl serviceImpl; + + public MockServingConfigService() { + serviceImpl = new MockServingConfigServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockServingConfigServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockServingConfigServiceImpl.java new file mode 100644 index 000000000000..4941e3600280 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/MockServingConfigServiceImpl.java @@ -0,0 +1,124 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceGrpc.ServingConfigServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockServingConfigServiceImpl extends ServingConfigServiceImplBase { + private List requests; + private Queue responses; + + public MockServingConfigServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void updateServingConfig( + UpdateServingConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ServingConfig) { + requests.add(request); + responseObserver.onNext(((ServingConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateServingConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ServingConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getServingConfig( + GetServingConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ServingConfig) { + requests.add(request); + responseObserver.onNext(((ServingConfig) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetServingConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ServingConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listServingConfigs( + ListServingConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListServingConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListServingConfigsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListServingConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListServingConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientHttpJsonTest.java index 65162902c8df..02b462fb15e6 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientHttpJsonTest.java @@ -103,6 +103,7 @@ public void searchTest() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -118,6 +119,7 @@ public void searchTest() throws Exception { .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) .build(); SearchPagedResponse pagedListResponse = client.search(request); @@ -166,6 +168,7 @@ public void searchExceptionTest() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -181,6 +184,7 @@ public void searchExceptionTest() throws Exception { .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) .build(); client.search(request); Assert.fail("No exception raised"); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientTest.java index 7115662dc3df..e19676440b9d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceClientTest.java @@ -109,6 +109,7 @@ public void searchTest() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -124,6 +125,7 @@ public void searchTest() throws Exception { .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) .build(); SearchPagedResponse pagedListResponse = client.search(request); @@ -145,6 +147,7 @@ public void searchTest() throws Exception { Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); Assert.assertEquals(request.getOffset(), actualRequest.getOffset()); + Assert.assertEquals(request.getDataStoreSpecsList(), actualRequest.getDataStoreSpecsList()); Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); Assert.assertEquals(request.getCanonicalFilter(), actualRequest.getCanonicalFilter()); Assert.assertEquals(request.getOrderBy(), actualRequest.getOrderBy()); @@ -160,6 +163,7 @@ public void searchTest() throws Exception { Assert.assertEquals(request.getRankingExpression(), actualRequest.getRankingExpression()); Assert.assertEquals(request.getSafeSearch(), actualRequest.getSafeSearch()); Assert.assertEquals(request.getUserLabelsMap(), actualRequest.getUserLabelsMap()); + Assert.assertEquals(request.getCustomFineTuningSpec(), actualRequest.getCustomFineTuningSpec()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -187,6 +191,7 @@ public void searchExceptionTest() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -202,6 +207,7 @@ public void searchExceptionTest() throws Exception { .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) .build(); client.search(request); Assert.fail("No exception raised"); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..2373336cb9e2 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceClientHttpJsonTest.java @@ -0,0 +1,483 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient.ListServingConfigsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1alpha.stub.HttpJsonServingConfigServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ServingConfigServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ServingConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonServingConfigServiceStub.getMethodDescriptors(), + ServingConfigServiceSettings.getDefaultEndpoint()); + ServingConfigServiceSettings settings = + ServingConfigServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ServingConfigServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ServingConfigServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void updateServingConfigTest() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setEmbeddingConfig(EmbeddingConfig.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setGuidedSearchSpec(GuidedSearchSpec.newBuilder().build()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + ServingConfig servingConfig = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setEmbeddingConfig(EmbeddingConfig.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setGuidedSearchSpec(GuidedSearchSpec.newBuilder().build()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ServingConfig actualResponse = client.updateServingConfig(servingConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateServingConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ServingConfig servingConfig = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setEmbeddingConfig(EmbeddingConfig.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setGuidedSearchSpec(GuidedSearchSpec.newBuilder().build()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateServingConfig(servingConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServingConfigTest() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setEmbeddingConfig(EmbeddingConfig.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setGuidedSearchSpec(GuidedSearchSpec.newBuilder().build()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + + ServingConfig actualResponse = client.getServingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getServingConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + client.getServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServingConfigTest2() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setEmbeddingConfig(EmbeddingConfig.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setGuidedSearchSpec(GuidedSearchSpec.newBuilder().build()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-387/locations/location-387/dataStores/dataStore-387/servingConfigs/servingConfig-387"; + + ServingConfig actualResponse = client.getServingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getServingConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-387/locations/location-387/dataStores/dataStore-387/servingConfigs/servingConfig-387"; + client.getServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServingConfigsTest() throws Exception { + ServingConfig responsesElement = ServingConfig.newBuilder().build(); + ListServingConfigsResponse expectedResponse = + ListServingConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllServingConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + + ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServingConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listServingConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + client.listServingConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServingConfigsTest2() throws Exception { + ServingConfig responsesElement = ServingConfig.newBuilder().build(); + ListServingConfigsResponse expectedResponse = + ListServingConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllServingConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + + ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServingConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listServingConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + client.listServingConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServingConfigsTest3() throws Exception { + ServingConfig responsesElement = ServingConfig.newBuilder().build(); + ListServingConfigsResponse expectedResponse = + ListServingConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllServingConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + + ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServingConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listServingConfigsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + client.listServingConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceClientTest.java new file mode 100644 index 000000000000..93a78307ca65 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceClientTest.java @@ -0,0 +1,404 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import static com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient.ListServingConfigsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ServingConfigServiceClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockServingConfigService mockServingConfigService; + private LocalChannelProvider channelProvider; + private ServingConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockServingConfigService = new MockServingConfigService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockServingConfigService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + ServingConfigServiceSettings settings = + ServingConfigServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ServingConfigServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void updateServingConfigTest() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setEmbeddingConfig(EmbeddingConfig.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setGuidedSearchSpec(GuidedSearchSpec.newBuilder().build()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ServingConfig actualResponse = client.updateServingConfig(servingConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateServingConfigRequest actualRequest = ((UpdateServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(servingConfig, actualRequest.getServingConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateServingConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateServingConfig(servingConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServingConfigTest() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setEmbeddingConfig(EmbeddingConfig.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setGuidedSearchSpec(GuidedSearchSpec.newBuilder().build()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + + ServingConfig actualResponse = client.getServingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetServingConfigRequest actualRequest = ((GetServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getServingConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + client.getServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServingConfigTest2() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setEmbeddingConfig(EmbeddingConfig.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setGuidedSearchSpec(GuidedSearchSpec.newBuilder().build()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + String name = "name3373707"; + + ServingConfig actualResponse = client.getServingConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetServingConfigRequest actualRequest = ((GetServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getServingConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + String name = "name3373707"; + client.getServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServingConfigsTest() throws Exception { + ServingConfig responsesElement = ServingConfig.newBuilder().build(); + ListServingConfigsResponse expectedResponse = + ListServingConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllServingConfigs(Arrays.asList(responsesElement)) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + + ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServingConfigsList().get(0), resources.get(0)); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListServingConfigsRequest actualRequest = ((ListServingConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listServingConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + client.listServingConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServingConfigsTest2() throws Exception { + ServingConfig responsesElement = ServingConfig.newBuilder().build(); + ListServingConfigsResponse expectedResponse = + ListServingConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllServingConfigs(Arrays.asList(responsesElement)) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + + ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServingConfigsList().get(0), resources.get(0)); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListServingConfigsRequest actualRequest = ((ListServingConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listServingConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + client.listServingConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServingConfigsTest3() throws Exception { + ServingConfig responsesElement = ServingConfig.newBuilder().build(); + ListServingConfigsResponse expectedResponse = + ListServingConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllServingConfigs(Arrays.asList(responsesElement)) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServingConfigsList().get(0), resources.get(0)); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListServingConfigsRequest actualRequest = ((ListServingConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listServingConfigsExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listServingConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java index b7725a46f8e0..2d32c84fbd0a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java @@ -46,6 +46,7 @@ @Generated("by gapic-generator-java") public class CompletionServiceClientTest { private static MockCompletionService mockCompletionService; + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; private CompletionServiceClient client; @@ -53,9 +54,11 @@ public class CompletionServiceClientTest { @BeforeClass public static void startStaticServer() { mockCompletionService = new MockCompletionService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockCompletionService)); + UUID.randomUUID().toString(), + Arrays.asList(mockCompletionService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java index c34330fdea60..abee6bf0ab40 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java @@ -47,6 +47,7 @@ @Generated("by gapic-generator-java") public class ConversationalSearchServiceClientTest { private static MockConversationalSearchService mockConversationalSearchService; + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; private ConversationalSearchServiceClient client; @@ -54,10 +55,11 @@ public class ConversationalSearchServiceClientTest { @BeforeClass public static void startStaticServer() { mockConversationalSearchService = new MockConversationalSearchService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( UUID.randomUUID().toString(), - Arrays.asList(mockConversationalSearchService)); + Arrays.asList(mockConversationalSearchService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientHttpJsonTest.java index 502728ef8243..f5c076fb2a64 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientHttpJsonTest.java @@ -95,6 +95,8 @@ public void createDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -156,6 +158,8 @@ public void createDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -217,6 +221,8 @@ public void getDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -271,6 +277,8 @@ public void getDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -515,6 +523,8 @@ public void updateDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -529,6 +539,8 @@ public void updateDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -569,6 +581,8 @@ public void updateDataStoreExceptionTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateDataStore(dataStore, updateMask); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientTest.java index e1dae52d0005..fe1024ee0576 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientTest.java @@ -51,6 +51,7 @@ @Generated("by gapic-generator-java") public class DataStoreServiceClientTest { private static MockDataStoreService mockDataStoreService; + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; private DataStoreServiceClient client; @@ -58,9 +59,11 @@ public class DataStoreServiceClientTest { @BeforeClass public static void startStaticServer() { mockDataStoreService = new MockDataStoreService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockDataStoreService)); + UUID.randomUUID().toString(), + Arrays.asList(mockDataStoreService, mockLocations)); mockServiceHelper.start(); } @@ -99,6 +102,8 @@ public void createDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -159,6 +164,8 @@ public void createDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -219,6 +226,8 @@ public void getDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); mockDataStoreService.addResponse(expectedResponse); @@ -267,6 +276,8 @@ public void getDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); mockDataStoreService.addResponse(expectedResponse); @@ -487,6 +498,8 @@ public void updateDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setStartingSchema(Schema.newBuilder().build()) .build(); mockDataStoreService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientHttpJsonTest.java index 5dc7ded11ec5..c096793e4437 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientHttpJsonTest.java @@ -33,6 +33,7 @@ import com.google.protobuf.Any; import com.google.protobuf.Empty; import com.google.protobuf.Struct; +import com.google.protobuf.Timestamp; import com.google.rpc.Status; import java.io.IOException; import java.util.ArrayList; @@ -95,6 +96,7 @@ public void getDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -151,6 +153,7 @@ public void getDocumentTest2() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -311,6 +314,7 @@ public void createDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -371,6 +375,7 @@ public void createDocumentTest2() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -429,6 +434,7 @@ public void updateDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -445,6 +451,7 @@ public void updateDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build()) .setAllowMissing(true) .build(); @@ -492,6 +499,7 @@ public void updateDocumentExceptionTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build()) .setAllowMissing(true) .build(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java index aa1f3742b722..9427c35a701c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java @@ -32,6 +32,7 @@ import com.google.protobuf.Any; import com.google.protobuf.Empty; import com.google.protobuf.Struct; +import com.google.protobuf.Timestamp; import com.google.rpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; @@ -51,6 +52,7 @@ @Generated("by gapic-generator-java") public class DocumentServiceClientTest { private static MockDocumentService mockDocumentService; + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; private DocumentServiceClient client; @@ -58,9 +60,11 @@ public class DocumentServiceClientTest { @BeforeClass public static void startStaticServer() { mockDocumentService = new MockDocumentService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockDocumentService)); + UUID.randomUUID().toString(), + Arrays.asList(mockDocumentService, mockLocations)); mockServiceHelper.start(); } @@ -99,6 +103,7 @@ public void getDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockDocumentService.addResponse(expectedResponse); @@ -149,6 +154,7 @@ public void getDocumentTest2() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockDocumentService.addResponse(expectedResponse); @@ -287,6 +293,7 @@ public void createDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockDocumentService.addResponse(expectedResponse); @@ -343,6 +350,7 @@ public void createDocumentTest2() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockDocumentService.addResponse(expectedResponse); @@ -395,6 +403,7 @@ public void updateDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setIndexTime(Timestamp.newBuilder().build()) .build(); mockDocumentService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClientTest.java index f1853d31fae5..64690521b568 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClientTest.java @@ -51,6 +51,7 @@ @Generated("by gapic-generator-java") public class EngineServiceClientTest { private static MockEngineService mockEngineService; + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; private EngineServiceClient client; @@ -58,9 +59,11 @@ public class EngineServiceClientTest { @BeforeClass public static void startStaticServer() { mockEngineService = new MockEngineService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockEngineService)); + UUID.randomUUID().toString(), + Arrays.asList(mockEngineService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockLocations.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockLocations.java new file mode 100644 index 000000000000..73adc92612da --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockLocations.java @@ -0,0 +1,59 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockLocationsImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockLocationsImpl.java new file mode 100644 index 000000000000..29bc7c252daa --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockLocationsImpl.java @@ -0,0 +1,59 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchTuningService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchTuningService.java new file mode 100644 index 000000000000..23e3daf6f659 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchTuningService.java @@ -0,0 +1,59 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSearchTuningService implements MockGrpcService { + private final MockSearchTuningServiceImpl serviceImpl; + + public MockSearchTuningService() { + serviceImpl = new MockSearchTuningServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchTuningServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchTuningServiceImpl.java new file mode 100644 index 000000000000..97d3ca2aa5e6 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockSearchTuningServiceImpl.java @@ -0,0 +1,82 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceGrpc.SearchTuningServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSearchTuningServiceImpl extends SearchTuningServiceImplBase { + private List requests; + private Queue responses; + + public MockSearchTuningServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void trainCustomModel( + TrainCustomModelRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TrainCustomModel, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClientTest.java index 6bc5a321a799..aa722dbc8f14 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceClientTest.java @@ -42,6 +42,7 @@ @Generated("by gapic-generator-java") public class RecommendationServiceClientTest { + private static MockLocations mockLocations; private static MockRecommendationService mockRecommendationService; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; @@ -50,10 +51,11 @@ public class RecommendationServiceClientTest { @BeforeClass public static void startStaticServer() { mockRecommendationService = new MockRecommendationService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( UUID.randomUUID().toString(), - Arrays.asList(mockRecommendationService)); + Arrays.asList(mockRecommendationService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClientTest.java index 4b66a3239043..6e0d61109da8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceClientTest.java @@ -47,6 +47,7 @@ @Generated("by gapic-generator-java") public class SchemaServiceClientTest { + private static MockLocations mockLocations; private static MockSchemaService mockSchemaService; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; @@ -55,9 +56,11 @@ public class SchemaServiceClientTest { @BeforeClass public static void startStaticServer() { mockSchemaService = new MockSchemaService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockSchemaService)); + UUID.randomUUID().toString(), + Arrays.asList(mockSchemaService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java index a6403f89e982..2c7844d416cc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java @@ -103,6 +103,7 @@ public void searchTest() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -166,6 +167,7 @@ public void searchExceptionTest() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java index b152b6c7b7f3..e1b8e8d6def9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java @@ -45,6 +45,7 @@ @Generated("by gapic-generator-java") public class SearchServiceClientTest { + private static MockLocations mockLocations; private static MockSearchService mockSearchService; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; @@ -53,9 +54,11 @@ public class SearchServiceClientTest { @BeforeClass public static void startStaticServer() { mockSearchService = new MockSearchService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockSearchService)); + UUID.randomUUID().toString(), + Arrays.asList(mockSearchService, mockLocations)); mockServiceHelper.start(); } @@ -106,6 +109,7 @@ public void searchTest() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -142,6 +146,7 @@ public void searchTest() throws Exception { Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); Assert.assertEquals(request.getOffset(), actualRequest.getOffset()); + Assert.assertEquals(request.getDataStoreSpecsList(), actualRequest.getDataStoreSpecsList()); Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); Assert.assertEquals(request.getCanonicalFilter(), actualRequest.getCanonicalFilter()); Assert.assertEquals(request.getOrderBy(), actualRequest.getOrderBy()); @@ -184,6 +189,7 @@ public void searchExceptionTest() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..db1228a5fc39 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceClientHttpJsonTest.java @@ -0,0 +1,144 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1beta.stub.HttpJsonSearchTuningServiceStub; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SearchTuningServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static SearchTuningServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSearchTuningServiceStub.getMethodDescriptors(), + SearchTuningServiceSettings.getDefaultEndpoint()); + SearchTuningServiceSettings settings = + SearchTuningServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SearchTuningServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SearchTuningServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void trainCustomModelTest() throws Exception { + TrainCustomModelResponse expectedResponse = + TrainCustomModelResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .setModelStatus("modelStatus488502395") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("trainCustomModelTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + TrainCustomModelRequest request = + TrainCustomModelRequest.newBuilder() + .setDataStore( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setModelType("modelType-2010627581") + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + + TrainCustomModelResponse actualResponse = client.trainCustomModelAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void trainCustomModelExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TrainCustomModelRequest request = + TrainCustomModelRequest.newBuilder() + .setDataStore( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setModelType("modelType-2010627581") + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + client.trainCustomModelAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceClientTest.java new file mode 100644 index 000000000000..63e058f920a8 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceClientTest.java @@ -0,0 +1,153 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.rpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SearchTuningServiceClientTest { + private static MockLocations mockLocations; + private static MockSearchTuningService mockSearchTuningService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private SearchTuningServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockSearchTuningService = new MockSearchTuningService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockSearchTuningService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SearchTuningServiceSettings settings = + SearchTuningServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SearchTuningServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void trainCustomModelTest() throws Exception { + TrainCustomModelResponse expectedResponse = + TrainCustomModelResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .setModelStatus("modelStatus488502395") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("trainCustomModelTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSearchTuningService.addResponse(resultOperation); + + TrainCustomModelRequest request = + TrainCustomModelRequest.newBuilder() + .setDataStore( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setModelType("modelType-2010627581") + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + + TrainCustomModelResponse actualResponse = client.trainCustomModelAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSearchTuningService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TrainCustomModelRequest actualRequest = ((TrainCustomModelRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getGcsTrainingInput(), actualRequest.getGcsTrainingInput()); + Assert.assertEquals(request.getDataStore(), actualRequest.getDataStore()); + Assert.assertEquals(request.getModelType(), actualRequest.getModelType()); + Assert.assertEquals(request.getErrorConfig(), actualRequest.getErrorConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void trainCustomModelExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSearchTuningService.addException(exception); + + try { + TrainCustomModelRequest request = + TrainCustomModelRequest.newBuilder() + .setDataStore( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setModelType("modelType-2010627581") + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + client.trainCustomModelAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientHttpJsonTest.java index de9b6f932927..d8f4a8fed776 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientHttpJsonTest.java @@ -381,7 +381,7 @@ public void listServingConfigsTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); @@ -412,6 +412,56 @@ public void listServingConfigsExceptionTest2() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + client.listServingConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServingConfigsTest3() throws Exception { + ServingConfig responsesElement = ServingConfig.newBuilder().build(); + ListServingConfigsResponse expectedResponse = + ListServingConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllServingConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + + ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServingConfigsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listServingConfigsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; client.listServingConfigs(parent); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientTest.java index 46ec50e0f79e..906723d4a9ed 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientTest.java @@ -45,6 +45,7 @@ @Generated("by gapic-generator-java") public class ServingConfigServiceClientTest { + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private static MockServingConfigService mockServingConfigService; private LocalChannelProvider channelProvider; @@ -53,9 +54,11 @@ public class ServingConfigServiceClientTest { @BeforeClass public static void startStaticServer() { mockServingConfigService = new MockServingConfigService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockServingConfigService)); + UUID.randomUUID().toString(), + Arrays.asList(mockServingConfigService, mockLocations)); mockServiceHelper.start(); } @@ -315,6 +318,50 @@ public void listServingConfigsTest2() throws Exception { .build(); mockServingConfigService.addResponse(expectedResponse); + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + + ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServingConfigsList().get(0), resources.get(0)); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListServingConfigsRequest actualRequest = ((ListServingConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listServingConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + client.listServingConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServingConfigsTest3() throws Exception { + ServingConfig responsesElement = ServingConfig.newBuilder().build(); + ListServingConfigsResponse expectedResponse = + ListServingConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllServingConfigs(Arrays.asList(responsesElement)) + .build(); + mockServingConfigService.addResponse(expectedResponse); + String parent = "parent-995424086"; ListServingConfigsPagedResponse pagedListResponse = client.listServingConfigs(parent); @@ -336,7 +383,7 @@ public void listServingConfigsTest2() throws Exception { } @Test - public void listServingConfigsExceptionTest2() throws Exception { + public void listServingConfigsExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockServingConfigService.addException(exception); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceClientTest.java index 3b23afa97d64..34beae9dc383 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceClientTest.java @@ -50,6 +50,7 @@ @Generated("by gapic-generator-java") public class SiteSearchEngineServiceClientTest { + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private static MockSiteSearchEngineService mockSiteSearchEngineService; private LocalChannelProvider channelProvider; @@ -58,10 +59,11 @@ public class SiteSearchEngineServiceClientTest { @BeforeClass public static void startStaticServer() { mockSiteSearchEngineService = new MockSiteSearchEngineService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( UUID.randomUUID().toString(), - Arrays.asList(mockSiteSearchEngineService)); + Arrays.asList(mockSiteSearchEngineService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java index ec3ac0abc004..d0a47ae46796 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java @@ -49,6 +49,7 @@ @Generated("by gapic-generator-java") public class UserEventServiceClientTest { + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private static MockUserEventService mockUserEventService; private LocalChannelProvider channelProvider; @@ -57,9 +58,11 @@ public class UserEventServiceClientTest { @BeforeClass public static void startStaticServer() { mockUserEventService = new MockUserEventService(); + mockLocations = new MockLocations(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockUserEventService)); + UUID.randomUUID().toString(), + Arrays.asList(mockUserEventService, mockLocations)); mockServiceHelper.start(); } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceGrpc.java new file mode 100644 index 000000000000..a99ff40f200d --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceGrpc.java @@ -0,0 +1,508 @@ +/* + * 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. + */ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                + * Service for managing Acl Configuration.
                                + * 
                                + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/acl_config_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AclConfigServiceGrpc { + + private AclConfigServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1alpha.AclConfigService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest, + com.google.cloud.discoveryengine.v1alpha.AclConfig> + getUpdateAclConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAclConfig", + requestType = com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.AclConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest, + com.google.cloud.discoveryengine.v1alpha.AclConfig> + getUpdateAclConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest, + com.google.cloud.discoveryengine.v1alpha.AclConfig> + getUpdateAclConfigMethod; + if ((getUpdateAclConfigMethod = AclConfigServiceGrpc.getUpdateAclConfigMethod) == null) { + synchronized (AclConfigServiceGrpc.class) { + if ((getUpdateAclConfigMethod = AclConfigServiceGrpc.getUpdateAclConfigMethod) == null) { + AclConfigServiceGrpc.getUpdateAclConfigMethod = + getUpdateAclConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAclConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.AclConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new AclConfigServiceMethodDescriptorSupplier("UpdateAclConfig")) + .build(); + } + } + } + return getUpdateAclConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest, + com.google.cloud.discoveryengine.v1alpha.AclConfig> + getGetAclConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAclConfig", + requestType = com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.AclConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest, + com.google.cloud.discoveryengine.v1alpha.AclConfig> + getGetAclConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest, + com.google.cloud.discoveryengine.v1alpha.AclConfig> + getGetAclConfigMethod; + if ((getGetAclConfigMethod = AclConfigServiceGrpc.getGetAclConfigMethod) == null) { + synchronized (AclConfigServiceGrpc.class) { + if ((getGetAclConfigMethod = AclConfigServiceGrpc.getGetAclConfigMethod) == null) { + AclConfigServiceGrpc.getGetAclConfigMethod = + getGetAclConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAclConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.AclConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new AclConfigServiceMethodDescriptorSupplier("GetAclConfig")) + .build(); + } + } + } + return getGetAclConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AclConfigServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AclConfigServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceStub(channel, callOptions); + } + }; + return AclConfigServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AclConfigServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AclConfigServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceBlockingStub(channel, callOptions); + } + }; + return AclConfigServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AclConfigServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AclConfigServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceFutureStub(channel, callOptions); + } + }; + return AclConfigServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                +   * Service for managing Acl Configuration.
                                +   * 
                                + */ + public interface AsyncService { + + /** + * + * + *
                                +     * Default Acl Configuration for use in a location of a customer's project.
                                +     * Updates will only reflect to new data stores. Existing data stores will
                                +     * still use the old value.
                                +     * 
                                + */ + default void updateAclConfig( + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAclConfigMethod(), responseObserver); + } + + /** + * + * + *
                                +     * Gets the [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig].
                                +     * 
                                + */ + default void getAclConfig( + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAclConfigMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AclConfigService. + * + *
                                +   * Service for managing Acl Configuration.
                                +   * 
                                + */ + public abstract static class AclConfigServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AclConfigServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AclConfigService. + * + *
                                +   * Service for managing Acl Configuration.
                                +   * 
                                + */ + public static final class AclConfigServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AclConfigServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AclConfigServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Default Acl Configuration for use in a location of a customer's project.
                                +     * Updates will only reflect to new data stores. Existing data stores will
                                +     * still use the old value.
                                +     * 
                                + */ + public void updateAclConfig( + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAclConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                +     * Gets the [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig].
                                +     * 
                                + */ + public void getAclConfig( + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAclConfigMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AclConfigService. + * + *
                                +   * Service for managing Acl Configuration.
                                +   * 
                                + */ + public static final class AclConfigServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AclConfigServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AclConfigServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Default Acl Configuration for use in a location of a customer's project.
                                +     * Updates will only reflect to new data stores. Existing data stores will
                                +     * still use the old value.
                                +     * 
                                + */ + public com.google.cloud.discoveryengine.v1alpha.AclConfig updateAclConfig( + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAclConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                +     * Gets the [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig].
                                +     * 
                                + */ + public com.google.cloud.discoveryengine.v1alpha.AclConfig getAclConfig( + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAclConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AclConfigService. + * + *
                                +   * Service for managing Acl Configuration.
                                +   * 
                                + */ + public static final class AclConfigServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AclConfigServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AclConfigServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Default Acl Configuration for use in a location of a customer's project.
                                +     * Updates will only reflect to new data stores. Existing data stores will
                                +     * still use the old value.
                                +     * 
                                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.AclConfig> + updateAclConfig(com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAclConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                +     * Gets the [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig].
                                +     * 
                                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.AclConfig> + getAclConfig(com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAclConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_UPDATE_ACL_CONFIG = 0; + private static final int METHODID_GET_ACL_CONFIG = 1; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_UPDATE_ACL_CONFIG: + serviceImpl.updateAclConfig( + (com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ACL_CONFIG: + serviceImpl.getAclConfig( + (com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getUpdateAclConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest, + com.google.cloud.discoveryengine.v1alpha.AclConfig>( + service, METHODID_UPDATE_ACL_CONFIG))) + .addMethod( + getGetAclConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest, + com.google.cloud.discoveryengine.v1alpha.AclConfig>( + service, METHODID_GET_ACL_CONFIG))) + .build(); + } + + private abstract static class AclConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AclConfigServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AclConfigService"); + } + } + + private static final class AclConfigServiceFileDescriptorSupplier + extends AclConfigServiceBaseDescriptorSupplier { + AclConfigServiceFileDescriptorSupplier() {} + } + + private static final class AclConfigServiceMethodDescriptorSupplier + extends AclConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AclConfigServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AclConfigServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AclConfigServiceFileDescriptorSupplier()) + .addMethod(getUpdateAclConfigMethod()) + .addMethod(getGetAclConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceGrpc.java new file mode 100644 index 000000000000..6173dd9a2b69 --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceGrpc.java @@ -0,0 +1,503 @@ +/* + * 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. + */ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                + * Service for displaying processed
                                + * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] information of the
                                + * customer's unstructured data.
                                + * 
                                + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/chunk_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ChunkServiceGrpc { + + private ChunkServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1alpha.ChunkService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest, + com.google.cloud.discoveryengine.v1alpha.Chunk> + getGetChunkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetChunk", + requestType = com.google.cloud.discoveryengine.v1alpha.GetChunkRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.Chunk.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest, + com.google.cloud.discoveryengine.v1alpha.Chunk> + getGetChunkMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest, + com.google.cloud.discoveryengine.v1alpha.Chunk> + getGetChunkMethod; + if ((getGetChunkMethod = ChunkServiceGrpc.getGetChunkMethod) == null) { + synchronized (ChunkServiceGrpc.class) { + if ((getGetChunkMethod = ChunkServiceGrpc.getGetChunkMethod) == null) { + ChunkServiceGrpc.getGetChunkMethod = + getGetChunkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetChunk")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.Chunk.getDefaultInstance())) + .setSchemaDescriptor(new ChunkServiceMethodDescriptorSupplier("GetChunk")) + .build(); + } + } + } + return getGetChunkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest, + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse> + getListChunksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListChunks", + requestType = com.google.cloud.discoveryengine.v1alpha.ListChunksRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.ListChunksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest, + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse> + getListChunksMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest, + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse> + getListChunksMethod; + if ((getListChunksMethod = ChunkServiceGrpc.getListChunksMethod) == null) { + synchronized (ChunkServiceGrpc.class) { + if ((getListChunksMethod = ChunkServiceGrpc.getListChunksMethod) == null) { + ChunkServiceGrpc.getListChunksMethod = + getListChunksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListChunks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse + .getDefaultInstance())) + .setSchemaDescriptor(new ChunkServiceMethodDescriptorSupplier("ListChunks")) + .build(); + } + } + } + return getListChunksMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ChunkServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ChunkServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChunkServiceStub(channel, callOptions); + } + }; + return ChunkServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ChunkServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ChunkServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChunkServiceBlockingStub(channel, callOptions); + } + }; + return ChunkServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ChunkServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ChunkServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChunkServiceFutureStub(channel, callOptions); + } + }; + return ChunkServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                +   * Service for displaying processed
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] information of the
                                +   * customer's unstructured data.
                                +   * 
                                + */ + public interface AsyncService { + + /** + * + * + *
                                +     * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document].
                                +     * 
                                + */ + default void getChunk( + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetChunkMethod(), responseObserver); + } + + /** + * + * + *
                                +     * Gets a list of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + */ + default void listChunks( + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListChunksMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ChunkService. + * + *
                                +   * Service for displaying processed
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] information of the
                                +   * customer's unstructured data.
                                +   * 
                                + */ + public abstract static class ChunkServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ChunkServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ChunkService. + * + *
                                +   * Service for displaying processed
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] information of the
                                +   * customer's unstructured data.
                                +   * 
                                + */ + public static final class ChunkServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ChunkServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ChunkServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChunkServiceStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document].
                                +     * 
                                + */ + public void getChunk( + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetChunkMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
                                +     * Gets a list of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + */ + public void listChunks( + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListChunksMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ChunkService. + * + *
                                +   * Service for displaying processed
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] information of the
                                +   * customer's unstructured data.
                                +   * 
                                + */ + public static final class ChunkServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ChunkServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ChunkServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChunkServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document].
                                +     * 
                                + */ + public com.google.cloud.discoveryengine.v1alpha.Chunk getChunk( + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetChunkMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                +     * Gets a list of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + */ + public com.google.cloud.discoveryengine.v1alpha.ListChunksResponse listChunks( + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListChunksMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ChunkService. + * + *
                                +   * Service for displaying processed
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] information of the
                                +   * customer's unstructured data.
                                +   * 
                                + */ + public static final class ChunkServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ChunkServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ChunkServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ChunkServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Gets a [Document][google.cloud.discoveryengine.v1alpha.Document].
                                +     * 
                                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.Chunk> + getChunk(com.google.cloud.discoveryengine.v1alpha.GetChunkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetChunkMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                +     * Gets a list of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse> + listChunks(com.google.cloud.discoveryengine.v1alpha.ListChunksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListChunksMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_CHUNK = 0; + private static final int METHODID_LIST_CHUNKS = 1; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_CHUNK: + serviceImpl.getChunk( + (com.google.cloud.discoveryengine.v1alpha.GetChunkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CHUNKS: + serviceImpl.listChunks( + (com.google.cloud.discoveryengine.v1alpha.ListChunksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetChunkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest, + com.google.cloud.discoveryengine.v1alpha.Chunk>(service, METHODID_GET_CHUNK))) + .addMethod( + getListChunksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest, + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse>( + service, METHODID_LIST_CHUNKS))) + .build(); + } + + private abstract static class ChunkServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ChunkServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ChunkService"); + } + } + + private static final class ChunkServiceFileDescriptorSupplier + extends ChunkServiceBaseDescriptorSupplier { + ChunkServiceFileDescriptorSupplier() {} + } + + private static final class ChunkServiceMethodDescriptorSupplier + extends ChunkServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ChunkServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ChunkServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ChunkServiceFileDescriptorSupplier()) + .addMethod(getGetChunkMethod()) + .addMethod(getListChunksMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceGrpc.java index 5c6517856742..96a126c4b07d 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceGrpc.java @@ -83,6 +83,114 @@ private CompletionServiceGrpc() {} return getCompleteQueryMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest, + com.google.longrunning.Operation> + getImportSuggestionDenyListEntriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportSuggestionDenyListEntries", + requestType = + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest, + com.google.longrunning.Operation> + getImportSuggestionDenyListEntriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest, + com.google.longrunning.Operation> + getImportSuggestionDenyListEntriesMethod; + if ((getImportSuggestionDenyListEntriesMethod = + CompletionServiceGrpc.getImportSuggestionDenyListEntriesMethod) + == null) { + synchronized (CompletionServiceGrpc.class) { + if ((getImportSuggestionDenyListEntriesMethod = + CompletionServiceGrpc.getImportSuggestionDenyListEntriesMethod) + == null) { + CompletionServiceGrpc.getImportSuggestionDenyListEntriesMethod = + getImportSuggestionDenyListEntriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ImportSuggestionDenyListEntries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha + .ImportSuggestionDenyListEntriesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CompletionServiceMethodDescriptorSupplier( + "ImportSuggestionDenyListEntries")) + .build(); + } + } + } + return getImportSuggestionDenyListEntriesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest, + com.google.longrunning.Operation> + getPurgeSuggestionDenyListEntriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeSuggestionDenyListEntries", + requestType = + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest, + com.google.longrunning.Operation> + getPurgeSuggestionDenyListEntriesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest, + com.google.longrunning.Operation> + getPurgeSuggestionDenyListEntriesMethod; + if ((getPurgeSuggestionDenyListEntriesMethod = + CompletionServiceGrpc.getPurgeSuggestionDenyListEntriesMethod) + == null) { + synchronized (CompletionServiceGrpc.class) { + if ((getPurgeSuggestionDenyListEntriesMethod = + CompletionServiceGrpc.getPurgeSuggestionDenyListEntriesMethod) + == null) { + CompletionServiceGrpc.getPurgeSuggestionDenyListEntriesMethod = + getPurgeSuggestionDenyListEntriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "PurgeSuggestionDenyListEntries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha + .PurgeSuggestionDenyListEntriesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CompletionServiceMethodDescriptorSupplier( + "PurgeSuggestionDenyListEntries")) + .build(); + } + } + } + return getPurgeSuggestionDenyListEntriesMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static CompletionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -147,6 +255,38 @@ default void completeQuery( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getCompleteQueryMethod(), responseObserver); } + + /** + * + * + *
                                +     * Imports all
                                +     * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry]
                                +     * for a DataStore.
                                +     * 
                                + */ + default void importSuggestionDenyListEntries( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportSuggestionDenyListEntriesMethod(), responseObserver); + } + + /** + * + * + *
                                +     * Permanently deletes all
                                +     * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry]
                                +     * for a DataStore.
                                +     * 
                                + */ + default void purgeSuggestionDenyListEntries( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPurgeSuggestionDenyListEntriesMethod(), responseObserver); + } } /** @@ -200,6 +340,42 @@ public void completeQuery( request, responseObserver); } + + /** + * + * + *
                                +     * Imports all
                                +     * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry]
                                +     * for a DataStore.
                                +     * 
                                + */ + public void importSuggestionDenyListEntries( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportSuggestionDenyListEntriesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                +     * Permanently deletes all
                                +     * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry]
                                +     * for a DataStore.
                                +     * 
                                + */ + public void purgeSuggestionDenyListEntries( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPurgeSuggestionDenyListEntriesMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -234,6 +410,36 @@ public com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse completeQu return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCompleteQueryMethod(), getCallOptions(), request); } + + /** + * + * + *
                                +     * Imports all
                                +     * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry]
                                +     * for a DataStore.
                                +     * 
                                + */ + public com.google.longrunning.Operation importSuggestionDenyListEntries( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportSuggestionDenyListEntriesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                +     * Permanently deletes all
                                +     * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry]
                                +     * for a DataStore.
                                +     * 
                                + */ + public com.google.longrunning.Operation purgeSuggestionDenyListEntries( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeSuggestionDenyListEntriesMethod(), getCallOptions(), request); + } } /** @@ -268,9 +474,47 @@ protected CompletionServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCompleteQueryMethod(), getCallOptions()), request); } + + /** + * + * + *
                                +     * Imports all
                                +     * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry]
                                +     * for a DataStore.
                                +     * 
                                + */ + public com.google.common.util.concurrent.ListenableFuture + importSuggestionDenyListEntries( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportSuggestionDenyListEntriesMethod(), getCallOptions()), + request); + } + + /** + * + * + *
                                +     * Permanently deletes all
                                +     * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry]
                                +     * for a DataStore.
                                +     * 
                                + */ + public com.google.common.util.concurrent.ListenableFuture + purgeSuggestionDenyListEntries( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPurgeSuggestionDenyListEntriesMethod(), getCallOptions()), + request); + } } private static final int METHODID_COMPLETE_QUERY = 0; + private static final int METHODID_IMPORT_SUGGESTION_DENY_LIST_ENTRIES = 1; + private static final int METHODID_PURGE_SUGGESTION_DENY_LIST_ENTRIES = 2; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -296,6 +540,18 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse>) responseObserver); break; + case METHODID_IMPORT_SUGGESTION_DENY_LIST_ENTRIES: + serviceImpl.importSuggestionDenyListEntries( + (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PURGE_SUGGESTION_DENY_LIST_ENTRIES: + serviceImpl.purgeSuggestionDenyListEntries( + (com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -321,6 +577,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.discoveryengine.v1alpha.CompleteQueryRequest, com.google.cloud.discoveryengine.v1alpha.CompleteQueryResponse>( service, METHODID_COMPLETE_QUERY))) + .addMethod( + getImportSuggestionDenyListEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest, + com.google.longrunning.Operation>( + service, METHODID_IMPORT_SUGGESTION_DENY_LIST_ENTRIES))) + .addMethod( + getPurgeSuggestionDenyListEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest, + com.google.longrunning.Operation>( + service, METHODID_PURGE_SUGGESTION_DENY_LIST_ENTRIES))) .build(); } @@ -373,6 +643,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new CompletionServiceFileDescriptorSupplier()) .addMethod(getCompleteQueryMethod()) + .addMethod(getImportSuggestionDenyListEntriesMethod()) + .addMethod(getPurgeSuggestionDenyListEntriesMethod()) .build(); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceGrpc.java index 653461df12ad..fd55fda7a309 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceGrpc.java @@ -270,6 +270,115 @@ private DataStoreServiceGrpc() {} return getUpdateDataStoreMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig> + getGetDocumentProcessingConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDocumentProcessingConfig", + requestType = + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig> + getGetDocumentProcessingConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig> + getGetDocumentProcessingConfigMethod; + if ((getGetDocumentProcessingConfigMethod = + DataStoreServiceGrpc.getGetDocumentProcessingConfigMethod) + == null) { + synchronized (DataStoreServiceGrpc.class) { + if ((getGetDocumentProcessingConfigMethod = + DataStoreServiceGrpc.getGetDocumentProcessingConfigMethod) + == null) { + DataStoreServiceGrpc.getGetDocumentProcessingConfigMethod = + getGetDocumentProcessingConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDocumentProcessingConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha + .GetDocumentProcessingConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new DataStoreServiceMethodDescriptorSupplier( + "GetDocumentProcessingConfig")) + .build(); + } + } + } + return getGetDocumentProcessingConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig> + getUpdateDocumentProcessingConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDocumentProcessingConfig", + requestType = + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig> + getUpdateDocumentProcessingConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig> + getUpdateDocumentProcessingConfigMethod; + if ((getUpdateDocumentProcessingConfigMethod = + DataStoreServiceGrpc.getUpdateDocumentProcessingConfigMethod) + == null) { + synchronized (DataStoreServiceGrpc.class) { + if ((getUpdateDocumentProcessingConfigMethod = + DataStoreServiceGrpc.getUpdateDocumentProcessingConfigMethod) + == null) { + DataStoreServiceGrpc.getUpdateDocumentProcessingConfigMethod = + getUpdateDocumentProcessingConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateDocumentProcessingConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha + .UpdateDocumentProcessingConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new DataStoreServiceMethodDescriptorSupplier( + "UpdateDocumentProcessingConfig")) + .build(); + } + } + } + return getUpdateDocumentProcessingConfigMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static DataStoreServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -399,6 +508,46 @@ default void updateDataStore( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateDataStoreMethod(), responseObserver); } + + /** + * + * + *
                                +     * Gets a
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig].
                                +     * 
                                + */ + default void getDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDocumentProcessingConfigMethod(), responseObserver); + } + + /** + * + * + *
                                +     * Updates the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig].
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * is a singleon resource of
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. It's empty
                                +     * when [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is
                                +     * created. The first call to this method will set up
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig].
                                +     * 
                                + */ + default void updateDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDocumentProcessingConfigMethod(), responseObserver); + } } /** @@ -525,6 +674,50 @@ public void updateDataStore( request, responseObserver); } + + /** + * + * + *
                                +     * Gets a
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig].
                                +     * 
                                + */ + public void getDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDocumentProcessingConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                +     * Updates the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig].
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * is a singleon resource of
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. It's empty
                                +     * when [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is
                                +     * created. The first call to this method will set up
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig].
                                +     * 
                                + */ + public void updateDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDocumentProcessingConfigMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -617,6 +810,43 @@ public com.google.cloud.discoveryengine.v1alpha.DataStore updateDataStore( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateDataStoreMethod(), getCallOptions(), request); } + + /** + * + * + *
                                +     * Gets a
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig].
                                +     * 
                                + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + getDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDocumentProcessingConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                +     * Updates the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig].
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * is a singleon resource of
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. It's empty
                                +     * when [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is
                                +     * created. The first call to this method will set up
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig].
                                +     * 
                                + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + updateDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDocumentProcessingConfigMethod(), getCallOptions(), request); + } } /** @@ -712,6 +942,46 @@ protected DataStoreServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateDataStoreMethod(), getCallOptions()), request); } + + /** + * + * + *
                                +     * Gets a
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig].
                                +     * 
                                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig> + getDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDocumentProcessingConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                +     * Updates the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig].
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * is a singleon resource of
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. It's empty
                                +     * when [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is
                                +     * created. The first call to this method will set up
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig].
                                +     * 
                                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig> + updateDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDocumentProcessingConfigMethod(), getCallOptions()), + request); + } } private static final int METHODID_CREATE_DATA_STORE = 0; @@ -719,6 +989,8 @@ protected DataStoreServiceFutureStub build( private static final int METHODID_LIST_DATA_STORES = 2; private static final int METHODID_DELETE_DATA_STORE = 3; private static final int METHODID_UPDATE_DATA_STORE = 4; + private static final int METHODID_GET_DOCUMENT_PROCESSING_CONFIG = 5; + private static final int METHODID_UPDATE_DOCUMENT_PROCESSING_CONFIG = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -766,6 +1038,21 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_DOCUMENT_PROCESSING_CONFIG: + serviceImpl.getDocumentProcessingConfig( + (com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig>) + responseObserver); + break; + case METHODID_UPDATE_DOCUMENT_PROCESSING_CONFIG: + serviceImpl.updateDocumentProcessingConfig( + (com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig>) + responseObserver); + break; default: throw new AssertionError(); } @@ -817,6 +1104,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.discoveryengine.v1alpha.UpdateDataStoreRequest, com.google.cloud.discoveryengine.v1alpha.DataStore>( service, METHODID_UPDATE_DATA_STORE))) + .addMethod( + getGetDocumentProcessingConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig>( + service, METHODID_GET_DOCUMENT_PROCESSING_CONFIG))) + .addMethod( + getUpdateDocumentProcessingConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig>( + service, METHODID_UPDATE_DOCUMENT_PROCESSING_CONFIG))) .build(); } @@ -873,6 +1174,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListDataStoresMethod()) .addMethod(getDeleteDataStoreMethod()) .addMethod(getUpdateDataStoreMethod()) + .addMethod(getGetDocumentProcessingConfigMethod()) + .addMethod(getUpdateDocumentProcessingConfigMethod()) .build(); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceGrpc.java index 15e14ea452c2..b3cd9898eebb 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineServiceGrpc.java @@ -531,7 +531,7 @@ default void listEngines( * *
                                      * Pauses the training of an existing engine. Only applicable if
                                -     * [solution_type][] is
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                      * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                      * 
                                */ @@ -564,7 +564,8 @@ default void resumeEngine( * * *
                                -     * Tunes an existing engine. Only applicable if [solution_type][] is
                                +     * Tunes an existing engine. Only applicable if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                      * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                      * 
                                */ @@ -698,7 +699,7 @@ public void listEngines( * *
                                      * Pauses the training of an existing engine. Only applicable if
                                -     * [solution_type][] is
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                      * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                      * 
                                */ @@ -735,7 +736,8 @@ public void resumeEngine( * * *
                                -     * Tunes an existing engine. Only applicable if [solution_type][] is
                                +     * Tunes an existing engine. Only applicable if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                      * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                      * 
                                */ @@ -838,7 +840,7 @@ public com.google.cloud.discoveryengine.v1alpha.ListEnginesResponse listEngines( * *
                                      * Pauses the training of an existing engine. Only applicable if
                                -     * [solution_type][] is
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                      * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                      * 
                                */ @@ -867,7 +869,8 @@ public com.google.cloud.discoveryengine.v1alpha.Engine resumeEngine( * * *
                                -     * Tunes an existing engine. Only applicable if [solution_type][] is
                                +     * Tunes an existing engine. Only applicable if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                      * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                      * 
                                */ @@ -972,7 +975,7 @@ protected EngineServiceFutureStub build( * *
                                      * Pauses the training of an existing engine. Only applicable if
                                -     * [solution_type][] is
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                      * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                      * 
                                */ @@ -1003,7 +1006,8 @@ protected EngineServiceFutureStub build( * * *
                                -     * Tunes an existing engine. Only applicable if [solution_type][] is
                                +     * Tunes an existing engine. Only applicable if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                      * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                      * 
                                */ diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceGrpc.java new file mode 100644 index 000000000000..bb8367e6adb2 --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceGrpc.java @@ -0,0 +1,379 @@ +/* + * 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. + */ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                + * Service for managing billing estimations resources.
                                + * 
                                + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class EstimateBillingServiceGrpc { + + private EstimateBillingServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1alpha.EstimateBillingService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest, + com.google.longrunning.Operation> + getEstimateDataSizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EstimateDataSize", + requestType = com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest, + com.google.longrunning.Operation> + getEstimateDataSizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest, + com.google.longrunning.Operation> + getEstimateDataSizeMethod; + if ((getEstimateDataSizeMethod = EstimateBillingServiceGrpc.getEstimateDataSizeMethod) + == null) { + synchronized (EstimateBillingServiceGrpc.class) { + if ((getEstimateDataSizeMethod = EstimateBillingServiceGrpc.getEstimateDataSizeMethod) + == null) { + EstimateBillingServiceGrpc.getEstimateDataSizeMethod = + getEstimateDataSizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EstimateDataSize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new EstimateBillingServiceMethodDescriptorSupplier("EstimateDataSize")) + .build(); + } + } + } + return getEstimateDataSizeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static EstimateBillingServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EstimateBillingServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EstimateBillingServiceStub(channel, callOptions); + } + }; + return EstimateBillingServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static EstimateBillingServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EstimateBillingServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EstimateBillingServiceBlockingStub(channel, callOptions); + } + }; + return EstimateBillingServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static EstimateBillingServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EstimateBillingServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EstimateBillingServiceFutureStub(channel, callOptions); + } + }; + return EstimateBillingServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                +   * Service for managing billing estimations resources.
                                +   * 
                                + */ + public interface AsyncService { + + /** + * + * + *
                                +     * Estimates the data size to be used by a customer.
                                +     * 
                                + */ + default void estimateDataSize( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEstimateDataSizeMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service EstimateBillingService. + * + *
                                +   * Service for managing billing estimations resources.
                                +   * 
                                + */ + public abstract static class EstimateBillingServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return EstimateBillingServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service EstimateBillingService. + * + *
                                +   * Service for managing billing estimations resources.
                                +   * 
                                + */ + public static final class EstimateBillingServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private EstimateBillingServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EstimateBillingServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EstimateBillingServiceStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Estimates the data size to be used by a customer.
                                +     * 
                                + */ + public void estimateDataSize( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEstimateDataSizeMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service EstimateBillingService. + * + *
                                +   * Service for managing billing estimations resources.
                                +   * 
                                + */ + public static final class EstimateBillingServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private EstimateBillingServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EstimateBillingServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EstimateBillingServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Estimates the data size to be used by a customer.
                                +     * 
                                + */ + public com.google.longrunning.Operation estimateDataSize( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEstimateDataSizeMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * EstimateBillingService. + * + *
                                +   * Service for managing billing estimations resources.
                                +   * 
                                + */ + public static final class EstimateBillingServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private EstimateBillingServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EstimateBillingServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EstimateBillingServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Estimates the data size to be used by a customer.
                                +     * 
                                + */ + public com.google.common.util.concurrent.ListenableFuture + estimateDataSize(com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEstimateDataSizeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_ESTIMATE_DATA_SIZE = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_ESTIMATE_DATA_SIZE: + serviceImpl.estimateDataSize( + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getEstimateDataSizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest, + com.google.longrunning.Operation>(service, METHODID_ESTIMATE_DATA_SIZE))) + .build(); + } + + private abstract static class EstimateBillingServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + EstimateBillingServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("EstimateBillingService"); + } + } + + private static final class EstimateBillingServiceFileDescriptorSupplier + extends EstimateBillingServiceBaseDescriptorSupplier { + EstimateBillingServiceFileDescriptorSupplier() {} + } + + private static final class EstimateBillingServiceMethodDescriptorSupplier + extends EstimateBillingServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + EstimateBillingServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (EstimateBillingServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new EstimateBillingServiceFileDescriptorSupplier()) + .addMethod(getEstimateDataSizeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceGrpc.java new file mode 100644 index 000000000000..46d42c5f92a0 --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceGrpc.java @@ -0,0 +1,643 @@ +/* + * 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. + */ +package com.google.cloud.discoveryengine.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                + * Service for operations related to [ServingConfig][].
                                + * 
                                + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1alpha/serving_config_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ServingConfigServiceGrpc { + + private ServingConfigServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1alpha.ServingConfigService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.ServingConfig> + getUpdateServingConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateServingConfig", + requestType = com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.ServingConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.ServingConfig> + getUpdateServingConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.ServingConfig> + getUpdateServingConfigMethod; + if ((getUpdateServingConfigMethod = ServingConfigServiceGrpc.getUpdateServingConfigMethod) + == null) { + synchronized (ServingConfigServiceGrpc.class) { + if ((getUpdateServingConfigMethod = ServingConfigServiceGrpc.getUpdateServingConfigMethod) + == null) { + ServingConfigServiceGrpc.getUpdateServingConfigMethod = + getUpdateServingConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateServingConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ServingConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new ServingConfigServiceMethodDescriptorSupplier("UpdateServingConfig")) + .build(); + } + } + } + return getUpdateServingConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.ServingConfig> + getGetServingConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetServingConfig", + requestType = com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.ServingConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.ServingConfig> + getGetServingConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.ServingConfig> + getGetServingConfigMethod; + if ((getGetServingConfigMethod = ServingConfigServiceGrpc.getGetServingConfigMethod) == null) { + synchronized (ServingConfigServiceGrpc.class) { + if ((getGetServingConfigMethod = ServingConfigServiceGrpc.getGetServingConfigMethod) + == null) { + ServingConfigServiceGrpc.getGetServingConfigMethod = + getGetServingConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServingConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ServingConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new ServingConfigServiceMethodDescriptorSupplier("GetServingConfig")) + .build(); + } + } + } + return getGetServingConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest, + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse> + getListServingConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListServingConfigs", + requestType = com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest.class, + responseType = com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest, + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse> + getListServingConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest, + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse> + getListServingConfigsMethod; + if ((getListServingConfigsMethod = ServingConfigServiceGrpc.getListServingConfigsMethod) + == null) { + synchronized (ServingConfigServiceGrpc.class) { + if ((getListServingConfigsMethod = ServingConfigServiceGrpc.getListServingConfigsMethod) + == null) { + ServingConfigServiceGrpc.getListServingConfigsMethod = + getListServingConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServingConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ServingConfigServiceMethodDescriptorSupplier("ListServingConfigs")) + .build(); + } + } + } + return getListServingConfigsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ServingConfigServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServingConfigServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServingConfigServiceStub(channel, callOptions); + } + }; + return ServingConfigServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ServingConfigServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServingConfigServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServingConfigServiceBlockingStub(channel, callOptions); + } + }; + return ServingConfigServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ServingConfigServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ServingConfigServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServingConfigServiceFutureStub(channel, callOptions); + } + }; + return ServingConfigServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                +   * Service for operations related to [ServingConfig][].
                                +   * 
                                + */ + public interface AsyncService { + + /** + * + * + *
                                +     * Updates a ServingConfig.
                                +     * Returns a NOT_FOUND error if the ServingConfig does not exist.
                                +     * 
                                + */ + default void updateServingConfig( + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateServingConfigMethod(), responseObserver); + } + + /** + * + * + *
                                +     * Gets a ServingConfig.
                                +     * Returns a NotFound error if the ServingConfig does not exist.
                                +     * 
                                + */ + default void getServingConfig( + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetServingConfigMethod(), responseObserver); + } + + /** + * + * + *
                                +     * Lists all ServingConfigs linked to this dataStore.
                                +     * 
                                + */ + default void listServingConfigs( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListServingConfigsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service ServingConfigService. + * + *
                                +   * Service for operations related to [ServingConfig][].
                                +   * 
                                + */ + public abstract static class ServingConfigServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return ServingConfigServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service ServingConfigService. + * + *
                                +   * Service for operations related to [ServingConfig][].
                                +   * 
                                + */ + public static final class ServingConfigServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ServingConfigServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServingConfigServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServingConfigServiceStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Updates a ServingConfig.
                                +     * Returns a NOT_FOUND error if the ServingConfig does not exist.
                                +     * 
                                + */ + public void updateServingConfig( + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateServingConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                +     * Gets a ServingConfig.
                                +     * Returns a NotFound error if the ServingConfig does not exist.
                                +     * 
                                + */ + public void getServingConfig( + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServingConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                +     * Lists all ServingConfigs linked to this dataStore.
                                +     * 
                                + */ + public void listServingConfigs( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListServingConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service ServingConfigService. + * + *
                                +   * Service for operations related to [ServingConfig][].
                                +   * 
                                + */ + public static final class ServingConfigServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ServingConfigServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServingConfigServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServingConfigServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Updates a ServingConfig.
                                +     * Returns a NOT_FOUND error if the ServingConfig does not exist.
                                +     * 
                                + */ + public com.google.cloud.discoveryengine.v1alpha.ServingConfig updateServingConfig( + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateServingConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                +     * Gets a ServingConfig.
                                +     * Returns a NotFound error if the ServingConfig does not exist.
                                +     * 
                                + */ + public com.google.cloud.discoveryengine.v1alpha.ServingConfig getServingConfig( + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServingConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                +     * Lists all ServingConfigs linked to this dataStore.
                                +     * 
                                + */ + public com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse listServingConfigs( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServingConfigsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service ServingConfigService. + * + *
                                +   * Service for operations related to [ServingConfig][].
                                +   * 
                                + */ + public static final class ServingConfigServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ServingConfigServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServingConfigServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServingConfigServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Updates a ServingConfig.
                                +     * Returns a NOT_FOUND error if the ServingConfig does not exist.
                                +     * 
                                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.ServingConfig> + updateServingConfig( + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateServingConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                +     * Gets a ServingConfig.
                                +     * Returns a NotFound error if the ServingConfig does not exist.
                                +     * 
                                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.ServingConfig> + getServingConfig(com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServingConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                +     * Lists all ServingConfigs linked to this dataStore.
                                +     * 
                                + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse> + listServingConfigs( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListServingConfigsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_UPDATE_SERVING_CONFIG = 0; + private static final int METHODID_GET_SERVING_CONFIG = 1; + private static final int METHODID_LIST_SERVING_CONFIGS = 2; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_UPDATE_SERVING_CONFIG: + serviceImpl.updateServingConfig( + (com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SERVING_CONFIG: + serviceImpl.getServingConfig( + (com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SERVING_CONFIGS: + serviceImpl.listServingConfigs( + (com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getUpdateServingConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.ServingConfig>( + service, METHODID_UPDATE_SERVING_CONFIG))) + .addMethod( + getGetServingConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest, + com.google.cloud.discoveryengine.v1alpha.ServingConfig>( + service, METHODID_GET_SERVING_CONFIG))) + .addMethod( + getListServingConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest, + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse>( + service, METHODID_LIST_SERVING_CONFIGS))) + .build(); + } + + private abstract static class ServingConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ServingConfigServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ServingConfigService"); + } + } + + private static final class ServingConfigServiceFileDescriptorSupplier + extends ServingConfigServiceBaseDescriptorSupplier { + ServingConfigServiceFileDescriptorSupplier() {} + } + + private static final class ServingConfigServiceMethodDescriptorSupplier + extends ServingConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + ServingConfigServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ServingConfigServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ServingConfigServiceFileDescriptorSupplier()) + .addMethod(getUpdateServingConfigMethod()) + .addMethod(getGetServingConfigMethod()) + .addMethod(getListServingConfigsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceGrpc.java new file mode 100644 index 000000000000..b80d2fa30aff --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceGrpc.java @@ -0,0 +1,377 @@ +/* + * 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. + */ +package com.google.cloud.discoveryengine.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
                                + * Service for search tuning.
                                + * 
                                + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/discoveryengine/v1beta/search_tuning_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SearchTuningServiceGrpc { + + private SearchTuningServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1beta.SearchTuningService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest, + com.google.longrunning.Operation> + getTrainCustomModelMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TrainCustomModel", + requestType = com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest, + com.google.longrunning.Operation> + getTrainCustomModelMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest, + com.google.longrunning.Operation> + getTrainCustomModelMethod; + if ((getTrainCustomModelMethod = SearchTuningServiceGrpc.getTrainCustomModelMethod) == null) { + synchronized (SearchTuningServiceGrpc.class) { + if ((getTrainCustomModelMethod = SearchTuningServiceGrpc.getTrainCustomModelMethod) + == null) { + SearchTuningServiceGrpc.getTrainCustomModelMethod = + getTrainCustomModelMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TrainCustomModel")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SearchTuningServiceMethodDescriptorSupplier("TrainCustomModel")) + .build(); + } + } + } + return getTrainCustomModelMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SearchTuningServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SearchTuningServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchTuningServiceStub(channel, callOptions); + } + }; + return SearchTuningServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SearchTuningServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SearchTuningServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchTuningServiceBlockingStub(channel, callOptions); + } + }; + return SearchTuningServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SearchTuningServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SearchTuningServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchTuningServiceFutureStub(channel, callOptions); + } + }; + return SearchTuningServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
                                +   * Service for search tuning.
                                +   * 
                                + */ + public interface AsyncService { + + /** + * + * + *
                                +     * Trains a custom model.
                                +     * 
                                + */ + default void trainCustomModel( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTrainCustomModelMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SearchTuningService. + * + *
                                +   * Service for search tuning.
                                +   * 
                                + */ + public abstract static class SearchTuningServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SearchTuningServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SearchTuningService. + * + *
                                +   * Service for search tuning.
                                +   * 
                                + */ + public static final class SearchTuningServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SearchTuningServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SearchTuningServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchTuningServiceStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Trains a custom model.
                                +     * 
                                + */ + public void trainCustomModel( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTrainCustomModelMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SearchTuningService. + * + *
                                +   * Service for search tuning.
                                +   * 
                                + */ + public static final class SearchTuningServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SearchTuningServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SearchTuningServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchTuningServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Trains a custom model.
                                +     * 
                                + */ + public com.google.longrunning.Operation trainCustomModel( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTrainCustomModelMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SearchTuningService. + * + *
                                +   * Service for search tuning.
                                +   * 
                                + */ + public static final class SearchTuningServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SearchTuningServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SearchTuningServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SearchTuningServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
                                +     * Trains a custom model.
                                +     * 
                                + */ + public com.google.common.util.concurrent.ListenableFuture + trainCustomModel(com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTrainCustomModelMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_TRAIN_CUSTOM_MODEL = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_TRAIN_CUSTOM_MODEL: + serviceImpl.trainCustomModel( + (com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getTrainCustomModelMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest, + com.google.longrunning.Operation>(service, METHODID_TRAIN_CUSTOM_MODEL))) + .build(); + } + + private abstract static class SearchTuningServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SearchTuningServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SearchTuningService"); + } + } + + private static final class SearchTuningServiceFileDescriptorSupplier + extends SearchTuningServiceBaseDescriptorSupplier { + SearchTuningServiceFileDescriptorSupplier() {} + } + + private static final class SearchTuningServiceMethodDescriptorSupplier + extends SearchTuningServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SearchTuningServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SearchTuningServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SearchTuningServiceFileDescriptorSupplier()) + .addMethod(getTrainCustomModelMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceGrpc.java index 14a361305b1a..7b128290aa60 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceGrpc.java @@ -21,7 +21,8 @@ * * *
                                - * Service for modifying ServingConfig.
                                + * Service for operations related to
                                + * [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig].
                                  * 
                                */ @javax.annotation.Generated( @@ -228,7 +229,8 @@ public ServingConfigServiceFutureStub newStub( * * *
                                -   * Service for modifying ServingConfig.
                                +   * Service for operations related to
                                +   * [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig].
                                    * 
                                */ public interface AsyncService { @@ -286,7 +288,8 @@ default void listServingConfigs( * Base class for the server implementation of the service ServingConfigService. * *
                                -   * Service for modifying ServingConfig.
                                +   * Service for operations related to
                                +   * [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig].
                                    * 
                                */ public abstract static class ServingConfigServiceImplBase @@ -302,7 +305,8 @@ public final io.grpc.ServerServiceDefinition bindService() { * A stub to allow clients to do asynchronous rpc calls to service ServingConfigService. * *
                                -   * Service for modifying ServingConfig.
                                +   * Service for operations related to
                                +   * [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig].
                                    * 
                                */ public static final class ServingConfigServiceStub @@ -376,7 +380,8 @@ public void listServingConfigs( * A stub to allow clients to do synchronous rpc calls to service ServingConfigService. * *
                                -   * Service for modifying ServingConfig.
                                +   * Service for operations related to
                                +   * [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig].
                                    * 
                                */ public static final class ServingConfigServiceBlockingStub @@ -438,7 +443,8 @@ public com.google.cloud.discoveryengine.v1beta.ListServingConfigsResponse listSe * A stub to allow clients to do ListenableFuture-style rpc calls to service ServingConfigService. * *
                                -   * Service for modifying ServingConfig.
                                +   * Service for operations related to
                                +   * [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig].
                                    * 
                                */ public static final class ServingConfigServiceFutureStub diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfig.java new file mode 100644 index 000000000000..be6720e10496 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfig.java @@ -0,0 +1,941 @@ +/* + * 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/discoveryengine/v1alpha/acl_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Access Control Configuration.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.AclConfig} + */ +public final class AclConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.AclConfig) + AclConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use AclConfig.newBuilder() to construct. + private AclConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AclConfig() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AclConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_AclConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_AclConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.AclConfig.class, + com.google.cloud.discoveryengine.v1alpha.AclConfig.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                +   * Immutable. The full resource name of the acl configuration.
                                +   * Format:
                                +   * `projects/{project}/locations/{location}/aclConfig`.
                                +   *
                                +   * This field must be a UTF-8 encoded string with a length limit of 1024
                                +   * characters.
                                +   * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                +   * Immutable. The full resource name of the acl configuration.
                                +   * Format:
                                +   * `projects/{project}/locations/{location}/aclConfig`.
                                +   *
                                +   * This field must be a UTF-8 encoded string with a length limit of 1024
                                +   * characters.
                                +   * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDP_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.IdpConfig idpConfig_; + /** + * + * + *
                                +   * Identity provider config.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + * + * @return Whether the idpConfig field is set. + */ + @java.lang.Override + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * Identity provider config.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + * + * @return The idpConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IdpConfig getIdpConfig() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.IdpConfig.getDefaultInstance() + : idpConfig_; + } + /** + * + * + *
                                +   * Identity provider config.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IdpConfigOrBuilder getIdpConfigOrBuilder() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.IdpConfig.getDefaultInstance() + : idpConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getIdpConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIdpConfig()); + } + 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.discoveryengine.v1alpha.AclConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.AclConfig other = + (com.google.cloud.discoveryengine.v1alpha.AclConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (hasIdpConfig() != other.hasIdpConfig()) return false; + if (hasIdpConfig()) { + if (!getIdpConfig().equals(other.getIdpConfig())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasIdpConfig()) { + hash = (37 * hash) + IDP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIdpConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.AclConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.AclConfig 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.discoveryengine.v1alpha.AclConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.AclConfig 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.discoveryengine.v1alpha.AclConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.AclConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.AclConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.AclConfig 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.discoveryengine.v1alpha.AclConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.AclConfig 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.discoveryengine.v1alpha.AclConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.AclConfig 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.discoveryengine.v1alpha.AclConfig 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; + } + /** + * + * + *
                                +   * Access Control Configuration.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.AclConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.AclConfig) + com.google.cloud.discoveryengine.v1alpha.AclConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_AclConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_AclConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.AclConfig.class, + com.google.cloud.discoveryengine.v1alpha.AclConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.AclConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getIdpConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_AclConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.AclConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.AclConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.AclConfig build() { + com.google.cloud.discoveryengine.v1alpha.AclConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.AclConfig buildPartial() { + com.google.cloud.discoveryengine.v1alpha.AclConfig result = + new com.google.cloud.discoveryengine.v1alpha.AclConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.AclConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.idpConfig_ = idpConfigBuilder_ == null ? idpConfig_ : idpConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1alpha.AclConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.AclConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.AclConfig other) { + if (other == com.google.cloud.discoveryengine.v1alpha.AclConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIdpConfig()) { + mergeIdpConfig(other.getIdpConfig()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getIdpConfigFieldBuilder().getBuilder(), extensionRegistry); + 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 name_ = ""; + /** + * + * + *
                                +     * Immutable. The full resource name of the acl configuration.
                                +     * Format:
                                +     * `projects/{project}/locations/{location}/aclConfig`.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 1024
                                +     * characters.
                                +     * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Immutable. The full resource name of the acl configuration.
                                +     * Format:
                                +     * `projects/{project}/locations/{location}/aclConfig`.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 1024
                                +     * characters.
                                +     * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Immutable. The full resource name of the acl configuration.
                                +     * Format:
                                +     * `projects/{project}/locations/{location}/aclConfig`.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 1024
                                +     * characters.
                                +     * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Immutable. The full resource name of the acl configuration.
                                +     * Format:
                                +     * `projects/{project}/locations/{location}/aclConfig`.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 1024
                                +     * characters.
                                +     * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Immutable. The full resource name of the acl configuration.
                                +     * Format:
                                +     * `projects/{project}/locations/{location}/aclConfig`.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 1024
                                +     * characters.
                                +     * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.IdpConfig idpConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.IdpConfig, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.IdpConfigOrBuilder> + idpConfigBuilder_; + /** + * + * + *
                                +     * Identity provider config.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + * + * @return Whether the idpConfig field is set. + */ + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +     * Identity provider config.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + * + * @return The idpConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.IdpConfig getIdpConfig() { + if (idpConfigBuilder_ == null) { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.IdpConfig.getDefaultInstance() + : idpConfig_; + } else { + return idpConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Identity provider config.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + */ + public Builder setIdpConfig(com.google.cloud.discoveryengine.v1alpha.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idpConfig_ = value; + } else { + idpConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Identity provider config.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + */ + public Builder setIdpConfig( + com.google.cloud.discoveryengine.v1alpha.IdpConfig.Builder builderForValue) { + if (idpConfigBuilder_ == null) { + idpConfig_ = builderForValue.build(); + } else { + idpConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Identity provider config.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + */ + public Builder mergeIdpConfig(com.google.cloud.discoveryengine.v1alpha.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && idpConfig_ != null + && idpConfig_ + != com.google.cloud.discoveryengine.v1alpha.IdpConfig.getDefaultInstance()) { + getIdpConfigBuilder().mergeFrom(value); + } else { + idpConfig_ = value; + } + } else { + idpConfigBuilder_.mergeFrom(value); + } + if (idpConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Identity provider config.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + */ + public Builder clearIdpConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Identity provider config.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.IdpConfig.Builder getIdpConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getIdpConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Identity provider config.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.IdpConfigOrBuilder getIdpConfigOrBuilder() { + if (idpConfigBuilder_ != null) { + return idpConfigBuilder_.getMessageOrBuilder(); + } else { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.IdpConfig.getDefaultInstance() + : idpConfig_; + } + } + /** + * + * + *
                                +     * Identity provider config.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.IdpConfig, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.IdpConfigOrBuilder> + getIdpConfigFieldBuilder() { + if (idpConfigBuilder_ == null) { + idpConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.IdpConfig, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.IdpConfigOrBuilder>( + getIdpConfig(), getParentForChildren(), isClean()); + idpConfig_ = null; + } + return idpConfigBuilder_; + } + + @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.discoveryengine.v1alpha.AclConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.AclConfig) + private static final com.google.cloud.discoveryengine.v1alpha.AclConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.AclConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.AclConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclConfig 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.discoveryengine.v1alpha.AclConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigName.java new file mode 100644 index 000000000000..6a46e79c224c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigName.java @@ -0,0 +1,192 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class AclConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/aclConfig"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected AclConfigName() { + project = null; + location = null; + } + + private AclConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AclConfigName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static AclConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "AclConfigName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (AclConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AclConfigName that = ((AclConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}/aclConfig. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(AclConfigName aclConfigName) { + this.project = aclConfigName.project; + this.location = aclConfigName.location; + } + + public AclConfigName build() { + return new AclConfigName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigOrBuilder.java new file mode 100644 index 000000000000..55826a1fe5cd --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigOrBuilder.java @@ -0,0 +1,96 @@ +/* + * 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/discoveryengine/v1alpha/acl_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface AclConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.AclConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Immutable. The full resource name of the acl configuration.
                                +   * Format:
                                +   * `projects/{project}/locations/{location}/aclConfig`.
                                +   *
                                +   * This field must be a UTF-8 encoded string with a length limit of 1024
                                +   * characters.
                                +   * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                +   * Immutable. The full resource name of the acl configuration.
                                +   * Format:
                                +   * `projects/{project}/locations/{location}/aclConfig`.
                                +   *
                                +   * This field must be a UTF-8 encoded string with a length limit of 1024
                                +   * characters.
                                +   * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                +   * Identity provider config.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + * + * @return Whether the idpConfig field is set. + */ + boolean hasIdpConfig(); + /** + * + * + *
                                +   * Identity provider config.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + * + * @return The idpConfig. + */ + com.google.cloud.discoveryengine.v1alpha.IdpConfig getIdpConfig(); + /** + * + * + *
                                +   * Identity provider config.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 2; + */ + com.google.cloud.discoveryengine.v1alpha.IdpConfigOrBuilder getIdpConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigProto.java new file mode 100644 index 000000000000..59a7b0ebc11e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigProto.java @@ -0,0 +1,91 @@ +/* + * 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/discoveryengine/v1alpha/acl_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public final class AclConfigProto { + private AclConfigProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_AclConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_AclConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/discoveryengine/v1alpha/a" + + "cl_config.proto\022$google.cloud.discoverye" + + "ngine.v1alpha\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\0321googl" + + "e/cloud/discoveryengine/v1alpha/common.p" + + "roto\"\305\001\n\tAclConfig\022\021\n\004name\030\001 \001(\tB\003\340A\005\022C\n" + + "\nidp_config\030\002 \001(\0132/.google.cloud.discove" + + "ryengine.v1alpha.IdpConfig:`\352A]\n(discove" + + "ryengine.googleapis.com/AclConfig\0221proje" + + "cts/{project}/locations/{location}/aclCo" + + "nfigB\232\002\n(com.google.cloud.discoveryengin" + + "e.v1alphaB\016AclConfigProtoP\001ZRcloud.googl" + + "e.com/go/discoveryengine/apiv1alpha/disc" + + "overyenginepb;discoveryenginepb\242\002\017DISCOV" + + "ERYENGINE\252\002$Google.Cloud.DiscoveryEngine" + + ".V1Alpha\312\002$Google\\Cloud\\DiscoveryEngine\\" + + "V1alpha\352\002\'Google::Cloud::DiscoveryEngine" + + "::V1alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_AclConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_AclConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_AclConfig_descriptor, + new java.lang.String[] { + "Name", "IdpConfig", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.CommonProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceProto.java new file mode 100644 index 000000000000..08b4b0996c2e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/AclConfigServiceProto.java @@ -0,0 +1,125 @@ +/* + * 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/discoveryengine/v1alpha/acl_config_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public final class AclConfigServiceProto { + private AclConfigServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_GetAclConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_GetAclConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_UpdateAclConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_UpdateAclConfigRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n=google/cloud/discoveryengine/v1alpha/a" + + "cl_config_service.proto\022$google.cloud.di" + + "scoveryengine.v1alpha\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\0325google/cloud/discovery" + + "engine/v1alpha/acl_config.proto\"U\n\023GetAc" + + "lConfigRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(di" + + "scoveryengine.googleapis.com/AclConfig\"b" + + "\n\026UpdateAclConfigRequest\022H\n\nacl_config\030\001" + + " \001(\0132/.google.cloud.discoveryengine.v1al" + + "pha.AclConfigB\003\340A\0022\370\003\n\020AclConfigService\022" + + "\321\001\n\017UpdateAclConfig\022<.google.cloud.disco" + + "veryengine.v1alpha.UpdateAclConfigReques" + + "t\032/.google.cloud.discoveryengine.v1alpha" + + ".AclConfig\"O\202\323\344\223\002I2;/v1alpha/{acl_config" + + ".name=projects/*/locations/*/aclConfig}:" + + "\nacl_config\022\273\001\n\014GetAclConfig\0229.google.cl" + + "oud.discoveryengine.v1alpha.GetAclConfig" + + "Request\032/.google.cloud.discoveryengine.v" + + "1alpha.AclConfig\"?\332A\004name\202\323\344\223\0022\0220/v1alph" + + "a/{name=projects/*/locations/*/aclConfig" + + "}\032R\312A\036discoveryengine.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformB\241\002\n(com.google.cloud.discoveryengi" + + "ne.v1alphaB\025AclConfigServiceProtoP\001ZRclo" + + "ud.google.com/go/discoveryengine/apiv1al" + + "pha/discoveryenginepb;discoveryenginepb\242" + + "\002\017DISCOVERYENGINE\252\002$Google.Cloud.Discove" + + "ryEngine.V1Alpha\312\002$Google\\Cloud\\Discover" + + "yEngine\\V1alpha\352\002\'Google::Cloud::Discove" + + "ryEngine::V1alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.AclConfigProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_GetAclConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_GetAclConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_GetAclConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateAclConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateAclConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_UpdateAclConfigRequest_descriptor, + new java.lang.String[] { + "AclConfig", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.AclConfigProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BatchCreateTargetSiteMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BatchCreateTargetSiteMetadata.java index 91b857b16b12..e5736f2bb9a6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BatchCreateTargetSiteMetadata.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BatchCreateTargetSiteMetadata.java @@ -24,8 +24,9 @@ * *
                                  * Metadata related to the progress of the
                                - * [SiteSearchEngineService.BatchCreateTargetSite][] operation. This will be
                                - * returned by the google.longrunning.Operation.metadata field.
                                + * [SiteSearchEngineService.BatchCreateTargetSites][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.BatchCreateTargetSites]
                                + * operation. This will be returned by the google.longrunning.Operation.metadata
                                + * field.
                                  * 
                                * * Protobuf type {@code google.cloud.discoveryengine.v1alpha.BatchCreateTargetSiteMetadata} @@ -344,8 +345,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
                                    * Metadata related to the progress of the
                                -   * [SiteSearchEngineService.BatchCreateTargetSite][] operation. This will be
                                -   * returned by the google.longrunning.Operation.metadata field.
                                +   * [SiteSearchEngineService.BatchCreateTargetSites][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.BatchCreateTargetSites]
                                +   * operation. This will be returned by the google.longrunning.Operation.metadata
                                +   * field.
                                    * 
                                * * Protobuf type {@code google.cloud.discoveryengine.v1alpha.BatchCreateTargetSiteMetadata} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BatchCreateTargetSitesRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BatchCreateTargetSitesRequest.java index 1b6fd23139eb..9a74cfe66e92 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BatchCreateTargetSitesRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/BatchCreateTargetSitesRequest.java @@ -23,7 +23,9 @@ * * *
                                - * Request message for [SiteSearchEngineService.s][] method.
                                + * Request message for
                                + * [SiteSearchEngineService.BatchCreateTargetSites][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.BatchCreateTargetSites]
                                + * method.
                                  * 
                                * * Protobuf type {@code google.cloud.discoveryengine.v1alpha.BatchCreateTargetSitesRequest} @@ -391,7 +393,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
                                -   * Request message for [SiteSearchEngineService.s][] method.
                                +   * Request message for
                                +   * [SiteSearchEngineService.BatchCreateTargetSites][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.BatchCreateTargetSites]
                                +   * method.
                                    * 
                                * * Protobuf type {@code google.cloud.discoveryengine.v1alpha.BatchCreateTargetSitesRequest} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Chunk.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Chunk.java new file mode 100644 index 000000000000..c53556bdabda --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Chunk.java @@ -0,0 +1,2494 @@ +/* + * 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/discoveryengine/v1alpha/chunk.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Chunk captures all raw metadata information of items to be recommended or
                                + * searched in the chunk mode.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Chunk} + */ +public final class Chunk extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Chunk) + ChunkOrBuilder { + private static final long serialVersionUID = 0L; + // Use Chunk.newBuilder() to construct. + private Chunk(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Chunk() { + name_ = ""; + id_ = ""; + content_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Chunk(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ChunkProto + .internal_static_google_cloud_discoveryengine_v1alpha_Chunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ChunkProto + .internal_static_google_cloud_discoveryengine_v1alpha_Chunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Chunk.class, + com.google.cloud.discoveryengine.v1alpha.Chunk.Builder.class); + } + + public interface DocumentMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +     * Uri of the document.
                                +     * 
                                + * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
                                +     * Uri of the document.
                                +     * 
                                + * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
                                +     * Title of the document.
                                +     * 
                                + * + * string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); + /** + * + * + *
                                +     * Title of the document.
                                +     * 
                                + * + * string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + } + /** + * + * + *
                                +   * Document metadata contains the information of the document of the current
                                +   * chunk.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata} + */ + public static final class DocumentMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata) + DocumentMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DocumentMetadata.newBuilder() to construct. + private DocumentMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DocumentMetadata() { + uri_ = ""; + title_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DocumentMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ChunkProto + .internal_static_google_cloud_discoveryengine_v1alpha_Chunk_DocumentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ChunkProto + .internal_static_google_cloud_discoveryengine_v1alpha_Chunk_DocumentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.class, + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
                                +     * Uri of the document.
                                +     * 
                                + * + * string uri = 1; + * + * @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; + } + } + /** + * + * + *
                                +     * Uri of the document.
                                +     * 
                                + * + * string uri = 1; + * + * @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_ = ""; + /** + * + * + *
                                +     * Title of the document.
                                +     * 
                                + * + * string title = 2; + * + * @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; + } + } + /** + * + * + *
                                +     * Title of the document.
                                +     * 
                                + * + * string title = 2; + * + * @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.discoveryengine.v1alpha.Chunk.DocumentMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata other = + (com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata) 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.discoveryengine.v1alpha.Chunk.DocumentMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata 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.discoveryengine.v1alpha.Chunk.DocumentMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata 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.discoveryengine.v1alpha.Chunk.DocumentMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata 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.discoveryengine.v1alpha.Chunk.DocumentMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata + 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.discoveryengine.v1alpha.Chunk.DocumentMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata 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.discoveryengine.v1alpha.Chunk.DocumentMetadata 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; + } + /** + * + * + *
                                +     * Document metadata contains the information of the document of the current
                                +     * chunk.
                                +     * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata) + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ChunkProto + .internal_static_google_cloud_discoveryengine_v1alpha_Chunk_DocumentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ChunkProto + .internal_static_google_cloud_discoveryengine_v1alpha_Chunk_DocumentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.class, + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.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.discoveryengine.v1alpha.ChunkProto + .internal_static_google_cloud_discoveryengine_v1alpha_Chunk_DocumentMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata build() { + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata result = + new com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata 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.discoveryengine.v1alpha.Chunk.DocumentMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.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_ = ""; + /** + * + * + *
                                +       * Uri of the document.
                                +       * 
                                + * + * string uri = 1; + * + * @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; + } + } + /** + * + * + *
                                +       * Uri of the document.
                                +       * 
                                + * + * string uri = 1; + * + * @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; + } + } + /** + * + * + *
                                +       * Uri of the document.
                                +       * 
                                + * + * string uri = 1; + * + * @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; + } + /** + * + * + *
                                +       * Uri of the document.
                                +       * 
                                + * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +       * Uri of the document.
                                +       * 
                                + * + * string uri = 1; + * + * @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_ = ""; + /** + * + * + *
                                +       * Title of the document.
                                +       * 
                                + * + * string title = 2; + * + * @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; + } + } + /** + * + * + *
                                +       * Title of the document.
                                +       * 
                                + * + * string title = 2; + * + * @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; + } + } + /** + * + * + *
                                +       * Title of the document.
                                +       * 
                                + * + * string title = 2; + * + * @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; + } + /** + * + * + *
                                +       * Title of the document.
                                +       * 
                                + * + * string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                +       * Title of the document.
                                +       * 
                                + * + * string title = 2; + * + * @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.discoveryengine.v1alpha.Chunk.DocumentMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata) + private static final com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentMetadata 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.discoveryengine.v1alpha.Chunk.DocumentMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                +   * The full resource name of the chunk.
                                +   * Format:
                                +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
                                +   *
                                +   * This field must be a UTF-8 encoded string with a length limit of 1024
                                +   * characters.
                                +   * 
                                + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                +   * The full resource name of the chunk.
                                +   * Format:
                                +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
                                +   *
                                +   * This field must be a UTF-8 encoded string with a length limit of 1024
                                +   * characters.
                                +   * 
                                + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * + * + *
                                +   * Unique chunk id of the current chunk.
                                +   * 
                                + * + * string id = 2; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * + * + *
                                +   * Unique chunk id of the current chunk.
                                +   * 
                                + * + * string id = 2; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + /** + * + * + *
                                +   * Content is a string from a document (parsed content).
                                +   * 
                                + * + * string content = 3; + * + * @return The content. + */ + @java.lang.Override + public java.lang.String getContent() { + java.lang.Object ref = content_; + 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(); + content_ = s; + return s; + } + } + /** + * + * + *
                                +   * Content is a string from a document (parsed content).
                                +   * 
                                + * + * string content = 3; + * + * @return The bytes for content. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOCUMENT_METADATA_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata documentMetadata_; + /** + * + * + *
                                +   * Metadata of the document from the current chunk.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + * + * @return Whether the documentMetadata field is set. + */ + @java.lang.Override + public boolean hasDocumentMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * Metadata of the document from the current chunk.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + * + * @return The documentMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata getDocumentMetadata() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } + /** + * + * + *
                                +   * Metadata of the document from the current chunk.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } + + public static final int DERIVED_STRUCT_DATA_FIELD_NUMBER = 4; + private com.google.protobuf.Struct derivedStructData_; + /** + * + * + *
                                +   * Output only. This field is OUTPUT_ONLY.
                                +   * It contains derived data that are not in the original input document.
                                +   * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the derivedStructData field is set. + */ + @java.lang.Override + public boolean hasDerivedStructData() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +   * Output only. This field is OUTPUT_ONLY.
                                +   * It contains derived data that are not in the original input document.
                                +   * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The derivedStructData. + */ + @java.lang.Override + public com.google.protobuf.Struct getDerivedStructData() { + return derivedStructData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : derivedStructData_; + } + /** + * + * + *
                                +   * Output only. This field is OUTPUT_ONLY.
                                +   * It contains derived data that are not in the original input document.
                                +   * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { + return derivedStructData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : derivedStructData_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, content_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getDerivedStructData()); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getDocumentMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDerivedStructData()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDocumentMetadata()); + } + 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.discoveryengine.v1alpha.Chunk)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Chunk other = + (com.google.cloud.discoveryengine.v1alpha.Chunk) obj; + + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; + if (!getContent().equals(other.getContent())) return false; + if (hasDocumentMetadata() != other.hasDocumentMetadata()) return false; + if (hasDocumentMetadata()) { + if (!getDocumentMetadata().equals(other.getDocumentMetadata())) return false; + } + if (hasDerivedStructData() != other.hasDerivedStructData()) return false; + if (hasDerivedStructData()) { + if (!getDerivedStructData().equals(other.getDerivedStructData())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + if (hasDocumentMetadata()) { + hash = (37 * hash) + DOCUMENT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDocumentMetadata().hashCode(); + } + if (hasDerivedStructData()) { + hash = (37 * hash) + DERIVED_STRUCT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getDerivedStructData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk 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.discoveryengine.v1alpha.Chunk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk 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.discoveryengine.v1alpha.Chunk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk 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.discoveryengine.v1alpha.Chunk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk 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.discoveryengine.v1alpha.Chunk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk 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.discoveryengine.v1alpha.Chunk 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; + } + /** + * + * + *
                                +   * Chunk captures all raw metadata information of items to be recommended or
                                +   * searched in the chunk mode.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Chunk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Chunk) + com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ChunkProto + .internal_static_google_cloud_discoveryengine_v1alpha_Chunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ChunkProto + .internal_static_google_cloud_discoveryengine_v1alpha_Chunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Chunk.class, + com.google.cloud.discoveryengine.v1alpha.Chunk.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.Chunk.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDocumentMetadataFieldBuilder(); + getDerivedStructDataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + id_ = ""; + content_ = ""; + documentMetadata_ = null; + if (documentMetadataBuilder_ != null) { + documentMetadataBuilder_.dispose(); + documentMetadataBuilder_ = null; + } + derivedStructData_ = null; + if (derivedStructDataBuilder_ != null) { + derivedStructDataBuilder_.dispose(); + derivedStructDataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ChunkProto + .internal_static_google_cloud_discoveryengine_v1alpha_Chunk_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Chunk getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Chunk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Chunk build() { + com.google.cloud.discoveryengine.v1alpha.Chunk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Chunk buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Chunk result = + new com.google.cloud.discoveryengine.v1alpha.Chunk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.Chunk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.content_ = content_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.documentMetadata_ = + documentMetadataBuilder_ == null ? documentMetadata_ : documentMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.derivedStructData_ = + derivedStructDataBuilder_ == null + ? derivedStructData_ + : derivedStructDataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1alpha.Chunk) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.Chunk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.Chunk other) { + if (other == com.google.cloud.discoveryengine.v1alpha.Chunk.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasDocumentMetadata()) { + mergeDocumentMetadata(other.getDocumentMetadata()); + } + if (other.hasDerivedStructData()) { + mergeDerivedStructData(other.getDerivedStructData()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getDerivedStructDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage( + getDocumentMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + 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 name_ = ""; + /** + * + * + *
                                +     * The full resource name of the chunk.
                                +     * Format:
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 1024
                                +     * characters.
                                +     * 
                                + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * The full resource name of the chunk.
                                +     * Format:
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 1024
                                +     * characters.
                                +     * 
                                + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * The full resource name of the chunk.
                                +     * Format:
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 1024
                                +     * characters.
                                +     * 
                                + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * The full resource name of the chunk.
                                +     * Format:
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 1024
                                +     * characters.
                                +     * 
                                + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +     * The full resource name of the chunk.
                                +     * Format:
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 1024
                                +     * characters.
                                +     * 
                                + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object id_ = ""; + /** + * + * + *
                                +     * Unique chunk id of the current chunk.
                                +     * 
                                + * + * string id = 2; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Unique chunk id of the current chunk.
                                +     * 
                                + * + * string id = 2; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Unique chunk id of the current chunk.
                                +     * 
                                + * + * string id = 2; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Unique chunk id of the current chunk.
                                +     * 
                                + * + * string id = 2; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Unique chunk id of the current chunk.
                                +     * 
                                + * + * string id = 2; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object content_ = ""; + /** + * + * + *
                                +     * Content is a string from a document (parsed content).
                                +     * 
                                + * + * string content = 3; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Content is a string from a document (parsed content).
                                +     * 
                                + * + * string content = 3; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + content_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Content is a string from a document (parsed content).
                                +     * 
                                + * + * string content = 3; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Content is a string from a document (parsed content).
                                +     * 
                                + * + * string content = 3; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Content is a string from a document (parsed content).
                                +     * 
                                + * + * string content = 3; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata documentMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata, + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadataOrBuilder> + documentMetadataBuilder_; + /** + * + * + *
                                +     * Metadata of the document from the current chunk.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + * + * @return Whether the documentMetadata field is set. + */ + public boolean hasDocumentMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                +     * Metadata of the document from the current chunk.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + * + * @return The documentMetadata. + */ + public com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata getDocumentMetadata() { + if (documentMetadataBuilder_ == null) { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } else { + return documentMetadataBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Metadata of the document from the current chunk.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata value) { + if (documentMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + documentMetadata_ = value; + } else { + documentMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Metadata of the document from the current chunk.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.Builder builderForValue) { + if (documentMetadataBuilder_ == null) { + documentMetadata_ = builderForValue.build(); + } else { + documentMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Metadata of the document from the current chunk.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public Builder mergeDocumentMetadata( + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata value) { + if (documentMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && documentMetadata_ != null + && documentMetadata_ + != com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata + .getDefaultInstance()) { + getDocumentMetadataBuilder().mergeFrom(value); + } else { + documentMetadata_ = value; + } + } else { + documentMetadataBuilder_.mergeFrom(value); + } + if (documentMetadata_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Metadata of the document from the current chunk.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public Builder clearDocumentMetadata() { + bitField0_ = (bitField0_ & ~0x00000008); + documentMetadata_ = null; + if (documentMetadataBuilder_ != null) { + documentMetadataBuilder_.dispose(); + documentMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Metadata of the document from the current chunk.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.Builder + getDocumentMetadataBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getDocumentMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Metadata of the document from the current chunk.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + if (documentMetadataBuilder_ != null) { + return documentMetadataBuilder_.getMessageOrBuilder(); + } else { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } + } + /** + * + * + *
                                +     * Metadata of the document from the current chunk.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata, + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadataOrBuilder> + getDocumentMetadataFieldBuilder() { + if (documentMetadataBuilder_ == null) { + documentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata, + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadataOrBuilder>( + getDocumentMetadata(), getParentForChildren(), isClean()); + documentMetadata_ = null; + } + return documentMetadataBuilder_; + } + + private com.google.protobuf.Struct derivedStructData_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + derivedStructDataBuilder_; + /** + * + * + *
                                +     * Output only. This field is OUTPUT_ONLY.
                                +     * It contains derived data that are not in the original input document.
                                +     * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the derivedStructData field is set. + */ + public boolean hasDerivedStructData() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
                                +     * Output only. This field is OUTPUT_ONLY.
                                +     * It contains derived data that are not in the original input document.
                                +     * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The derivedStructData. + */ + public com.google.protobuf.Struct getDerivedStructData() { + if (derivedStructDataBuilder_ == null) { + return derivedStructData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : derivedStructData_; + } else { + return derivedStructDataBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Output only. This field is OUTPUT_ONLY.
                                +     * It contains derived data that are not in the original input document.
                                +     * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDerivedStructData(com.google.protobuf.Struct value) { + if (derivedStructDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + derivedStructData_ = value; + } else { + derivedStructDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. This field is OUTPUT_ONLY.
                                +     * It contains derived data that are not in the original input document.
                                +     * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDerivedStructData(com.google.protobuf.Struct.Builder builderForValue) { + if (derivedStructDataBuilder_ == null) { + derivedStructData_ = builderForValue.build(); + } else { + derivedStructDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. This field is OUTPUT_ONLY.
                                +     * It contains derived data that are not in the original input document.
                                +     * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDerivedStructData(com.google.protobuf.Struct value) { + if (derivedStructDataBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && derivedStructData_ != null + && derivedStructData_ != com.google.protobuf.Struct.getDefaultInstance()) { + getDerivedStructDataBuilder().mergeFrom(value); + } else { + derivedStructData_ = value; + } + } else { + derivedStructDataBuilder_.mergeFrom(value); + } + if (derivedStructData_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Output only. This field is OUTPUT_ONLY.
                                +     * It contains derived data that are not in the original input document.
                                +     * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDerivedStructData() { + bitField0_ = (bitField0_ & ~0x00000010); + derivedStructData_ = null; + if (derivedStructDataBuilder_ != null) { + derivedStructDataBuilder_.dispose(); + derivedStructDataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. This field is OUTPUT_ONLY.
                                +     * It contains derived data that are not in the original input document.
                                +     * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder getDerivedStructDataBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getDerivedStructDataFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Output only. This field is OUTPUT_ONLY.
                                +     * It contains derived data that are not in the original input document.
                                +     * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { + if (derivedStructDataBuilder_ != null) { + return derivedStructDataBuilder_.getMessageOrBuilder(); + } else { + return derivedStructData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : derivedStructData_; + } + } + /** + * + * + *
                                +     * Output only. This field is OUTPUT_ONLY.
                                +     * It contains derived data that are not in the original input document.
                                +     * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + getDerivedStructDataFieldBuilder() { + if (derivedStructDataBuilder_ == null) { + derivedStructDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getDerivedStructData(), getParentForChildren(), isClean()); + derivedStructData_ = null; + } + return derivedStructDataBuilder_; + } + + @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.discoveryengine.v1alpha.Chunk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Chunk) + private static final com.google.cloud.discoveryengine.v1alpha.Chunk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.Chunk(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Chunk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Chunk 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.discoveryengine.v1alpha.Chunk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkName.java new file mode 100644 index 000000000000..29dde564fa7e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkName.java @@ -0,0 +1,546 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ChunkName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATA_STORE_BRANCH_DOCUMENT_CHUNK = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}"); + private static final PathTemplate PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH_DOCUMENT_CHUNK = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String dataStore; + private final String branch; + private final String document; + private final String chunk; + private final String collection; + + @Deprecated + protected ChunkName() { + project = null; + location = null; + dataStore = null; + branch = null; + document = null; + chunk = null; + collection = null; + } + + private ChunkName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + branch = Preconditions.checkNotNull(builder.getBranch()); + document = Preconditions.checkNotNull(builder.getDocument()); + chunk = Preconditions.checkNotNull(builder.getChunk()); + collection = null; + pathTemplate = PROJECT_LOCATION_DATA_STORE_BRANCH_DOCUMENT_CHUNK; + } + + private ChunkName(ProjectLocationCollectionDataStoreBranchDocumentChunkBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + branch = Preconditions.checkNotNull(builder.getBranch()); + document = Preconditions.checkNotNull(builder.getDocument()); + chunk = Preconditions.checkNotNull(builder.getChunk()); + pathTemplate = PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH_DOCUMENT_CHUNK; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getBranch() { + return branch; + } + + public String getDocument() { + return document; + } + + public String getChunk() { + return chunk; + } + + public String getCollection() { + return collection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationDataStoreBranchDocumentChunkBuilder() { + return new Builder(); + } + + public static ProjectLocationCollectionDataStoreBranchDocumentChunkBuilder + newProjectLocationCollectionDataStoreBranchDocumentChunkBuilder() { + return new ProjectLocationCollectionDataStoreBranchDocumentChunkBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ChunkName of( + String project, + String location, + String dataStore, + String branch, + String document, + String chunk) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setBranch(branch) + .setDocument(document) + .setChunk(chunk) + .build(); + } + + public static ChunkName ofProjectLocationDataStoreBranchDocumentChunkName( + String project, + String location, + String dataStore, + String branch, + String document, + String chunk) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setBranch(branch) + .setDocument(document) + .setChunk(chunk) + .build(); + } + + public static ChunkName ofProjectLocationCollectionDataStoreBranchDocumentChunkName( + String project, + String location, + String collection, + String dataStore, + String branch, + String document, + String chunk) { + return newProjectLocationCollectionDataStoreBranchDocumentChunkBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .setBranch(branch) + .setDocument(document) + .setChunk(chunk) + .build(); + } + + public static String format( + String project, + String location, + String dataStore, + String branch, + String document, + String chunk) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setBranch(branch) + .setDocument(document) + .setChunk(chunk) + .build() + .toString(); + } + + public static String formatProjectLocationDataStoreBranchDocumentChunkName( + String project, + String location, + String dataStore, + String branch, + String document, + String chunk) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .setBranch(branch) + .setDocument(document) + .setChunk(chunk) + .build() + .toString(); + } + + public static String formatProjectLocationCollectionDataStoreBranchDocumentChunkName( + String project, + String location, + String collection, + String dataStore, + String branch, + String document, + String chunk) { + return newProjectLocationCollectionDataStoreBranchDocumentChunkBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .setBranch(branch) + .setDocument(document) + .setChunk(chunk) + .build() + .toString(); + } + + public static ChunkName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_DATA_STORE_BRANCH_DOCUMENT_CHUNK.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_DATA_STORE_BRANCH_DOCUMENT_CHUNK.match(formattedString); + return ofProjectLocationDataStoreBranchDocumentChunkName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("data_store"), + matchMap.get("branch"), + matchMap.get("document"), + matchMap.get("chunk")); + } else if (PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH_DOCUMENT_CHUNK.matches( + formattedString)) { + Map matchMap = + PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH_DOCUMENT_CHUNK.match(formattedString); + return ofProjectLocationCollectionDataStoreBranchDocumentChunkName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("data_store"), + matchMap.get("branch"), + matchMap.get("document"), + matchMap.get("chunk")); + } + throw new ValidationException("ChunkName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ChunkName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATA_STORE_BRANCH_DOCUMENT_CHUNK.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_DATA_STORE_BRANCH_DOCUMENT_CHUNK.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataStore != null) { + fieldMapBuilder.put("data_store", dataStore); + } + if (branch != null) { + fieldMapBuilder.put("branch", branch); + } + if (document != null) { + fieldMapBuilder.put("document", document); + } + if (chunk != null) { + fieldMapBuilder.put("chunk", chunk); + } + if (collection != null) { + fieldMapBuilder.put("collection", collection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ChunkName that = ((ChunkName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataStore, that.dataStore) + && Objects.equals(this.branch, that.branch) + && Objects.equals(this.document, that.document) + && Objects.equals(this.chunk, that.chunk) + && Objects.equals(this.collection, that.collection); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataStore); + h *= 1000003; + h ^= Objects.hashCode(branch); + h *= 1000003; + h ^= Objects.hashCode(document); + h *= 1000003; + h ^= Objects.hashCode(chunk); + h *= 1000003; + h ^= Objects.hashCode(collection); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}. + */ + public static class Builder { + private String project; + private String location; + private String dataStore; + private String branch; + private String document; + private String chunk; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getBranch() { + return branch; + } + + public String getDocument() { + return document; + } + + public String getChunk() { + return chunk; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public Builder setBranch(String branch) { + this.branch = branch; + return this; + } + + public Builder setDocument(String document) { + this.document = document; + return this; + } + + public Builder setChunk(String chunk) { + this.chunk = chunk; + return this; + } + + private Builder(ChunkName chunkName) { + Preconditions.checkArgument( + Objects.equals(chunkName.pathTemplate, PROJECT_LOCATION_DATA_STORE_BRANCH_DOCUMENT_CHUNK), + "toBuilder is only supported when ChunkName has the pattern of projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}"); + this.project = chunkName.project; + this.location = chunkName.location; + this.dataStore = chunkName.dataStore; + this.branch = chunkName.branch; + this.document = chunkName.document; + this.chunk = chunkName.chunk; + } + + public ChunkName build() { + return new ChunkName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}. + */ + public static class ProjectLocationCollectionDataStoreBranchDocumentChunkBuilder { + private String project; + private String location; + private String collection; + private String dataStore; + private String branch; + private String document; + private String chunk; + + protected ProjectLocationCollectionDataStoreBranchDocumentChunkBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getDataStore() { + return dataStore; + } + + public String getBranch() { + return branch; + } + + public String getDocument() { + return document; + } + + public String getChunk() { + return chunk; + } + + public ProjectLocationCollectionDataStoreBranchDocumentChunkBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionDataStoreBranchDocumentChunkBuilder setLocation( + String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionDataStoreBranchDocumentChunkBuilder setCollection( + String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionDataStoreBranchDocumentChunkBuilder setDataStore( + String dataStore) { + this.dataStore = dataStore; + return this; + } + + public ProjectLocationCollectionDataStoreBranchDocumentChunkBuilder setBranch(String branch) { + this.branch = branch; + return this; + } + + public ProjectLocationCollectionDataStoreBranchDocumentChunkBuilder setDocument( + String document) { + this.document = document; + return this; + } + + public ProjectLocationCollectionDataStoreBranchDocumentChunkBuilder setChunk(String chunk) { + this.chunk = chunk; + return this; + } + + public ChunkName build() { + return new ChunkName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkOrBuilder.java new file mode 100644 index 000000000000..3d41954e000a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkOrBuilder.java @@ -0,0 +1,194 @@ +/* + * 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/discoveryengine/v1alpha/chunk.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ChunkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Chunk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * The full resource name of the chunk.
                                +   * Format:
                                +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
                                +   *
                                +   * This field must be a UTF-8 encoded string with a length limit of 1024
                                +   * characters.
                                +   * 
                                + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                +   * The full resource name of the chunk.
                                +   * Format:
                                +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
                                +   *
                                +   * This field must be a UTF-8 encoded string with a length limit of 1024
                                +   * characters.
                                +   * 
                                + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                +   * Unique chunk id of the current chunk.
                                +   * 
                                + * + * string id = 2; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
                                +   * Unique chunk id of the current chunk.
                                +   * 
                                + * + * string id = 2; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
                                +   * Content is a string from a document (parsed content).
                                +   * 
                                + * + * string content = 3; + * + * @return The content. + */ + java.lang.String getContent(); + /** + * + * + *
                                +   * Content is a string from a document (parsed content).
                                +   * 
                                + * + * string content = 3; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); + + /** + * + * + *
                                +   * Metadata of the document from the current chunk.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + * + * @return Whether the documentMetadata field is set. + */ + boolean hasDocumentMetadata(); + /** + * + * + *
                                +   * Metadata of the document from the current chunk.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + * + * @return The documentMetadata. + */ + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata getDocumentMetadata(); + /** + * + * + *
                                +   * Metadata of the document from the current chunk.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadata document_metadata = 5; + * + */ + com.google.cloud.discoveryengine.v1alpha.Chunk.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder(); + + /** + * + * + *
                                +   * Output only. This field is OUTPUT_ONLY.
                                +   * It contains derived data that are not in the original input document.
                                +   * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the derivedStructData field is set. + */ + boolean hasDerivedStructData(); + /** + * + * + *
                                +   * Output only. This field is OUTPUT_ONLY.
                                +   * It contains derived data that are not in the original input document.
                                +   * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The derivedStructData. + */ + com.google.protobuf.Struct getDerivedStructData(); + /** + * + * + *
                                +   * Output only. This field is OUTPUT_ONLY.
                                +   * It contains derived data that are not in the original input document.
                                +   * 
                                + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkProto.java new file mode 100644 index 000000000000..0b5ca802c69f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkProto.java @@ -0,0 +1,113 @@ +/* + * 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/discoveryengine/v1alpha/chunk.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public final class ChunkProto { + private ChunkProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_Chunk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Chunk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_Chunk_DocumentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Chunk_DocumentMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/discoveryengine/v1alpha/c" + + "hunk.proto\022$google.cloud.discoveryengine" + + ".v1alpha\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032\034google/pro" + + "tobuf/struct.proto\"\253\004\n\005Chunk\022\014\n\004name\030\001 \001" + + "(\t\022\n\n\002id\030\002 \001(\t\022\017\n\007content\030\003 \001(\t\022W\n\021docum" + + "ent_metadata\030\005 \001(\0132<.google.cloud.discov" + + "eryengine.v1alpha.Chunk.DocumentMetadata" + + "\0229\n\023derived_struct_data\030\004 \001(\0132\027.google.p" + + "rotobuf.StructB\003\340A\003\032.\n\020DocumentMetadata\022" + + "\013\n\003uri\030\001 \001(\t\022\r\n\005title\030\002 \001(\t:\262\002\352A\256\002\n$disc" + + "overyengine.googleapis.com/Chunk\022uprojec" + + "ts/{project}/locations/{location}/dataSt" + + "ores/{data_store}/branches/{branch}/docu" + + "ments/{document}/chunks/{chunk}\022\216\001projec" + + "ts/{project}/locations/{location}/collec" + + "tions/{collection}/dataStores/{data_stor" + + "e}/branches/{branch}/documents/{document" + + "}/chunks/{chunk}B\226\002\n(com.google.cloud.di" + + "scoveryengine.v1alphaB\nChunkProtoP\001ZRclo" + + "ud.google.com/go/discoveryengine/apiv1al" + + "pha/discoveryenginepb;discoveryenginepb\242" + + "\002\017DISCOVERYENGINE\252\002$Google.Cloud.Discove" + + "ryEngine.V1Alpha\312\002$Google\\Cloud\\Discover" + + "yEngine\\V1alpha\352\002\'Google::Cloud::Discove" + + "ryEngine::V1alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_Chunk_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_Chunk_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Chunk_descriptor, + new java.lang.String[] { + "Name", "Id", "Content", "DocumentMetadata", "DerivedStructData", + }); + internal_static_google_cloud_discoveryengine_v1alpha_Chunk_DocumentMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_Chunk_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_Chunk_DocumentMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Chunk_DocumentMetadata_descriptor, + new java.lang.String[] { + "Uri", "Title", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceProto.java new file mode 100644 index 000000000000..112493f839ae --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ChunkServiceProto.java @@ -0,0 +1,146 @@ +/* + * 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/discoveryengine/v1alpha/chunk_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public final class ChunkServiceProto { + private ChunkServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_GetChunkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_GetChunkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListChunksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListChunksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListChunksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListChunksResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/discoveryengine/v1alpha/c" + + "hunk_service.proto\022$google.cloud.discove" + + "ryengine.v1alpha\032\034google/api/annotations" + + ".proto\032\027google/api/client.proto\032\037google/" + + "api/field_behavior.proto\032\031google/api/res" + + "ource.proto\0320google/cloud/discoveryengin" + + "e/v1alpha/chunk.proto\"M\n\017GetChunkRequest" + + "\022:\n\004name\030\001 \001(\tB,\340A\002\372A&\n$discoveryengine." + + "googleapis.com/Chunk\"{\n\021ListChunksReques" + + "t\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'discoveryengi" + + "ne.googleapis.com/Document\022\021\n\tpage_size\030" + + "\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"j\n\022ListChunksR" + + "esponse\022;\n\006chunks\030\001 \003(\0132+.google.cloud.d" + + "iscoveryengine.v1alpha.Chunk\022\027\n\017next_pag" + + "e_token\030\002 \001(\t2\355\005\n\014ChunkService\022\271\002\n\010GetCh" + + "unk\0225.google.cloud.discoveryengine.v1alp" + + "ha.GetChunkRequest\032+.google.cloud.discov" + + "eryengine.v1alpha.Chunk\"\310\001\332A\004name\202\323\344\223\002\272\001" + + "\022S/v1alpha/{name=projects/*/locations/*/" + + "dataStores/*/branches/*/documents/*/chun" + + "ks/*}Zc\022a/v1alpha/{name=projects/*/locat" + + "ions/*/collections/*/dataStores/*/branch" + + "es/*/documents/*/chunks/*}\022\314\002\n\nListChunk" + + "s\0227.google.cloud.discoveryengine.v1alpha" + + ".ListChunksRequest\0328.google.cloud.discov" + + "eryengine.v1alpha.ListChunksResponse\"\312\001\332" + + "A\006parent\202\323\344\223\002\272\001\022S/v1alpha/{parent=projec" + + "ts/*/locations/*/dataStores/*/branches/*" + + "/documents/*}/chunksZc\022a/v1alpha/{parent" + + "=projects/*/locations/*/collections/*/da" + + "taStores/*/branches/*/documents/*}/chunk" + + "s\032R\312A\036discoveryengine.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformB\235\002\n(com.google.cloud.discoveryengi" + + "ne.v1alphaB\021ChunkServiceProtoP\001ZRcloud.g" + + "oogle.com/go/discoveryengine/apiv1alpha/" + + "discoveryenginepb;discoveryenginepb\242\002\017DI" + + "SCOVERYENGINE\252\002$Google.Cloud.DiscoveryEn" + + "gine.V1Alpha\312\002$Google\\Cloud\\DiscoveryEng" + + "ine\\V1alpha\352\002\'Google::Cloud::DiscoveryEn" + + "gine::V1alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.ChunkProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_GetChunkRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_GetChunkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_GetChunkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ListChunksRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_ListChunksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListChunksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ListChunksResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_ListChunksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListChunksResponse_descriptor, + new java.lang.String[] { + "Chunks", "NextPageToken", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.ChunkProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CommonProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CommonProto.java index 2ca4ca8122d0..7025d456cda4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CommonProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CommonProto.java @@ -40,10 +40,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1alpha_UserInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1alpha_UserInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_EmbeddingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_EmbeddingConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_GuidedSearchSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_GuidedSearchSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_CustomFineTuningSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_CustomFineTuningSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_ExternalIdpConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_ExternalIdpConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_Principal_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Principal_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -61,43 +85,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "xclusive_maximum\030\004 \001(\001H\001B\005\n\003minB\005\n\003max\"0" + "\n\017CustomAttribute\022\014\n\004text\030\001 \003(\t\022\017\n\007numbe" + "rs\030\002 \003(\001\"/\n\010UserInfo\022\017\n\007user_id\030\001 \001(\t\022\022\n" - + "\nuser_agent\030\002 \001(\t\"\034\n\nDoubleList\022\016\n\006value" - + "s\030\001 \003(\001*M\n\020IndustryVertical\022!\n\035INDUSTRY_" - + "VERTICAL_UNSPECIFIED\020\000\022\013\n\007GENERIC\020\001\022\t\n\005M" - + "EDIA\020\002*\201\001\n\014SolutionType\022\035\n\031SOLUTION_TYPE" - + "_UNSPECIFIED\020\000\022 \n\034SOLUTION_TYPE_RECOMMEN" - + "DATION\020\001\022\030\n\024SOLUTION_TYPE_SEARCH\020\002\022\026\n\022SO" - + "LUTION_TYPE_CHAT\020\003*_\n\nSearchTier\022\033\n\027SEAR" - + "CH_TIER_UNSPECIFIED\020\000\022\030\n\024SEARCH_TIER_STA" - + "NDARD\020\001\022\032\n\026SEARCH_TIER_ENTERPRISE\020\002*C\n\013S" - + "earchAddOn\022\035\n\031SEARCH_ADD_ON_UNSPECIFIED\020" - + "\000\022\025\n\021SEARCH_ADD_ON_LLM\020\001B\361\007\n(com.google." - + "cloud.discoveryengine.v1alphaB\013CommonPro" - + "toP\001ZRcloud.google.com/go/discoveryengin" - + "e/apiv1alpha/discoveryenginepb;discovery" - + "enginepb\242\002\017DISCOVERYENGINE\252\002$Google.Clou" - + "d.DiscoveryEngine.V1Alpha\312\002$Google\\Cloud" - + "\\DiscoveryEngine\\V1alpha\352\002\'Google::Cloud" - + "::DiscoveryEngine::V1alpha\352A\346\001\n%discover" - + "yengine.googleapis.com/Branch\022Qprojects/" - + "{project}/locations/{location}/dataStore" - + "s/{data_store}/branches/{branch}\022jprojec" - + "ts/{project}/locations/{location}/collec" - + "tions/{collection}/dataStores/{data_stor" - + "e}/branches/{branch}\352Am\n)discoveryengine" - + ".googleapis.com/Collection\022@projects/{pr" - + "oject}/locations/{location}/collections/" - + "{collection}\352A\374\002\n,discoveryengine.google" - + "apis.com/ServingConfig\022_projects/{projec" - + "t}/locations/{location}/dataStores/{data" - + "_store}/servingConfigs/{serving_config}\022" - + "xprojects/{project}/locations/{location}" - + "/collections/{collection}/dataStores/{da" - + "ta_store}/servingConfigs/{serving_config" - + "}\022qprojects/{project}/locations/{locatio" - + "n}/collections/{collection}/engines/{eng" - + "ine}/servingConfigs/{serving_config}b\006pr" - + "oto3" + + "\nuser_agent\030\002 \001(\t\"%\n\017EmbeddingConfig\022\022\n\n" + + "field_path\030\001 \001(\t\"\034\n\nDoubleList\022\016\n\006values" + + "\030\001 \003(\001\"y\n\020GuidedSearchSpec\022$\n\034enable_ref" + + "inement_attributes\030\001 \001(\010\022 \n\030enable_relat" + + "ed_questions\030\002 \001(\010\022\035\n\025max_related_questi" + + "ons\030\003 \001(\005\"5\n\024CustomFineTuningSpec\022\035\n\025ena" + + "ble_search_adaptor\030\001 \001(\010\"\252\002\n\tIdpConfig\022I" + + "\n\010idp_type\030\001 \001(\01627.google.cloud.discover" + + "yengine.v1alpha.IdpConfig.IdpType\022^\n\023ext" + + "ernal_idp_config\030\002 \001(\0132A.google.cloud.di" + + "scoveryengine.v1alpha.IdpConfig.External" + + "IdpConfig\0320\n\021ExternalIdpConfig\022\033\n\023workfo" + + "rce_pool_name\030\001 \001(\t\"@\n\007IdpType\022\030\n\024IDP_TY" + + "PE_UNSPECIFIED\020\000\022\n\n\006GSUITE\020\001\022\017\n\013THIRD_PA" + + "RTY\020\002\"?\n\tPrincipal\022\021\n\007user_id\030\001 \001(\tH\000\022\022\n" + + "\010group_id\030\002 \001(\tH\000B\013\n\tprincipal*M\n\020Indust" + + "ryVertical\022!\n\035INDUSTRY_VERTICAL_UNSPECIF" + + "IED\020\000\022\013\n\007GENERIC\020\001\022\t\n\005MEDIA\020\002*\201\001\n\014Soluti" + + "onType\022\035\n\031SOLUTION_TYPE_UNSPECIFIED\020\000\022 \n" + + "\034SOLUTION_TYPE_RECOMMENDATION\020\001\022\030\n\024SOLUT" + + "ION_TYPE_SEARCH\020\002\022\026\n\022SOLUTION_TYPE_CHAT\020" + + "\003*_\n\nSearchTier\022\033\n\027SEARCH_TIER_UNSPECIFI" + + "ED\020\000\022\030\n\024SEARCH_TIER_STANDARD\020\001\022\032\n\026SEARCH" + + "_TIER_ENTERPRISE\020\002*C\n\013SearchAddOn\022\035\n\031SEA" + + "RCH_ADD_ON_UNSPECIFIED\020\000\022\025\n\021SEARCH_ADD_O" + + "N_LLM\020\001B\306\005\n(com.google.cloud.discoveryen" + + "gine.v1alphaB\013CommonProtoP\001ZRcloud.googl" + + "e.com/go/discoveryengine/apiv1alpha/disc" + + "overyenginepb;discoveryenginepb\242\002\017DISCOV" + + "ERYENGINE\252\002$Google.Cloud.DiscoveryEngine" + + ".V1Alpha\312\002$Google\\Cloud\\DiscoveryEngine\\" + + "V1alpha\352\002\'Google::Cloud::DiscoveryEngine" + + "::V1alpha\352A\346\001\n%discoveryengine.googleapi" + + "s.com/Branch\022Qprojects/{project}/locatio" + + "ns/{location}/dataStores/{data_store}/br" + + "anches/{branch}\022jprojects/{project}/loca" + + "tions/{location}/collections/{collection" + + "}/dataStores/{data_store}/branches/{bran" + + "ch}\352Am\n)discoveryengine.googleapis.com/C" + + "ollection\022@projects/{project}/locations/" + + "{location}/collections/{collection}\352AR\n\'" + + "discoveryengine.googleapis.com/Location\022" + + "\'projects/{project}/locations/{location}" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -129,14 +160,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "UserId", "UserAgent", }); - internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_EmbeddingConfig_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_EmbeddingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_EmbeddingConfig_descriptor, + new java.lang.String[] { + "FieldPath", + }); + internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_DoubleList_descriptor, new java.lang.String[] { "Values", }); + internal_static_google_cloud_discoveryengine_v1alpha_GuidedSearchSpec_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_discoveryengine_v1alpha_GuidedSearchSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_GuidedSearchSpec_descriptor, + new java.lang.String[] { + "EnableRefinementAttributes", "EnableRelatedQuestions", "MaxRelatedQuestions", + }); + internal_static_google_cloud_discoveryengine_v1alpha_CustomFineTuningSpec_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_discoveryengine_v1alpha_CustomFineTuningSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_CustomFineTuningSpec_descriptor, + new java.lang.String[] { + "EnableSearchAdaptor", + }); + internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_descriptor, + new java.lang.String[] { + "IdpType", "ExternalIdpConfig", + }); + internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_ExternalIdpConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_ExternalIdpConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_ExternalIdpConfig_descriptor, + new java.lang.String[] { + "WorkforcePoolName", + }); + internal_static_google_cloud_discoveryengine_v1alpha_Principal_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_discoveryengine_v1alpha_Principal_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Principal_descriptor, + new java.lang.String[] { + "UserId", "GroupId", "Principal", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ResourceProto.resourceDefinition); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequest.java index 41eb7fae0d60..d75e7bb3e993 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequest.java @@ -188,8 +188,9 @@ public com.google.protobuf.ByteString getQueryBytes() { * * *
                                -   * Selects data model of query suggestions for serving. Currently supported
                                -   * values:
                                +   * Specifies the autocomplete data model. This overrides any model specified
                                +   * in the Configuration > Autocomplete section of the Cloud console. Currently
                                +   * supported values:
                                    *
                                    * * `document` - Using suggestions generated from user-imported documents.
                                    * * `search-history` - Using suggestions generated from the past history of
                                @@ -226,8 +227,9 @@ public java.lang.String getQueryModel() {
                                    *
                                    *
                                    * 
                                -   * Selects data model of query suggestions for serving. Currently supported
                                -   * values:
                                +   * Specifies the autocomplete data model. This overrides any model specified
                                +   * in the Configuration > Autocomplete section of the Cloud console. Currently
                                +   * supported values:
                                    *
                                    * * `document` - Using suggestions generated from user-imported documents.
                                    * * `search-history` - Using suggestions generated from the past history of
                                @@ -1043,8 +1045,9 @@ public Builder setQueryBytes(com.google.protobuf.ByteString value) {
                                      *
                                      *
                                      * 
                                -     * Selects data model of query suggestions for serving. Currently supported
                                -     * values:
                                +     * Specifies the autocomplete data model. This overrides any model specified
                                +     * in the Configuration > Autocomplete section of the Cloud console. Currently
                                +     * supported values:
                                      *
                                      * * `document` - Using suggestions generated from user-imported documents.
                                      * * `search-history` - Using suggestions generated from the past history of
                                @@ -1080,8 +1083,9 @@ public java.lang.String getQueryModel() {
                                      *
                                      *
                                      * 
                                -     * Selects data model of query suggestions for serving. Currently supported
                                -     * values:
                                +     * Specifies the autocomplete data model. This overrides any model specified
                                +     * in the Configuration > Autocomplete section of the Cloud console. Currently
                                +     * supported values:
                                      *
                                      * * `document` - Using suggestions generated from user-imported documents.
                                      * * `search-history` - Using suggestions generated from the past history of
                                @@ -1117,8 +1121,9 @@ public com.google.protobuf.ByteString getQueryModelBytes() {
                                      *
                                      *
                                      * 
                                -     * Selects data model of query suggestions for serving. Currently supported
                                -     * values:
                                +     * Specifies the autocomplete data model. This overrides any model specified
                                +     * in the Configuration > Autocomplete section of the Cloud console. Currently
                                +     * supported values:
                                      *
                                      * * `document` - Using suggestions generated from user-imported documents.
                                      * * `search-history` - Using suggestions generated from the past history of
                                @@ -1153,8 +1158,9 @@ public Builder setQueryModel(java.lang.String value) {
                                      *
                                      *
                                      * 
                                -     * Selects data model of query suggestions for serving. Currently supported
                                -     * values:
                                +     * Specifies the autocomplete data model. This overrides any model specified
                                +     * in the Configuration > Autocomplete section of the Cloud console. Currently
                                +     * supported values:
                                      *
                                      * * `document` - Using suggestions generated from user-imported documents.
                                      * * `search-history` - Using suggestions generated from the past history of
                                @@ -1185,8 +1191,9 @@ public Builder clearQueryModel() {
                                      *
                                      *
                                      * 
                                -     * Selects data model of query suggestions for serving. Currently supported
                                -     * values:
                                +     * Specifies the autocomplete data model. This overrides any model specified
                                +     * in the Configuration > Autocomplete section of the Cloud console. Currently
                                +     * supported values:
                                      *
                                      * * `document` - Using suggestions generated from user-imported documents.
                                      * * `search-history` - Using suggestions generated from the past history of
                                diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequestOrBuilder.java
                                index 2d7139950580..33ff1a8b9b98 100644
                                --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequestOrBuilder.java
                                +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompleteQueryRequestOrBuilder.java
                                @@ -88,8 +88,9 @@ public interface CompleteQueryRequestOrBuilder
                                    *
                                    *
                                    * 
                                -   * Selects data model of query suggestions for serving. Currently supported
                                -   * values:
                                +   * Specifies the autocomplete data model. This overrides any model specified
                                +   * in the Configuration > Autocomplete section of the Cloud console. Currently
                                +   * supported values:
                                    *
                                    * * `document` - Using suggestions generated from user-imported documents.
                                    * * `search-history` - Using suggestions generated from the past history of
                                @@ -115,8 +116,9 @@ public interface CompleteQueryRequestOrBuilder
                                    *
                                    *
                                    * 
                                -   * Selects data model of query suggestions for serving. Currently supported
                                -   * values:
                                +   * Specifies the autocomplete data model. This overrides any model specified
                                +   * in the Configuration > Autocomplete section of the Cloud console. Currently
                                +   * supported values:
                                    *
                                    * * `document` - Using suggestions generated from user-imported documents.
                                    * * `search-history` - Using suggestions generated from the past history of
                                diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionProto.java
                                new file mode 100644
                                index 000000000000..c32d61a2889d
                                --- /dev/null
                                +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionProto.java
                                @@ -0,0 +1,85 @@
                                +/*
                                + * 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/discoveryengine/v1alpha/completion.proto
                                +
                                +// Protobuf Java Version: 3.25.2
                                +package com.google.cloud.discoveryengine.v1alpha;
                                +
                                +public final class CompletionProto {
                                +  private CompletionProto() {}
                                +
                                +  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
                                +
                                +  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
                                +    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
                                +  }
                                +
                                +  static final com.google.protobuf.Descriptors.Descriptor
                                +      internal_static_google_cloud_discoveryengine_v1alpha_SuggestionDenyListEntry_descriptor;
                                +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                                +      internal_static_google_cloud_discoveryengine_v1alpha_SuggestionDenyListEntry_fieldAccessorTable;
                                +
                                +  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                +    return descriptor;
                                +  }
                                +
                                +  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
                                +
                                +  static {
                                +    java.lang.String[] descriptorData = {
                                +      "\n5google/cloud/discoveryengine/v1alpha/c"
                                +          + "ompletion.proto\022$google.cloud.discoverye"
                                +          + "ngine.v1alpha\032\037google/api/field_behavior"
                                +          + ".proto\"\356\001\n\027SuggestionDenyListEntry\022\031\n\014bl"
                                +          + "ock_phrase\030\001 \001(\tB\003\340A\002\022h\n\016match_operator\030"
                                +          + "\002 \001(\0162K.google.cloud.discoveryengine.v1a"
                                +          + "lpha.SuggestionDenyListEntry.MatchOperat"
                                +          + "orB\003\340A\002\"N\n\rMatchOperator\022\036\n\032MATCH_OPERAT"
                                +          + "OR_UNSPECIFIED\020\000\022\017\n\013EXACT_MATCH\020\001\022\014\n\010CON"
                                +          + "TAINS\020\002B\233\002\n(com.google.cloud.discoveryen"
                                +          + "gine.v1alphaB\017CompletionProtoP\001ZRcloud.g"
                                +          + "oogle.com/go/discoveryengine/apiv1alpha/"
                                +          + "discoveryenginepb;discoveryenginepb\242\002\017DI"
                                +          + "SCOVERYENGINE\252\002$Google.Cloud.DiscoveryEn"
                                +          + "gine.V1Alpha\312\002$Google\\Cloud\\DiscoveryEng"
                                +          + "ine\\V1alpha\352\002\'Google::Cloud::DiscoveryEn"
                                +          + "gine::V1alphab\006proto3"
                                +    };
                                +    descriptor =
                                +        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
                                +            descriptorData,
                                +            new com.google.protobuf.Descriptors.FileDescriptor[] {
                                +              com.google.api.FieldBehaviorProto.getDescriptor(),
                                +            });
                                +    internal_static_google_cloud_discoveryengine_v1alpha_SuggestionDenyListEntry_descriptor =
                                +        getDescriptor().getMessageTypes().get(0);
                                +    internal_static_google_cloud_discoveryengine_v1alpha_SuggestionDenyListEntry_fieldAccessorTable =
                                +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                                +            internal_static_google_cloud_discoveryengine_v1alpha_SuggestionDenyListEntry_descriptor,
                                +            new java.lang.String[] {
                                +              "BlockPhrase", "MatchOperator",
                                +            });
                                +    com.google.protobuf.ExtensionRegistry registry =
                                +        com.google.protobuf.ExtensionRegistry.newInstance();
                                +    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
                                +    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
                                +        descriptor, registry);
                                +    com.google.api.FieldBehaviorProto.getDescriptor();
                                +  }
                                +
                                +  // @@protoc_insertion_point(outer_class_scope)
                                +}
                                diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceProto.java
                                index 63c780583b42..7a2841f3e856 100644
                                --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceProto.java
                                +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CompletionServiceProto.java
                                @@ -54,35 +54,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                           + "scoveryengine.v1alpha\032\034google/api/annota"
                                           + "tions.proto\032\027google/api/client.proto\032\037go"
                                           + "ogle/api/field_behavior.proto\032\031google/ap"
                                -          + "i/resource.proto\"\277\001\n\024CompleteQueryReques"
                                -          + "t\022D\n\ndata_store\030\001 \001(\tB0\340A\002\372A*\n(discovery"
                                -          + "engine.googleapis.com/DataStore\022\022\n\005query"
                                -          + "\030\002 \001(\tB\003\340A\002\022\023\n\013query_model\030\003 \001(\t\022\026\n\016user"
                                -          + "_pseudo_id\030\004 \001(\t\022 \n\030include_tail_suggest"
                                -          + "ions\030\005 \001(\010\"\345\001\n\025CompleteQueryResponse\022f\n\021"
                                -          + "query_suggestions\030\001 \003(\0132K.google.cloud.d"
                                -          + "iscoveryengine.v1alpha.CompleteQueryResp"
                                -          + "onse.QuerySuggestion\022\034\n\024tail_match_trigg"
                                -          + "ered\030\002 \001(\010\032F\n\017QuerySuggestion\022\022\n\nsuggest"
                                -          + "ion\030\001 \001(\t\022\037\n\027completable_field_paths\030\002 \003"
                                -          + "(\t2\236\003\n\021CompletionService\022\264\002\n\rCompleteQue"
                                -          + "ry\022:.google.cloud.discoveryengine.v1alph"
                                -          + "a.CompleteQueryRequest\032;.google.cloud.di"
                                -          + "scoveryengine.v1alpha.CompleteQueryRespo"
                                -          + "nse\"\251\001\202\323\344\223\002\242\001\022G/v1alpha/{data_store=proj"
                                -          + "ects/*/locations/*/dataStores/*}:complet"
                                -          + "eQueryZW\022U/v1alpha/{data_store=projects/"
                                -          + "*/locations/*/collections/*/dataStores/*"
                                -          + "}:completeQuery\032R\312A\036discoveryengine.goog"
                                -          + "leapis.com\322A.https://www.googleapis.com/"
                                -          + "auth/cloud-platformB\242\002\n(com.google.cloud"
                                -          + ".discoveryengine.v1alphaB\026CompletionServ"
                                -          + "iceProtoP\001ZRcloud.google.com/go/discover"
                                -          + "yengine/apiv1alpha/discoveryenginepb;dis"
                                -          + "coveryenginepb\242\002\017DISCOVERYENGINE\252\002$Googl"
                                -          + "e.Cloud.DiscoveryEngine.V1Alpha\312\002$Google"
                                -          + "\\Cloud\\DiscoveryEngine\\V1alpha\352\002\'Google:"
                                -          + ":Cloud::DiscoveryEngine::V1alphab\006proto3"
                                +          + "i/resource.proto\0328google/cloud/discovery"
                                +          + "engine/v1alpha/import_config.proto\0327goog"
                                +          + "le/cloud/discoveryengine/v1alpha/purge_c"
                                +          + "onfig.proto\032#google/longrunning/operatio"
                                +          + "ns.proto\"\277\001\n\024CompleteQueryRequest\022D\n\ndat"
                                +          + "a_store\030\001 \001(\tB0\340A\002\372A*\n(discoveryengine.g"
                                +          + "oogleapis.com/DataStore\022\022\n\005query\030\002 \001(\tB\003"
                                +          + "\340A\002\022\023\n\013query_model\030\003 \001(\t\022\026\n\016user_pseudo_"
                                +          + "id\030\004 \001(\t\022 \n\030include_tail_suggestions\030\005 \001"
                                +          + "(\010\"\345\001\n\025CompleteQueryResponse\022f\n\021query_su"
                                +          + "ggestions\030\001 \003(\0132K.google.cloud.discovery"
                                +          + "engine.v1alpha.CompleteQueryResponse.Que"
                                +          + "rySuggestion\022\034\n\024tail_match_triggered\030\002 \001"
                                +          + "(\010\032F\n\017QuerySuggestion\022\022\n\nsuggestion\030\001 \001("
                                +          + "\t\022\037\n\027completable_field_paths\030\002 \003(\t2\233\013\n\021C"
                                +          + "ompletionService\022\264\002\n\rCompleteQuery\022:.goo"
                                +          + "gle.cloud.discoveryengine.v1alpha.Comple"
                                +          + "teQueryRequest\032;.google.cloud.discoverye"
                                +          + "ngine.v1alpha.CompleteQueryResponse\"\251\001\202\323"
                                +          + "\344\223\002\242\001\022G/v1alpha/{data_store=projects/*/l"
                                +          + "ocations/*/dataStores/*}:completeQueryZW"
                                +          + "\022U/v1alpha/{data_store=projects/*/locati"
                                +          + "ons/*/collections/*/dataStores/*}:comple"
                                +          + "teQuery\022\376\003\n\037ImportSuggestionDenyListEntr"
                                +          + "ies\022L.google.cloud.discoveryengine.v1alp"
                                +          + "ha.ImportSuggestionDenyListEntriesReques"
                                +          + "t\032\035.google.longrunning.Operation\"\355\002\312A\234\001\n"
                                +          + "Lgoogle.cloud.discoveryengine.v1alpha.Im"
                                +          + "portSuggestionDenyListEntriesResponse\022Lg"
                                +          + "oogle.cloud.discoveryengine.v1alpha.Impo"
                                +          + "rtSuggestionDenyListEntriesMetadata\202\323\344\223\002"
                                +          + "\306\001\"d/v1alpha/{parent=projects/*/location"
                                +          + "s/*/collections/*/dataStores/*}/suggesti"
                                +          + "onDenyListEntries:import:\001*Z[\"V/v1alpha/"
                                +          + "{parent=projects/*/locations/*/dataStore"
                                +          + "s/*}/suggestionDenyListEntries:import:\001*"
                                +          + "\022\371\003\n\036PurgeSuggestionDenyListEntries\022K.go"
                                +          + "ogle.cloud.discoveryengine.v1alpha.Purge"
                                +          + "SuggestionDenyListEntriesRequest\032\035.googl"
                                +          + "e.longrunning.Operation\"\352\002\312A\232\001\nKgoogle.c"
                                +          + "loud.discoveryengine.v1alpha.PurgeSugges"
                                +          + "tionDenyListEntriesResponse\022Kgoogle.clou"
                                +          + "d.discoveryengine.v1alpha.PurgeSuggestio"
                                +          + "nDenyListEntriesMetadata\202\323\344\223\002\305\001\"c/v1alph"
                                +          + "a/{parent=projects/*/locations/*/collect"
                                +          + "ions/*/dataStores/*}/suggestionDenyListE"
                                +          + "ntries:purge:\001*Z[\"V/v1alpha/{parent=proj"
                                +          + "ects/*/locations/*/dataStores/**}/sugges"
                                +          + "tionDenyListEntries:purge:\001*\032R\312A\036discove"
                                +          + "ryengine.googleapis.com\322A.https://www.go"
                                +          + "ogleapis.com/auth/cloud-platformB\242\002\n(com"
                                +          + ".google.cloud.discoveryengine.v1alphaB\026C"
                                +          + "ompletionServiceProtoP\001ZRcloud.google.co"
                                +          + "m/go/discoveryengine/apiv1alpha/discover"
                                +          + "yenginepb;discoveryenginepb\242\002\017DISCOVERYE"
                                +          + "NGINE\252\002$Google.Cloud.DiscoveryEngine.V1A"
                                +          + "lpha\312\002$Google\\Cloud\\DiscoveryEngine\\V1al"
                                +          + "pha\352\002\'Google::Cloud::DiscoveryEngine::V1"
                                +          + "alphab\006proto3"
                                     };
                                     descriptor =
                                         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
                                @@ -92,6 +122,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                               com.google.api.ClientProto.getDescriptor(),
                                               com.google.api.FieldBehaviorProto.getDescriptor(),
                                               com.google.api.ResourceProto.getDescriptor(),
                                +              com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.getDescriptor(),
                                +              com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.getDescriptor(),
                                +              com.google.longrunning.OperationsProto.getDescriptor(),
                                             });
                                     internal_static_google_cloud_discoveryengine_v1alpha_CompleteQueryRequest_descriptor =
                                         getDescriptor().getMessageTypes().get(0);
                                @@ -126,12 +159,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                     registry.add(com.google.api.AnnotationsProto.http);
                                     registry.add(com.google.api.ClientProto.oauthScopes);
                                     registry.add(com.google.api.ResourceProto.resourceReference);
                                +    registry.add(com.google.longrunning.OperationsProto.operationInfo);
                                     com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
                                         descriptor, registry);
                                     com.google.api.AnnotationsProto.getDescriptor();
                                     com.google.api.ClientProto.getDescriptor();
                                     com.google.api.FieldBehaviorProto.getDescriptor();
                                     com.google.api.ResourceProto.getDescriptor();
                                +    com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.getDescriptor();
                                +    com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto.getDescriptor();
                                +    com.google.longrunning.OperationsProto.getDescriptor();
                                   }
                                 
                                   // @@protoc_insertion_point(outer_class_scope)
                                diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceProto.java
                                index 5956253e1744..a3e50da47a5e 100644
                                --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceProto.java
                                +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConversationalSearchServiceProto.java
                                @@ -83,7 +83,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                           + "roto\0329google/cloud/discoveryengine/v1alp"
                                           + "ha/search_service.proto\032\033google/protobuf"
                                           + "/empty.proto\032 google/protobuf/field_mask"
                                -          + ".proto\"\343\004\n\033ConverseConversationRequest\022A"
                                +          + ".proto\"\266\005\n\033ConverseConversationRequest\022A"
                                           + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+discoveryengine.go"
                                           + "ogleapis.com/Conversation\022C\n\005query\030\002 \001(\013"
                                           + "2/.google.cloud.discoveryengine.v1alpha."
                                @@ -97,110 +97,112 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                           + "elsEntry\022g\n\014summary_spec\030\010 \001(\0132Q.google."
                                           + "cloud.discoveryengine.v1alpha.SearchRequ"
                                           + "est.ContentSearchSpec.SummarySpec\022\016\n\006fil"
                                -          + "ter\030\t \001(\t\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001("
                                -          + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\232\002\n\034ConverseConvers"
                                -          + "ationResponse\022:\n\005reply\030\001 \001(\0132+.google.cl"
                                -          + "oud.discoveryengine.v1alpha.Reply\022H\n\014con"
                                -          + "versation\030\002 \001(\01322.google.cloud.discovery"
                                -          + "engine.v1alpha.Conversation\022\031\n\021related_q"
                                -          + "uestions\030\006 \003(\t\022Y\n\016search_results\030\003 \003(\0132A"
                                -          + ".google.cloud.discoveryengine.v1alpha.Se"
                                -          + "archResponse.SearchResult\"\254\001\n\031CreateConv"
                                -          + "ersationRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n"
                                -          + "(discoveryengine.googleapis.com/DataStor"
                                -          + "e\022M\n\014conversation\030\002 \001(\01322.google.cloud.d"
                                -          + "iscoveryengine.v1alpha.ConversationB\003\340A\002"
                                -          + "\"\233\001\n\031UpdateConversationRequest\022M\n\014conver"
                                -          + "sation\030\001 \001(\01322.google.cloud.discoveryeng"
                                -          + "ine.v1alpha.ConversationB\003\340A\002\022/\n\013update_"
                                -          + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"^"
                                -          + "\n\031DeleteConversationRequest\022A\n\004name\030\001 \001("
                                -          + "\tB3\340A\002\372A-\n+discoveryengine.googleapis.co"
                                -          + "m/Conversation\"[\n\026GetConversationRequest"
                                -          + "\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+discoveryengine."
                                -          + "googleapis.com/Conversation\"\245\001\n\030ListConv"
                                -          + "ersationsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*"
                                -          + "\n(discoveryengine.googleapis.com/DataSto"
                                -          + "re\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001("
                                -          + "\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\177\n\031L"
                                -          + "istConversationsResponse\022I\n\rconversation"
                                -          + "s\030\001 \003(\01322.google.cloud.discoveryengine.v"
                                -          + "1alpha.Conversation\022\027\n\017next_page_token\030\002"
                                -          + " \001(\t2\356\024\n\033ConversationalSearchService\022\304\003\n"
                                -          + "\024ConverseConversation\022A.google.cloud.dis"
                                -          + "coveryengine.v1alpha.ConverseConversatio"
                                -          + "nRequest\032B.google.cloud.discoveryengine."
                                -          + "v1alpha.ConverseConversationResponse\"\244\002\332"
                                -          + "A\nname,query\202\323\344\223\002\220\002\"L/v1alpha/{name=proj"
                                +          + "ter\030\t \001(\t\022Q\n\nboost_spec\030\n \001(\0132=.google.c"
                                +          + "loud.discoveryengine.v1alpha.SearchReque"
                                +          + "st.BoostSpec\0321\n\017UserLabelsEntry\022\013\n\003key\030\001"
                                +          + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\232\002\n\034ConverseConv"
                                +          + "ersationResponse\022:\n\005reply\030\001 \001(\0132+.google"
                                +          + ".cloud.discoveryengine.v1alpha.Reply\022H\n\014"
                                +          + "conversation\030\002 \001(\01322.google.cloud.discov"
                                +          + "eryengine.v1alpha.Conversation\022\031\n\021relate"
                                +          + "d_questions\030\006 \003(\t\022Y\n\016search_results\030\003 \003("
                                +          + "\0132A.google.cloud.discoveryengine.v1alpha"
                                +          + ".SearchResponse.SearchResult\"\254\001\n\031CreateC"
                                +          + "onversationRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372"
                                +          + "A*\n(discoveryengine.googleapis.com/DataS"
                                +          + "tore\022M\n\014conversation\030\002 \001(\01322.google.clou"
                                +          + "d.discoveryengine.v1alpha.ConversationB\003"
                                +          + "\340A\002\"\233\001\n\031UpdateConversationRequest\022M\n\014con"
                                +          + "versation\030\001 \001(\01322.google.cloud.discovery"
                                +          + "engine.v1alpha.ConversationB\003\340A\002\022/\n\013upda"
                                +          + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas"
                                +          + "k\"^\n\031DeleteConversationRequest\022A\n\004name\030\001"
                                +          + " \001(\tB3\340A\002\372A-\n+discoveryengine.googleapis"
                                +          + ".com/Conversation\"[\n\026GetConversationRequ"
                                +          + "est\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+discoveryengi"
                                +          + "ne.googleapis.com/Conversation\"\245\001\n\030ListC"
                                +          + "onversationsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002"
                                +          + "\372A*\n(discoveryengine.googleapis.com/Data"
                                +          + "Store\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003"
                                +          + " \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\177"
                                +          + "\n\031ListConversationsResponse\022I\n\rconversat"
                                +          + "ions\030\001 \003(\01322.google.cloud.discoveryengin"
                                +          + "e.v1alpha.Conversation\022\027\n\017next_page_toke"
                                +          + "n\030\002 \001(\t2\356\024\n\033ConversationalSearchService\022"
                                +          + "\304\003\n\024ConverseConversation\022A.google.cloud."
                                +          + "discoveryengine.v1alpha.ConverseConversa"
                                +          + "tionRequest\032B.google.cloud.discoveryengi"
                                +          + "ne.v1alpha.ConverseConversationResponse\""
                                +          + "\244\002\332A\nname,query\202\323\344\223\002\220\002\"L/v1alpha/{name=p"
                                +          + "rojects/*/locations/*/dataStores/*/conve"
                                +          + "rsations/*}:converse:\001*Z_\"Z/v1alpha/{nam"
                                +          + "e=projects/*/locations/*/collections/*/d"
                                +          + "ataStores/*/conversations/*}:converse:\001*"
                                +          + "Z\\\"W/v1alpha/{name=projects/*/locations/"
                                +          + "*/collections/*/engines/*/conversations/"
                                +          + "*}:converse:\001*\022\277\003\n\022CreateConversation\022?."
                                +          + "google.cloud.discoveryengine.v1alpha.Cre"
                                +          + "ateConversationRequest\0322.google.cloud.di"
                                +          + "scoveryengine.v1alpha.Conversation\"\263\002\332A\023"
                                +          + "parent,conversation\202\323\344\223\002\226\002\"C/v1alpha/{pa"
                                +          + "rent=projects/*/locations/*/dataStores/*"
                                +          + "}/conversations:\014conversationZa\"Q/v1alph"
                                +          + "a/{parent=projects/*/locations/*/collect"
                                +          + "ions/*/dataStores/*}/conversations:\014conv"
                                +          + "ersationZ^\"N/v1alpha/{parent=projects/*/"
                                +          + "locations/*/collections/*/engines/*}/con"
                                +          + "versations:\014conversation\022\352\002\n\022DeleteConve"
                                +          + "rsation\022?.google.cloud.discoveryengine.v"
                                +          + "1alpha.DeleteConversationRequest\032\026.googl"
                                +          + "e.protobuf.Empty\"\372\001\332A\004name\202\323\344\223\002\354\001*C/v1al"
                                +          + "pha/{name=projects/*/locations/*/dataSto"
                                +          + "res/*/conversations/*}ZS*Q/v1alpha/{name"
                                +          + "=projects/*/locations/*/collections/*/da"
                                +          + "taStores/*/conversations/*}ZP*N/v1alpha/"
                                +          + "{name=projects/*/locations/*/collections"
                                +          + "/*/engines/*/conversations/*}\022\353\003\n\022Update"
                                +          + "Conversation\022?.google.cloud.discoveryeng"
                                +          + "ine.v1alpha.UpdateConversationRequest\0322."
                                +          + "google.cloud.discoveryengine.v1alpha.Con"
                                +          + "versation\"\337\002\332A\030conversation,update_mask\202"
                                +          + "\323\344\223\002\275\0022P/v1alpha/{conversation.name=proj"
                                           + "ects/*/locations/*/dataStores/*/conversa"
                                -          + "tions/*}:converse:\001*Z_\"Z/v1alpha/{name=p"
                                -          + "rojects/*/locations/*/collections/*/data"
                                -          + "Stores/*/conversations/*}:converse:\001*Z\\\""
                                -          + "W/v1alpha/{name=projects/*/locations/*/c"
                                -          + "ollections/*/engines/*/conversations/*}:"
                                -          + "converse:\001*\022\277\003\n\022CreateConversation\022?.goo"
                                -          + "gle.cloud.discoveryengine.v1alpha.Create"
                                -          + "ConversationRequest\0322.google.cloud.disco"
                                -          + "veryengine.v1alpha.Conversation\"\263\002\332A\023par"
                                -          + "ent,conversation\202\323\344\223\002\226\002\"C/v1alpha/{paren"
                                -          + "t=projects/*/locations/*/dataStores/*}/c"
                                -          + "onversations:\014conversationZa\"Q/v1alpha/{"
                                -          + "parent=projects/*/locations/*/collection"
                                -          + "s/*/dataStores/*}/conversations:\014convers"
                                -          + "ationZ^\"N/v1alpha/{parent=projects/*/loc"
                                -          + "ations/*/collections/*/engines/*}/conver"
                                -          + "sations:\014conversation\022\352\002\n\022DeleteConversa"
                                -          + "tion\022?.google.cloud.discoveryengine.v1al"
                                -          + "pha.DeleteConversationRequest\032\026.google.p"
                                -          + "rotobuf.Empty\"\372\001\332A\004name\202\323\344\223\002\354\001*C/v1alpha"
                                -          + "/{name=projects/*/locations/*/dataStores"
                                -          + "/*/conversations/*}ZS*Q/v1alpha/{name=pr"
                                -          + "ojects/*/locations/*/collections/*/dataS"
                                -          + "tores/*/conversations/*}ZP*N/v1alpha/{na"
                                -          + "me=projects/*/locations/*/collections/*/"
                                -          + "engines/*/conversations/*}\022\353\003\n\022UpdateCon"
                                -          + "versation\022?.google.cloud.discoveryengine"
                                -          + ".v1alpha.UpdateConversationRequest\0322.goo"
                                -          + "gle.cloud.discoveryengine.v1alpha.Conver"
                                -          + "sation\"\337\002\332A\030conversation,update_mask\202\323\344\223"
                                -          + "\002\275\0022P/v1alpha/{conversation.name=project"
                                -          + "s/*/locations/*/dataStores/*/conversatio"
                                -          + "ns/*}:\014conversationZn2^/v1alpha/{convers"
                                -          + "ation.name=projects/*/locations/*/collec"
                                -          + "tions/*/dataStores/*/conversations/*}:\014c"
                                -          + "onversationZk2[/v1alpha/{conversation.na"
                                -          + "me=projects/*/locations/*/collections/*/"
                                -          + "engines/*/conversations/*}:\014conversation"
                                -          + "\022\200\003\n\017GetConversation\022<.google.cloud.disc"
                                -          + "overyengine.v1alpha.GetConversationReque"
                                -          + "st\0322.google.cloud.discoveryengine.v1alph"
                                -          + "a.Conversation\"\372\001\332A\004name\202\323\344\223\002\354\001\022C/v1alph"
                                -          + "a/{name=projects/*/locations/*/dataStore"
                                -          + "s/*/conversations/*}ZS\022Q/v1alpha/{name=p"
                                -          + "rojects/*/locations/*/collections/*/data"
                                -          + "Stores/*/conversations/*}ZP\022N/v1alpha/{n"
                                -          + "ame=projects/*/locations/*/collections/*"
                                -          + "/engines/*/conversations/*}\022\223\003\n\021ListConv"
                                -          + "ersations\022>.google.cloud.discoveryengine"
                                -          + ".v1alpha.ListConversationsRequest\032?.goog"
                                -          + "le.cloud.discoveryengine.v1alpha.ListCon"
                                -          + "versationsResponse\"\374\001\332A\006parent\202\323\344\223\002\354\001\022C/"
                                -          + "v1alpha/{parent=projects/*/locations/*/d"
                                -          + "ataStores/*}/conversationsZS\022Q/v1alpha/{"
                                -          + "parent=projects/*/locations/*/collection"
                                -          + "s/*/dataStores/*}/conversationsZP\022N/v1al"
                                -          + "pha/{parent=projects/*/locations/*/colle"
                                -          + "ctions/*/engines/*}/conversations\032R\312A\036di"
                                -          + "scoveryengine.googleapis.com\322A.https://w"
                                -          + "ww.googleapis.com/auth/cloud-platformB\254\002"
                                -          + "\n(com.google.cloud.discoveryengine.v1alp"
                                -          + "haB ConversationalSearchServiceProtoP\001ZR"
                                -          + "cloud.google.com/go/discoveryengine/apiv"
                                -          + "1alpha/discoveryenginepb;discoveryengine"
                                -          + "pb\242\002\017DISCOVERYENGINE\252\002$Google.Cloud.Disc"
                                -          + "overyEngine.V1Alpha\312\002$Google\\Cloud\\Disco"
                                -          + "veryEngine\\V1alpha\352\002\'Google::Cloud::Disc"
                                -          + "overyEngine::V1alphab\006proto3"
                                +          + "tions/*}:\014conversationZn2^/v1alpha/{conv"
                                +          + "ersation.name=projects/*/locations/*/col"
                                +          + "lections/*/dataStores/*/conversations/*}"
                                +          + ":\014conversationZk2[/v1alpha/{conversation"
                                +          + ".name=projects/*/locations/*/collections"
                                +          + "/*/engines/*/conversations/*}:\014conversat"
                                +          + "ion\022\200\003\n\017GetConversation\022<.google.cloud.d"
                                +          + "iscoveryengine.v1alpha.GetConversationRe"
                                +          + "quest\0322.google.cloud.discoveryengine.v1a"
                                +          + "lpha.Conversation\"\372\001\332A\004name\202\323\344\223\002\354\001\022C/v1a"
                                +          + "lpha/{name=projects/*/locations/*/dataSt"
                                +          + "ores/*/conversations/*}ZS\022Q/v1alpha/{nam"
                                +          + "e=projects/*/locations/*/collections/*/d"
                                +          + "ataStores/*/conversations/*}ZP\022N/v1alpha"
                                +          + "/{name=projects/*/locations/*/collection"
                                +          + "s/*/engines/*/conversations/*}\022\223\003\n\021ListC"
                                +          + "onversations\022>.google.cloud.discoveryeng"
                                +          + "ine.v1alpha.ListConversationsRequest\032?.g"
                                +          + "oogle.cloud.discoveryengine.v1alpha.List"
                                +          + "ConversationsResponse\"\374\001\332A\006parent\202\323\344\223\002\354\001"
                                +          + "\022C/v1alpha/{parent=projects/*/locations/"
                                +          + "*/dataStores/*}/conversationsZS\022Q/v1alph"
                                +          + "a/{parent=projects/*/locations/*/collect"
                                +          + "ions/*/dataStores/*}/conversationsZP\022N/v"
                                +          + "1alpha/{parent=projects/*/locations/*/co"
                                +          + "llections/*/engines/*}/conversations\032R\312A"
                                +          + "\036discoveryengine.googleapis.com\322A.https:"
                                +          + "//www.googleapis.com/auth/cloud-platform"
                                +          + "B\254\002\n(com.google.cloud.discoveryengine.v1"
                                +          + "alphaB ConversationalSearchServiceProtoP"
                                +          + "\001ZRcloud.google.com/go/discoveryengine/a"
                                +          + "piv1alpha/discoveryenginepb;discoveryeng"
                                +          + "inepb\242\002\017DISCOVERYENGINE\252\002$Google.Cloud.D"
                                +          + "iscoveryEngine.V1Alpha\312\002$Google\\Cloud\\Di"
                                +          + "scoveryEngine\\V1alpha\352\002\'Google::Cloud::D"
                                +          + "iscoveryEngine::V1alphab\006proto3"
                                     };
                                     descriptor =
                                         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
                                @@ -229,6 +231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                                               "UserLabels",
                                               "SummarySpec",
                                               "Filter",
                                +              "BoostSpec",
                                             });
                                     internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_UserLabelsEntry_descriptor =
                                         internal_static_google_cloud_discoveryengine_v1alpha_ConverseConversationRequest_descriptor
                                diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequest.java
                                index 6f29d475c927..945bf9bb69a7 100644
                                --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequest.java
                                +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequest.java
                                @@ -639,6 +639,63 @@ public com.google.protobuf.ByteString getFilterBytes() {
                                     }
                                   }
                                 
                                +  public static final int BOOST_SPEC_FIELD_NUMBER = 10;
                                +  private com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boostSpec_;
                                +  /**
                                +   *
                                +   *
                                +   * 
                                +   * Boost specification to boost certain documents in search results which may
                                +   * affect the converse response. For more information on boosting, see
                                +   * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + * + * @return Whether the boostSpec field is set. + */ + @java.lang.Override + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                +   * Boost specification to boost certain documents in search results which may
                                +   * affect the converse response. For more information on boosting, see
                                +   * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + * + * @return The boostSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec getBoostSpec() { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + /** + * + * + *
                                +   * Boost specification to boost certain documents in search results which may
                                +   * affect the converse response. For more information on boosting, see
                                +   * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -676,6 +733,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, filter_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getBoostSpec()); + } getUnknownFields().writeTo(output); } @@ -716,6 +776,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, filter_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getBoostSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -749,6 +812,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSummarySpec().equals(other.getSummarySpec())) return false; } if (!getFilter().equals(other.getFilter())) return false; + if (hasBoostSpec() != other.hasBoostSpec()) return false; + if (hasBoostSpec()) { + if (!getBoostSpec().equals(other.getBoostSpec())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -784,6 +851,10 @@ public int hashCode() { } hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); + if (hasBoostSpec()) { + hash = (37 * hash) + BOOST_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getBoostSpec().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -954,6 +1025,7 @@ private void maybeForceBuilderInitialization() { getQueryFieldBuilder(); getConversationFieldBuilder(); getSummarySpecFieldBuilder(); + getBoostSpecFieldBuilder(); } } @@ -981,6 +1053,11 @@ public Builder clear() { summarySpecBuilder_ = null; } filter_ = ""; + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } return this; } @@ -1051,6 +1128,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000080) != 0)) { result.filter_ = filter_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -1132,6 +1213,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; onChanged(); } + if (other.hasBoostSpec()) { + mergeBoostSpec(other.getBoostSpec()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1212,6 +1296,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 74 + case 82: + { + input.readMessage(getBoostSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2635,6 +2725,216 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boostSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpecOrBuilder> + boostSpecBuilder_; + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + * + * @return Whether the boostSpec field is set. + */ + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + * + * @return The boostSpec. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec getBoostSpec() { + if (boostSpecBuilder_ == null) { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } else { + return boostSpecBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boostSpec_ = value; + } else { + boostSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.Builder builderForValue) { + if (boostSpecBuilder_ == null) { + boostSpec_ = builderForValue.build(); + } else { + boostSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + public Builder mergeBoostSpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && boostSpec_ != null + && boostSpec_ + != com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec + .getDefaultInstance()) { + getBoostSpecBuilder().mergeFrom(value); + } else { + boostSpec_ = value; + } + } else { + boostSpecBuilder_.mergeFrom(value); + } + if (boostSpec_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + public Builder clearBoostSpec() { + bitField0_ = (bitField0_ & ~0x00000100); + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.Builder + getBoostSpecBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getBoostSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + if (boostSpecBuilder_ != null) { + return boostSpecBuilder_.getMessageOrBuilder(); + } else { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpecOrBuilder> + getBoostSpecFieldBuilder() { + if (boostSpecBuilder_ == null) { + boostSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpecOrBuilder>( + getBoostSpec(), getParentForChildren(), isClean()); + boostSpec_ = null; + } + return boostSpecBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequestOrBuilder.java index b04c1181cc96..8bbd013fa17a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ConverseConversationRequestOrBuilder.java @@ -422,4 +422,45 @@ java.lang.String getUserLabelsOrDefault( * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                +   * Boost specification to boost certain documents in search results which may
                                +   * affect the converse response. For more information on boosting, see
                                +   * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + * + * @return Whether the boostSpec field is set. + */ + boolean hasBoostSpec(); + /** + * + * + *
                                +   * Boost specification to boost certain documents in search results which may
                                +   * affect the converse response. For more information on boosting, see
                                +   * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + * + * @return The boostSpec. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec getBoostSpec(); + /** + * + * + *
                                +   * Boost specification to boost certain documents in search results which may
                                +   * affect the converse response. For more information on boosting, see
                                +   * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CustomFineTuningSpec.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CustomFineTuningSpec.java new file mode 100644 index 000000000000..b84ffcd38fa9 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CustomFineTuningSpec.java @@ -0,0 +1,544 @@ +/* + * 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/discoveryengine/v1alpha/common.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Defines custom fine tuning spec.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec} + */ +public final class CustomFineTuningSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec) + CustomFineTuningSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomFineTuningSpec.newBuilder() to construct. + private CustomFineTuningSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomFineTuningSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomFineTuningSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_CustomFineTuningSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_CustomFineTuningSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.class, + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.Builder.class); + } + + public static final int ENABLE_SEARCH_ADAPTOR_FIELD_NUMBER = 1; + private boolean enableSearchAdaptor_ = false; + /** + * + * + *
                                +   * Whether or not to enable and include custom fine tuned search adaptor
                                +   * model.
                                +   * 
                                + * + * bool enable_search_adaptor = 1; + * + * @return The enableSearchAdaptor. + */ + @java.lang.Override + public boolean getEnableSearchAdaptor() { + return enableSearchAdaptor_; + } + + 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 (enableSearchAdaptor_ != false) { + output.writeBool(1, enableSearchAdaptor_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableSearchAdaptor_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSearchAdaptor_); + } + 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.discoveryengine.v1alpha.CustomFineTuningSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec other = + (com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec) obj; + + if (getEnableSearchAdaptor() != other.getEnableSearchAdaptor()) 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) + ENABLE_SEARCH_ADAPTOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSearchAdaptor()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec 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.discoveryengine.v1alpha.CustomFineTuningSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec 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.discoveryengine.v1alpha.CustomFineTuningSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec 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.discoveryengine.v1alpha.CustomFineTuningSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec 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.discoveryengine.v1alpha.CustomFineTuningSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec 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.discoveryengine.v1alpha.CustomFineTuningSpec 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 custom fine tuning spec.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec) + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_CustomFineTuningSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_CustomFineTuningSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.class, + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableSearchAdaptor_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_CustomFineTuningSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec build() { + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec buildPartial() { + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec result = + new com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableSearchAdaptor_ = enableSearchAdaptor_; + } + } + + @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.discoveryengine.v1alpha.CustomFineTuningSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.getDefaultInstance()) + return this; + if (other.getEnableSearchAdaptor() != false) { + setEnableSearchAdaptor(other.getEnableSearchAdaptor()); + } + 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: + { + enableSearchAdaptor_ = 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 enableSearchAdaptor_; + /** + * + * + *
                                +     * Whether or not to enable and include custom fine tuned search adaptor
                                +     * model.
                                +     * 
                                + * + * bool enable_search_adaptor = 1; + * + * @return The enableSearchAdaptor. + */ + @java.lang.Override + public boolean getEnableSearchAdaptor() { + return enableSearchAdaptor_; + } + /** + * + * + *
                                +     * Whether or not to enable and include custom fine tuned search adaptor
                                +     * model.
                                +     * 
                                + * + * bool enable_search_adaptor = 1; + * + * @param value The enableSearchAdaptor to set. + * @return This builder for chaining. + */ + public Builder setEnableSearchAdaptor(boolean value) { + + enableSearchAdaptor_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Whether or not to enable and include custom fine tuned search adaptor
                                +     * model.
                                +     * 
                                + * + * bool enable_search_adaptor = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnableSearchAdaptor() { + bitField0_ = (bitField0_ & ~0x00000001); + enableSearchAdaptor_ = 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.discoveryengine.v1alpha.CustomFineTuningSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec) + private static final com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomFineTuningSpec 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.discoveryengine.v1alpha.CustomFineTuningSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CustomFineTuningSpecOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CustomFineTuningSpecOrBuilder.java new file mode 100644 index 000000000000..5adf5000ea8e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/CustomFineTuningSpecOrBuilder.java @@ -0,0 +1,40 @@ +/* + * 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/discoveryengine/v1alpha/common.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface CustomFineTuningSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Whether or not to enable and include custom fine tuned search adaptor
                                +   * model.
                                +   * 
                                + * + * bool enable_search_adaptor = 1; + * + * @return The enableSearchAdaptor. + */ + boolean getEnableSearchAdaptor(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStore.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStore.java index 209f38d557a3..4da11cec60dd 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStore.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStore.java @@ -692,6 +692,247 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } + public static final int IDP_CONFIG_FIELD_NUMBER = 21; + private com.google.cloud.discoveryengine.v1alpha.IdpConfig idpConfig_; + /** + * + * + *
                                +   * Output only. Data store level identity provider config.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the idpConfig field is set. + */ + @java.lang.Override + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +   * Output only. Data store level identity provider config.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The idpConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IdpConfig getIdpConfig() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.IdpConfig.getDefaultInstance() + : idpConfig_; + } + /** + * + * + *
                                +   * Output only. Data store level identity provider config.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IdpConfigOrBuilder getIdpConfigOrBuilder() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.IdpConfig.getDefaultInstance() + : idpConfig_; + } + + public static final int ACL_ENABLED_FIELD_NUMBER = 24; + private boolean aclEnabled_ = false; + /** + * + * + *
                                +   * Immutable. Whether data in the
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] has ACL
                                +   * information. If set to `true`, the source data must have ACL. ACL will be
                                +   * ingested when data is ingested by
                                +   * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments]
                                +   * methods.
                                +   *
                                +   * When ACL is enabled for the
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore],
                                +   * [Document][google.cloud.discoveryengine.v1alpha.Document] can't be accessed
                                +   * by calling
                                +   * [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument]
                                +   * or
                                +   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments].
                                +   *
                                +   * Currently ACL is only supported in `GENERIC` industry vertical with
                                +   * non-`PUBLIC_WEBSITE` content config.
                                +   * 
                                + * + * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The aclEnabled. + */ + @java.lang.Override + public boolean getAclEnabled() { + return aclEnabled_; + } + + public static final int DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER = 27; + private com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + documentProcessingConfig_; + /** + * + * + *
                                +   * Configuration for Document understanding and enrichment.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return Whether the documentProcessingConfig field is set. + */ + @java.lang.Override + public boolean hasDocumentProcessingConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                                +   * Configuration for Document understanding and enrichment.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return The documentProcessingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + getDocumentProcessingConfig() { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } + /** + * + * + *
                                +   * Configuration for Document understanding and enrichment.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigOrBuilder + getDocumentProcessingConfigOrBuilder() { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } + + public static final int STARTING_SCHEMA_FIELD_NUMBER = 28; + private com.google.cloud.discoveryengine.v1alpha.Schema startingSchema_; + /** + * + * + *
                                +   * The start schema to use for this
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +   * provisioning it. If unset, a default vertical specialized schema will be
                                +   * used.
                                +   *
                                +   * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +   * used in other APIs. This field will be omitted from all API responses
                                +   * including [CreateDataStore][] API. To retrieve a schema of a
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +   * API instead.
                                +   *
                                +   * The provided schema will be validated against certain rules on schema.
                                +   * Learn more from [this
                                +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + * + * @return Whether the startingSchema field is set. + */ + @java.lang.Override + public boolean hasStartingSchema() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                +   * The start schema to use for this
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +   * provisioning it. If unset, a default vertical specialized schema will be
                                +   * used.
                                +   *
                                +   * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +   * used in other APIs. This field will be omitted from all API responses
                                +   * including [CreateDataStore][] API. To retrieve a schema of a
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +   * API instead.
                                +   *
                                +   * The provided schema will be validated against certain rules on schema.
                                +   * Learn more from [this
                                +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + * + * @return The startingSchema. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Schema getStartingSchema() { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance() + : startingSchema_; + } + /** + * + * + *
                                +   * The start schema to use for this
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +   * provisioning it. If unset, a default vertical specialized schema will be
                                +   * used.
                                +   *
                                +   * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +   * used in other APIs. This field will be omitted from all API responses
                                +   * including [CreateDataStore][] API. To retrieve a schema of a
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +   * API instead.
                                +   *
                                +   * The provided schema will be validated against certain rules on schema.
                                +   * Learn more from [this
                                +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder getStartingSchemaOrBuilder() { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance() + : startingSchema_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -737,6 +978,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSchemaId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, defaultSchemaId_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(21, getIdpConfig()); + } + if (aclEnabled_ != false) { + output.writeBool(24, aclEnabled_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(27, getDocumentProcessingConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(28, getStartingSchema()); + } getUnknownFields().writeTo(output); } @@ -782,6 +1035,20 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSchemaId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, defaultSchemaId_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getIdpConfig()); + } + if (aclEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, aclEnabled_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 27, getDocumentProcessingConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getStartingSchema()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -808,6 +1075,19 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } + if (hasIdpConfig() != other.hasIdpConfig()) return false; + if (hasIdpConfig()) { + if (!getIdpConfig().equals(other.getIdpConfig())) return false; + } + if (getAclEnabled() != other.getAclEnabled()) return false; + if (hasDocumentProcessingConfig() != other.hasDocumentProcessingConfig()) return false; + if (hasDocumentProcessingConfig()) { + if (!getDocumentProcessingConfig().equals(other.getDocumentProcessingConfig())) return false; + } + if (hasStartingSchema() != other.hasStartingSchema()) return false; + if (hasStartingSchema()) { + if (!getStartingSchema().equals(other.getStartingSchema())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -837,6 +1117,20 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } + if (hasIdpConfig()) { + hash = (37 * hash) + IDP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIdpConfig().hashCode(); + } + hash = (37 * hash) + ACL_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAclEnabled()); + if (hasDocumentProcessingConfig()) { + hash = (37 * hash) + DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDocumentProcessingConfig().hashCode(); + } + if (hasStartingSchema()) { + hash = (37 * hash) + STARTING_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getStartingSchema().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -978,6 +1272,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); + getIdpConfigFieldBuilder(); + getDocumentProcessingConfigFieldBuilder(); + getStartingSchemaFieldBuilder(); } } @@ -997,6 +1294,22 @@ public Builder clear() { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + aclEnabled_ = false; + documentProcessingConfig_ = null; + if (documentProcessingConfigBuilder_ != null) { + documentProcessingConfigBuilder_.dispose(); + documentProcessingConfigBuilder_ = null; + } + startingSchema_ = null; + if (startingSchemaBuilder_ != null) { + startingSchemaBuilder_.dispose(); + startingSchemaBuilder_ = null; + } return this; } @@ -1063,6 +1376,25 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.DataStore re result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.idpConfig_ = idpConfigBuilder_ == null ? idpConfig_ : idpConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.aclEnabled_ = aclEnabled_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.documentProcessingConfig_ = + documentProcessingConfigBuilder_ == null + ? documentProcessingConfig_ + : documentProcessingConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.startingSchema_ = + startingSchemaBuilder_ == null ? startingSchema_ : startingSchemaBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -1146,6 +1478,18 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.DataStore othe if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } + if (other.hasIdpConfig()) { + mergeIdpConfig(other.getIdpConfig()); + } + if (other.getAclEnabled() != false) { + setAclEnabled(other.getAclEnabled()); + } + if (other.hasDocumentProcessingConfig()) { + mergeDocumentProcessingConfig(other.getDocumentProcessingConfig()); + } + if (other.hasStartingSchema()) { + mergeStartingSchema(other.getStartingSchema()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1227,6 +1571,31 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 58 + case 170: + { + input.readMessage(getIdpConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 170 + case 192: + { + aclEnabled_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 192 + case 218: + { + input.readMessage( + getDocumentProcessingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 218 + case 226: + { + input.readMessage(getStartingSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 226 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2327,6 +2696,837 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } + private com.google.cloud.discoveryengine.v1alpha.IdpConfig idpConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.IdpConfig, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.IdpConfigOrBuilder> + idpConfigBuilder_; + /** + * + * + *
                                +     * Output only. Data store level identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the idpConfig field is set. + */ + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
                                +     * Output only. Data store level identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The idpConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.IdpConfig getIdpConfig() { + if (idpConfigBuilder_ == null) { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.IdpConfig.getDefaultInstance() + : idpConfig_; + } else { + return idpConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Output only. Data store level identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIdpConfig(com.google.cloud.discoveryengine.v1alpha.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idpConfig_ = value; + } else { + idpConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. Data store level identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIdpConfig( + com.google.cloud.discoveryengine.v1alpha.IdpConfig.Builder builderForValue) { + if (idpConfigBuilder_ == null) { + idpConfig_ = builderForValue.build(); + } else { + idpConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. Data store level identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeIdpConfig(com.google.cloud.discoveryengine.v1alpha.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && idpConfig_ != null + && idpConfig_ + != com.google.cloud.discoveryengine.v1alpha.IdpConfig.getDefaultInstance()) { + getIdpConfigBuilder().mergeFrom(value); + } else { + idpConfig_ = value; + } + } else { + idpConfigBuilder_.mergeFrom(value); + } + if (idpConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Output only. Data store level identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearIdpConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. Data store level identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.IdpConfig.Builder getIdpConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getIdpConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Output only. Data store level identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.IdpConfigOrBuilder getIdpConfigOrBuilder() { + if (idpConfigBuilder_ != null) { + return idpConfigBuilder_.getMessageOrBuilder(); + } else { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.IdpConfig.getDefaultInstance() + : idpConfig_; + } + } + /** + * + * + *
                                +     * Output only. Data store level identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.IdpConfig, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.IdpConfigOrBuilder> + getIdpConfigFieldBuilder() { + if (idpConfigBuilder_ == null) { + idpConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.IdpConfig, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.IdpConfigOrBuilder>( + getIdpConfig(), getParentForChildren(), isClean()); + idpConfig_ = null; + } + return idpConfigBuilder_; + } + + private boolean aclEnabled_; + /** + * + * + *
                                +     * Immutable. Whether data in the
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] has ACL
                                +     * information. If set to `true`, the source data must have ACL. ACL will be
                                +     * ingested when data is ingested by
                                +     * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments]
                                +     * methods.
                                +     *
                                +     * When ACL is enabled for the
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore],
                                +     * [Document][google.cloud.discoveryengine.v1alpha.Document] can't be accessed
                                +     * by calling
                                +     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument]
                                +     * or
                                +     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments].
                                +     *
                                +     * Currently ACL is only supported in `GENERIC` industry vertical with
                                +     * non-`PUBLIC_WEBSITE` content config.
                                +     * 
                                + * + * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The aclEnabled. + */ + @java.lang.Override + public boolean getAclEnabled() { + return aclEnabled_; + } + /** + * + * + *
                                +     * Immutable. Whether data in the
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] has ACL
                                +     * information. If set to `true`, the source data must have ACL. ACL will be
                                +     * ingested when data is ingested by
                                +     * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments]
                                +     * methods.
                                +     *
                                +     * When ACL is enabled for the
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore],
                                +     * [Document][google.cloud.discoveryengine.v1alpha.Document] can't be accessed
                                +     * by calling
                                +     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument]
                                +     * or
                                +     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments].
                                +     *
                                +     * Currently ACL is only supported in `GENERIC` industry vertical with
                                +     * non-`PUBLIC_WEBSITE` content config.
                                +     * 
                                + * + * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The aclEnabled to set. + * @return This builder for chaining. + */ + public Builder setAclEnabled(boolean value) { + + aclEnabled_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Immutable. Whether data in the
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] has ACL
                                +     * information. If set to `true`, the source data must have ACL. ACL will be
                                +     * ingested when data is ingested by
                                +     * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments]
                                +     * methods.
                                +     *
                                +     * When ACL is enabled for the
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore],
                                +     * [Document][google.cloud.discoveryengine.v1alpha.Document] can't be accessed
                                +     * by calling
                                +     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument]
                                +     * or
                                +     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments].
                                +     *
                                +     * Currently ACL is only supported in `GENERIC` industry vertical with
                                +     * non-`PUBLIC_WEBSITE` content config.
                                +     * 
                                + * + * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearAclEnabled() { + bitField0_ = (bitField0_ & ~0x00000100); + aclEnabled_ = false; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + documentProcessingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigOrBuilder> + documentProcessingConfigBuilder_; + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return Whether the documentProcessingConfig field is set. + */ + public boolean hasDocumentProcessingConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return The documentProcessingConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + getDocumentProcessingConfig() { + if (documentProcessingConfigBuilder_ == null) { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } else { + return documentProcessingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + */ + public Builder setDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig value) { + if (documentProcessingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + documentProcessingConfig_ = value; + } else { + documentProcessingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + */ + public Builder setDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.Builder builderForValue) { + if (documentProcessingConfigBuilder_ == null) { + documentProcessingConfig_ = builderForValue.build(); + } else { + documentProcessingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + */ + public Builder mergeDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig value) { + if (documentProcessingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && documentProcessingConfig_ != null + && documentProcessingConfig_ + != com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .getDefaultInstance()) { + getDocumentProcessingConfigBuilder().mergeFrom(value); + } else { + documentProcessingConfig_ = value; + } + } else { + documentProcessingConfigBuilder_.mergeFrom(value); + } + if (documentProcessingConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + */ + public Builder clearDocumentProcessingConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + documentProcessingConfig_ = null; + if (documentProcessingConfigBuilder_ != null) { + documentProcessingConfigBuilder_.dispose(); + documentProcessingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.Builder + getDocumentProcessingConfigBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getDocumentProcessingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigOrBuilder + getDocumentProcessingConfigOrBuilder() { + if (documentProcessingConfigBuilder_ != null) { + return documentProcessingConfigBuilder_.getMessageOrBuilder(); + } else { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigOrBuilder> + getDocumentProcessingConfigFieldBuilder() { + if (documentProcessingConfigBuilder_ == null) { + documentProcessingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigOrBuilder>( + getDocumentProcessingConfig(), getParentForChildren(), isClean()); + documentProcessingConfig_ = null; + } + return documentProcessingConfigBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.Schema startingSchema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Schema, + com.google.cloud.discoveryengine.v1alpha.Schema.Builder, + com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder> + startingSchemaBuilder_; + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + * + * @return Whether the startingSchema field is set. + */ + public boolean hasStartingSchema() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + * + * @return The startingSchema. + */ + public com.google.cloud.discoveryengine.v1alpha.Schema getStartingSchema() { + if (startingSchemaBuilder_ == null) { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance() + : startingSchema_; + } else { + return startingSchemaBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + */ + public Builder setStartingSchema(com.google.cloud.discoveryengine.v1alpha.Schema value) { + if (startingSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startingSchema_ = value; + } else { + startingSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + */ + public Builder setStartingSchema( + com.google.cloud.discoveryengine.v1alpha.Schema.Builder builderForValue) { + if (startingSchemaBuilder_ == null) { + startingSchema_ = builderForValue.build(); + } else { + startingSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + */ + public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1alpha.Schema value) { + if (startingSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && startingSchema_ != null + && startingSchema_ + != com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance()) { + getStartingSchemaBuilder().mergeFrom(value); + } else { + startingSchema_ = value; + } + } else { + startingSchemaBuilder_.mergeFrom(value); + } + if (startingSchema_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + */ + public Builder clearStartingSchema() { + bitField0_ = (bitField0_ & ~0x00000400); + startingSchema_ = null; + if (startingSchemaBuilder_ != null) { + startingSchemaBuilder_.dispose(); + startingSchemaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + */ + public com.google.cloud.discoveryengine.v1alpha.Schema.Builder getStartingSchemaBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getStartingSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + */ + public com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder getStartingSchemaOrBuilder() { + if (startingSchemaBuilder_ != null) { + return startingSchemaBuilder_.getMessageOrBuilder(); + } else { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1alpha.Schema.getDefaultInstance() + : startingSchema_; + } + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Schema, + com.google.cloud.discoveryengine.v1alpha.Schema.Builder, + com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder> + getStartingSchemaFieldBuilder() { + if (startingSchemaBuilder_ == null) { + startingSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Schema, + com.google.cloud.discoveryengine.v1alpha.Schema.Builder, + com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder>( + getStartingSchema(), getParentForChildren(), isClean()); + startingSchema_ = null; + } + return startingSchemaBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreOrBuilder.java index e9518cf7b4c6..992c9f067515 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreOrBuilder.java @@ -309,4 +309,193 @@ public interface DataStoreOrBuilder * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                +   * Output only. Data store level identity provider config.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the idpConfig field is set. + */ + boolean hasIdpConfig(); + /** + * + * + *
                                +   * Output only. Data store level identity provider config.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The idpConfig. + */ + com.google.cloud.discoveryengine.v1alpha.IdpConfig getIdpConfig(); + /** + * + * + *
                                +   * Output only. Data store level identity provider config.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig idp_config = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1alpha.IdpConfigOrBuilder getIdpConfigOrBuilder(); + + /** + * + * + *
                                +   * Immutable. Whether data in the
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] has ACL
                                +   * information. If set to `true`, the source data must have ACL. ACL will be
                                +   * ingested when data is ingested by
                                +   * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments]
                                +   * methods.
                                +   *
                                +   * When ACL is enabled for the
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore],
                                +   * [Document][google.cloud.discoveryengine.v1alpha.Document] can't be accessed
                                +   * by calling
                                +   * [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument]
                                +   * or
                                +   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments].
                                +   *
                                +   * Currently ACL is only supported in `GENERIC` industry vertical with
                                +   * non-`PUBLIC_WEBSITE` content config.
                                +   * 
                                + * + * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The aclEnabled. + */ + boolean getAclEnabled(); + + /** + * + * + *
                                +   * Configuration for Document understanding and enrichment.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return Whether the documentProcessingConfig field is set. + */ + boolean hasDocumentProcessingConfig(); + /** + * + * + *
                                +   * Configuration for Document understanding and enrichment.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return The documentProcessingConfig. + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig getDocumentProcessingConfig(); + /** + * + * + *
                                +   * Configuration for Document understanding and enrichment.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 27; + * + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigOrBuilder + getDocumentProcessingConfigOrBuilder(); + + /** + * + * + *
                                +   * The start schema to use for this
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +   * provisioning it. If unset, a default vertical specialized schema will be
                                +   * used.
                                +   *
                                +   * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +   * used in other APIs. This field will be omitted from all API responses
                                +   * including [CreateDataStore][] API. To retrieve a schema of a
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +   * API instead.
                                +   *
                                +   * The provided schema will be validated against certain rules on schema.
                                +   * Learn more from [this
                                +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + * + * @return Whether the startingSchema field is set. + */ + boolean hasStartingSchema(); + /** + * + * + *
                                +   * The start schema to use for this
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +   * provisioning it. If unset, a default vertical specialized schema will be
                                +   * used.
                                +   *
                                +   * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +   * used in other APIs. This field will be omitted from all API responses
                                +   * including [CreateDataStore][] API. To retrieve a schema of a
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +   * API instead.
                                +   *
                                +   * The provided schema will be validated against certain rules on schema.
                                +   * Learn more from [this
                                +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + * + * @return The startingSchema. + */ + com.google.cloud.discoveryengine.v1alpha.Schema getStartingSchema(); + /** + * + * + *
                                +   * The start schema to use for this
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when
                                +   * provisioning it. If unset, a default vertical specialized schema will be
                                +   * used.
                                +   *
                                +   * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +   * used in other APIs. This field will be omitted from all API responses
                                +   * including [CreateDataStore][] API. To retrieve a schema of a
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use
                                +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema]
                                +   * API instead.
                                +   *
                                +   * The provided schema will be validated against certain rules on schema.
                                +   * Learn more from [this
                                +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Schema starting_schema = 28; + */ + com.google.cloud.discoveryengine.v1alpha.SchemaOrBuilder getStartingSchemaOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreProto.java index 696b9f4407eb..7c1d9440071a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreProto.java @@ -46,33 +46,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ngine.v1alpha\032\037google/api/field_behavior" + ".proto\032\031google/api/resource.proto\0321googl" + "e/cloud/discoveryengine/v1alpha/common.p" - + "roto\032\037google/protobuf/timestamp.proto\"\306\005" - + "\n\tDataStore\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014displa" - + "y_name\030\002 \001(\tB\003\340A\002\022V\n\021industry_vertical\030\003" - + " \001(\01626.google.cloud.discoveryengine.v1al" - + "pha.IndustryVerticalB\003\340A\005\022J\n\016solution_ty" - + "pes\030\005 \003(\01622.google.cloud.discoveryengine" - + ".v1alpha.SolutionType\022\036\n\021default_schema_" - + "id\030\007 \001(\tB\003\340A\003\022Z\n\016content_config\030\006 \001(\0162=." - + "google.cloud.discoveryengine.v1alpha.Dat" - + "aStore.ContentConfigB\003\340A\005\0224\n\013create_time" - + "\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"" - + "i\n\rContentConfig\022\036\n\032CONTENT_CONFIG_UNSPE" - + "CIFIED\020\000\022\016\n\nNO_CONTENT\020\001\022\024\n\020CONTENT_REQU" - + "IRED\020\002\022\022\n\016PUBLIC_WEBSITE\020\003:\311\001\352A\305\001\n(disco" - + "veryengine.googleapis.com/DataStore\022?pro" - + "jects/{project}/locations/{location}/dat" - + "aStores/{data_store}\022Xprojects/{project}" - + "/locations/{location}/collections/{colle" - + "ction}/dataStores/{data_store}B\232\002\n(com.g" - + "oogle.cloud.discoveryengine.v1alphaB\016Dat" - + "aStoreProtoP\001ZRcloud.google.com/go/disco" - + "veryengine/apiv1alpha/discoveryenginepb;" - + "discoveryenginepb\242\002\017DISCOVERYENGINE\252\002$Go" - + "ogle.Cloud.DiscoveryEngine.V1Alpha\312\002$Goo" - + "gle\\Cloud\\DiscoveryEngine\\V1alpha\352\002\'Goog" - + "le::Cloud::DiscoveryEngine::V1alphab\006pro" - + "to3" + + "roto\032Egoogle/cloud/discoveryengine/v1alp" + + "ha/document_processing_config.proto\0321goo" + + "gle/cloud/discoveryengine/v1alpha/schema" + + ".proto\032\037google/protobuf/timestamp.proto\"" + + "\325\007\n\tDataStore\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014disp" + + "lay_name\030\002 \001(\tB\003\340A\002\022V\n\021industry_vertical" + + "\030\003 \001(\01626.google.cloud.discoveryengine.v1" + + "alpha.IndustryVerticalB\003\340A\005\022J\n\016solution_" + + "types\030\005 \003(\01622.google.cloud.discoveryengi" + + "ne.v1alpha.SolutionType\022\036\n\021default_schem" + + "a_id\030\007 \001(\tB\003\340A\003\022Z\n\016content_config\030\006 \001(\0162" + + "=.google.cloud.discoveryengine.v1alpha.D" + + "ataStore.ContentConfigB\003\340A\005\0224\n\013create_ti" + + "me\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\022H\n\nidp_config\030\025 \001(\0132/.google.cloud.dis" + + "coveryengine.v1alpha.IdpConfigB\003\340A\003\022\030\n\013a" + + "cl_enabled\030\030 \001(\010B\003\340A\005\022b\n\032document_proces" + + "sing_config\030\033 \001(\0132>.google.cloud.discove" + + "ryengine.v1alpha.DocumentProcessingConfi" + + "g\022E\n\017starting_schema\030\034 \001(\0132,.google.clou" + + "d.discoveryengine.v1alpha.Schema\"i\n\rCont" + + "entConfig\022\036\n\032CONTENT_CONFIG_UNSPECIFIED\020" + + "\000\022\016\n\nNO_CONTENT\020\001\022\024\n\020CONTENT_REQUIRED\020\002\022" + + "\022\n\016PUBLIC_WEBSITE\020\003:\311\001\352A\305\001\n(discoveryeng" + + "ine.googleapis.com/DataStore\022?projects/{" + + "project}/locations/{location}/dataStores" + + "/{data_store}\022Xprojects/{project}/locati" + + "ons/{location}/collections/{collection}/" + + "dataStores/{data_store}B\232\002\n(com.google.c" + + "loud.discoveryengine.v1alphaB\016DataStoreP" + + "rotoP\001ZRcloud.google.com/go/discoveryeng" + + "ine/apiv1alpha/discoveryenginepb;discove" + + "ryenginepb\242\002\017DISCOVERYENGINE\252\002$Google.Cl" + + "oud.DiscoveryEngine.V1Alpha\312\002$Google\\Clo" + + "ud\\DiscoveryEngine\\V1alpha\352\002\'Google::Clo" + + "ud::DiscoveryEngine::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -81,6 +90,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1alpha.CommonProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.SchemaProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1alpha_DataStore_descriptor = @@ -96,6 +108,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DefaultSchemaId", "ContentConfig", "CreateTime", + "IdpConfig", + "AclEnabled", + "DocumentProcessingConfig", + "StartingSchema", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -106,6 +122,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1alpha.CommonProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.SchemaProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceProto.java index f0465843991d..1c67d6b539fc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DataStoreServiceProto.java @@ -60,6 +60,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1alpha_DeleteDataStoreMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1alpha_DeleteDataStoreMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentProcessingConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentProcessingConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentProcessingConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentProcessingConfigRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -75,89 +83,120 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tions.proto\032\027google/api/client.proto\032\037go" + "ogle/api/field_behavior.proto\032\031google/ap" + "i/resource.proto\0325google/cloud/discovery" - + "engine/v1alpha/data_store.proto\032#google/" - + "longrunning/operations.proto\032\033google/pro" - + "tobuf/empty.proto\032 google/protobuf/field" - + "_mask.proto\032\037google/protobuf/timestamp.p" - + "roto\"\346\001\n\026CreateDataStoreRequest\022A\n\006paren" - + "t\030\001 \001(\tB1\340A\002\372A+\n)discoveryengine.googlea" - + "pis.com/Collection\022H\n\ndata_store\030\002 \001(\0132/" - + ".google.cloud.discoveryengine.v1alpha.Da" - + "taStoreB\003\340A\002\022\032\n\rdata_store_id\030\003 \001(\tB\003\340A\002" - + "\022#\n\033create_advanced_site_search\030\004 \001(\010\"U\n" - + "\023GetDataStoreRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372" - + "A*\n(discoveryengine.googleapis.com/DataS" - + "tore\"{\n\027CreateDataStoreMetadata\022/\n\013creat" - + "e_time\030\001 \001(\0132\032.google.protobuf.Timestamp" - + "\022/\n\013update_time\030\002 \001(\0132\032.google.protobuf." - + "Timestamp\"\221\001\n\025ListDataStoresRequest\022A\n\006p" - + "arent\030\001 \001(\tB1\340A\002\372A+\n)discoveryengine.goo" - + "gleapis.com/Collection\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"w\n" - + "\026ListDataStoresResponse\022D\n\013data_stores\030\001" - + " \003(\0132/.google.cloud.discoveryengine.v1al" - + "pha.DataStore\022\027\n\017next_page_token\030\002 \001(\t\"X" - + "\n\026DeleteDataStoreRequest\022>\n\004name\030\001 \001(\tB0" - + "\340A\002\372A*\n(discoveryengine.googleapis.com/D" - + "ataStore\"\223\001\n\026UpdateDataStoreRequest\022H\n\nd" - + "ata_store\030\001 \001(\0132/.google.cloud.discovery" - + "engine.v1alpha.DataStoreB\003\340A\002\022/\n\013update_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"{" - + "\n\027DeleteDataStoreMetadata\022/\n\013create_time" - + "\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n\013up" - + "date_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "amp2\310\r\n\020DataStoreService\022\235\003\n\017CreateDataS" - + "tore\022<.google.cloud.discoveryengine.v1al" - + "pha.CreateDataStoreRequest\032\035.google.long" - + "running.Operation\"\254\002\312An\n.google.cloud.di" - + "scoveryengine.v1alpha.DataStore\022/v1alpha/{data_store.name=pr" - + "ojects/*/locations/*/dataStores/*}:\ndata" - + "_storeZZ2L/v1alpha/{data_store.name=proj" - + "ects/*/locations/*/collections/*/dataSto" - + "res/*}:\ndata_store\032R\312A\036discoveryengine.g" - + "oogleapis.com\322A.https://www.googleapis.c" - + "om/auth/cloud-platformB\241\002\n(com.google.cl" - + "oud.discoveryengine.v1alphaB\025DataStoreSe" - + "rviceProtoP\001ZRcloud.google.com/go/discov" - + "eryengine/apiv1alpha/discoveryenginepb;d" - + "iscoveryenginepb\242\002\017DISCOVERYENGINE\252\002$Goo" - + "gle.Cloud.DiscoveryEngine.V1Alpha\312\002$Goog" - + "le\\Cloud\\DiscoveryEngine\\V1alpha\352\002\'Googl" - + "e::Cloud::DiscoveryEngine::V1alphab\006prot" - + "o3" + + "engine/v1alpha/data_store.proto\032Egoogle/" + + "cloud/discoveryengine/v1alpha/document_p" + + "rocessing_config.proto\032#google/longrunni" + + "ng/operations.proto\032\033google/protobuf/emp" + + "ty.proto\032 google/protobuf/field_mask.pro" + + "to\032\037google/protobuf/timestamp.proto\"\346\001\n\026" + + "CreateDataStoreRequest\022A\n\006parent\030\001 \001(\tB1" + + "\340A\002\372A+\n)discoveryengine.googleapis.com/C" + + "ollection\022H\n\ndata_store\030\002 \001(\0132/.google.c" + + "loud.discoveryengine.v1alpha.DataStoreB\003" + + "\340A\002\022\032\n\rdata_store_id\030\003 \001(\tB\003\340A\002\022#\n\033creat" + + "e_advanced_site_search\030\004 \001(\010\"U\n\023GetDataS" + + "toreRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(disco" + + "veryengine.googleapis.com/DataStore\"{\n\027C" + + "reateDataStoreMetadata\022/\n\013create_time\030\001 " + + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" + + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "\"\221\001\n\025ListDataStoresRequest\022A\n\006parent\030\001 \001" + + "(\tB1\340A\002\372A+\n)discoveryengine.googleapis.c" + + "om/Collection\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"w\n\026ListData" + + "StoresResponse\022D\n\013data_stores\030\001 \003(\0132/.go" + + "ogle.cloud.discoveryengine.v1alpha.DataS" + + "tore\022\027\n\017next_page_token\030\002 \001(\t\"X\n\026DeleteD" + + "ataStoreRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(d" + + "iscoveryengine.googleapis.com/DataStore\"" + + "\223\001\n\026UpdateDataStoreRequest\022H\n\ndata_store" + + "\030\001 \001(\0132/.google.cloud.discoveryengine.v1" + + "alpha.DataStoreB\003\340A\002\022/\n\013update_mask\030\002 \001(" + + "\0132\032.google.protobuf.FieldMask\"{\n\027DeleteD" + + "ataStoreMetadata\022/\n\013create_time\030\001 \001(\0132\032." + + "google.protobuf.Timestamp\022/\n\013update_time" + + "\030\002 \001(\0132\032.google.protobuf.Timestamp\"s\n\"Ge" + + "tDocumentProcessingConfigRequest\022M\n\004name" + + "\030\001 \001(\tB?\340A\002\372A9\n7discoveryengine.googleap" + + "is.com/DocumentProcessingConfig\"\301\001\n%Upda" + + "teDocumentProcessingConfigRequest\022g\n\032doc" + + "ument_processing_config\030\001 \001(\0132>.google.c" + + "loud.discoveryengine.v1alpha.DocumentPro" + + "cessingConfigB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMask2\255\024\n\020DataStor" + + "eService\022\235\003\n\017CreateDataStore\022<.google.cl" + + "oud.discoveryengine.v1alpha.CreateDataSt" + + "oreRequest\032\035.google.longrunning.Operatio" + + "n\"\254\002\312An\n.google.cloud.discoveryengine.v1" + + "alpha.DataStore\022/v1a" + + "lpha/{data_store.name=projects/*/locatio" + + "ns/*/dataStores/*}:\ndata_storeZZ2L/v1alp" + + "ha/{data_store.name=projects/*/locations" + + "/*/collections/*/dataStores/*}:\ndata_sto" + + "re\022\344\002\n\033GetDocumentProcessingConfig\022H.goo" + + "gle.cloud.discoveryengine.v1alpha.GetDoc" + + "umentProcessingConfigRequest\032>.google.cl" + + "oud.discoveryengine.v1alpha.DocumentProc" + + "essingConfig\"\272\001\332A\004name\202\323\344\223\002\254\001\022L/v1alpha/" + + "{name=projects/*/locations/*/dataStores/" + + "*/documentProcessingConfig}Z\\\022Z/v1alpha/" + + "{name=projects/*/locations/*/collections" + + "/*/dataStores/*/documentProcessingConfig" + + "}\022\373\003\n\036UpdateDocumentProcessingConfig\022K.g" + + "oogle.cloud.discoveryengine.v1alpha.Upda" + + "teDocumentProcessingConfigRequest\032>.goog" + + "le.cloud.discoveryengine.v1alpha.Documen" + + "tProcessingConfig\"\313\002\332A&document_processi" + + "ng_config,update_mask\202\323\344\223\002\233\0022g/v1alpha/{" + + "document_processing_config.name=projects" + + "/*/locations/*/dataStores/*/documentProc" + + "essingConfig}:\032document_processing_confi" + + "gZ\223\0012u/v1alpha/{document_processing_conf" + + "ig.name=projects/*/locations/*/collectio" + + "ns/*/dataStores/*/documentProcessingConf" + + "ig}:\032document_processing_config\032R\312A\036disc" + + "overyengine.googleapis.com\322A.https://www" + + ".googleapis.com/auth/cloud-platformB\241\002\n(" + + "com.google.cloud.discoveryengine.v1alpha" + + "B\025DataStoreServiceProtoP\001ZRcloud.google." + + "com/go/discoveryengine/apiv1alpha/discov" + + "eryenginepb;discoveryenginepb\242\002\017DISCOVER" + + "YENGINE\252\002$Google.Cloud.DiscoveryEngine.V" + + "1Alpha\312\002$Google\\Cloud\\DiscoveryEngine\\V1" + + "alpha\352\002\'Google::Cloud::DiscoveryEngine::" + + "V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -168,6 +207,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1alpha.DataStoreProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -237,6 +278,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "CreateTime", "UpdateTime", }); + internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentProcessingConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentProcessingConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentProcessingConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentProcessingConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentProcessingConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentProcessingConfigRequest_descriptor, + new java.lang.String[] { + "DocumentProcessingConfig", "UpdateMask", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -253,6 +310,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1alpha.DataStoreProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Document.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Document.java index 1f41b32707ad..c703d92d49b4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Document.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Document.java @@ -1376,6 +1376,2238 @@ public com.google.cloud.discoveryengine.v1alpha.Document.Content getDefaultInsta } } + public interface AclInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Document.AclInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +     * Readers of the document.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + java.util.List + getReadersList(); + /** + * + * + *
                                +     * Readers of the document.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction getReaders( + int index); + /** + * + * + *
                                +     * Readers of the document.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + int getReadersCount(); + /** + * + * + *
                                +     * Readers of the document.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo + .AccessRestrictionOrBuilder> + getReadersOrBuilderList(); + /** + * + * + *
                                +     * Readers of the document.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestrictionOrBuilder + getReadersOrBuilder(int index); + } + /** + * + * + *
                                +   * ACL Information of the Document.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Document.AclInfo} + */ + public static final class AclInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Document.AclInfo) + AclInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use AclInfo.newBuilder() to construct. + private AclInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AclInfo() { + readers_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AclInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto + .internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto + .internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.class, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.Builder.class); + } + + public interface AccessRestrictionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +       * List of principals.
                                +       * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + java.util.List getPrincipalsList(); + /** + * + * + *
                                +       * List of principals.
                                +       * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + com.google.cloud.discoveryengine.v1alpha.Principal getPrincipals(int index); + /** + * + * + *
                                +       * List of principals.
                                +       * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + int getPrincipalsCount(); + /** + * + * + *
                                +       * List of principals.
                                +       * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + java.util.List + getPrincipalsOrBuilderList(); + /** + * + * + *
                                +       * List of principals.
                                +       * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + com.google.cloud.discoveryengine.v1alpha.PrincipalOrBuilder getPrincipalsOrBuilder(int index); + } + /** + * + * + *
                                +     * AclRestriction to model complex inheritance restrictions.
                                +     *
                                +     * Example: Modeling a "Both Permit" inheritance, where to access a
                                +     * child document, user needs to have access to parent document.
                                +     *
                                +     * Document Hierarchy - Space_S --> Page_P.
                                +     *
                                +     * Readers:
                                +     *   Space_S: group_1, user_1
                                +     *   Page_P: group_2, group_3, user_2
                                +     *
                                +     * Space_S ACL Restriction -
                                +     * {
                                +     *   "acl_info": {
                                +     *     "readers": [
                                +     *       {
                                +     *         "principals": [
                                +     *           {
                                +     *             "group_id": "group_1"
                                +     *           },
                                +     *           {
                                +     *             "user_id": "user_1"
                                +     *           }
                                +     *         ]
                                +     *       }
                                +     *     ]
                                +     *   }
                                +     * }
                                +     *
                                +     * Page_P ACL Restriction.
                                +     * {
                                +     *   "acl_info": {
                                +     *     "readers": [
                                +     *       {
                                +     *         "principals": [
                                +     *           {
                                +     *             "group_id": "group_2"
                                +     *           },
                                +     *           {
                                +     *             "group_id": "group_3"
                                +     *           },
                                +     *           {
                                +     *             "user_id": "user_2"
                                +     *           }
                                +     *         ],
                                +     *       },
                                +     *       {
                                +     *         "principals": [
                                +     *           {
                                +     *             "group_id": "group_1"
                                +     *           },
                                +     *           {
                                +     *             "user_id": "user_1"
                                +     *           }
                                +     *         ],
                                +     *       }
                                +     *     ]
                                +     *   }
                                +     * }
                                +     * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction} + */ + public static final class AccessRestriction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction) + AccessRestrictionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessRestriction.newBuilder() to construct. + private AccessRestriction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessRestriction() { + principals_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessRestriction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto + .internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_AccessRestriction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto + .internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_AccessRestriction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction.class, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction.Builder + .class); + } + + public static final int PRINCIPALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List principals_; + /** + * + * + *
                                +       * List of principals.
                                +       * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + @java.lang.Override + public java.util.List + getPrincipalsList() { + return principals_; + } + /** + * + * + *
                                +       * List of principals.
                                +       * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + @java.lang.Override + public java.util.List + getPrincipalsOrBuilderList() { + return principals_; + } + /** + * + * + *
                                +       * List of principals.
                                +       * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + @java.lang.Override + public int getPrincipalsCount() { + return principals_.size(); + } + /** + * + * + *
                                +       * List of principals.
                                +       * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Principal getPrincipals(int index) { + return principals_.get(index); + } + /** + * + * + *
                                +       * List of principals.
                                +       * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PrincipalOrBuilder getPrincipalsOrBuilder( + int index) { + return principals_.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 < principals_.size(); i++) { + output.writeMessage(1, principals_.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 < principals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, principals_.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.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction other = + (com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction) obj; + + if (!getPrincipalsList().equals(other.getPrincipalsList())) 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 (getPrincipalsCount() > 0) { + hash = (37 * hash) + PRINCIPALS_FIELD_NUMBER; + hash = (53 * hash) + getPrincipalsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + 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.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + 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.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + 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.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + 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.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + 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.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction 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; + } + /** + * + * + *
                                +       * AclRestriction to model complex inheritance restrictions.
                                +       *
                                +       * Example: Modeling a "Both Permit" inheritance, where to access a
                                +       * child document, user needs to have access to parent document.
                                +       *
                                +       * Document Hierarchy - Space_S --> Page_P.
                                +       *
                                +       * Readers:
                                +       *   Space_S: group_1, user_1
                                +       *   Page_P: group_2, group_3, user_2
                                +       *
                                +       * Space_S ACL Restriction -
                                +       * {
                                +       *   "acl_info": {
                                +       *     "readers": [
                                +       *       {
                                +       *         "principals": [
                                +       *           {
                                +       *             "group_id": "group_1"
                                +       *           },
                                +       *           {
                                +       *             "user_id": "user_1"
                                +       *           }
                                +       *         ]
                                +       *       }
                                +       *     ]
                                +       *   }
                                +       * }
                                +       *
                                +       * Page_P ACL Restriction.
                                +       * {
                                +       *   "acl_info": {
                                +       *     "readers": [
                                +       *       {
                                +       *         "principals": [
                                +       *           {
                                +       *             "group_id": "group_2"
                                +       *           },
                                +       *           {
                                +       *             "group_id": "group_3"
                                +       *           },
                                +       *           {
                                +       *             "user_id": "user_2"
                                +       *           }
                                +       *         ],
                                +       *       },
                                +       *       {
                                +       *         "principals": [
                                +       *           {
                                +       *             "group_id": "group_1"
                                +       *           },
                                +       *           {
                                +       *             "user_id": "user_1"
                                +       *           }
                                +       *         ],
                                +       *       }
                                +       *     ]
                                +       *   }
                                +       * }
                                +       * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction) + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestrictionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto + .internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_AccessRestriction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto + .internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_AccessRestriction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction.class, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (principalsBuilder_ == null) { + principals_ = java.util.Collections.emptyList(); + } else { + principals_ = null; + principalsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto + .internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_AccessRestriction_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction build() { + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction result = + new com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction result) { + if (principalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + principals_ = java.util.Collections.unmodifiableList(principals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.principals_ = principals_; + } else { + result.principals_ = principalsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction result) { + int from_bitField0_ = bitField0_; + } + + @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.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + .getDefaultInstance()) return this; + if (principalsBuilder_ == null) { + if (!other.principals_.isEmpty()) { + if (principals_.isEmpty()) { + principals_ = other.principals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrincipalsIsMutable(); + principals_.addAll(other.principals_); + } + onChanged(); + } + } else { + if (!other.principals_.isEmpty()) { + if (principalsBuilder_.isEmpty()) { + principalsBuilder_.dispose(); + principalsBuilder_ = null; + principals_ = other.principals_; + bitField0_ = (bitField0_ & ~0x00000001); + principalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPrincipalsFieldBuilder() + : null; + } else { + principalsBuilder_.addAllMessages(other.principals_); + } + } + } + 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: + { + com.google.cloud.discoveryengine.v1alpha.Principal m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.Principal.parser(), + extensionRegistry); + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.add(m); + } else { + principalsBuilder_.addMessage(m); + } + 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.util.List principals_ = + java.util.Collections.emptyList(); + + private void ensurePrincipalsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + principals_ = + new java.util.ArrayList( + principals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Principal, + com.google.cloud.discoveryengine.v1alpha.Principal.Builder, + com.google.cloud.discoveryengine.v1alpha.PrincipalOrBuilder> + principalsBuilder_; + + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public java.util.List + getPrincipalsList() { + if (principalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(principals_); + } else { + return principalsBuilder_.getMessageList(); + } + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public int getPrincipalsCount() { + if (principalsBuilder_ == null) { + return principals_.size(); + } else { + return principalsBuilder_.getCount(); + } + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Principal getPrincipals(int index) { + if (principalsBuilder_ == null) { + return principals_.get(index); + } else { + return principalsBuilder_.getMessage(index); + } + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public Builder setPrincipals( + int index, com.google.cloud.discoveryengine.v1alpha.Principal value) { + if (principalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.set(index, value); + onChanged(); + } else { + principalsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public Builder setPrincipals( + int index, com.google.cloud.discoveryengine.v1alpha.Principal.Builder builderForValue) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.set(index, builderForValue.build()); + onChanged(); + } else { + principalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public Builder addPrincipals(com.google.cloud.discoveryengine.v1alpha.Principal value) { + if (principalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.add(value); + onChanged(); + } else { + principalsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public Builder addPrincipals( + int index, com.google.cloud.discoveryengine.v1alpha.Principal value) { + if (principalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.add(index, value); + onChanged(); + } else { + principalsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public Builder addPrincipals( + com.google.cloud.discoveryengine.v1alpha.Principal.Builder builderForValue) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.add(builderForValue.build()); + onChanged(); + } else { + principalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public Builder addPrincipals( + int index, com.google.cloud.discoveryengine.v1alpha.Principal.Builder builderForValue) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.add(index, builderForValue.build()); + onChanged(); + } else { + principalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public Builder addAllPrincipals( + java.lang.Iterable + values) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, principals_); + onChanged(); + } else { + principalsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public Builder clearPrincipals() { + if (principalsBuilder_ == null) { + principals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + principalsBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public Builder removePrincipals(int index) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.remove(index); + onChanged(); + } else { + principalsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Principal.Builder getPrincipalsBuilder( + int index) { + return getPrincipalsFieldBuilder().getBuilder(index); + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.PrincipalOrBuilder getPrincipalsOrBuilder( + int index) { + if (principalsBuilder_ == null) { + return principals_.get(index); + } else { + return principalsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public java.util.List + getPrincipalsOrBuilderList() { + if (principalsBuilder_ != null) { + return principalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(principals_); + } + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Principal.Builder addPrincipalsBuilder() { + return getPrincipalsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1alpha.Principal.getDefaultInstance()); + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Principal.Builder addPrincipalsBuilder( + int index) { + return getPrincipalsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.Principal.getDefaultInstance()); + } + /** + * + * + *
                                +         * List of principals.
                                +         * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Principal principals = 1; + */ + public java.util.List + getPrincipalsBuilderList() { + return getPrincipalsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Principal, + com.google.cloud.discoveryengine.v1alpha.Principal.Builder, + com.google.cloud.discoveryengine.v1alpha.PrincipalOrBuilder> + getPrincipalsFieldBuilder() { + if (principalsBuilder_ == null) { + principalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Principal, + com.google.cloud.discoveryengine.v1alpha.Principal.Builder, + com.google.cloud.discoveryengine.v1alpha.PrincipalOrBuilder>( + principals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + principals_ = null; + } + return principalsBuilder_; + } + + @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.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction) + private static final com.google.cloud.discoveryengine.v1alpha.Document.AclInfo + .AccessRestriction + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessRestriction 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.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int READERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction> + readers_; + /** + * + * + *
                                +     * Readers of the document.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction> + getReadersList() { + return readers_; + } + /** + * + * + *
                                +     * Readers of the document.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo + .AccessRestrictionOrBuilder> + getReadersOrBuilderList() { + return readers_; + } + /** + * + * + *
                                +     * Readers of the document.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + @java.lang.Override + public int getReadersCount() { + return readers_.size(); + } + /** + * + * + *
                                +     * Readers of the document.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction getReaders( + int index) { + return readers_.get(index); + } + /** + * + * + *
                                +     * Readers of the document.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestrictionOrBuilder + getReadersOrBuilder(int index) { + return readers_.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 < readers_.size(); i++) { + output.writeMessage(1, readers_.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 < readers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, readers_.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.discoveryengine.v1alpha.Document.AclInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo other = + (com.google.cloud.discoveryengine.v1alpha.Document.AclInfo) obj; + + if (!getReadersList().equals(other.getReadersList())) 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 (getReadersCount() > 0) { + hash = (37 * hash) + READERS_FIELD_NUMBER; + hash = (53 * hash) + getReadersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo 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.discoveryengine.v1alpha.Document.AclInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo 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.discoveryengine.v1alpha.Document.AclInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo 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.discoveryengine.v1alpha.Document.AclInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo 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.discoveryengine.v1alpha.Document.AclInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo 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.discoveryengine.v1alpha.Document.AclInfo 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; + } + /** + * + * + *
                                +     * ACL Information of the Document.
                                +     * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Document.AclInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Document.AclInfo) + com.google.cloud.discoveryengine.v1alpha.Document.AclInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto + .internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto + .internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.class, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (readersBuilder_ == null) { + readers_ = java.util.Collections.emptyList(); + } else { + readers_ = null; + readersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProto + .internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo build() { + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo result = + new com.google.cloud.discoveryengine.v1alpha.Document.AclInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo result) { + if (readersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + readers_ = java.util.Collections.unmodifiableList(readers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.readers_ = readers_; + } else { + result.readers_ = readersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.Document.AclInfo result) { + int from_bitField0_ = bitField0_; + } + + @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.discoveryengine.v1alpha.Document.AclInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.Document.AclInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.Document.AclInfo other) { + if (other == com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.getDefaultInstance()) + return this; + if (readersBuilder_ == null) { + if (!other.readers_.isEmpty()) { + if (readers_.isEmpty()) { + readers_ = other.readers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReadersIsMutable(); + readers_.addAll(other.readers_); + } + onChanged(); + } + } else { + if (!other.readers_.isEmpty()) { + if (readersBuilder_.isEmpty()) { + readersBuilder_.dispose(); + readersBuilder_ = null; + readers_ = other.readers_; + bitField0_ = (bitField0_ & ~0x00000001); + readersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReadersFieldBuilder() + : null; + } else { + readersBuilder_.addAllMessages(other.readers_); + } + } + } + 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: + { + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo + .AccessRestriction.parser(), + extensionRegistry); + if (readersBuilder_ == null) { + ensureReadersIsMutable(); + readers_.add(m); + } else { + readersBuilder_.addMessage(m); + } + 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.util.List< + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction> + readers_ = java.util.Collections.emptyList(); + + private void ensureReadersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + readers_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction>( + readers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction.Builder, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestrictionOrBuilder> + readersBuilder_; + + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction> + getReadersList() { + if (readersBuilder_ == null) { + return java.util.Collections.unmodifiableList(readers_); + } else { + return readersBuilder_.getMessageList(); + } + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public int getReadersCount() { + if (readersBuilder_ == null) { + return readers_.size(); + } else { + return readersBuilder_.getCount(); + } + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction getReaders( + int index) { + if (readersBuilder_ == null) { + return readers_.get(index); + } else { + return readersBuilder_.getMessage(index); + } + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder setReaders( + int index, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction value) { + if (readersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReadersIsMutable(); + readers_.set(index, value); + onChanged(); + } else { + readersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder setReaders( + int index, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction.Builder + builderForValue) { + if (readersBuilder_ == null) { + ensureReadersIsMutable(); + readers_.set(index, builderForValue.build()); + onChanged(); + } else { + readersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder addReaders( + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction value) { + if (readersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReadersIsMutable(); + readers_.add(value); + onChanged(); + } else { + readersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder addReaders( + int index, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction value) { + if (readersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReadersIsMutable(); + readers_.add(index, value); + onChanged(); + } else { + readersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder addReaders( + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction.Builder + builderForValue) { + if (readersBuilder_ == null) { + ensureReadersIsMutable(); + readers_.add(builderForValue.build()); + onChanged(); + } else { + readersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder addReaders( + int index, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction.Builder + builderForValue) { + if (readersBuilder_ == null) { + ensureReadersIsMutable(); + readers_.add(index, builderForValue.build()); + onChanged(); + } else { + readersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder addAllReaders( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction> + values) { + if (readersBuilder_ == null) { + ensureReadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, readers_); + onChanged(); + } else { + readersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder clearReaders() { + if (readersBuilder_ == null) { + readers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + readersBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder removeReaders(int index) { + if (readersBuilder_ == null) { + ensureReadersIsMutable(); + readers_.remove(index); + onChanged(); + } else { + readersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction.Builder + getReadersBuilder(int index) { + return getReadersFieldBuilder().getBuilder(index); + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestrictionOrBuilder + getReadersOrBuilder(int index) { + if (readersBuilder_ == null) { + return readers_.get(index); + } else { + return readersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo + .AccessRestrictionOrBuilder> + getReadersOrBuilderList() { + if (readersBuilder_ != null) { + return readersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(readers_); + } + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction.Builder + addReadersBuilder() { + return getReadersFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + .getDefaultInstance()); + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction.Builder + addReadersBuilder(int index) { + return getReadersFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + .getDefaultInstance()); + } + /** + * + * + *
                                +       * Readers of the document.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction.Builder> + getReadersBuilderList() { + return getReadersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction.Builder, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestrictionOrBuilder> + getReadersFieldBuilder() { + if (readersBuilder_ == null) { + readersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.AccessRestriction + .Builder, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo + .AccessRestrictionOrBuilder>( + readers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + readers_ = null; + } + return readersBuilder_; + } + + @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.discoveryengine.v1alpha.Document.AclInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Document.AclInfo) + private static final com.google.cloud.discoveryengine.v1alpha.Document.AclInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.Document.AclInfo(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Document.AclInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclInfo 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.discoveryengine.v1alpha.Document.AclInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; private int dataCase_ = 0; @@ -1902,6 +4134,117 @@ public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { : derivedStructData_; } + public static final int ACL_INFO_FIELD_NUMBER = 11; + private com.google.cloud.discoveryengine.v1alpha.Document.AclInfo aclInfo_; + /** + * + * + *
                                +   * Access control information for the document.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + * + * @return Whether the aclInfo field is set. + */ + @java.lang.Override + public boolean hasAclInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                                +   * Access control information for the document.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + * + * @return The aclInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo getAclInfo() { + return aclInfo_ == null + ? com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.getDefaultInstance() + : aclInfo_; + } + /** + * + * + *
                                +   * Access control information for the document.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfoOrBuilder getAclInfoOrBuilder() { + return aclInfo_ == null + ? com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.getDefaultInstance() + : aclInfo_; + } + + public static final int INDEX_TIME_FIELD_NUMBER = 13; + private com.google.protobuf.Timestamp indexTime_; + /** + * + * + *
                                +   * Output only. The last time the document was indexed. If this field is set,
                                +   * the document could be returned in search results.
                                +   *
                                +   * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +   * document has never been indexed.
                                +   * 
                                + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexTime field is set. + */ + @java.lang.Override + public boolean hasIndexTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                +   * Output only. The last time the document was indexed. If this field is set,
                                +   * the document could be returned in search results.
                                +   *
                                +   * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +   * document has never been indexed.
                                +   * 
                                + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getIndexTime() { + return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; + } + /** + * + * + *
                                +   * Output only. The last time the document was indexed. If this field is set,
                                +   * the document could be returned in search results.
                                +   *
                                +   * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +   * document has never been indexed.
                                +   * 
                                + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { + return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1940,6 +4283,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(10, getContent()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(11, getAclInfo()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(13, getIndexTime()); + } getUnknownFields().writeTo(output); } @@ -1975,6 +4324,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getContent()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getAclInfo()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getIndexTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2003,6 +4358,14 @@ public boolean equals(final java.lang.Object obj) { if (hasDerivedStructData()) { if (!getDerivedStructData().equals(other.getDerivedStructData())) return false; } + if (hasAclInfo() != other.hasAclInfo()) return false; + if (hasAclInfo()) { + if (!getAclInfo().equals(other.getAclInfo())) return false; + } + if (hasIndexTime() != other.hasIndexTime()) return false; + if (hasIndexTime()) { + if (!getIndexTime().equals(other.getIndexTime())) return false; + } if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 4: @@ -2041,6 +4404,14 @@ public int hashCode() { hash = (37 * hash) + DERIVED_STRUCT_DATA_FIELD_NUMBER; hash = (53 * hash) + getDerivedStructData().hashCode(); } + if (hasAclInfo()) { + hash = (37 * hash) + ACL_INFO_FIELD_NUMBER; + hash = (53 * hash) + getAclInfo().hashCode(); + } + if (hasIndexTime()) { + hash = (37 * hash) + INDEX_TIME_FIELD_NUMBER; + hash = (53 * hash) + getIndexTime().hashCode(); + } switch (dataCase_) { case 4: hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; @@ -2196,6 +4567,8 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getContentFieldBuilder(); getDerivedStructDataFieldBuilder(); + getAclInfoFieldBuilder(); + getIndexTimeFieldBuilder(); } } @@ -2220,6 +4593,16 @@ public Builder clear() { derivedStructDataBuilder_.dispose(); derivedStructDataBuilder_ = null; } + aclInfo_ = null; + if (aclInfoBuilder_ != null) { + aclInfoBuilder_.dispose(); + aclInfoBuilder_ = null; + } + indexTime_ = null; + if (indexTimeBuilder_ != null) { + indexTimeBuilder_.dispose(); + indexTimeBuilder_ = null; + } dataCase_ = 0; data_ = null; return this; @@ -2283,6 +4666,14 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.Document res : derivedStructDataBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.aclInfo_ = aclInfoBuilder_ == null ? aclInfo_ : aclInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.indexTime_ = indexTimeBuilder_ == null ? indexTime_ : indexTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -2366,6 +4757,12 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.Document other if (other.hasDerivedStructData()) { mergeDerivedStructData(other.getDerivedStructData()); } + if (other.hasAclInfo()) { + mergeAclInfo(other.getAclInfo()); + } + if (other.hasIndexTime()) { + mergeIndexTime(other.getIndexTime()); + } switch (other.getDataCase()) { case STRUCT_DATA: { @@ -2460,6 +4857,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 82 + case 90: + { + input.readMessage(getAclInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 90 + case 106: + { + input.readMessage(getIndexTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3763,6 +6172,429 @@ public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { return derivedStructDataBuilder_; } + private com.google.cloud.discoveryengine.v1alpha.Document.AclInfo aclInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.Builder, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfoOrBuilder> + aclInfoBuilder_; + /** + * + * + *
                                +     * Access control information for the document.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + * + * @return Whether the aclInfo field is set. + */ + public boolean hasAclInfo() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
                                +     * Access control information for the document.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + * + * @return The aclInfo. + */ + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo getAclInfo() { + if (aclInfoBuilder_ == null) { + return aclInfo_ == null + ? com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.getDefaultInstance() + : aclInfo_; + } else { + return aclInfoBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Access control information for the document.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + */ + public Builder setAclInfo(com.google.cloud.discoveryengine.v1alpha.Document.AclInfo value) { + if (aclInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclInfo_ = value; + } else { + aclInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Access control information for the document.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + */ + public Builder setAclInfo( + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.Builder builderForValue) { + if (aclInfoBuilder_ == null) { + aclInfo_ = builderForValue.build(); + } else { + aclInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Access control information for the document.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + */ + public Builder mergeAclInfo(com.google.cloud.discoveryengine.v1alpha.Document.AclInfo value) { + if (aclInfoBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && aclInfo_ != null + && aclInfo_ + != com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.getDefaultInstance()) { + getAclInfoBuilder().mergeFrom(value); + } else { + aclInfo_ = value; + } + } else { + aclInfoBuilder_.mergeFrom(value); + } + if (aclInfo_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Access control information for the document.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + */ + public Builder clearAclInfo() { + bitField0_ = (bitField0_ & ~0x00000100); + aclInfo_ = null; + if (aclInfoBuilder_ != null) { + aclInfoBuilder_.dispose(); + aclInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Access control information for the document.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + */ + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.Builder getAclInfoBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getAclInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Access control information for the document.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + */ + public com.google.cloud.discoveryengine.v1alpha.Document.AclInfoOrBuilder + getAclInfoOrBuilder() { + if (aclInfoBuilder_ != null) { + return aclInfoBuilder_.getMessageOrBuilder(); + } else { + return aclInfo_ == null + ? com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.getDefaultInstance() + : aclInfo_; + } + } + /** + * + * + *
                                +     * Access control information for the document.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.Builder, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfoOrBuilder> + getAclInfoFieldBuilder() { + if (aclInfoBuilder_ == null) { + aclInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo.Builder, + com.google.cloud.discoveryengine.v1alpha.Document.AclInfoOrBuilder>( + getAclInfo(), getParentForChildren(), isClean()); + aclInfo_ = null; + } + return aclInfoBuilder_; + } + + private com.google.protobuf.Timestamp indexTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + indexTimeBuilder_; + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexTime field is set. + */ + public boolean hasIndexTime() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexTime. + */ + public com.google.protobuf.Timestamp getIndexTime() { + if (indexTimeBuilder_ == null) { + return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; + } else { + return indexTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIndexTime(com.google.protobuf.Timestamp value) { + if (indexTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + indexTime_ = value; + } else { + indexTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (indexTimeBuilder_ == null) { + indexTime_ = builderForValue.build(); + } else { + indexTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { + if (indexTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && indexTime_ != null + && indexTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getIndexTimeBuilder().mergeFrom(value); + } else { + indexTime_ = value; + } + } else { + indexTimeBuilder_.mergeFrom(value); + } + if (indexTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearIndexTime() { + bitField0_ = (bitField0_ & ~0x00000200); + indexTime_ = null; + if (indexTimeBuilder_ != null) { + indexTimeBuilder_.dispose(); + indexTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getIndexTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { + if (indexTimeBuilder_ != null) { + return indexTimeBuilder_.getMessageOrBuilder(); + } else { + return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; + } + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getIndexTimeFieldBuilder() { + if (indexTimeBuilder_ == null) { + indexTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getIndexTime(), getParentForChildren(), isClean()); + indexTime_ = null; + } + return indexTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentOrBuilder.java index 73c2cea26891..801bf7ae7fb4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentOrBuilder.java @@ -317,5 +317,90 @@ public interface DocumentOrBuilder */ com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder(); + /** + * + * + *
                                +   * Access control information for the document.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + * + * @return Whether the aclInfo field is set. + */ + boolean hasAclInfo(); + /** + * + * + *
                                +   * Access control information for the document.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + * + * @return The aclInfo. + */ + com.google.cloud.discoveryengine.v1alpha.Document.AclInfo getAclInfo(); + /** + * + * + *
                                +   * Access control information for the document.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Document.AclInfo acl_info = 11; + */ + com.google.cloud.discoveryengine.v1alpha.Document.AclInfoOrBuilder getAclInfoOrBuilder(); + + /** + * + * + *
                                +   * Output only. The last time the document was indexed. If this field is set,
                                +   * the document could be returned in search results.
                                +   *
                                +   * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +   * document has never been indexed.
                                +   * 
                                + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexTime field is set. + */ + boolean hasIndexTime(); + /** + * + * + *
                                +   * Output only. The last time the document was indexed. If this field is set,
                                +   * the document could be returned in search results.
                                +   *
                                +   * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +   * document has never been indexed.
                                +   * 
                                + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexTime. + */ + com.google.protobuf.Timestamp getIndexTime(); + /** + * + * + *
                                +   * Output only. The last time the document was indexed. If this field is set,
                                +   * the document could be returned in search results.
                                +   *
                                +   * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +   * document has never been indexed.
                                +   * 
                                + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder(); + com.google.cloud.discoveryengine.v1alpha.Document.DataCase getDataCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfig.java new file mode 100644 index 000000000000..9a463d906307 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfig.java @@ -0,0 +1,7497 @@ +/* + * 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/discoveryengine/v1alpha/document_processing_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * A singleton resource of
                                + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. It's empty when
                                + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is created, which
                                + * defaults to digital parser. The first call to
                                + * [DataStoreService.UpdateDocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DataStoreService.UpdateDocumentProcessingConfig]
                                + * method will initialize the config.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig} + */ +public final class DocumentProcessingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig) + DocumentProcessingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DocumentProcessingConfig.newBuilder() to construct. + private DocumentProcessingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DocumentProcessingConfig() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DocumentProcessingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetParsingConfigOverrides(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.class, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.Builder.class); + } + + public interface ChunkingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +     * Configuration for the layout based chunking.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + * + * @return Whether the layoutBasedChunkingConfig field is set. + */ + boolean hasLayoutBasedChunkingConfig(); + /** + * + * + *
                                +     * Configuration for the layout based chunking.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + * + * @return The layoutBasedChunkingConfig. + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + getLayoutBasedChunkingConfig(); + /** + * + * + *
                                +     * Configuration for the layout based chunking.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfigOrBuilder + getLayoutBasedChunkingConfigOrBuilder(); + + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.ChunkModeCase + getChunkModeCase(); + } + /** + * + * + *
                                +   * Configuration for chunking config.
                                +   * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig} + */ + public static final class ChunkingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig) + ChunkingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChunkingConfig.newBuilder() to construct. + private ChunkingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChunkingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChunkingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .class, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .Builder.class); + } + + public interface LayoutBasedChunkingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +       * The token size limit for each chunk.
                                +       *
                                +       * Supported values: 100-500 (inclusive).
                                +       * Default value: 500.
                                +       * 
                                + * + * int32 chunk_size = 1; + * + * @return The chunkSize. + */ + int getChunkSize(); + + /** + * + * + *
                                +       * Whether to include appending different levels of headings to chunks
                                +       * from the middle of the document to prevent context loss.
                                +       *
                                +       * Default value: False.
                                +       * 
                                + * + * bool include_ancestor_headings = 2; + * + * @return The includeAncestorHeadings. + */ + boolean getIncludeAncestorHeadings(); + } + /** + * + * + *
                                +     * Configuration for the layout based chunking.
                                +     * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig} + */ + public static final class LayoutBasedChunkingConfig + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig) + LayoutBasedChunkingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use LayoutBasedChunkingConfig.newBuilder() to construct. + private LayoutBasedChunkingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LayoutBasedChunkingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LayoutBasedChunkingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.class, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.Builder.class); + } + + public static final int CHUNK_SIZE_FIELD_NUMBER = 1; + private int chunkSize_ = 0; + /** + * + * + *
                                +       * The token size limit for each chunk.
                                +       *
                                +       * Supported values: 100-500 (inclusive).
                                +       * Default value: 500.
                                +       * 
                                + * + * int32 chunk_size = 1; + * + * @return The chunkSize. + */ + @java.lang.Override + public int getChunkSize() { + return chunkSize_; + } + + public static final int INCLUDE_ANCESTOR_HEADINGS_FIELD_NUMBER = 2; + private boolean includeAncestorHeadings_ = false; + /** + * + * + *
                                +       * Whether to include appending different levels of headings to chunks
                                +       * from the middle of the document to prevent context loss.
                                +       *
                                +       * Default value: False.
                                +       * 
                                + * + * bool include_ancestor_headings = 2; + * + * @return The includeAncestorHeadings. + */ + @java.lang.Override + public boolean getIncludeAncestorHeadings() { + return includeAncestorHeadings_; + } + + 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 (chunkSize_ != 0) { + output.writeInt32(1, chunkSize_); + } + if (includeAncestorHeadings_ != false) { + output.writeBool(2, includeAncestorHeadings_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (chunkSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, chunkSize_); + } + if (includeAncestorHeadings_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeAncestorHeadings_); + } + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + other = + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + obj; + + if (getChunkSize() != other.getChunkSize()) return false; + if (getIncludeAncestorHeadings() != other.getIncludeAncestorHeadings()) 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) + CHUNK_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getChunkSize(); + hash = (37 * hash) + INCLUDE_ANCESTOR_HEADINGS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeAncestorHeadings()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + 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; + } + /** + * + * + *
                                +       * Configuration for the layout based chunking.
                                +       * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig) + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.class, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + chunkSize_ = 0; + includeAncestorHeadings_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + build() { + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + result = + new com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ChunkingConfig.LayoutBasedChunkingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.chunkSize_ = chunkSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.includeAncestorHeadings_ = includeAncestorHeadings_; + } + } + + @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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance()) return this; + if (other.getChunkSize() != 0) { + setChunkSize(other.getChunkSize()); + } + if (other.getIncludeAncestorHeadings() != false) { + setIncludeAncestorHeadings(other.getIncludeAncestorHeadings()); + } + 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: + { + chunkSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + includeAncestorHeadings_ = input.readBool(); + 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 int chunkSize_; + /** + * + * + *
                                +         * The token size limit for each chunk.
                                +         *
                                +         * Supported values: 100-500 (inclusive).
                                +         * Default value: 500.
                                +         * 
                                + * + * int32 chunk_size = 1; + * + * @return The chunkSize. + */ + @java.lang.Override + public int getChunkSize() { + return chunkSize_; + } + /** + * + * + *
                                +         * The token size limit for each chunk.
                                +         *
                                +         * Supported values: 100-500 (inclusive).
                                +         * Default value: 500.
                                +         * 
                                + * + * int32 chunk_size = 1; + * + * @param value The chunkSize to set. + * @return This builder for chaining. + */ + public Builder setChunkSize(int value) { + + chunkSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +         * The token size limit for each chunk.
                                +         *
                                +         * Supported values: 100-500 (inclusive).
                                +         * Default value: 500.
                                +         * 
                                + * + * int32 chunk_size = 1; + * + * @return This builder for chaining. + */ + public Builder clearChunkSize() { + bitField0_ = (bitField0_ & ~0x00000001); + chunkSize_ = 0; + onChanged(); + return this; + } + + private boolean includeAncestorHeadings_; + /** + * + * + *
                                +         * Whether to include appending different levels of headings to chunks
                                +         * from the middle of the document to prevent context loss.
                                +         *
                                +         * Default value: False.
                                +         * 
                                + * + * bool include_ancestor_headings = 2; + * + * @return The includeAncestorHeadings. + */ + @java.lang.Override + public boolean getIncludeAncestorHeadings() { + return includeAncestorHeadings_; + } + /** + * + * + *
                                +         * Whether to include appending different levels of headings to chunks
                                +         * from the middle of the document to prevent context loss.
                                +         *
                                +         * Default value: False.
                                +         * 
                                + * + * bool include_ancestor_headings = 2; + * + * @param value The includeAncestorHeadings to set. + * @return This builder for chaining. + */ + public Builder setIncludeAncestorHeadings(boolean value) { + + includeAncestorHeadings_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +         * Whether to include appending different levels of headings to chunks
                                +         * from the middle of the document to prevent context loss.
                                +         *
                                +         * Default value: False.
                                +         * 
                                + * + * bool include_ancestor_headings = 2; + * + * @return This builder for chaining. + */ + public Builder clearIncludeAncestorHeadings() { + bitField0_ = (bitField0_ & ~0x00000002); + includeAncestorHeadings_ = 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig) + private static final com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ChunkingConfig.LayoutBasedChunkingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LayoutBasedChunkingConfig 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int chunkModeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object chunkMode_; + + public enum ChunkModeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + LAYOUT_BASED_CHUNKING_CONFIG(1), + CHUNKMODE_NOT_SET(0); + private final int value; + + private ChunkModeCase(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 ChunkModeCase valueOf(int value) { + return forNumber(value); + } + + public static ChunkModeCase forNumber(int value) { + switch (value) { + case 1: + return LAYOUT_BASED_CHUNKING_CONFIG; + case 0: + return CHUNKMODE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ChunkModeCase getChunkModeCase() { + return ChunkModeCase.forNumber(chunkModeCase_); + } + + public static final int LAYOUT_BASED_CHUNKING_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
                                +     * Configuration for the layout based chunking.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + * + * @return Whether the layoutBasedChunkingConfig field is set. + */ + @java.lang.Override + public boolean hasLayoutBasedChunkingConfig() { + return chunkModeCase_ == 1; + } + /** + * + * + *
                                +     * Configuration for the layout based chunking.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + * + * @return The layoutBasedChunkingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + getLayoutBasedChunkingConfig() { + if (chunkModeCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + chunkMode_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance(); + } + /** + * + * + *
                                +     * Configuration for the layout based chunking.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfigOrBuilder + getLayoutBasedChunkingConfigOrBuilder() { + if (chunkModeCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + chunkMode_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.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 (chunkModeCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + chunkMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (chunkModeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + chunkMode_); + } + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig other = + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig) obj; + + if (!getChunkModeCase().equals(other.getChunkModeCase())) return false; + switch (chunkModeCase_) { + case 1: + if (!getLayoutBasedChunkingConfig().equals(other.getLayoutBasedChunkingConfig())) + 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 (chunkModeCase_) { + case 1: + hash = (37 * hash) + LAYOUT_BASED_CHUNKING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLayoutBasedChunkingConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + 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; + } + /** + * + * + *
                                +     * Configuration for chunking config.
                                +     * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig) + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .class, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (layoutBasedChunkingConfigBuilder_ != null) { + layoutBasedChunkingConfigBuilder_.clear(); + } + chunkModeCase_ = 0; + chunkMode_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + build() { + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig result = + new com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig result) { + result.chunkModeCase_ = chunkModeCase_; + result.chunkMode_ = this.chunkMode_; + if (chunkModeCase_ == 1 && layoutBasedChunkingConfigBuilder_ != null) { + result.chunkMode_ = layoutBasedChunkingConfigBuilder_.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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .getDefaultInstance()) return this; + switch (other.getChunkModeCase()) { + case LAYOUT_BASED_CHUNKING_CONFIG: + { + mergeLayoutBasedChunkingConfig(other.getLayoutBasedChunkingConfig()); + break; + } + case CHUNKMODE_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( + getLayoutBasedChunkingConfigFieldBuilder().getBuilder(), extensionRegistry); + chunkModeCase_ = 1; + 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 chunkModeCase_ = 0; + private java.lang.Object chunkMode_; + + public ChunkModeCase getChunkModeCase() { + return ChunkModeCase.forNumber(chunkModeCase_); + } + + public Builder clearChunkMode() { + chunkModeCase_ = 0; + chunkMode_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfigOrBuilder> + layoutBasedChunkingConfigBuilder_; + /** + * + * + *
                                +       * Configuration for the layout based chunking.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + * + * @return Whether the layoutBasedChunkingConfig field is set. + */ + @java.lang.Override + public boolean hasLayoutBasedChunkingConfig() { + return chunkModeCase_ == 1; + } + /** + * + * + *
                                +       * Configuration for the layout based chunking.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + * + * @return The layoutBasedChunkingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + getLayoutBasedChunkingConfig() { + if (layoutBasedChunkingConfigBuilder_ == null) { + if (chunkModeCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + chunkMode_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance(); + } else { + if (chunkModeCase_ == 1) { + return layoutBasedChunkingConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * Configuration for the layout based chunking.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + public Builder setLayoutBasedChunkingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + value) { + if (layoutBasedChunkingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkMode_ = value; + onChanged(); + } else { + layoutBasedChunkingConfigBuilder_.setMessage(value); + } + chunkModeCase_ = 1; + return this; + } + /** + * + * + *
                                +       * Configuration for the layout based chunking.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + public Builder setLayoutBasedChunkingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.Builder + builderForValue) { + if (layoutBasedChunkingConfigBuilder_ == null) { + chunkMode_ = builderForValue.build(); + onChanged(); + } else { + layoutBasedChunkingConfigBuilder_.setMessage(builderForValue.build()); + } + chunkModeCase_ = 1; + return this; + } + /** + * + * + *
                                +       * Configuration for the layout based chunking.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + public Builder mergeLayoutBasedChunkingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig + value) { + if (layoutBasedChunkingConfigBuilder_ == null) { + if (chunkModeCase_ == 1 + && chunkMode_ + != com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ChunkingConfig.LayoutBasedChunkingConfig.getDefaultInstance()) { + chunkMode_ = + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.newBuilder( + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ChunkingConfig.LayoutBasedChunkingConfig) + chunkMode_) + .mergeFrom(value) + .buildPartial(); + } else { + chunkMode_ = value; + } + onChanged(); + } else { + if (chunkModeCase_ == 1) { + layoutBasedChunkingConfigBuilder_.mergeFrom(value); + } else { + layoutBasedChunkingConfigBuilder_.setMessage(value); + } + } + chunkModeCase_ = 1; + return this; + } + /** + * + * + *
                                +       * Configuration for the layout based chunking.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + public Builder clearLayoutBasedChunkingConfig() { + if (layoutBasedChunkingConfigBuilder_ == null) { + if (chunkModeCase_ == 1) { + chunkModeCase_ = 0; + chunkMode_ = null; + onChanged(); + } + } else { + if (chunkModeCase_ == 1) { + chunkModeCase_ = 0; + chunkMode_ = null; + } + layoutBasedChunkingConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +       * Configuration for the layout based chunking.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.Builder + getLayoutBasedChunkingConfigBuilder() { + return getLayoutBasedChunkingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +       * Configuration for the layout based chunking.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfigOrBuilder + getLayoutBasedChunkingConfigOrBuilder() { + if ((chunkModeCase_ == 1) && (layoutBasedChunkingConfigBuilder_ != null)) { + return layoutBasedChunkingConfigBuilder_.getMessageOrBuilder(); + } else { + if (chunkModeCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + chunkMode_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * Configuration for the layout based chunking.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfigOrBuilder> + getLayoutBasedChunkingConfigFieldBuilder() { + if (layoutBasedChunkingConfigBuilder_ == null) { + if (!(chunkModeCase_ == 1)) { + chunkMode_ = + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.getDefaultInstance(); + } + layoutBasedChunkingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .LayoutBasedChunkingConfig) + chunkMode_, + getParentForChildren(), + isClean()); + chunkMode_ = null; + } + chunkModeCase_ = 1; + onChanged(); + return layoutBasedChunkingConfigBuilder_; + } + + @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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig) + private static final com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ChunkingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChunkingConfig 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.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ParsingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +     * Configurations applied to digital parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + * + * @return Whether the digitalParsingConfig field is set. + */ + boolean hasDigitalParsingConfig(); + /** + * + * + *
                                +     * Configurations applied to digital parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + * + * @return The digitalParsingConfig. + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDigitalParsingConfig(); + /** + * + * + *
                                +     * Configurations applied to digital parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder + getDigitalParsingConfigOrBuilder(); + + /** + * + * + *
                                +     * Configurations applied to OCR parser. Currently it only applies to
                                +     * PDFs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + * + * @return Whether the ocrParsingConfig field is set. + */ + boolean hasOcrParsingConfig(); + /** + * + * + *
                                +     * Configurations applied to OCR parser. Currently it only applies to
                                +     * PDFs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + * + * @return The ocrParsingConfig. + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig + getOcrParsingConfig(); + /** + * + * + *
                                +     * Configurations applied to OCR parser. Currently it only applies to
                                +     * PDFs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder + getOcrParsingConfigOrBuilder(); + + /** + * + * + *
                                +     * Configurations applied to layout parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + * + * @return Whether the layoutParsingConfig field is set. + */ + boolean hasLayoutParsingConfig(); + /** + * + * + *
                                +     * Configurations applied to layout parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + * + * @return The layoutParsingConfig. + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + getLayoutParsingConfig(); + /** + * + * + *
                                +     * Configurations applied to layout parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfigOrBuilder + getLayoutParsingConfigOrBuilder(); + + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .TypeDedicatedConfigCase + getTypeDedicatedConfigCase(); + } + /** + * + * + *
                                +   * Related configurations applied to a specific type of document parser.
                                +   * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig} + */ + public static final class ParsingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig) + ParsingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParsingConfig.newBuilder() to construct. + private ParsingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParsingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ParsingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.class, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .Builder.class); + } + + public interface DigitalParsingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
                                +     * The digital parsing configurations for documents.
                                +     * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig} + */ + public static final class DigitalParsingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + DigitalParsingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DigitalParsingConfig.newBuilder() to construct. + private DigitalParsingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DigitalParsingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DigitalParsingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.class, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + other = + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                                +       * The digital parsing configurations for documents.
                                +       * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.class, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + build() { + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + result = + new com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfig.DigitalParsingConfig(this); + onBuilt(); + return result; + } + + @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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance()) return this; + 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; + 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; + } + + @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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + private static final com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfig.DigitalParsingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DigitalParsingConfig 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OcrParsingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @return A list containing the enhancedDocumentElements. + */ + java.util.List getEnhancedDocumentElementsList(); + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @return The count of enhancedDocumentElements. + */ + int getEnhancedDocumentElementsCount(); + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param index The index of the element to return. + * @return The enhancedDocumentElements at the given index. + */ + java.lang.String getEnhancedDocumentElements(int index); + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param index The index of the value to return. + * @return The bytes of the enhancedDocumentElements at the given index. + */ + com.google.protobuf.ByteString getEnhancedDocumentElementsBytes(int index); + + /** + * + * + *
                                +       * If true, will use native text instead of OCR text on pages containing
                                +       * native text.
                                +       * 
                                + * + * bool use_native_text = 2; + * + * @return The useNativeText. + */ + boolean getUseNativeText(); + } + /** + * + * + *
                                +     * The OCR parsing configurations for documents.
                                +     * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig} + */ + public static final class OcrParsingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + OcrParsingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use OcrParsingConfig.newBuilder() to construct. + private OcrParsingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OcrParsingConfig() { + enhancedDocumentElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OcrParsingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.class, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder.class); + } + + public static final int ENHANCED_DOCUMENT_ELEMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList enhancedDocumentElements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @return A list containing the enhancedDocumentElements. + */ + public com.google.protobuf.ProtocolStringList getEnhancedDocumentElementsList() { + return enhancedDocumentElements_; + } + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @return The count of enhancedDocumentElements. + */ + public int getEnhancedDocumentElementsCount() { + return enhancedDocumentElements_.size(); + } + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param index The index of the element to return. + * @return The enhancedDocumentElements at the given index. + */ + public java.lang.String getEnhancedDocumentElements(int index) { + return enhancedDocumentElements_.get(index); + } + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param index The index of the value to return. + * @return The bytes of the enhancedDocumentElements at the given index. + */ + public com.google.protobuf.ByteString getEnhancedDocumentElementsBytes(int index) { + return enhancedDocumentElements_.getByteString(index); + } + + public static final int USE_NATIVE_TEXT_FIELD_NUMBER = 2; + private boolean useNativeText_ = false; + /** + * + * + *
                                +       * If true, will use native text instead of OCR text on pages containing
                                +       * native text.
                                +       * 
                                + * + * bool use_native_text = 2; + * + * @return The useNativeText. + */ + @java.lang.Override + public boolean getUseNativeText() { + return useNativeText_; + } + + 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 < enhancedDocumentElements_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, enhancedDocumentElements_.getRaw(i)); + } + if (useNativeText_ != false) { + output.writeBool(2, useNativeText_); + } + 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 < enhancedDocumentElements_.size(); i++) { + dataSize += computeStringSizeNoTag(enhancedDocumentElements_.getRaw(i)); + } + size += dataSize; + size += 1 * getEnhancedDocumentElementsList().size(); + } + if (useNativeText_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useNativeText_); + } + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + other = + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + obj; + + if (!getEnhancedDocumentElementsList().equals(other.getEnhancedDocumentElementsList())) + return false; + if (getUseNativeText() != other.getUseNativeText()) 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 (getEnhancedDocumentElementsCount() > 0) { + hash = (37 * hash) + ENHANCED_DOCUMENT_ELEMENTS_FIELD_NUMBER; + hash = (53 * hash) + getEnhancedDocumentElementsList().hashCode(); + } + hash = (37 * hash) + USE_NATIVE_TEXT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseNativeText()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                                +       * The OCR parsing configurations for documents.
                                +       * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.class, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enhancedDocumentElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + useNativeText_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + build() { + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + result = + new com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfig.OcrParsingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + enhancedDocumentElements_.makeImmutable(); + result.enhancedDocumentElements_ = enhancedDocumentElements_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.useNativeText_ = useNativeText_; + } + } + + @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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance()) return this; + if (!other.enhancedDocumentElements_.isEmpty()) { + if (enhancedDocumentElements_.isEmpty()) { + enhancedDocumentElements_ = other.enhancedDocumentElements_; + bitField0_ |= 0x00000001; + } else { + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.addAll(other.enhancedDocumentElements_); + } + onChanged(); + } + if (other.getUseNativeText() != false) { + setUseNativeText(other.getUseNativeText()); + } + 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(); + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.add(s); + break; + } // case 10 + case 16: + { + useNativeText_ = input.readBool(); + 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 com.google.protobuf.LazyStringArrayList enhancedDocumentElements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureEnhancedDocumentElementsIsMutable() { + if (!enhancedDocumentElements_.isModifiable()) { + enhancedDocumentElements_ = + new com.google.protobuf.LazyStringArrayList(enhancedDocumentElements_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @return A list containing the enhancedDocumentElements. + */ + public com.google.protobuf.ProtocolStringList getEnhancedDocumentElementsList() { + enhancedDocumentElements_.makeImmutable(); + return enhancedDocumentElements_; + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @return The count of enhancedDocumentElements. + */ + public int getEnhancedDocumentElementsCount() { + return enhancedDocumentElements_.size(); + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param index The index of the element to return. + * @return The enhancedDocumentElements at the given index. + */ + public java.lang.String getEnhancedDocumentElements(int index) { + return enhancedDocumentElements_.get(index); + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param index The index of the value to return. + * @return The bytes of the enhancedDocumentElements at the given index. + */ + public com.google.protobuf.ByteString getEnhancedDocumentElementsBytes(int index) { + return enhancedDocumentElements_.getByteString(index); + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param index The index to set the value at. + * @param value The enhancedDocumentElements to set. + * @return This builder for chaining. + */ + public Builder setEnhancedDocumentElements(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param value The enhancedDocumentElements to add. + * @return This builder for chaining. + */ + public Builder addEnhancedDocumentElements(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param values The enhancedDocumentElements to add. + * @return This builder for chaining. + */ + public Builder addAllEnhancedDocumentElements(java.lang.Iterable values) { + ensureEnhancedDocumentElementsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enhancedDocumentElements_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnhancedDocumentElements() { + enhancedDocumentElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param value The bytes of the enhancedDocumentElements to add. + * @return This builder for chaining. + */ + public Builder addEnhancedDocumentElementsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean useNativeText_; + /** + * + * + *
                                +         * If true, will use native text instead of OCR text on pages containing
                                +         * native text.
                                +         * 
                                + * + * bool use_native_text = 2; + * + * @return The useNativeText. + */ + @java.lang.Override + public boolean getUseNativeText() { + return useNativeText_; + } + /** + * + * + *
                                +         * If true, will use native text instead of OCR text on pages containing
                                +         * native text.
                                +         * 
                                + * + * bool use_native_text = 2; + * + * @param value The useNativeText to set. + * @return This builder for chaining. + */ + public Builder setUseNativeText(boolean value) { + + useNativeText_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +         * If true, will use native text instead of OCR text on pages containing
                                +         * native text.
                                +         * 
                                + * + * bool use_native_text = 2; + * + * @return This builder for chaining. + */ + public Builder clearUseNativeText() { + bitField0_ = (bitField0_ & ~0x00000002); + useNativeText_ = 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + private static final com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfig.OcrParsingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OcrParsingConfig 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LayoutParsingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
                                +     * The layout parsing configurations for documents.
                                +     * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig} + */ + public static final class LayoutParsingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig) + LayoutParsingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use LayoutParsingConfig.newBuilder() to construct. + private LayoutParsingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LayoutParsingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LayoutParsingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.class, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + other = + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                                +       * The layout parsing configurations for documents.
                                +       * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig) + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.class, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + build() { + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + result = + new com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfig.LayoutParsingConfig(this); + onBuilt(); + return result; + } + + @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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance()) return this; + 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; + 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; + } + + @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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig) + private static final com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfig.LayoutParsingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LayoutParsingConfig 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int typeDedicatedConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object typeDedicatedConfig_; + + public enum TypeDedicatedConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DIGITAL_PARSING_CONFIG(1), + OCR_PARSING_CONFIG(2), + LAYOUT_PARSING_CONFIG(3), + TYPEDEDICATEDCONFIG_NOT_SET(0); + private final int value; + + private TypeDedicatedConfigCase(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 TypeDedicatedConfigCase valueOf(int value) { + return forNumber(value); + } + + public static TypeDedicatedConfigCase forNumber(int value) { + switch (value) { + case 1: + return DIGITAL_PARSING_CONFIG; + case 2: + return OCR_PARSING_CONFIG; + case 3: + return LAYOUT_PARSING_CONFIG; + case 0: + return TYPEDEDICATEDCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { + return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); + } + + public static final int DIGITAL_PARSING_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
                                +     * Configurations applied to digital parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + * + * @return Whether the digitalParsingConfig field is set. + */ + @java.lang.Override + public boolean hasDigitalParsingConfig() { + return typeDedicatedConfigCase_ == 1; + } + /** + * + * + *
                                +     * Configurations applied to digital parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + * + * @return The digitalParsingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDigitalParsingConfig() { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } + /** + * + * + *
                                +     * Configurations applied to digital parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder + getDigitalParsingConfigOrBuilder() { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } + + public static final int OCR_PARSING_CONFIG_FIELD_NUMBER = 2; + /** + * + * + *
                                +     * Configurations applied to OCR parser. Currently it only applies to
                                +     * PDFs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + * + * @return Whether the ocrParsingConfig field is set. + */ + @java.lang.Override + public boolean hasOcrParsingConfig() { + return typeDedicatedConfigCase_ == 2; + } + /** + * + * + *
                                +     * Configurations applied to OCR parser. Currently it only applies to
                                +     * PDFs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + * + * @return The ocrParsingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + getOcrParsingConfig() { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + /** + * + * + *
                                +     * Configurations applied to OCR parser. Currently it only applies to
                                +     * PDFs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder + getOcrParsingConfigOrBuilder() { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + + public static final int LAYOUT_PARSING_CONFIG_FIELD_NUMBER = 3; + /** + * + * + *
                                +     * Configurations applied to layout parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + * + * @return Whether the layoutParsingConfig field is set. + */ + @java.lang.Override + public boolean hasLayoutParsingConfig() { + return typeDedicatedConfigCase_ == 3; + } + /** + * + * + *
                                +     * Configurations applied to layout parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + * + * @return The layoutParsingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + getLayoutParsingConfig() { + if (typeDedicatedConfigCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance(); + } + /** + * + * + *
                                +     * Configurations applied to layout parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfigOrBuilder + getLayoutParsingConfigOrBuilder() { + if (typeDedicatedConfigCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.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 (typeDedicatedConfigCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + typeDedicatedConfig_); + } + if (typeDedicatedConfigCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_); + } + if (typeDedicatedConfigCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + typeDedicatedConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeDedicatedConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + typeDedicatedConfig_); + } + if (typeDedicatedConfigCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_); + } + if (typeDedicatedConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + typeDedicatedConfig_); + } + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig other = + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig) obj; + + if (!getTypeDedicatedConfigCase().equals(other.getTypeDedicatedConfigCase())) return false; + switch (typeDedicatedConfigCase_) { + case 1: + if (!getDigitalParsingConfig().equals(other.getDigitalParsingConfig())) return false; + break; + case 2: + if (!getOcrParsingConfig().equals(other.getOcrParsingConfig())) return false; + break; + case 3: + if (!getLayoutParsingConfig().equals(other.getLayoutParsingConfig())) 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 (typeDedicatedConfigCase_) { + case 1: + hash = (37 * hash) + DIGITAL_PARSING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDigitalParsingConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + OCR_PARSING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOcrParsingConfig().hashCode(); + break; + case 3: + hash = (37 * hash) + LAYOUT_PARSING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLayoutParsingConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig 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; + } + /** + * + * + *
                                +     * Related configurations applied to a specific type of document parser.
                                +     * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig) + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .class, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (digitalParsingConfigBuilder_ != null) { + digitalParsingConfigBuilder_.clear(); + } + if (ocrParsingConfigBuilder_ != null) { + ocrParsingConfigBuilder_.clear(); + } + if (layoutParsingConfigBuilder_ != null) { + layoutParsingConfigBuilder_.clear(); + } + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + build() { + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig result = + new com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig result) { + result.typeDedicatedConfigCase_ = typeDedicatedConfigCase_; + result.typeDedicatedConfig_ = this.typeDedicatedConfig_; + if (typeDedicatedConfigCase_ == 1 && digitalParsingConfigBuilder_ != null) { + result.typeDedicatedConfig_ = digitalParsingConfigBuilder_.build(); + } + if (typeDedicatedConfigCase_ == 2 && ocrParsingConfigBuilder_ != null) { + result.typeDedicatedConfig_ = ocrParsingConfigBuilder_.build(); + } + if (typeDedicatedConfigCase_ == 3 && layoutParsingConfigBuilder_ != null) { + result.typeDedicatedConfig_ = layoutParsingConfigBuilder_.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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .getDefaultInstance()) return this; + switch (other.getTypeDedicatedConfigCase()) { + case DIGITAL_PARSING_CONFIG: + { + mergeDigitalParsingConfig(other.getDigitalParsingConfig()); + break; + } + case OCR_PARSING_CONFIG: + { + mergeOcrParsingConfig(other.getOcrParsingConfig()); + break; + } + case LAYOUT_PARSING_CONFIG: + { + mergeLayoutParsingConfig(other.getLayoutParsingConfig()); + break; + } + case TYPEDEDICATEDCONFIG_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( + getDigitalParsingConfigFieldBuilder().getBuilder(), extensionRegistry); + typeDedicatedConfigCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getOcrParsingConfigFieldBuilder().getBuilder(), extensionRegistry); + typeDedicatedConfigCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getLayoutParsingConfigFieldBuilder().getBuilder(), extensionRegistry); + typeDedicatedConfigCase_ = 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 typeDedicatedConfigCase_ = 0; + private java.lang.Object typeDedicatedConfig_; + + public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { + return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); + } + + public Builder clearTypeDedicatedConfig() { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder> + digitalParsingConfigBuilder_; + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + * + * @return Whether the digitalParsingConfig field is set. + */ + @java.lang.Override + public boolean hasDigitalParsingConfig() { + return typeDedicatedConfigCase_ == 1; + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + * + * @return The digitalParsingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDigitalParsingConfig() { + if (digitalParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } else { + if (typeDedicatedConfigCase_ == 1) { + return digitalParsingConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + public Builder setDigitalParsingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + value) { + if (digitalParsingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeDedicatedConfig_ = value; + onChanged(); + } else { + digitalParsingConfigBuilder_.setMessage(value); + } + typeDedicatedConfigCase_ = 1; + return this; + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + public Builder setDigitalParsingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder + builderForValue) { + if (digitalParsingConfigBuilder_ == null) { + typeDedicatedConfig_ = builderForValue.build(); + onChanged(); + } else { + digitalParsingConfigBuilder_.setMessage(builderForValue.build()); + } + typeDedicatedConfigCase_ = 1; + return this; + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + public Builder mergeDigitalParsingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + value) { + if (digitalParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1 + && typeDedicatedConfig_ + != com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance()) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.newBuilder( + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfig.DigitalParsingConfig) + typeDedicatedConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + typeDedicatedConfig_ = value; + } + onChanged(); + } else { + if (typeDedicatedConfigCase_ == 1) { + digitalParsingConfigBuilder_.mergeFrom(value); + } else { + digitalParsingConfigBuilder_.setMessage(value); + } + } + typeDedicatedConfigCase_ = 1; + return this; + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + public Builder clearDigitalParsingConfig() { + if (digitalParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + } + } else { + if (typeDedicatedConfigCase_ == 1) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + } + digitalParsingConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder + getDigitalParsingConfigBuilder() { + return getDigitalParsingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder + getDigitalParsingConfigOrBuilder() { + if ((typeDedicatedConfigCase_ == 1) && (digitalParsingConfigBuilder_ != null)) { + return digitalParsingConfigBuilder_.getMessageOrBuilder(); + } else { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder> + getDigitalParsingConfigFieldBuilder() { + if (digitalParsingConfigBuilder_ == null) { + if (!(typeDedicatedConfigCase_ == 1)) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } + digitalParsingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + typeDedicatedConfig_, + getParentForChildren(), + isClean()); + typeDedicatedConfig_ = null; + } + typeDedicatedConfigCase_ = 1; + onChanged(); + return digitalParsingConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder> + ocrParsingConfigBuilder_; + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + * + * @return Whether the ocrParsingConfig field is set. + */ + @java.lang.Override + public boolean hasOcrParsingConfig() { + return typeDedicatedConfigCase_ == 2; + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + * + * @return The ocrParsingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + getOcrParsingConfig() { + if (ocrParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } else { + if (typeDedicatedConfigCase_ == 2) { + return ocrParsingConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + public Builder setOcrParsingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + value) { + if (ocrParsingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeDedicatedConfig_ = value; + onChanged(); + } else { + ocrParsingConfigBuilder_.setMessage(value); + } + typeDedicatedConfigCase_ = 2; + return this; + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + public Builder setOcrParsingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder + builderForValue) { + if (ocrParsingConfigBuilder_ == null) { + typeDedicatedConfig_ = builderForValue.build(); + onChanged(); + } else { + ocrParsingConfigBuilder_.setMessage(builderForValue.build()); + } + typeDedicatedConfigCase_ = 2; + return this; + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + public Builder mergeOcrParsingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + value) { + if (ocrParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 2 + && typeDedicatedConfig_ + != com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance()) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.newBuilder( + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfig.OcrParsingConfig) + typeDedicatedConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + typeDedicatedConfig_ = value; + } + onChanged(); + } else { + if (typeDedicatedConfigCase_ == 2) { + ocrParsingConfigBuilder_.mergeFrom(value); + } else { + ocrParsingConfigBuilder_.setMessage(value); + } + } + typeDedicatedConfigCase_ = 2; + return this; + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + public Builder clearOcrParsingConfig() { + if (ocrParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 2) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + } + } else { + if (typeDedicatedConfigCase_ == 2) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + } + ocrParsingConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder + getOcrParsingConfigBuilder() { + return getOcrParsingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder + getOcrParsingConfigOrBuilder() { + if ((typeDedicatedConfigCase_ == 2) && (ocrParsingConfigBuilder_ != null)) { + return ocrParsingConfigBuilder_.getMessageOrBuilder(); + } else { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder> + getOcrParsingConfigFieldBuilder() { + if (ocrParsingConfigBuilder_ == null) { + if (!(typeDedicatedConfigCase_ == 2)) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + ocrParsingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_, + getParentForChildren(), + isClean()); + typeDedicatedConfig_ = null; + } + typeDedicatedConfigCase_ = 2; + onChanged(); + return ocrParsingConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfigOrBuilder> + layoutParsingConfigBuilder_; + /** + * + * + *
                                +       * Configurations applied to layout parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + * + * @return Whether the layoutParsingConfig field is set. + */ + @java.lang.Override + public boolean hasLayoutParsingConfig() { + return typeDedicatedConfigCase_ == 3; + } + /** + * + * + *
                                +       * Configurations applied to layout parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + * + * @return The layoutParsingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + getLayoutParsingConfig() { + if (layoutParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance(); + } else { + if (typeDedicatedConfigCase_ == 3) { + return layoutParsingConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * Configurations applied to layout parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + */ + public Builder setLayoutParsingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + value) { + if (layoutParsingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeDedicatedConfig_ = value; + onChanged(); + } else { + layoutParsingConfigBuilder_.setMessage(value); + } + typeDedicatedConfigCase_ = 3; + return this; + } + /** + * + * + *
                                +       * Configurations applied to layout parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + */ + public Builder setLayoutParsingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.Builder + builderForValue) { + if (layoutParsingConfigBuilder_ == null) { + typeDedicatedConfig_ = builderForValue.build(); + onChanged(); + } else { + layoutParsingConfigBuilder_.setMessage(builderForValue.build()); + } + typeDedicatedConfigCase_ = 3; + return this; + } + /** + * + * + *
                                +       * Configurations applied to layout parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + */ + public Builder mergeLayoutParsingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + value) { + if (layoutParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 3 + && typeDedicatedConfig_ + != com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance()) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.newBuilder( + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfig.LayoutParsingConfig) + typeDedicatedConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + typeDedicatedConfig_ = value; + } + onChanged(); + } else { + if (typeDedicatedConfigCase_ == 3) { + layoutParsingConfigBuilder_.mergeFrom(value); + } else { + layoutParsingConfigBuilder_.setMessage(value); + } + } + typeDedicatedConfigCase_ = 3; + return this; + } + /** + * + * + *
                                +       * Configurations applied to layout parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + */ + public Builder clearLayoutParsingConfig() { + if (layoutParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 3) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + } + } else { + if (typeDedicatedConfigCase_ == 3) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + } + layoutParsingConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +       * Configurations applied to layout parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.Builder + getLayoutParsingConfigBuilder() { + return getLayoutParsingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +       * Configurations applied to layout parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfigOrBuilder + getLayoutParsingConfigOrBuilder() { + if ((typeDedicatedConfigCase_ == 3) && (layoutParsingConfigBuilder_ != null)) { + return layoutParsingConfigBuilder_.getMessageOrBuilder(); + } else { + if (typeDedicatedConfigCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * Configurations applied to layout parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfigOrBuilder> + getLayoutParsingConfigFieldBuilder() { + if (layoutParsingConfigBuilder_ == null) { + if (!(typeDedicatedConfigCase_ == 3)) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance(); + } + layoutParsingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + typeDedicatedConfig_, + getParentForChildren(), + isClean()); + typeDedicatedConfig_ = null; + } + typeDedicatedConfigCase_ = 3; + onChanged(); + return layoutParsingConfigBuilder_; + } + + @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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig) + private static final com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParsingConfig 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.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                +   * The full resource name of the Document Processing Config.
                                +   * Format:
                                +   * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +   * 
                                + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                +   * The full resource name of the Document Processing Config.
                                +   * Format:
                                +   * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +   * 
                                + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHUNKING_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + chunkingConfig_; + /** + * + * + *
                                +   * Whether chunking mode is enabled.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + * + * @return Whether the chunkingConfig field is set. + */ + @java.lang.Override + public boolean hasChunkingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * Whether chunking mode is enabled.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + * + * @return The chunkingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + getChunkingConfig() { + return chunkingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .getDefaultInstance() + : chunkingConfig_; + } + /** + * + * + *
                                +   * Whether chunking mode is enabled.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfigOrBuilder + getChunkingConfigOrBuilder() { + return chunkingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .getDefaultInstance() + : chunkingConfig_; + } + + public static final int DEFAULT_PARSING_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + defaultParsingConfig_; + /** + * + * + *
                                +   * Configurations for default Document parser.
                                +   * If not specified, we will configure it as default DigitalParsingConfig, and
                                +   * the default parsing config will be applied to all file types for Document
                                +   * parsing.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + * + * @return Whether the defaultParsingConfig field is set. + */ + @java.lang.Override + public boolean hasDefaultParsingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +   * Configurations for default Document parser.
                                +   * If not specified, we will configure it as default DigitalParsingConfig, and
                                +   * the default parsing config will be applied to all file types for Document
                                +   * parsing.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + * + * @return The defaultParsingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + getDefaultParsingConfig() { + return defaultParsingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .getDefaultInstance() + : defaultParsingConfig_; + } + /** + * + * + *
                                +   * Configurations for default Document parser.
                                +   * If not specified, we will configure it as default DigitalParsingConfig, and
                                +   * the default parsing config will be applied to all file types for Document
                                +   * parsing.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfigOrBuilder + getDefaultParsingConfigOrBuilder() { + return defaultParsingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .getDefaultInstance() + : defaultParsingConfig_; + } + + public static final int PARSING_CONFIG_OVERRIDES_FIELD_NUMBER = 5; + + private static final class ParsingConfigOverridesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfigOverridesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfig.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + parsingConfigOverrides_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + internalGetParsingConfigOverrides() { + if (parsingConfigOverrides_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParsingConfigOverridesDefaultEntryHolder.defaultEntry); + } + return parsingConfigOverrides_; + } + + public int getParsingConfigOverridesCount() { + return internalGetParsingConfigOverrides().getMap().size(); + } + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public boolean containsParsingConfigOverrides(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetParsingConfigOverrides().getMap().containsKey(key); + } + /** Use {@link #getParsingConfigOverridesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + getParsingConfigOverrides() { + return getParsingConfigOverridesMap(); + } + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + getParsingConfigOverridesMap() { + return internalGetParsingConfigOverrides().getMap(); + } + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfig + getParsingConfigOverridesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + map = internalGetParsingConfigOverrides().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + getParsingConfigOverridesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + map = internalGetParsingConfigOverrides().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getChunkingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getDefaultParsingConfig()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetParsingConfigOverrides(), + ParsingConfigOverridesDefaultEntryHolder.defaultEntry, + 5); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getChunkingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDefaultParsingConfig()); + } + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + entry : internalGetParsingConfigOverrides().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + parsingConfigOverrides__ = + ParsingConfigOverridesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, parsingConfigOverrides__); + } + 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.discoveryengine.v1alpha.DocumentProcessingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig other = + (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (hasChunkingConfig() != other.hasChunkingConfig()) return false; + if (hasChunkingConfig()) { + if (!getChunkingConfig().equals(other.getChunkingConfig())) return false; + } + if (hasDefaultParsingConfig() != other.hasDefaultParsingConfig()) return false; + if (hasDefaultParsingConfig()) { + if (!getDefaultParsingConfig().equals(other.getDefaultParsingConfig())) return false; + } + if (!internalGetParsingConfigOverrides().equals(other.internalGetParsingConfigOverrides())) + 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasChunkingConfig()) { + hash = (37 * hash) + CHUNKING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getChunkingConfig().hashCode(); + } + if (hasDefaultParsingConfig()) { + hash = (37 * hash) + DEFAULT_PARSING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDefaultParsingConfig().hashCode(); + } + if (!internalGetParsingConfigOverrides().getMap().isEmpty()) { + hash = (37 * hash) + PARSING_CONFIG_OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + internalGetParsingConfigOverrides().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig 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.discoveryengine.v1alpha.DocumentProcessingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig 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.discoveryengine.v1alpha.DocumentProcessingConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig 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.discoveryengine.v1alpha.DocumentProcessingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + 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.discoveryengine.v1alpha.DocumentProcessingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig 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.discoveryengine.v1alpha.DocumentProcessingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                                +   * A singleton resource of
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. It's empty when
                                +   * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is created, which
                                +   * defaults to digital parser. The first call to
                                +   * [DataStoreService.UpdateDocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DataStoreService.UpdateDocumentProcessingConfig]
                                +   * method will initialize the config.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig) + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetParsingConfigOverrides(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableParsingConfigOverrides(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.class, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getChunkingConfigFieldBuilder(); + getDefaultParsingConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + chunkingConfig_ = null; + if (chunkingConfigBuilder_ != null) { + chunkingConfigBuilder_.dispose(); + chunkingConfigBuilder_ = null; + } + defaultParsingConfig_ = null; + if (defaultParsingConfigBuilder_ != null) { + defaultParsingConfigBuilder_.dispose(); + defaultParsingConfigBuilder_ = null; + } + internalGetMutableParsingConfigOverrides().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig build() { + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig buildPartial() { + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig result = + new com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.chunkingConfig_ = + chunkingConfigBuilder_ == null ? chunkingConfig_ : chunkingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.defaultParsingConfig_ = + defaultParsingConfigBuilder_ == null + ? defaultParsingConfig_ + : defaultParsingConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parsingConfigOverrides_ = + internalGetParsingConfigOverrides() + .build(ParsingConfigOverridesDefaultEntryHolder.defaultEntry); + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1alpha.DocumentProcessingConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasChunkingConfig()) { + mergeChunkingConfig(other.getChunkingConfig()); + } + if (other.hasDefaultParsingConfig()) { + mergeDefaultParsingConfig(other.getDefaultParsingConfig()); + } + internalGetMutableParsingConfigOverrides() + .mergeFrom(other.internalGetParsingConfigOverrides()); + bitField0_ |= 0x00000008; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage(getChunkingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + input.readMessage( + getDefaultParsingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfig> + parsingConfigOverrides__ = + input.readMessage( + ParsingConfigOverridesDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableParsingConfigOverrides() + .ensureBuilderMap() + .put(parsingConfigOverrides__.getKey(), parsingConfigOverrides__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 42 + 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 name_ = ""; + /** + * + * + *
                                +     * The full resource name of the Document Processing Config.
                                +     * Format:
                                +     * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +     * 
                                + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * The full resource name of the Document Processing Config.
                                +     * Format:
                                +     * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +     * 
                                + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * The full resource name of the Document Processing Config.
                                +     * Format:
                                +     * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +     * 
                                + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * The full resource name of the Document Processing Config.
                                +     * Format:
                                +     * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +     * 
                                + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +     * The full resource name of the Document Processing Config.
                                +     * Format:
                                +     * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +     * 
                                + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + chunkingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ChunkingConfigOrBuilder> + chunkingConfigBuilder_; + /** + * + * + *
                                +     * Whether chunking mode is enabled.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + * + * @return Whether the chunkingConfig field is set. + */ + public boolean hasChunkingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +     * Whether chunking mode is enabled.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + * + * @return The chunkingConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + getChunkingConfig() { + if (chunkingConfigBuilder_ == null) { + return chunkingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .getDefaultInstance() + : chunkingConfig_; + } else { + return chunkingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Whether chunking mode is enabled.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + public Builder setChunkingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig value) { + if (chunkingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkingConfig_ = value; + } else { + chunkingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Whether chunking mode is enabled.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + public Builder setChunkingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.Builder + builderForValue) { + if (chunkingConfigBuilder_ == null) { + chunkingConfig_ = builderForValue.build(); + } else { + chunkingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Whether chunking mode is enabled.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + public Builder mergeChunkingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig value) { + if (chunkingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && chunkingConfig_ != null + && chunkingConfig_ + != com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .getDefaultInstance()) { + getChunkingConfigBuilder().mergeFrom(value); + } else { + chunkingConfig_ = value; + } + } else { + chunkingConfigBuilder_.mergeFrom(value); + } + if (chunkingConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Whether chunking mode is enabled.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + public Builder clearChunkingConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + chunkingConfig_ = null; + if (chunkingConfigBuilder_ != null) { + chunkingConfigBuilder_.dispose(); + chunkingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Whether chunking mode is enabled.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig.Builder + getChunkingConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getChunkingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Whether chunking mode is enabled.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfigOrBuilder + getChunkingConfigOrBuilder() { + if (chunkingConfigBuilder_ != null) { + return chunkingConfigBuilder_.getMessageOrBuilder(); + } else { + return chunkingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .getDefaultInstance() + : chunkingConfig_; + } + } + /** + * + * + *
                                +     * Whether chunking mode is enabled.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ChunkingConfigOrBuilder> + getChunkingConfigFieldBuilder() { + if (chunkingConfigBuilder_ == null) { + chunkingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + .Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ChunkingConfigOrBuilder>( + getChunkingConfig(), getParentForChildren(), isClean()); + chunkingConfig_ = null; + } + return chunkingConfigBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + defaultParsingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfigOrBuilder> + defaultParsingConfigBuilder_; + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + * + * @return Whether the defaultParsingConfig field is set. + */ + public boolean hasDefaultParsingConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + * + * @return The defaultParsingConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + getDefaultParsingConfig() { + if (defaultParsingConfigBuilder_ == null) { + return defaultParsingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .getDefaultInstance() + : defaultParsingConfig_; + } else { + return defaultParsingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + public Builder setDefaultParsingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig value) { + if (defaultParsingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultParsingConfig_ = value; + } else { + defaultParsingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + public Builder setDefaultParsingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.Builder + builderForValue) { + if (defaultParsingConfigBuilder_ == null) { + defaultParsingConfig_ = builderForValue.build(); + } else { + defaultParsingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + public Builder mergeDefaultParsingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig value) { + if (defaultParsingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && defaultParsingConfig_ != null + && defaultParsingConfig_ + != com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .getDefaultInstance()) { + getDefaultParsingConfigBuilder().mergeFrom(value); + } else { + defaultParsingConfig_ = value; + } + } else { + defaultParsingConfigBuilder_.mergeFrom(value); + } + if (defaultParsingConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + public Builder clearDefaultParsingConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + defaultParsingConfig_ = null; + if (defaultParsingConfigBuilder_ != null) { + defaultParsingConfigBuilder_.dispose(); + defaultParsingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.Builder + getDefaultParsingConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDefaultParsingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfigOrBuilder + getDefaultParsingConfigOrBuilder() { + if (defaultParsingConfigBuilder_ != null) { + return defaultParsingConfigBuilder_.getMessageOrBuilder(); + } else { + return defaultParsingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .getDefaultInstance() + : defaultParsingConfig_; + } + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfigOrBuilder> + getDefaultParsingConfigFieldBuilder() { + if (defaultParsingConfigBuilder_ == null) { + defaultParsingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfigOrBuilder>( + getDefaultParsingConfig(), getParentForChildren(), isClean()); + defaultParsingConfig_ = null; + } + return defaultParsingConfigBuilder_; + } + + private static final class ParsingConfigOverridesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfigOrBuilder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> { + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig build( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfigOrBuilder + val) { + if (val + instanceof + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig) { + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig) + val; + } + return ((com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .Builder) + val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + defaultEntry() { + return ParsingConfigOverridesDefaultEntryHolder.defaultEntry; + } + }; + + private static final ParsingConfigOverridesConverter parsingConfigOverridesConverter = + new ParsingConfigOverridesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfigOrBuilder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.Builder> + parsingConfigOverrides_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfigOrBuilder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.Builder> + internalGetParsingConfigOverrides() { + if (parsingConfigOverrides_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(parsingConfigOverridesConverter); + } + return parsingConfigOverrides_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfigOrBuilder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.Builder> + internalGetMutableParsingConfigOverrides() { + if (parsingConfigOverrides_ == null) { + parsingConfigOverrides_ = + new com.google.protobuf.MapFieldBuilder<>(parsingConfigOverridesConverter); + } + bitField0_ |= 0x00000008; + onChanged(); + return parsingConfigOverrides_; + } + + public int getParsingConfigOverridesCount() { + return internalGetParsingConfigOverrides().ensureBuilderMap().size(); + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public boolean containsParsingConfigOverrides(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetParsingConfigOverrides().ensureBuilderMap().containsKey(key); + } + /** Use {@link #getParsingConfigOverridesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + getParsingConfigOverrides() { + return getParsingConfigOverridesMap(); + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + getParsingConfigOverridesMap() { + return internalGetParsingConfigOverrides().getImmutableMap(); + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfig + getParsingConfigOverridesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfigOrBuilder> + map = internalGetMutableParsingConfigOverrides().ensureBuilderMap(); + return map.containsKey(key) + ? parsingConfigOverridesConverter.build(map.get(key)) + : defaultValue; + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + getParsingConfigOverridesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfigOrBuilder> + map = internalGetMutableParsingConfigOverrides().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return parsingConfigOverridesConverter.build(map.get(key)); + } + + public Builder clearParsingConfigOverrides() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableParsingConfigOverrides().clear(); + return this; + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + public Builder removeParsingConfigOverrides(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableParsingConfigOverrides().ensureBuilderMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + getMutableParsingConfigOverrides() { + bitField0_ |= 0x00000008; + return internalGetMutableParsingConfigOverrides().ensureMessageMap(); + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + public Builder putParsingConfigOverrides( + java.lang.String key, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableParsingConfigOverrides().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + public Builder putAllParsingConfigOverrides( + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + values) { + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableParsingConfigOverrides().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig.Builder + putParsingConfigOverridesBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .ParsingConfigOrBuilder> + builderMap = internalGetMutableParsingConfigOverrides().ensureBuilderMap(); + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfigOrBuilder + entry = builderMap.get(key); + if (entry == null) { + entry = + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .newBuilder(); + builderMap.put(key, entry); + } + if (entry + instanceof + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig) { + entry = + ((com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig) + entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + .Builder) + entry; + } + + @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.discoveryengine.v1alpha.DocumentProcessingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig) + private static final com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentProcessingConfig 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.discoveryengine.v1alpha.DocumentProcessingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfigName.java new file mode 100644 index 000000000000..2011b86bb117 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfigName.java @@ -0,0 +1,367 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class DocumentProcessingConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_DATA_STORE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig"); + private static final PathTemplate PROJECT_LOCATION_COLLECTION_DATA_STORE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String dataStore; + private final String collection; + + @Deprecated + protected DocumentProcessingConfigName() { + project = null; + location = null; + dataStore = null; + collection = null; + } + + private DocumentProcessingConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + collection = null; + pathTemplate = PROJECT_LOCATION_DATA_STORE; + } + + private DocumentProcessingConfigName(ProjectLocationCollectionDataStoreBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + dataStore = Preconditions.checkNotNull(builder.getDataStore()); + pathTemplate = PROJECT_LOCATION_COLLECTION_DATA_STORE; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public String getCollection() { + return collection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationDataStoreBuilder() { + return new Builder(); + } + + public static ProjectLocationCollectionDataStoreBuilder + newProjectLocationCollectionDataStoreBuilder() { + return new ProjectLocationCollectionDataStoreBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DocumentProcessingConfigName of(String project, String location, String dataStore) { + return newBuilder().setProject(project).setLocation(location).setDataStore(dataStore).build(); + } + + public static DocumentProcessingConfigName ofProjectLocationDataStoreName( + String project, String location, String dataStore) { + return newBuilder().setProject(project).setLocation(location).setDataStore(dataStore).build(); + } + + public static DocumentProcessingConfigName ofProjectLocationCollectionDataStoreName( + String project, String location, String collection, String dataStore) { + return newProjectLocationCollectionDataStoreBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .build(); + } + + public static String format(String project, String location, String dataStore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .build() + .toString(); + } + + public static String formatProjectLocationDataStoreName( + String project, String location, String dataStore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setDataStore(dataStore) + .build() + .toString(); + } + + public static String formatProjectLocationCollectionDataStoreName( + String project, String location, String collection, String dataStore) { + return newProjectLocationCollectionDataStoreBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setDataStore(dataStore) + .build() + .toString(); + } + + public static DocumentProcessingConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_DATA_STORE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_DATA_STORE.match(formattedString); + return ofProjectLocationDataStoreName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("data_store")); + } else if (PROJECT_LOCATION_COLLECTION_DATA_STORE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_COLLECTION_DATA_STORE.match(formattedString); + return ofProjectLocationCollectionDataStoreName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("data_store")); + } + throw new ValidationException( + "DocumentProcessingConfigName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (DocumentProcessingConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_DATA_STORE.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_DATA_STORE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (dataStore != null) { + fieldMapBuilder.put("data_store", dataStore); + } + if (collection != null) { + fieldMapBuilder.put("collection", collection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + DocumentProcessingConfigName that = ((DocumentProcessingConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.dataStore, that.dataStore) + && Objects.equals(this.collection, that.collection); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(dataStore); + h *= 1000003; + h ^= Objects.hashCode(collection); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig. + */ + public static class Builder { + private String project; + private String location; + private String dataStore; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getDataStore() { + return dataStore; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + private Builder(DocumentProcessingConfigName documentProcessingConfigName) { + Preconditions.checkArgument( + Objects.equals(documentProcessingConfigName.pathTemplate, PROJECT_LOCATION_DATA_STORE), + "toBuilder is only supported when DocumentProcessingConfigName has the pattern of projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig"); + this.project = documentProcessingConfigName.project; + this.location = documentProcessingConfigName.location; + this.dataStore = documentProcessingConfigName.dataStore; + } + + public DocumentProcessingConfigName build() { + return new DocumentProcessingConfigName(this); + } + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig. + */ + public static class ProjectLocationCollectionDataStoreBuilder { + private String project; + private String location; + private String collection; + private String dataStore; + + protected ProjectLocationCollectionDataStoreBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getDataStore() { + return dataStore; + } + + public ProjectLocationCollectionDataStoreBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionDataStoreBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionDataStoreBuilder setCollection(String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionDataStoreBuilder setDataStore(String dataStore) { + this.dataStore = dataStore; + return this; + } + + public DocumentProcessingConfigName build() { + return new DocumentProcessingConfigName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfigOrBuilder.java new file mode 100644 index 000000000000..3388c3d60d26 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfigOrBuilder.java @@ -0,0 +1,262 @@ +/* + * 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/discoveryengine/v1alpha/document_processing_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface DocumentProcessingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * The full resource name of the Document Processing Config.
                                +   * Format:
                                +   * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +   * 
                                + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                +   * The full resource name of the Document Processing Config.
                                +   * Format:
                                +   * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +   * 
                                + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                +   * Whether chunking mode is enabled.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + * + * @return Whether the chunkingConfig field is set. + */ + boolean hasChunkingConfig(); + /** + * + * + *
                                +   * Whether chunking mode is enabled.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + * + * @return The chunkingConfig. + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig + getChunkingConfig(); + /** + * + * + *
                                +   * Whether chunking mode is enabled.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; + * + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ChunkingConfigOrBuilder + getChunkingConfigOrBuilder(); + + /** + * + * + *
                                +   * Configurations for default Document parser.
                                +   * If not specified, we will configure it as default DigitalParsingConfig, and
                                +   * the default parsing config will be applied to all file types for Document
                                +   * parsing.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + * + * @return Whether the defaultParsingConfig field is set. + */ + boolean hasDefaultParsingConfig(); + /** + * + * + *
                                +   * Configurations for default Document parser.
                                +   * If not specified, we will configure it as default DigitalParsingConfig, and
                                +   * the default parsing config will be applied to all file types for Document
                                +   * parsing.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + * + * @return The defaultParsingConfig. + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + getDefaultParsingConfig(); + /** + * + * + *
                                +   * Configurations for default Document parser.
                                +   * If not specified, we will configure it as default DigitalParsingConfig, and
                                +   * the default parsing config will be applied to all file types for Document
                                +   * parsing.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfigOrBuilder + getDefaultParsingConfigOrBuilder(); + + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + int getParsingConfigOverridesCount(); + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + boolean containsParsingConfigOverrides(java.lang.String key); + /** Use {@link #getParsingConfigOverridesMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + getParsingConfigOverrides(); + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> + getParsingConfigOverridesMap(); + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + /* nullable */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + getParsingConfigOverridesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + defaultValue); + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ParsingConfig + getParsingConfigOverridesOrThrow(java.lang.String key); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfigProto.java new file mode 100644 index 000000000000..543e77b7a2d3 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProcessingConfigProto.java @@ -0,0 +1,220 @@ +/* + * 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/discoveryengine/v1alpha/document_processing_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public final class DocumentProcessingConfigProto { + private DocumentProcessingConfigProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfigOverridesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfigOverridesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nEgoogle/cloud/discoveryengine/v1alpha/d" + + "ocument_processing_config.proto\022$google." + + "cloud.discoveryengine.v1alpha\032\037google/ap" + + "i/field_behavior.proto\032\031google/api/resou" + + "rce.proto\"\320\014\n\030DocumentProcessingConfig\022\014" + + "\n\004name\030\001 \001(\t\022f\n\017chunking_config\030\003 \001(\0132M." + + "google.cloud.discoveryengine.v1alpha.Doc" + + "umentProcessingConfig.ChunkingConfig\022l\n\026" + + "default_parsing_config\030\004 \001(\0132L.google.cl" + + "oud.discoveryengine.v1alpha.DocumentProc" + + "essingConfig.ParsingConfig\022|\n\030parsing_co" + + "nfig_overrides\030\005 \003(\0132Z.google.cloud.disc" + + "overyengine.v1alpha.DocumentProcessingCo" + + "nfig.ParsingConfigOverridesEntry\032\204\002\n\016Chu" + + "nkingConfig\022\217\001\n\034layout_based_chunking_co" + + "nfig\030\001 \001(\0132g.google.cloud.discoveryengin" + + "e.v1alpha.DocumentProcessingConfig.Chunk" + + "ingConfig.LayoutBasedChunkingConfigH\000\032R\n" + + "\031LayoutBasedChunkingConfig\022\022\n\nchunk_size" + + "\030\001 \001(\005\022!\n\031include_ancestor_headings\030\002 \001(" + + "\010B\014\n\nchunk_mode\032\257\004\n\rParsingConfig\022\203\001\n\026di" + + "gital_parsing_config\030\001 \001(\0132a.google.clou" + + "d.discoveryengine.v1alpha.DocumentProces" + + "singConfig.ParsingConfig.DigitalParsingC" + + "onfigH\000\022{\n\022ocr_parsing_config\030\002 \001(\0132].go" + + "ogle.cloud.discoveryengine.v1alpha.Docum" + + "entProcessingConfig.ParsingConfig.OcrPar" + + "singConfigH\000\022\201\001\n\025layout_parsing_config\030\003" + + " \001(\0132`.google.cloud.discoveryengine.v1al" + + "pha.DocumentProcessingConfig.ParsingConf" + + "ig.LayoutParsingConfigH\000\032\026\n\024DigitalParsi" + + "ngConfig\032O\n\020OcrParsingConfig\022\"\n\032enhanced" + + "_document_elements\030\001 \003(\t\022\027\n\017use_native_t" + + "ext\030\002 \001(\010\032\025\n\023LayoutParsingConfigB\027\n\025type" + + "_dedicated_config\032\213\001\n\033ParsingConfigOverr" + + "idesEntry\022\013\n\003key\030\001 \001(\t\022[\n\005value\030\002 \001(\0132L." + + "google.cloud.discoveryengine.v1alpha.Doc" + + "umentProcessingConfig.ParsingConfig:\0028\001:" + + "\212\002\352A\206\002\n7discoveryengine.googleapis.com/D" + + "ocumentProcessingConfig\022Xprojects/{proje" + + "ct}/locations/{location}/dataStores/{dat" + + "a_store}/documentProcessingConfig\022qproje" + + "cts/{project}/locations/{location}/colle" + + "ctions/{collection}/dataStores/{data_sto" + + "re}/documentProcessingConfigB\251\002\n(com.goo" + + "gle.cloud.discoveryengine.v1alphaB\035Docum" + + "entProcessingConfigProtoP\001ZRcloud.google" + + ".com/go/discoveryengine/apiv1alpha/disco" + + "veryenginepb;discoveryenginepb\242\002\017DISCOVE" + + "RYENGINE\252\002$Google.Cloud.DiscoveryEngine." + + "V1Alpha\312\002$Google\\Cloud\\DiscoveryEngine\\V" + + "1alpha\352\002\'Google::Cloud::DiscoveryEngine:" + + ":V1alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_descriptor, + new java.lang.String[] { + "Name", "ChunkingConfig", "DefaultParsingConfig", "ParsingConfigOverrides", + }); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_descriptor, + new java.lang.String[] { + "LayoutBasedChunkingConfig", "ChunkMode", + }); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig_descriptor, + new java.lang.String[] { + "ChunkSize", "IncludeAncestorHeadings", + }); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_descriptor, + new java.lang.String[] { + "DigitalParsingConfig", + "OcrParsingConfig", + "LayoutParsingConfig", + "TypeDedicatedConfig", + }); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor, + new java.lang.String[] { + "EnhancedDocumentElements", "UseNativeText", + }); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfigOverridesEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfigOverridesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_DocumentProcessingConfig_ParsingConfigOverridesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProto.java index a38906c2d9f3..5eafc7e0c553 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentProto.java @@ -36,6 +36,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1alpha_Document_Content_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1alpha_Document_Content_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_AccessRestriction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_AccessRestriction_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -48,32 +56,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n3google/cloud/discoveryengine/v1alpha/d" + "ocument.proto\022$google.cloud.discoveryeng" + "ine.v1alpha\032\037google/api/field_behavior.p" - + "roto\032\031google/api/resource.proto\032\034google/" - + "protobuf/struct.proto\"\224\005\n\010Document\022.\n\013st" - + "ruct_data\030\004 \001(\0132\027.google.protobuf.Struct" - + "H\000\022\023\n\tjson_data\030\005 \001(\tH\000\022\021\n\004name\030\001 \001(\tB\003\340" - + "A\005\022\017\n\002id\030\002 \001(\tB\003\340A\005\022\021\n\tschema_id\030\003 \001(\t\022G" - + "\n\007content\030\n \001(\01326.google.cloud.discovery" - + "engine.v1alpha.Document.Content\022\032\n\022paren" - + "t_document_id\030\007 \001(\t\0229\n\023derived_struct_da" - + "ta\030\006 \001(\0132\027.google.protobuf.StructB\003\340A\003\032K" - + "\n\007Content\022\023\n\traw_bytes\030\002 \001(\014H\000\022\r\n\003uri\030\003 " - + "\001(\tH\000\022\021\n\tmime_type\030\001 \001(\tB\t\n\007content:\226\002\352A" - + "\222\002\n\'discoveryengine.googleapis.com/Docum" - + "ent\022fprojects/{project}/locations/{locat" - + "ion}/dataStores/{data_store}/branches/{b" - + "ranch}/documents/{document}\022\177projects/{p" - + "roject}/locations/{location}/collections" - + "/{collection}/dataStores/{data_store}/br" - + "anches/{branch}/documents/{document}B\006\n\004" - + "dataB\231\002\n(com.google.cloud.discoveryengin" - + "e.v1alphaB\rDocumentProtoP\001ZRcloud.google" - + ".com/go/discoveryengine/apiv1alpha/disco" - + "veryenginepb;discoveryenginepb\242\002\017DISCOVE" - + "RYENGINE\252\002$Google.Cloud.DiscoveryEngine." - + "V1Alpha\312\002$Google\\Cloud\\DiscoveryEngine\\V" - + "1alpha\352\002\'Google::Cloud::DiscoveryEngine:" - + ":V1alphab\006proto3" + + "roto\032\031google/api/resource.proto\0321google/" + + "cloud/discoveryengine/v1alpha/common.pro" + + "to\032\034google/protobuf/struct.proto\032\037google" + + "/protobuf/timestamp.proto\"\324\007\n\010Document\022." + + "\n\013struct_data\030\004 \001(\0132\027.google.protobuf.St" + + "ructH\000\022\023\n\tjson_data\030\005 \001(\tH\000\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\005\022\017\n\002id\030\002 \001(\tB\003\340A\005\022\021\n\tschema_id\030\003 \001" + + "(\t\022G\n\007content\030\n \001(\01326.google.cloud.disco" + + "veryengine.v1alpha.Document.Content\022\032\n\022p" + + "arent_document_id\030\007 \001(\t\0229\n\023derived_struc" + + "t_data\030\006 \001(\0132\027.google.protobuf.StructB\003\340" + + "A\003\022H\n\010acl_info\030\013 \001(\01326.google.cloud.disc" + + "overyengine.v1alpha.Document.AclInfo\0223\n\n" + + "index_time\030\r \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\032K\n\007Content\022\023\n\traw_bytes\030\002 \001(\014H" + + "\000\022\r\n\003uri\030\003 \001(\tH\000\022\021\n\tmime_type\030\001 \001(\tB\t\n\007c" + + "ontent\032\276\001\n\007AclInfo\022Y\n\007readers\030\001 \003(\0132H.go" + + "ogle.cloud.discoveryengine.v1alpha.Docum" + + "ent.AclInfo.AccessRestriction\032X\n\021AccessR" + + "estriction\022C\n\nprincipals\030\001 \003(\0132/.google." + + "cloud.discoveryengine.v1alpha.Principal:" + + "\226\002\352A\222\002\n\'discoveryengine.googleapis.com/D" + + "ocument\022fprojects/{project}/locations/{l" + + "ocation}/dataStores/{data_store}/branche" + + "s/{branch}/documents/{document}\022\177project" + + "s/{project}/locations/{location}/collect" + + "ions/{collection}/dataStores/{data_store" + + "}/branches/{branch}/documents/{document}" + + "B\006\n\004dataB\231\002\n(com.google.cloud.discoverye" + + "ngine.v1alphaB\rDocumentProtoP\001ZRcloud.go" + + "ogle.com/go/discoveryengine/apiv1alpha/d" + + "iscoveryenginepb;discoveryenginepb\242\002\017DIS" + + "COVERYENGINE\252\002$Google.Cloud.DiscoveryEng" + + "ine.V1Alpha\312\002$Google\\Cloud\\DiscoveryEngi" + + "ne\\V1alpha\352\002\'Google::Cloud::DiscoveryEng" + + "ine::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -81,7 +99,9 @@ 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.cloud.discoveryengine.v1alpha.CommonProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1alpha_Document_descriptor = getDescriptor().getMessageTypes().get(0); @@ -97,6 +117,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Content", "ParentDocumentId", "DerivedStructData", + "AclInfo", + "IndexTime", "Data", }); internal_static_google_cloud_discoveryengine_v1alpha_Document_Content_descriptor = @@ -109,6 +131,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "RawBytes", "Uri", "MimeType", "Content", }); + internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_Document_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_descriptor, + new java.lang.String[] { + "Readers", + }); + internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_AccessRestriction_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_AccessRestriction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_Document_AclInfo_AccessRestriction_descriptor, + new java.lang.String[] { + "Principals", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -117,7 +159,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.CommonProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceProto.java index e855baf82979..1c6c9f46af1b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/DocumentServiceProto.java @@ -72,97 +72,100 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\0327google/cloud/discoveryengine/v1al" + "pha/purge_config.proto\032#google/longrunni" + "ng/operations.proto\032\033google/protobuf/emp" - + "ty.proto\"S\n\022GetDocumentRequest\022=\n\004name\030\001" + + "ty.proto\032 google/protobuf/field_mask.pro" + + "to\"S\n\022GetDocumentRequest\022=\n\004name\030\001 \001(\tB/" + + "\340A\002\372A)\n\'discoveryengine.googleapis.com/D" + + "ocument\"|\n\024ListDocumentsRequest\022=\n\006paren" + + "t\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengine.googlea" + + "pis.com/Branch\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\"s\n\025ListDocumentsResponse\022A" + + "\n\tdocuments\030\001 \003(\0132..google.cloud.discove" + + "ryengine.v1alpha.Document\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\267\001\n\025CreateDocumentRequest\022=\n\006" + + "parent\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengine.go" + + "ogleapis.com/Branch\022E\n\010document\030\002 \001(\0132.." + + "google.cloud.discoveryengine.v1alpha.Doc" + + "umentB\003\340A\002\022\030\n\013document_id\030\003 \001(\tB\003\340A\002\"\246\001\n" + + "\025UpdateDocumentRequest\022E\n\010document\030\001 \001(\013" + + "2..google.cloud.discoveryengine.v1alpha." + + "DocumentB\003\340A\002\022\025\n\rallow_missing\030\002 \001(\010\022/\n\013" + + "update_mask\030\003 \001(\0132\032.google.protobuf.Fiel" + + "dMask\"V\n\025DeleteDocumentRequest\022=\n\004name\030\001" + " \001(\tB/\340A\002\372A)\n\'discoveryengine.googleapis" - + ".com/Document\"|\n\024ListDocumentsRequest\022=\n" - + "\006parent\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengine.g" - + "oogleapis.com/Branch\022\021\n\tpage_size\030\002 \001(\005\022" - + "\022\n\npage_token\030\003 \001(\t\"s\n\025ListDocumentsResp" - + "onse\022A\n\tdocuments\030\001 \003(\0132..google.cloud.d" - + "iscoveryengine.v1alpha.Document\022\027\n\017next_" - + "page_token\030\002 \001(\t\"\267\001\n\025CreateDocumentReque" - + "st\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\n%discoveryeng" - + "ine.googleapis.com/Branch\022E\n\010document\030\002 " - + "\001(\0132..google.cloud.discoveryengine.v1alp" - + "ha.DocumentB\003\340A\002\022\030\n\013document_id\030\003 \001(\tB\003\340" - + "A\002\"u\n\025UpdateDocumentRequest\022E\n\010document\030" - + "\001 \001(\0132..google.cloud.discoveryengine.v1a" - + "lpha.DocumentB\003\340A\002\022\025\n\rallow_missing\030\002 \001(" - + "\010\"V\n\025DeleteDocumentRequest\022=\n\004name\030\001 \001(\t" - + "B/\340A\002\372A)\n\'discoveryengine.googleapis.com" - + "/Document2\241\024\n\017DocumentService\022\260\002\n\013GetDoc" - + "ument\0228.google.cloud.discoveryengine.v1a" - + "lpha.GetDocumentRequest\032..google.cloud.d" - + "iscoveryengine.v1alpha.Document\"\266\001\332A\004nam" - + "e\202\323\344\223\002\250\001\022J/v1alpha/{name=projects/*/loca" - + "tions/*/dataStores/*/branches/*/document" - + "s/*}ZZ\022X/v1alpha/{name=projects/*/locati" - + "ons/*/collections/*/dataStores/*/branche" - + "s/*/documents/*}\022\303\002\n\rListDocuments\022:.goo" - + "gle.cloud.discoveryengine.v1alpha.ListDo" - + "cumentsRequest\032;.google.cloud.discoverye" - + "ngine.v1alpha.ListDocumentsResponse\"\270\001\332A" - + "\006parent\202\323\344\223\002\250\001\022J/v1alpha/{parent=project" - + "s/*/locations/*/dataStores/*/branches/*}" - + "/documentsZZ\022X/v1alpha/{parent=projects/" - + "*/locations/*/collections/*/dataStores/*" - + "/branches/*}/documents\022\341\002\n\016CreateDocumen" + + ".com/Document2\270\024\n\017DocumentService\022\260\002\n\013Ge" + + "tDocument\0228.google.cloud.discoveryengine" + + ".v1alpha.GetDocumentRequest\032..google.clo" + + "ud.discoveryengine.v1alpha.Document\"\266\001\332A" + + "\004name\202\323\344\223\002\250\001\022J/v1alpha/{name=projects/*/" + + "locations/*/dataStores/*/branches/*/docu" + + "ments/*}ZZ\022X/v1alpha/{name=projects/*/lo" + + "cations/*/collections/*/dataStores/*/bra" + + "nches/*/documents/*}\022\303\002\n\rListDocuments\022:" + + ".google.cloud.discoveryengine.v1alpha.Li" + + "stDocumentsRequest\032;.google.cloud.discov" + + "eryengine.v1alpha.ListDocumentsResponse\"" + + "\270\001\332A\006parent\202\323\344\223\002\250\001\022J/v1alpha/{parent=pro" + + "jects/*/locations/*/dataStores/*/branche" + + "s/*}/documentsZZ\022X/v1alpha/{parent=proje" + + "cts/*/locations/*/collections/*/dataStor" + + "es/*/branches/*}/documents\022\341\002\n\016CreateDoc" + + "ument\022;.google.cloud.discoveryengine.v1a" + + "lpha.CreateDocumentRequest\032..google.clou" + + "d.discoveryengine.v1alpha.Document\"\341\001\332A\033" + + "parent,document,document_id\202\323\344\223\002\274\001\"J/v1a" + + "lpha/{parent=projects/*/locations/*/data" + + "Stores/*/branches/*}/documents:\010document" + + "Zd\"X/v1alpha/{parent=projects/*/location" + + "s/*/collections/*/dataStores/*/branches/" + + "*}/documents:\010document\022\354\002\n\016UpdateDocumen" + "t\022;.google.cloud.discoveryengine.v1alpha" - + ".CreateDocumentRequest\032..google.cloud.di" - + "scoveryengine.v1alpha.Document\"\341\001\332A\033pare" - + "nt,document,document_id\202\323\344\223\002\274\001\"J/v1alpha" - + "/{parent=projects/*/locations/*/dataStor" - + "es/*/branches/*}/documents:\010documentZd\"X" - + "/v1alpha/{parent=projects/*/locations/*/" - + "collections/*/dataStores/*/branches/*}/d" - + "ocuments:\010document\022\325\002\n\016UpdateDocument\022;." - + "google.cloud.discoveryengine.v1alpha.Upd" - + "ateDocumentRequest\032..google.cloud.discov" - + "eryengine.v1alpha.Document\"\325\001\202\323\344\223\002\316\0012S/v" - + "1alpha/{document.name=projects/*/locatio" - + "ns/*/dataStores/*/branches/*/documents/*" - + "}:\010documentZm2a/v1alpha/{document.name=p" - + "rojects/*/locations/*/collections/*/data" - + "Stores/*/branches/*/documents/*}:\010docume" - + "nt\022\236\002\n\016DeleteDocument\022;.google.cloud.dis" - + "coveryengine.v1alpha.DeleteDocumentReque" - + "st\032\026.google.protobuf.Empty\"\266\001\332A\004name\202\323\344\223" - + "\002\250\001*J/v1alpha/{name=projects/*/locations" - + "/*/dataStores/*/branches/*/documents/*}Z" - + "Z*X/v1alpha/{name=projects/*/locations/*" - + "/collections/*/dataStores/*/branches/*/d" - + "ocuments/*}\022\263\003\n\017ImportDocuments\022<.google" - + ".cloud.discoveryengine.v1alpha.ImportDoc" - + "umentsRequest\032\035.google.longrunning.Opera" - + "tion\"\302\002\312A|\n + * Defines embedding config, used for bring your own embeddings feature. + *
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.EmbeddingConfig} + */ +public final class EmbeddingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.EmbeddingConfig) + EmbeddingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use EmbeddingConfig.newBuilder() to construct. + private EmbeddingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EmbeddingConfig() { + fieldPath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EmbeddingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_EmbeddingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_EmbeddingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.class, + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.Builder.class); + } + + public static final int FIELD_PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldPath_ = ""; + /** + * + * + *
                                +   * Full field path in the schema mapped as embedding field.
                                +   * 
                                + * + * string field_path = 1; + * + * @return The fieldPath. + */ + @java.lang.Override + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + 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(); + fieldPath_ = s; + return s; + } + } + /** + * + * + *
                                +   * Full field path in the schema mapped as embedding field.
                                +   * 
                                + * + * string field_path = 1; + * + * @return The bytes for fieldPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = 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(fieldPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_); + } + 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(fieldPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldPath_); + } + 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.discoveryengine.v1alpha.EmbeddingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig other = + (com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig) obj; + + if (!getFieldPath().equals(other.getFieldPath())) 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) + FIELD_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFieldPath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig 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.discoveryengine.v1alpha.EmbeddingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig 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.discoveryengine.v1alpha.EmbeddingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig 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.discoveryengine.v1alpha.EmbeddingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig 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.discoveryengine.v1alpha.EmbeddingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig 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.discoveryengine.v1alpha.EmbeddingConfig 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 embedding config, used for bring your own embeddings feature.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.EmbeddingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.EmbeddingConfig) + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_EmbeddingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_EmbeddingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.class, + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldPath_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_EmbeddingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig build() { + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig buildPartial() { + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig result = + new com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldPath_ = fieldPath_; + } + } + + @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.discoveryengine.v1alpha.EmbeddingConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig other) { + if (other == com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.getDefaultInstance()) + return this; + if (!other.getFieldPath().isEmpty()) { + fieldPath_ = other.fieldPath_; + 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: + { + fieldPath_ = 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 fieldPath_ = ""; + /** + * + * + *
                                +     * Full field path in the schema mapped as embedding field.
                                +     * 
                                + * + * string field_path = 1; + * + * @return The fieldPath. + */ + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Full field path in the schema mapped as embedding field.
                                +     * 
                                + * + * string field_path = 1; + * + * @return The bytes for fieldPath. + */ + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Full field path in the schema mapped as embedding field.
                                +     * 
                                + * + * string field_path = 1; + * + * @param value The fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Full field path in the schema mapped as embedding field.
                                +     * 
                                + * + * string field_path = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldPath() { + fieldPath_ = getDefaultInstance().getFieldPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Full field path in the schema mapped as embedding field.
                                +     * 
                                + * + * string field_path = 1; + * + * @param value The bytes for fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldPath_ = 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.discoveryengine.v1alpha.EmbeddingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.EmbeddingConfig) + private static final com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmbeddingConfig 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.discoveryengine.v1alpha.EmbeddingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EmbeddingConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EmbeddingConfigOrBuilder.java new file mode 100644 index 000000000000..0268b3b2ca77 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EmbeddingConfigOrBuilder.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/discoveryengine/v1alpha/common.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface EmbeddingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.EmbeddingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Full field path in the schema mapped as embedding field.
                                +   * 
                                + * + * string field_path = 1; + * + * @return The fieldPath. + */ + java.lang.String getFieldPath(); + /** + * + * + *
                                +   * Full field path in the schema mapped as embedding field.
                                +   * 
                                + * + * string field_path = 1; + * + * @return The bytes for fieldPath. + */ + com.google.protobuf.ByteString getFieldPathBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Engine.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Engine.java index fc63031f8f23..d3633c61b1d3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Engine.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Engine.java @@ -1675,7 +1675,7 @@ public interface MediaRecommendationEngineConfigOrBuilder * * *
                                -     * Required. The type of engine e.g. `recommended-for-you`.
                                +     * Required. The type of engine. e.g., `recommended-for-you`.
                                      *
                                      * This field together with
                                      * [optimization_objective][Engine.optimization_objective] describe engine
                                @@ -1694,7 +1694,7 @@ public interface MediaRecommendationEngineConfigOrBuilder
                                      *
                                      *
                                      * 
                                -     * Required. The type of engine e.g. `recommended-for-you`.
                                +     * Required. The type of engine. e.g., `recommended-for-you`.
                                      *
                                      * This field together with
                                      * [optimization_objective][Engine.optimization_objective] describe engine
                                @@ -1714,7 +1714,7 @@ public interface MediaRecommendationEngineConfigOrBuilder
                                      *
                                      *
                                      * 
                                -     * The optimization objective e.g. `cvr`.
                                +     * The optimization objective. e.g., `cvr`.
                                      *
                                      * This field together with
                                      * [optimization_objective][google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.type]
                                @@ -1740,7 +1740,7 @@ public interface MediaRecommendationEngineConfigOrBuilder
                                      *
                                      *
                                      * 
                                -     * The optimization objective e.g. `cvr`.
                                +     * The optimization objective. e.g., `cvr`.
                                      *
                                      * This field together with
                                      * [optimization_objective][google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.type]
                                @@ -2925,7 +2925,7 @@ public com.google.protobuf.Parser getParserForType(
                                      *
                                      *
                                      * 
                                -     * Required. The type of engine e.g. `recommended-for-you`.
                                +     * Required. The type of engine. e.g., `recommended-for-you`.
                                      *
                                      * This field together with
                                      * [optimization_objective][Engine.optimization_objective] describe engine
                                @@ -2955,7 +2955,7 @@ public java.lang.String getType() {
                                      *
                                      *
                                      * 
                                -     * Required. The type of engine e.g. `recommended-for-you`.
                                +     * Required. The type of engine. e.g., `recommended-for-you`.
                                      *
                                      * This field together with
                                      * [optimization_objective][Engine.optimization_objective] describe engine
                                @@ -2990,7 +2990,7 @@ public com.google.protobuf.ByteString getTypeBytes() {
                                      *
                                      *
                                      * 
                                -     * The optimization objective e.g. `cvr`.
                                +     * The optimization objective. e.g., `cvr`.
                                      *
                                      * This field together with
                                      * [optimization_objective][google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.type]
                                @@ -3027,7 +3027,7 @@ public java.lang.String getOptimizationObjective() {
                                      *
                                      *
                                      * 
                                -     * The optimization objective e.g. `cvr`.
                                +     * The optimization objective. e.g., `cvr`.
                                      *
                                      * This field together with
                                      * [optimization_objective][google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.type]
                                @@ -3682,7 +3682,7 @@ public Builder mergeFrom(
                                        *
                                        *
                                        * 
                                -       * Required. The type of engine e.g. `recommended-for-you`.
                                +       * Required. The type of engine. e.g., `recommended-for-you`.
                                        *
                                        * This field together with
                                        * [optimization_objective][Engine.optimization_objective] describe engine
                                @@ -3711,7 +3711,7 @@ public java.lang.String getType() {
                                        *
                                        *
                                        * 
                                -       * Required. The type of engine e.g. `recommended-for-you`.
                                +       * Required. The type of engine. e.g., `recommended-for-you`.
                                        *
                                        * This field together with
                                        * [optimization_objective][Engine.optimization_objective] describe engine
                                @@ -3740,7 +3740,7 @@ public com.google.protobuf.ByteString getTypeBytes() {
                                        *
                                        *
                                        * 
                                -       * Required. The type of engine e.g. `recommended-for-you`.
                                +       * Required. The type of engine. e.g., `recommended-for-you`.
                                        *
                                        * This field together with
                                        * [optimization_objective][Engine.optimization_objective] describe engine
                                @@ -3768,7 +3768,7 @@ public Builder setType(java.lang.String value) {
                                        *
                                        *
                                        * 
                                -       * Required. The type of engine e.g. `recommended-for-you`.
                                +       * Required. The type of engine. e.g., `recommended-for-you`.
                                        *
                                        * This field together with
                                        * [optimization_objective][Engine.optimization_objective] describe engine
                                @@ -3792,7 +3792,7 @@ public Builder clearType() {
                                        *
                                        *
                                        * 
                                -       * Required. The type of engine e.g. `recommended-for-you`.
                                +       * Required. The type of engine. e.g., `recommended-for-you`.
                                        *
                                        * This field together with
                                        * [optimization_objective][Engine.optimization_objective] describe engine
                                @@ -3823,7 +3823,7 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
                                        *
                                        *
                                        * 
                                -       * The optimization objective e.g. `cvr`.
                                +       * The optimization objective. e.g., `cvr`.
                                        *
                                        * This field together with
                                        * [optimization_objective][google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.type]
                                @@ -3859,7 +3859,7 @@ public java.lang.String getOptimizationObjective() {
                                        *
                                        *
                                        * 
                                -       * The optimization objective e.g. `cvr`.
                                +       * The optimization objective. e.g., `cvr`.
                                        *
                                        * This field together with
                                        * [optimization_objective][google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.type]
                                @@ -3895,7 +3895,7 @@ public com.google.protobuf.ByteString getOptimizationObjectiveBytes() {
                                        *
                                        *
                                        * 
                                -       * The optimization objective e.g. `cvr`.
                                +       * The optimization objective. e.g., `cvr`.
                                        *
                                        * This field together with
                                        * [optimization_objective][google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.type]
                                @@ -3930,7 +3930,7 @@ public Builder setOptimizationObjective(java.lang.String value) {
                                        *
                                        *
                                        * 
                                -       * The optimization objective e.g. `cvr`.
                                +       * The optimization objective. e.g., `cvr`.
                                        *
                                        * This field together with
                                        * [optimization_objective][google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.type]
                                @@ -3961,7 +3961,7 @@ public Builder clearOptimizationObjective() {
                                        *
                                        *
                                        * 
                                -       * The optimization objective e.g. `cvr`.
                                +       * The optimization objective. e.g., `cvr`.
                                        *
                                        * This field together with
                                        * [optimization_objective][google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.type]
                                @@ -4585,8 +4585,8 @@ public interface ChatEngineConfigOrBuilder
                                      * or
                                      * [EngineService.ListEngines][google.cloud.discoveryengine.v1alpha.EngineService.ListEngines]
                                      * API after engine creation. Please use
                                -     * [chat_engine_metadata.dialogflow_agent][] for actual agent
                                -     * association after Engine is created.
                                +     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1alpha.Engine.ChatEngineMetadata.dialogflow_agent]
                                +     * for actual agent association after Engine is created.
                                      * 
                                * * string dialogflow_agent_to_link = 2; @@ -4611,8 +4611,8 @@ public interface ChatEngineConfigOrBuilder * or * [EngineService.ListEngines][google.cloud.discoveryengine.v1alpha.EngineService.ListEngines] * API after engine creation. Please use - * [chat_engine_metadata.dialogflow_agent][] for actual agent - * association after Engine is created. + * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1alpha.Engine.ChatEngineMetadata.dialogflow_agent] + * for actual agent association after Engine is created. *
                                * * string dialogflow_agent_to_link = 2; @@ -4758,6 +4758,35 @@ public interface AgentCreationConfigOrBuilder * @return The bytes for timeZone. */ com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
                                +       * Agent location for Agent creation, supported values: global/us/eu.
                                +       * If not provided, us Engine will create Agent using us-central-1 by
                                +       * default; eu Engine will create Agent using eu-west-1 by default.
                                +       * 
                                + * + * string location = 4; + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
                                +       * Agent location for Agent creation, supported values: global/us/eu.
                                +       * If not provided, us Engine will create Agent using us-central-1 by
                                +       * default; eu Engine will create Agent using eu-west-1 by default.
                                +       * 
                                + * + * string location = 4; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); } /** * @@ -4790,6 +4819,7 @@ private AgentCreationConfig() { business_ = ""; defaultLanguageCode_ = ""; timeZone_ = ""; + location_ = ""; } @java.lang.Override @@ -4982,6 +5012,61 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { } } + public static final int LOCATION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + /** + * + * + *
                                +       * Agent location for Agent creation, supported values: global/us/eu.
                                +       * If not provided, us Engine will create Agent using us-central-1 by
                                +       * default; eu Engine will create Agent using eu-west-1 by default.
                                +       * 
                                + * + * string location = 4; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; + } + } + /** + * + * + *
                                +       * Agent location for Agent creation, supported values: global/us/eu.
                                +       * If not provided, us Engine will create Agent using us-central-1 by
                                +       * default; eu Engine will create Agent using eu-west-1 by default.
                                +       * 
                                + * + * string location = 4; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -5005,6 +5090,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, timeZone_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, location_); + } getUnknownFields().writeTo(output); } @@ -5023,6 +5111,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, timeZone_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, location_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5045,6 +5136,7 @@ public boolean equals(final java.lang.Object obj) { if (!getBusiness().equals(other.getBusiness())) return false; if (!getDefaultLanguageCode().equals(other.getDefaultLanguageCode())) return false; if (!getTimeZone().equals(other.getTimeZone())) return false; + if (!getLocation().equals(other.getLocation())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5062,6 +5154,8 @@ public int hashCode() { hash = (53 * hash) + getDefaultLanguageCode().hashCode(); hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; hash = (53 * hash) + getTimeZone().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5240,6 +5334,7 @@ public Builder clear() { business_ = ""; defaultLanguageCode_ = ""; timeZone_ = ""; + location_ = ""; return this; } @@ -5294,6 +5389,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.timeZone_ = timeZone_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.location_ = location_; + } } @java.lang.Override @@ -5368,6 +5466,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; onChanged(); } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5412,6 +5515,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5784,6 +5893,122 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object location_ = ""; + /** + * + * + *
                                +         * Agent location for Agent creation, supported values: global/us/eu.
                                +         * If not provided, us Engine will create Agent using us-central-1 by
                                +         * default; eu Engine will create Agent using eu-west-1 by default.
                                +         * 
                                + * + * string location = 4; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +         * Agent location for Agent creation, supported values: global/us/eu.
                                +         * If not provided, us Engine will create Agent using us-central-1 by
                                +         * default; eu Engine will create Agent using eu-west-1 by default.
                                +         * 
                                + * + * string location = 4; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +         * Agent location for Agent creation, supported values: global/us/eu.
                                +         * If not provided, us Engine will create Agent using us-central-1 by
                                +         * default; eu Engine will create Agent using eu-west-1 by default.
                                +         * 
                                + * + * string location = 4; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                +         * Agent location for Agent creation, supported values: global/us/eu.
                                +         * If not provided, us Engine will create Agent using us-central-1 by
                                +         * default; eu Engine will create Agent using eu-west-1 by default.
                                +         * 
                                + * + * string location = 4; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                +         * Agent location for Agent creation, supported values: global/us/eu.
                                +         * If not provided, us Engine will create Agent using us-central-1 by
                                +         * default; eu Engine will create Agent using eu-west-1 by default.
                                +         * 
                                + * + * string location = 4; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5963,8 +6188,8 @@ public boolean hasAgentCreationConfig() { * or * [EngineService.ListEngines][google.cloud.discoveryengine.v1alpha.EngineService.ListEngines] * API after engine creation. Please use - * [chat_engine_metadata.dialogflow_agent][] for actual agent - * association after Engine is created. + * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1alpha.Engine.ChatEngineMetadata.dialogflow_agent] + * for actual agent association after Engine is created. *
                                * * string dialogflow_agent_to_link = 2; @@ -6000,8 +6225,8 @@ public java.lang.String getDialogflowAgentToLink() { * or * [EngineService.ListEngines][google.cloud.discoveryengine.v1alpha.EngineService.ListEngines] * API after engine creation. Please use - * [chat_engine_metadata.dialogflow_agent][] for actual agent - * association after Engine is created. + * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1alpha.Engine.ChatEngineMetadata.dialogflow_agent] + * for actual agent association after Engine is created. *
                                * * string dialogflow_agent_to_link = 2; @@ -6741,8 +6966,8 @@ public Builder clearAgentCreationConfig() { * or * [EngineService.ListEngines][google.cloud.discoveryengine.v1alpha.EngineService.ListEngines] * API after engine creation. Please use - * [chat_engine_metadata.dialogflow_agent][] for actual agent - * association after Engine is created. + * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1alpha.Engine.ChatEngineMetadata.dialogflow_agent] + * for actual agent association after Engine is created. *
                                * * string dialogflow_agent_to_link = 2; @@ -6777,8 +7002,8 @@ public java.lang.String getDialogflowAgentToLink() { * or * [EngineService.ListEngines][google.cloud.discoveryengine.v1alpha.EngineService.ListEngines] * API after engine creation. Please use - * [chat_engine_metadata.dialogflow_agent][] for actual agent - * association after Engine is created. + * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1alpha.Engine.ChatEngineMetadata.dialogflow_agent] + * for actual agent association after Engine is created. *
                                * * string dialogflow_agent_to_link = 2; @@ -6813,8 +7038,8 @@ public com.google.protobuf.ByteString getDialogflowAgentToLinkBytes() { * or * [EngineService.ListEngines][google.cloud.discoveryengine.v1alpha.EngineService.ListEngines] * API after engine creation. Please use - * [chat_engine_metadata.dialogflow_agent][] for actual agent - * association after Engine is created. + * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1alpha.Engine.ChatEngineMetadata.dialogflow_agent] + * for actual agent association after Engine is created. *
                                * * string dialogflow_agent_to_link = 2; @@ -6848,8 +7073,8 @@ public Builder setDialogflowAgentToLink(java.lang.String value) { * or * [EngineService.ListEngines][google.cloud.discoveryengine.v1alpha.EngineService.ListEngines] * API after engine creation. Please use - * [chat_engine_metadata.dialogflow_agent][] for actual agent - * association after Engine is created. + * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1alpha.Engine.ChatEngineMetadata.dialogflow_agent] + * for actual agent association after Engine is created. *
                                * * string dialogflow_agent_to_link = 2; @@ -6879,8 +7104,8 @@ public Builder clearDialogflowAgentToLink() { * or * [EngineService.ListEngines][google.cloud.discoveryengine.v1alpha.EngineService.ListEngines] * API after engine creation. Please use - * [chat_engine_metadata.dialogflow_agent][] for actual agent - * association after Engine is created. + * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1alpha.Engine.ChatEngineMetadata.dialogflow_agent] + * for actual agent association after Engine is created. *
                                * * string dialogflow_agent_to_link = 2; @@ -6975,11 +7200,11 @@ public interface CommonConfigOrBuilder * * *
                                -     * The name of the company, business or entity that is associated with the
                                -     * engine. Setting this may help improve LLM related features.
                                +     * Immutable. The name of the company, business or entity that is associated
                                +     * with the engine. Setting this may help improve LLM related features.
                                      * 
                                * - * string company_name = 1; + * string company_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The companyName. */ @@ -6988,11 +7213,11 @@ public interface CommonConfigOrBuilder * * *
                                -     * The name of the company, business or entity that is associated with the
                                -     * engine. Setting this may help improve LLM related features.
                                +     * Immutable. The name of the company, business or entity that is associated
                                +     * with the engine. Setting this may help improve LLM related features.
                                      * 
                                * - * string company_name = 1; + * string company_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for companyName. */ @@ -7050,11 +7275,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                -     * The name of the company, business or entity that is associated with the
                                -     * engine. Setting this may help improve LLM related features.
                                +     * Immutable. The name of the company, business or entity that is associated
                                +     * with the engine. Setting this may help improve LLM related features.
                                      * 
                                * - * string company_name = 1; + * string company_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The companyName. */ @@ -7074,11 +7299,11 @@ public java.lang.String getCompanyName() { * * *
                                -     * The name of the company, business or entity that is associated with the
                                -     * engine. Setting this may help improve LLM related features.
                                +     * Immutable. The name of the company, business or entity that is associated
                                +     * with the engine. Setting this may help improve LLM related features.
                                      * 
                                * - * string company_name = 1; + * string company_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for companyName. */ @@ -7450,11 +7675,11 @@ public Builder mergeFrom( * * *
                                -       * The name of the company, business or entity that is associated with the
                                -       * engine. Setting this may help improve LLM related features.
                                +       * Immutable. The name of the company, business or entity that is associated
                                +       * with the engine. Setting this may help improve LLM related features.
                                        * 
                                * - * string company_name = 1; + * string company_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The companyName. */ @@ -7473,11 +7698,11 @@ public java.lang.String getCompanyName() { * * *
                                -       * The name of the company, business or entity that is associated with the
                                -       * engine. Setting this may help improve LLM related features.
                                +       * Immutable. The name of the company, business or entity that is associated
                                +       * with the engine. Setting this may help improve LLM related features.
                                        * 
                                * - * string company_name = 1; + * string company_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for companyName. */ @@ -7496,11 +7721,11 @@ public com.google.protobuf.ByteString getCompanyNameBytes() { * * *
                                -       * The name of the company, business or entity that is associated with the
                                -       * engine. Setting this may help improve LLM related features.
                                +       * Immutable. The name of the company, business or entity that is associated
                                +       * with the engine. Setting this may help improve LLM related features.
                                        * 
                                * - * string company_name = 1; + * string company_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The companyName to set. * @return This builder for chaining. @@ -7518,11 +7743,11 @@ public Builder setCompanyName(java.lang.String value) { * * *
                                -       * The name of the company, business or entity that is associated with the
                                -       * engine. Setting this may help improve LLM related features.
                                +       * Immutable. The name of the company, business or entity that is associated
                                +       * with the engine. Setting this may help improve LLM related features.
                                        * 
                                * - * string company_name = 1; + * string company_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @return This builder for chaining. */ @@ -7536,11 +7761,11 @@ public Builder clearCompanyName() { * * *
                                -       * The name of the company, business or entity that is associated with the
                                -       * engine. Setting this may help improve LLM related features.
                                +       * Immutable. The name of the company, business or entity that is associated
                                +       * with the engine. Setting this may help improve LLM related features.
                                        * 
                                * - * string company_name = 1; + * string company_name = 1 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The bytes for companyName to set. * @return This builder for chaining. @@ -10989,7 +11214,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -11022,7 +11247,7 @@ public com.google.protobuf.ProtocolStringList getDataStoreIdsList() { * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -11055,7 +11280,7 @@ public int getDataStoreIdsCount() { * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -11089,7 +11314,7 @@ public java.lang.String getDataStoreIds(int index) { * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -14424,7 +14649,7 @@ private void ensureDataStoreIdsIsMutable() { * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -14458,7 +14683,7 @@ public com.google.protobuf.ProtocolStringList getDataStoreIdsList() { * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -14491,7 +14716,7 @@ public int getDataStoreIdsCount() { * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -14525,7 +14750,7 @@ public java.lang.String getDataStoreIds(int index) { * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -14559,7 +14784,7 @@ public com.google.protobuf.ByteString getDataStoreIdsBytes(int index) { * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -14601,7 +14826,7 @@ public Builder setDataStoreIds(int index, java.lang.String value) { * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -14642,7 +14867,7 @@ public Builder addDataStoreIds(java.lang.String value) { * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -14680,7 +14905,7 @@ public Builder addAllDataStoreIds(java.lang.Iterable values) { * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -14717,7 +14942,7 @@ public Builder clearDataStoreIds() { * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineOrBuilder.java index b02194e1f80b..2f79f4ce2149 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineOrBuilder.java @@ -503,7 +503,7 @@ public interface EngineOrBuilder * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -534,7 +534,7 @@ public interface EngineOrBuilder * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -565,7 +565,7 @@ public interface EngineOrBuilder * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; @@ -597,7 +597,7 @@ public interface EngineOrBuilder * Note that when used in * [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], * one DataStore id must be provided as the system will use it for necessary - * intializations. + * initializations. *
                                * * repeated string data_store_ids = 5; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineProto.java index 0efe00c3be60..d9a6a1ab8a9d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EngineProto.java @@ -82,7 +82,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e.v1alpha\032\037google/api/field_behavior.pro" + "to\032\031google/api/resource.proto\0321google/cl" + "oud/discoveryengine/v1alpha/common.proto" - + "\032\037google/protobuf/timestamp.proto\"\342\025\n\006En" + + "\032\037google/protobuf/timestamp.proto\"\371\025\n\006En" + "gine\022m\n\030similar_documents_config\030\t \001(\0132I" + ".google.cloud.discoveryengine.v1alpha.En" + "gine.SimilarDocumentsEngineConfigH\000\022[\n\022c" @@ -127,39 +127,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nfig\022\031\n\014target_field\030\001 \001(\tB\003\340A\002\022%\n\030targe" + "t_field_value_float\030\002 \001(\002B\003\340A\002\"I\n\rTraini" + "ngState\022\036\n\032TRAINING_STATE_UNSPECIFIED\020\000\022" - + "\n\n\006PAUSED\020\001\022\014\n\010TRAINING\020\002\032\206\002\n\020ChatEngine" + + "\n\n\006PAUSED\020\001\022\014\n\010TRAINING\020\002\032\230\002\n\020ChatEngine" + "Config\022p\n\025agent_creation_config\030\001 \001(\0132Q." + "google.cloud.discoveryengine.v1alpha.Eng" + "ine.ChatEngineConfig.AgentCreationConfig" - + "\022 \n\030dialogflow_agent_to_link\030\002 \001(\t\032^\n\023Ag" + + "\022 \n\030dialogflow_agent_to_link\030\002 \001(\t\032p\n\023Ag" + "entCreationConfig\022\020\n\010business\030\001 \001(\t\022\035\n\025d" + "efault_language_code\030\002 \001(\t\022\026\n\ttime_zone\030" - + "\003 \001(\tB\003\340A\002\032$\n\014CommonConfig\022\024\n\014company_na" - + "me\030\001 \001(\t\032\340\003\n\026RecommendationMetadata\022l\n\rs" - + "erving_state\030\001 \001(\0162P.google.cloud.discov" - + "eryengine.v1alpha.Engine.RecommendationM" - + "etadata.ServingStateB\003\340A\003\022f\n\ndata_state\030" - + "\002 \001(\0162M.google.cloud.discoveryengine.v1a" - + "lpha.Engine.RecommendationMetadata.DataS" - + "tateB\003\340A\003\0227\n\016last_tune_time\030\003 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\022\035\n\020tuning_ope" - + "ration\030\004 \001(\tB\003\340A\003\"R\n\014ServingState\022\035\n\031SER" - + "VING_STATE_UNSPECIFIED\020\000\022\014\n\010INACTIVE\020\001\022\n" - + "\n\006ACTIVE\020\002\022\t\n\005TUNED\020\003\"D\n\tDataState\022\032\n\026DA" - + "TA_STATE_UNSPECIFIED\020\000\022\013\n\007DATA_OK\020\001\022\016\n\nD" - + "ATA_ERROR\020\002\032.\n\022ChatEngineMetadata\022\030\n\020dia" - + "logflow_agent\030\001 \001(\t:}\352Az\n%discoveryengin" - + "e.googleapis.com/Engine\022Qprojects/{proje" - + "ct}/locations/{location}/collections/{co" - + "llection}/engines/{engine}B\017\n\rengine_con" - + "figB\021\n\017engine_metadataB\227\002\n(com.google.cl" - + "oud.discoveryengine.v1alphaB\013EngineProto" - + "P\001ZRcloud.google.com/go/discoveryengine/" - + "apiv1alpha/discoveryenginepb;discoveryen" - + "ginepb\242\002\017DISCOVERYENGINE\252\002$Google.Cloud." - + "DiscoveryEngine.V1Alpha\312\002$Google\\Cloud\\D" - + "iscoveryEngine\\V1alpha\352\002\'Google::Cloud::" - + "DiscoveryEngine::V1alphab\006proto3" + + "\003 \001(\tB\003\340A\002\022\020\n\010location\030\004 \001(\t\032)\n\014CommonCo" + + "nfig\022\031\n\014company_name\030\001 \001(\tB\003\340A\005\032\340\003\n\026Reco" + + "mmendationMetadata\022l\n\rserving_state\030\001 \001(" + + "\0162P.google.cloud.discoveryengine.v1alpha" + + ".Engine.RecommendationMetadata.ServingSt" + + "ateB\003\340A\003\022f\n\ndata_state\030\002 \001(\0162M.google.cl" + + "oud.discoveryengine.v1alpha.Engine.Recom" + + "mendationMetadata.DataStateB\003\340A\003\0227\n\016last" + + "_tune_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022\035\n\020tuning_operation\030\004 \001(\tB\003\340A\003" + + "\"R\n\014ServingState\022\035\n\031SERVING_STATE_UNSPEC" + + "IFIED\020\000\022\014\n\010INACTIVE\020\001\022\n\n\006ACTIVE\020\002\022\t\n\005TUN" + + "ED\020\003\"D\n\tDataState\022\032\n\026DATA_STATE_UNSPECIF" + + "IED\020\000\022\013\n\007DATA_OK\020\001\022\016\n\nDATA_ERROR\020\002\032.\n\022Ch" + + "atEngineMetadata\022\030\n\020dialogflow_agent\030\001 \001" + + "(\t:}\352Az\n%discoveryengine.googleapis.com/" + + "Engine\022Qprojects/{project}/locations/{lo" + + "cation}/collections/{collection}/engines" + + "/{engine}B\017\n\rengine_configB\021\n\017engine_met" + + "adataB\227\002\n(com.google.cloud.discoveryengi" + + "ne.v1alphaB\013EngineProtoP\001ZRcloud.google." + + "com/go/discoveryengine/apiv1alpha/discov" + + "eryenginepb;discoveryenginepb\242\002\017DISCOVER" + + "YENGINE\252\002$Google.Cloud.DiscoveryEngine.V" + + "1Alpha\312\002$Google\\Cloud\\DiscoveryEngine\\V1" + + "alpha\352\002\'Google::Cloud::DiscoveryEngine::" + + "V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -249,7 +250,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_Engine_ChatEngineConfig_AgentCreationConfig_descriptor, new java.lang.String[] { - "Business", "DefaultLanguageCode", "TimeZone", + "Business", "DefaultLanguageCode", "TimeZone", "Location", }); internal_static_google_cloud_discoveryengine_v1alpha_Engine_CommonConfig_descriptor = internal_static_google_cloud_discoveryengine_v1alpha_Engine_descriptor diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceProto.java new file mode 100644 index 000000000000..a19c6d23e866 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateBillingServiceProto.java @@ -0,0 +1,202 @@ +/* + * 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/discoveryengine/v1alpha/estimate_billing_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public final class EstimateBillingServiceProto { + private EstimateBillingServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_EstimatorUriPattern_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_EstimatorUriPattern_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_FileDataSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_FileDataSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nCgoogle/cloud/discoveryengine/v1alpha/e" + + "stimate_billing_service.proto\022$google.cl" + + "oud.discoveryengine.v1alpha\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\0328google/cloud/dis" + + "coveryengine/v1alpha/import_config.proto" + + "\032#google/longrunning/operations.proto\032\037g" + + "oogle/protobuf/timestamp.proto\"\370\005\n\027Estim" + + "ateDataSizeRequest\022n\n\023website_data_sourc" + + "e\030\002 \001(\0132O.google.cloud.discoveryengine.v" + + "1alpha.EstimateDataSizeRequest.WebsiteDa" + + "taSourceH\000\022h\n\020file_data_source\030\003 \001(\0132L.g" + + "oogle.cloud.discoveryengine.v1alpha.Esti" + + "mateDataSizeRequest.FileDataSourceH\000\022A\n\010" + + "location\030\001 \001(\tB/\340A\002\372A)\n\'discoveryengine." + + "googleapis.com/Location\032\373\001\n\021WebsiteDataS" + + "ource\022\210\001\n\026estimator_uri_patterns\030\001 \003(\0132c" + + ".google.cloud.discoveryengine.v1alpha.Es" + + "timateDataSizeRequest.WebsiteDataSource." + + "EstimatorUriPatternB\003\340A\002\032[\n\023EstimatorUri" + + "Pattern\022\034\n\024provided_uri_pattern\030\001 \001(\t\022\023\n" + + "\013exact_match\030\002 \001(\010\022\021\n\texclusive\030\003 \001(\010\032\262\001" + + "\n\016FileDataSource\022E\n\ngcs_source\030\001 \001(\0132/.g" + + "oogle.cloud.discoveryengine.v1alpha.GcsS" + + "ourceH\000\022O\n\017bigquery_source\030\002 \001(\01324.googl" + + "e.cloud.discoveryengine.v1alpha.BigQuery" + + "SourceH\000B\010\n\006sourceB\r\n\013data_source\"K\n\030Est" + + "imateDataSizeResponse\022\027\n\017data_size_bytes" + + "\030\001 \001(\003\022\026\n\016document_count\030\002 \001(\003\"K\n\030Estima" + + "teDataSizeMetadata\022/\n\013create_time\030\001 \001(\0132" + + "\032.google.protobuf.Timestamp2\251\003\n\026Estimate" + + "BillingService\022\272\002\n\020EstimateDataSize\022=.go" + + "ogle.cloud.discoveryengine.v1alpha.Estim" + + "ateDataSizeRequest\032\035.google.longrunning." + + "Operation\"\307\001\312A~\n=google.cloud.discoverye" + + "ngine.v1alpha.EstimateDataSizeResponse\022=" + + "google.cloud.discoveryengine.v1alpha.Est" + + "imateDataSizeMetadata\202\323\344\223\002@\";/v1alpha/{l" + + "ocation=projects/*/locations/*}:estimate" + + "DataSize:\001*\032R\312A\036discoveryengine.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\247\002\n(com.google.cloud.dis" + + "coveryengine.v1alphaB\033EstimateBillingSer" + + "viceProtoP\001ZRcloud.google.com/go/discove" + + "ryengine/apiv1alpha/discoveryenginepb;di" + + "scoveryenginepb\242\002\017DISCOVERYENGINE\252\002$Goog" + + "le.Cloud.DiscoveryEngine.V1Alpha\312\002$Googl" + + "e\\Cloud\\DiscoveryEngine\\V1alpha\352\002\'Google" + + "::Cloud::DiscoveryEngine::V1alphab\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_descriptor, + new java.lang.String[] { + "WebsiteDataSource", "FileDataSource", "Location", "DataSource", + }); + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_descriptor, + new java.lang.String[] { + "EstimatorUriPatterns", + }); + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_EstimatorUriPattern_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_EstimatorUriPattern_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_EstimatorUriPattern_descriptor, + new java.lang.String[] { + "ProvidedUriPattern", "ExactMatch", "Exclusive", + }); + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_FileDataSource_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_FileDataSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_FileDataSource_descriptor, + new java.lang.String[] { + "GcsSource", "BigquerySource", "Source", + }); + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeResponse_descriptor, + new java.lang.String[] { + "DataSizeBytes", "DocumentCount", + }); + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeMetadata.java new file mode 100644 index 000000000000..6a0f66305464 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeMetadata.java @@ -0,0 +1,729 @@ +/* + * 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/discoveryengine/v1alpha/estimate_billing_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Metadata related to the progress of the EstimateDataSize operation. This is
                                + * returned by the google.longrunning.Operation.metadata field.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata} + */ +public final class EstimateDataSizeMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata) + EstimateDataSizeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use EstimateDataSizeMetadata.newBuilder() to construct. + private EstimateDataSizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EstimateDataSizeMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EstimateDataSizeMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata.class, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + 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, getCreateTime()); + } + 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, getCreateTime()); + } + 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.discoveryengine.v1alpha.EstimateDataSizeMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata other = + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata 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.discoveryengine.v1alpha.EstimateDataSizeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata 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.discoveryengine.v1alpha.EstimateDataSizeMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata 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.discoveryengine.v1alpha.EstimateDataSizeMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata + 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.discoveryengine.v1alpha.EstimateDataSizeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata 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.discoveryengine.v1alpha.EstimateDataSizeMetadata 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 related to the progress of the EstimateDataSize operation. This is
                                +   * returned by the google.longrunning.Operation.metadata field.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata) + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata.class, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata build() { + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata buildPartial() { + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata result = + new com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1alpha.EstimateDataSizeMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + 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(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + @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.discoveryengine.v1alpha.EstimateDataSizeMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata) + private static final com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata(); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EstimateDataSizeMetadata 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.discoveryengine.v1alpha.EstimateDataSizeMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeMetadataOrBuilder.java new file mode 100644 index 000000000000..1694f5cc55e2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeMetadataOrBuilder.java @@ -0,0 +1,61 @@ +/* + * 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/discoveryengine/v1alpha/estimate_billing_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface EstimateDataSizeMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeRequest.java new file mode 100644 index 000000000000..c9d757ee22e9 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeRequest.java @@ -0,0 +1,4801 @@ +/* + * 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/discoveryengine/v1alpha/estimate_billing_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Request message for
                                + * [EstimateBillingService.EstimateDataSize][google.cloud.discoveryengine.v1alpha.EstimateBillingService.EstimateDataSize]
                                + * method
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest} + */ +public final class EstimateDataSizeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest) + EstimateDataSizeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use EstimateDataSizeRequest.newBuilder() to construct. + private EstimateDataSizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EstimateDataSizeRequest() { + location_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EstimateDataSizeRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.class, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.Builder.class); + } + + public interface WebsiteDataSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +     * Required. The URI patterns to estimate the data sizes. At most 10
                                +     * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern> + getEstimatorUriPatternsList(); + /** + * + * + *
                                +     * Required. The URI patterns to estimate the data sizes. At most 10
                                +     * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + getEstimatorUriPatterns(int index); + /** + * + * + *
                                +     * Required. The URI patterns to estimate the data sizes. At most 10
                                +     * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getEstimatorUriPatternsCount(); + /** + * + * + *
                                +     * Required. The URI patterns to estimate the data sizes. At most 10
                                +     * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPatternOrBuilder> + getEstimatorUriPatternsOrBuilderList(); + /** + * + * + *
                                +     * Required. The URI patterns to estimate the data sizes. At most 10
                                +     * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPatternOrBuilder + getEstimatorUriPatternsOrBuilder(int index); + } + /** + * + * + *
                                +   * Data source is a set of website patterns that we crawl to get
                                +   * the total number of websites.
                                +   * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource} + */ + public static final class WebsiteDataSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource) + WebsiteDataSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use WebsiteDataSource.newBuilder() to construct. + private WebsiteDataSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WebsiteDataSource() { + estimatorUriPatterns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WebsiteDataSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .class, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .Builder.class); + } + + public interface EstimatorUriPatternOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +       * User provided URI pattern. For example, `foo.com/bar/*`.
                                +       * 
                                + * + * string provided_uri_pattern = 1; + * + * @return The providedUriPattern. + */ + java.lang.String getProvidedUriPattern(); + /** + * + * + *
                                +       * User provided URI pattern. For example, `foo.com/bar/*`.
                                +       * 
                                + * + * string provided_uri_pattern = 1; + * + * @return The bytes for providedUriPattern. + */ + com.google.protobuf.ByteString getProvidedUriPatternBytes(); + + /** + * + * + *
                                +       * Whether we infer the generated URI or use the exact provided one.
                                +       * 
                                + * + * bool exact_match = 2; + * + * @return The exactMatch. + */ + boolean getExactMatch(); + + /** + * + * + *
                                +       * Whether the pattern is exclusive or not. If set to true, the pattern is
                                +       * considered exclusive. If unset or set to false, the pattern is
                                +       * considered inclusive by default.
                                +       * 
                                + * + * bool exclusive = 3; + * + * @return The exclusive. + */ + boolean getExclusive(); + } + /** + * + * + *
                                +     * URI patterns that we use to crawl.
                                +     * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern} + */ + public static final class EstimatorUriPattern extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern) + EstimatorUriPatternOrBuilder { + private static final long serialVersionUID = 0L; + // Use EstimatorUriPattern.newBuilder() to construct. + private EstimatorUriPattern(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EstimatorUriPattern() { + providedUriPattern_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EstimatorUriPattern(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_EstimatorUriPattern_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_EstimatorUriPattern_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.class, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.Builder.class); + } + + public static final int PROVIDED_URI_PATTERN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object providedUriPattern_ = ""; + /** + * + * + *
                                +       * User provided URI pattern. For example, `foo.com/bar/*`.
                                +       * 
                                + * + * string provided_uri_pattern = 1; + * + * @return The providedUriPattern. + */ + @java.lang.Override + public java.lang.String getProvidedUriPattern() { + java.lang.Object ref = providedUriPattern_; + 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(); + providedUriPattern_ = s; + return s; + } + } + /** + * + * + *
                                +       * User provided URI pattern. For example, `foo.com/bar/*`.
                                +       * 
                                + * + * string provided_uri_pattern = 1; + * + * @return The bytes for providedUriPattern. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProvidedUriPatternBytes() { + java.lang.Object ref = providedUriPattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + providedUriPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXACT_MATCH_FIELD_NUMBER = 2; + private boolean exactMatch_ = false; + /** + * + * + *
                                +       * Whether we infer the generated URI or use the exact provided one.
                                +       * 
                                + * + * bool exact_match = 2; + * + * @return The exactMatch. + */ + @java.lang.Override + public boolean getExactMatch() { + return exactMatch_; + } + + public static final int EXCLUSIVE_FIELD_NUMBER = 3; + private boolean exclusive_ = false; + /** + * + * + *
                                +       * Whether the pattern is exclusive or not. If set to true, the pattern is
                                +       * considered exclusive. If unset or set to false, the pattern is
                                +       * considered inclusive by default.
                                +       * 
                                + * + * bool exclusive = 3; + * + * @return The exclusive. + */ + @java.lang.Override + public boolean getExclusive() { + return exclusive_; + } + + 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(providedUriPattern_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, providedUriPattern_); + } + if (exactMatch_ != false) { + output.writeBool(2, exactMatch_); + } + if (exclusive_ != false) { + output.writeBool(3, exclusive_); + } + 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(providedUriPattern_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, providedUriPattern_); + } + if (exactMatch_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, exactMatch_); + } + if (exclusive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, exclusive_); + } + 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.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + other = + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern) + obj; + + if (!getProvidedUriPattern().equals(other.getProvidedUriPattern())) return false; + if (getExactMatch() != other.getExactMatch()) return false; + if (getExclusive() != other.getExclusive()) 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) + PROVIDED_URI_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getProvidedUriPattern().hashCode(); + hash = (37 * hash) + EXACT_MATCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExactMatch()); + hash = (37 * hash) + EXCLUSIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExclusive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern + 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.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern + 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.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern + 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.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern + 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.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern + 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.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + 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; + } + /** + * + * + *
                                +       * URI patterns that we use to crawl.
                                +       * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern) + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPatternOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_EstimatorUriPattern_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_EstimatorUriPattern_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.class, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + providedUriPattern_ = ""; + exactMatch_ = false; + exclusive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_EstimatorUriPattern_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + build() { + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + result = + new com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.providedUriPattern_ = providedUriPattern_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.exactMatch_ = exactMatch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.exclusive_ = exclusive_; + } + } + + @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.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.getDefaultInstance()) return this; + if (!other.getProvidedUriPattern().isEmpty()) { + providedUriPattern_ = other.providedUriPattern_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getExactMatch() != false) { + setExactMatch(other.getExactMatch()); + } + if (other.getExclusive() != false) { + setExclusive(other.getExclusive()); + } + 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: + { + providedUriPattern_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + exactMatch_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + exclusive_ = input.readBool(); + 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 java.lang.Object providedUriPattern_ = ""; + /** + * + * + *
                                +         * User provided URI pattern. For example, `foo.com/bar/*`.
                                +         * 
                                + * + * string provided_uri_pattern = 1; + * + * @return The providedUriPattern. + */ + public java.lang.String getProvidedUriPattern() { + java.lang.Object ref = providedUriPattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + providedUriPattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +         * User provided URI pattern. For example, `foo.com/bar/*`.
                                +         * 
                                + * + * string provided_uri_pattern = 1; + * + * @return The bytes for providedUriPattern. + */ + public com.google.protobuf.ByteString getProvidedUriPatternBytes() { + java.lang.Object ref = providedUriPattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + providedUriPattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +         * User provided URI pattern. For example, `foo.com/bar/*`.
                                +         * 
                                + * + * string provided_uri_pattern = 1; + * + * @param value The providedUriPattern to set. + * @return This builder for chaining. + */ + public Builder setProvidedUriPattern(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + providedUriPattern_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +         * User provided URI pattern. For example, `foo.com/bar/*`.
                                +         * 
                                + * + * string provided_uri_pattern = 1; + * + * @return This builder for chaining. + */ + public Builder clearProvidedUriPattern() { + providedUriPattern_ = getDefaultInstance().getProvidedUriPattern(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +         * User provided URI pattern. For example, `foo.com/bar/*`.
                                +         * 
                                + * + * string provided_uri_pattern = 1; + * + * @param value The bytes for providedUriPattern to set. + * @return This builder for chaining. + */ + public Builder setProvidedUriPatternBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + providedUriPattern_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean exactMatch_; + /** + * + * + *
                                +         * Whether we infer the generated URI or use the exact provided one.
                                +         * 
                                + * + * bool exact_match = 2; + * + * @return The exactMatch. + */ + @java.lang.Override + public boolean getExactMatch() { + return exactMatch_; + } + /** + * + * + *
                                +         * Whether we infer the generated URI or use the exact provided one.
                                +         * 
                                + * + * bool exact_match = 2; + * + * @param value The exactMatch to set. + * @return This builder for chaining. + */ + public Builder setExactMatch(boolean value) { + + exactMatch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +         * Whether we infer the generated URI or use the exact provided one.
                                +         * 
                                + * + * bool exact_match = 2; + * + * @return This builder for chaining. + */ + public Builder clearExactMatch() { + bitField0_ = (bitField0_ & ~0x00000002); + exactMatch_ = false; + onChanged(); + return this; + } + + private boolean exclusive_; + /** + * + * + *
                                +         * Whether the pattern is exclusive or not. If set to true, the pattern is
                                +         * considered exclusive. If unset or set to false, the pattern is
                                +         * considered inclusive by default.
                                +         * 
                                + * + * bool exclusive = 3; + * + * @return The exclusive. + */ + @java.lang.Override + public boolean getExclusive() { + return exclusive_; + } + /** + * + * + *
                                +         * Whether the pattern is exclusive or not. If set to true, the pattern is
                                +         * considered exclusive. If unset or set to false, the pattern is
                                +         * considered inclusive by default.
                                +         * 
                                + * + * bool exclusive = 3; + * + * @param value The exclusive to set. + * @return This builder for chaining. + */ + public Builder setExclusive(boolean value) { + + exclusive_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +         * Whether the pattern is exclusive or not. If set to true, the pattern is
                                +         * considered exclusive. If unset or set to false, the pattern is
                                +         * considered inclusive by default.
                                +         * 
                                + * + * bool exclusive = 3; + * + * @return This builder for chaining. + */ + public Builder clearExclusive() { + bitField0_ = (bitField0_ & ~0x00000004); + exclusive_ = 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.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern) + private static final com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern(); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EstimatorUriPattern 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.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int ESTIMATOR_URI_PATTERNS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern> + estimatorUriPatterns_; + /** + * + * + *
                                +     * Required. The URI patterns to estimate the data sizes. At most 10
                                +     * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern> + getEstimatorUriPatternsList() { + return estimatorUriPatterns_; + } + /** + * + * + *
                                +     * Required. The URI patterns to estimate the data sizes. At most 10
                                +     * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPatternOrBuilder> + getEstimatorUriPatternsOrBuilderList() { + return estimatorUriPatterns_; + } + /** + * + * + *
                                +     * Required. The URI patterns to estimate the data sizes. At most 10
                                +     * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getEstimatorUriPatternsCount() { + return estimatorUriPatterns_.size(); + } + /** + * + * + *
                                +     * Required. The URI patterns to estimate the data sizes. At most 10
                                +     * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + getEstimatorUriPatterns(int index) { + return estimatorUriPatterns_.get(index); + } + /** + * + * + *
                                +     * Required. The URI patterns to estimate the data sizes. At most 10
                                +     * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPatternOrBuilder + getEstimatorUriPatternsOrBuilder(int index) { + return estimatorUriPatterns_.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 < estimatorUriPatterns_.size(); i++) { + output.writeMessage(1, estimatorUriPatterns_.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 < estimatorUriPatterns_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, estimatorUriPatterns_.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.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource other = + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource) obj; + + if (!getEstimatorUriPatternsList().equals(other.getEstimatorUriPatternsList())) 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 (getEstimatorUriPatternsCount() > 0) { + hash = (37 * hash) + ESTIMATOR_URI_PATTERNS_FIELD_NUMBER; + hash = (53 * hash) + getEstimatorUriPatternsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + 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.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + 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.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + 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.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + 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.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + 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.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + 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; + } + /** + * + * + *
                                +     * Data source is a set of website patterns that we crawl to get
                                +     * the total number of websites.
                                +     * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource) + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .class, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (estimatorUriPatternsBuilder_ == null) { + estimatorUriPatterns_ = java.util.Collections.emptyList(); + } else { + estimatorUriPatterns_ = null; + estimatorUriPatternsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_WebsiteDataSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + build() { + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource result = + new com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + result) { + if (estimatorUriPatternsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + estimatorUriPatterns_ = java.util.Collections.unmodifiableList(estimatorUriPatterns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.estimatorUriPatterns_ = estimatorUriPatterns_; + } else { + result.estimatorUriPatterns_ = estimatorUriPatternsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + result) { + int from_bitField0_ = bitField0_; + } + + @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.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .getDefaultInstance()) return this; + if (estimatorUriPatternsBuilder_ == null) { + if (!other.estimatorUriPatterns_.isEmpty()) { + if (estimatorUriPatterns_.isEmpty()) { + estimatorUriPatterns_ = other.estimatorUriPatterns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEstimatorUriPatternsIsMutable(); + estimatorUriPatterns_.addAll(other.estimatorUriPatterns_); + } + onChanged(); + } + } else { + if (!other.estimatorUriPatterns_.isEmpty()) { + if (estimatorUriPatternsBuilder_.isEmpty()) { + estimatorUriPatternsBuilder_.dispose(); + estimatorUriPatternsBuilder_ = null; + estimatorUriPatterns_ = other.estimatorUriPatterns_; + bitField0_ = (bitField0_ & ~0x00000001); + estimatorUriPatternsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEstimatorUriPatternsFieldBuilder() + : null; + } else { + estimatorUriPatternsBuilder_.addAllMessages(other.estimatorUriPatterns_); + } + } + } + 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: + { + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern.parser(), + extensionRegistry); + if (estimatorUriPatternsBuilder_ == null) { + ensureEstimatorUriPatternsIsMutable(); + estimatorUriPatterns_.add(m); + } else { + estimatorUriPatternsBuilder_.addMessage(m); + } + 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.util.List< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern> + estimatorUriPatterns_ = java.util.Collections.emptyList(); + + private void ensureEstimatorUriPatternsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + estimatorUriPatterns_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern>(estimatorUriPatterns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.Builder, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPatternOrBuilder> + estimatorUriPatternsBuilder_; + + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern> + getEstimatorUriPatternsList() { + if (estimatorUriPatternsBuilder_ == null) { + return java.util.Collections.unmodifiableList(estimatorUriPatterns_); + } else { + return estimatorUriPatternsBuilder_.getMessageList(); + } + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getEstimatorUriPatternsCount() { + if (estimatorUriPatternsBuilder_ == null) { + return estimatorUriPatterns_.size(); + } else { + return estimatorUriPatternsBuilder_.getCount(); + } + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + getEstimatorUriPatterns(int index) { + if (estimatorUriPatternsBuilder_ == null) { + return estimatorUriPatterns_.get(index); + } else { + return estimatorUriPatternsBuilder_.getMessage(index); + } + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEstimatorUriPatterns( + int index, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + value) { + if (estimatorUriPatternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEstimatorUriPatternsIsMutable(); + estimatorUriPatterns_.set(index, value); + onChanged(); + } else { + estimatorUriPatternsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEstimatorUriPatterns( + int index, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.Builder + builderForValue) { + if (estimatorUriPatternsBuilder_ == null) { + ensureEstimatorUriPatternsIsMutable(); + estimatorUriPatterns_.set(index, builderForValue.build()); + onChanged(); + } else { + estimatorUriPatternsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEstimatorUriPatterns( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + value) { + if (estimatorUriPatternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEstimatorUriPatternsIsMutable(); + estimatorUriPatterns_.add(value); + onChanged(); + } else { + estimatorUriPatternsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEstimatorUriPatterns( + int index, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern + value) { + if (estimatorUriPatternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEstimatorUriPatternsIsMutable(); + estimatorUriPatterns_.add(index, value); + onChanged(); + } else { + estimatorUriPatternsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEstimatorUriPatterns( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.Builder + builderForValue) { + if (estimatorUriPatternsBuilder_ == null) { + ensureEstimatorUriPatternsIsMutable(); + estimatorUriPatterns_.add(builderForValue.build()); + onChanged(); + } else { + estimatorUriPatternsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEstimatorUriPatterns( + int index, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.Builder + builderForValue) { + if (estimatorUriPatternsBuilder_ == null) { + ensureEstimatorUriPatternsIsMutable(); + estimatorUriPatterns_.add(index, builderForValue.build()); + onChanged(); + } else { + estimatorUriPatternsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllEstimatorUriPatterns( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.EstimatorUriPattern> + values) { + if (estimatorUriPatternsBuilder_ == null) { + ensureEstimatorUriPatternsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, estimatorUriPatterns_); + onChanged(); + } else { + estimatorUriPatternsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEstimatorUriPatterns() { + if (estimatorUriPatternsBuilder_ == null) { + estimatorUriPatterns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + estimatorUriPatternsBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeEstimatorUriPatterns(int index) { + if (estimatorUriPatternsBuilder_ == null) { + ensureEstimatorUriPatternsIsMutable(); + estimatorUriPatterns_.remove(index); + onChanged(); + } else { + estimatorUriPatternsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.Builder + getEstimatorUriPatternsBuilder(int index) { + return getEstimatorUriPatternsFieldBuilder().getBuilder(index); + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPatternOrBuilder + getEstimatorUriPatternsOrBuilder(int index) { + if (estimatorUriPatternsBuilder_ == null) { + return estimatorUriPatterns_.get(index); + } else { + return estimatorUriPatternsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPatternOrBuilder> + getEstimatorUriPatternsOrBuilderList() { + if (estimatorUriPatternsBuilder_ != null) { + return estimatorUriPatternsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(estimatorUriPatterns_); + } + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.Builder + addEstimatorUriPatternsBuilder() { + return getEstimatorUriPatternsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.getDefaultInstance()); + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.Builder + addEstimatorUriPatternsBuilder(int index) { + return getEstimatorUriPatternsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.getDefaultInstance()); + } + /** + * + * + *
                                +       * Required. The URI patterns to estimate the data sizes. At most 10
                                +       * patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.EstimatorUriPattern estimator_uri_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.Builder> + getEstimatorUriPatternsBuilderList() { + return getEstimatorUriPatternsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.Builder, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPatternOrBuilder> + getEstimatorUriPatternsFieldBuilder() { + if (estimatorUriPatternsBuilder_ == null) { + estimatorUriPatternsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPattern.Builder, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .EstimatorUriPatternOrBuilder>( + estimatorUriPatterns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + estimatorUriPatterns_ = null; + } + return estimatorUriPatternsBuilder_; + } + + @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.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource) + private static final com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource(); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebsiteDataSource 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.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FileDataSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + * + * @return The gcsSource. + */ + com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource(); + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + */ + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + /** + * + * + *
                                +     * BigQuery input source.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + * + * @return Whether the bigquerySource field is set. + */ + boolean hasBigquerySource(); + /** + * + * + *
                                +     * BigQuery input source.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + * + * @return The bigquerySource. + */ + com.google.cloud.discoveryengine.v1alpha.BigQuerySource getBigquerySource(); + /** + * + * + *
                                +     * BigQuery input source.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + */ + com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder getBigquerySourceOrBuilder(); + + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource.SourceCase + getSourceCase(); + } + /** + * + * + *
                                +   * Data source contains files either in Cloud Storage or BigQuery.
                                +   * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource} + */ + public static final class FileDataSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) + FileDataSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use FileDataSource.newBuilder() to construct. + private FileDataSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FileDataSource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FileDataSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_FileDataSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_FileDataSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource.class, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + .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 { + GCS_SOURCE(1), + BIGQUERY_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 GCS_SOURCE; + case 2: + return BIGQUERY_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 GCS_SOURCE_FIELD_NUMBER = 1; + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 1; + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource() { + if (sourceCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (sourceCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + + public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 2; + /** + * + * + *
                                +     * BigQuery input source.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + * + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return sourceCase_ == 2; + } + /** + * + * + *
                                +     * BigQuery input source.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + * + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource getBigquerySource() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + /** + * + * + *
                                +     * BigQuery input source.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder + getBigquerySourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.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.discoveryengine.v1alpha.GcsSource) source_); + } + if (sourceCase_ == 2) { + output.writeMessage(2, (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) 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.discoveryengine.v1alpha.GcsSource) source_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) 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.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource other = + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) obj; + + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 1: + if (!getGcsSource().equals(other.getGcsSource())) return false; + break; + case 2: + if (!getBigquerySource().equals(other.getBigquerySource())) 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) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 2: + hash = (37 * hash) + BIGQUERY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getBigquerySource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + 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.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + 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.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + 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.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + 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.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + 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.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource 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; + } + /** + * + * + *
                                +     * Data source contains files either in Cloud Storage or BigQuery.
                                +     * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_FileDataSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_FileDataSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + .class, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.clear(); + } + if (bigquerySourceBuilder_ != null) { + bigquerySourceBuilder_.clear(); + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_FileDataSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + build() { + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource result = + new com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 1 && gcsSourceBuilder_ != null) { + result.source_ = gcsSourceBuilder_.build(); + } + if (sourceCase_ == 2 && bigquerySourceBuilder_ != null) { + result.source_ = bigquerySourceBuilder_.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.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + .getDefaultInstance()) return this; + switch (other.getSourceCase()) { + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case BIGQUERY_SOURCE: + { + mergeBigquerySource(other.getBigquerySource()); + 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(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getBigquerySourceFieldBuilder().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.discoveryengine.v1alpha.GcsSource, + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
                                +       * Cloud Storage location for the input content.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 1; + } + /** + * + * + *
                                +       * Cloud Storage location for the input content.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } else { + if (sourceCase_ == 1) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * Cloud Storage location for the input content.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + */ + public Builder setGcsSource(com.google.cloud.discoveryengine.v1alpha.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
                                +       * Cloud Storage location for the input content.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + */ + public Builder setGcsSource( + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
                                +       * Cloud Storage location for the input content.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + */ + public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1alpha.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 1 + && source_ + != com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1alpha.GcsSource.newBuilder( + (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 1) { + gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 1; + return this; + } + /** + * + * + *
                                +       * Cloud Storage location for the input content.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +       * Cloud Storage location for the input content.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +       * Cloud Storage location for the input content.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if ((sourceCase_ == 1) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 1) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * Cloud Storage location for the input content.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(sourceCase_ == 1)) { + source_ = com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 1; + onChanged(); + return gcsSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.BigQuerySource, + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder, + com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder> + bigquerySourceBuilder_; + /** + * + * + *
                                +       * BigQuery input source.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + * + * @return Whether the bigquerySource field is set. + */ + @java.lang.Override + public boolean hasBigquerySource() { + return sourceCase_ == 2; + } + /** + * + * + *
                                +       * BigQuery input source.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + * + * @return The bigquerySource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource getBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return bigquerySourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * BigQuery input source.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + */ + public Builder setBigquerySource( + com.google.cloud.discoveryengine.v1alpha.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
                                +       * BigQuery input source.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + */ + public Builder setBigquerySource( + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder builderForValue) { + if (bigquerySourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + bigquerySourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
                                +       * BigQuery input source.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + */ + public Builder mergeBigquerySource( + com.google.cloud.discoveryengine.v1alpha.BigQuerySource value) { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ + != com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.newBuilder( + (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + bigquerySourceBuilder_.mergeFrom(value); + } else { + bigquerySourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
                                +       * BigQuery input source.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + */ + public Builder clearBigquerySource() { + if (bigquerySourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + bigquerySourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +       * BigQuery input source.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + */ + public com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder + getBigquerySourceBuilder() { + return getBigquerySourceFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +       * BigQuery input source.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder + getBigquerySourceOrBuilder() { + if ((sourceCase_ == 2) && (bigquerySourceBuilder_ != null)) { + return bigquerySourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * BigQuery input source.
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.BigQuerySource bigquery_source = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.BigQuerySource, + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder, + com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder> + getBigquerySourceFieldBuilder() { + if (bigquerySourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = com.google.cloud.discoveryengine.v1alpha.BigQuerySource.getDefaultInstance(); + } + bigquerySourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.BigQuerySource, + com.google.cloud.discoveryengine.v1alpha.BigQuerySource.Builder, + com.google.cloud.discoveryengine.v1alpha.BigQuerySourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.BigQuerySource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return bigquerySourceBuilder_; + } + + @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.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) + private static final com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .FileDataSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource(); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FileDataSource 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.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int dataSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object dataSource_; + + public enum DataSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + WEBSITE_DATA_SOURCE(2), + FILE_DATA_SOURCE(3), + DATASOURCE_NOT_SET(0); + private final int value; + + private DataSourceCase(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 DataSourceCase valueOf(int value) { + return forNumber(value); + } + + public static DataSourceCase forNumber(int value) { + switch (value) { + case 2: + return WEBSITE_DATA_SOURCE; + case 3: + return FILE_DATA_SOURCE; + case 0: + return DATASOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataSourceCase getDataSourceCase() { + return DataSourceCase.forNumber(dataSourceCase_); + } + + public static final int WEBSITE_DATA_SOURCE_FIELD_NUMBER = 2; + /** + * + * + *
                                +   * Website data.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + * + * @return Whether the websiteDataSource field is set. + */ + @java.lang.Override + public boolean hasWebsiteDataSource() { + return dataSourceCase_ == 2; + } + /** + * + * + *
                                +   * Website data.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + * + * @return The websiteDataSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + getWebsiteDataSource() { + if (dataSourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource) + dataSource_; + } + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .getDefaultInstance(); + } + /** + * + * + *
                                +   * Website data.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSourceOrBuilder + getWebsiteDataSourceOrBuilder() { + if (dataSourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource) + dataSource_; + } + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .getDefaultInstance(); + } + + public static final int FILE_DATA_SOURCE_FIELD_NUMBER = 3; + /** + * + * + *
                                +   * Structured or unstructured data.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + * + * @return Whether the fileDataSource field is set. + */ + @java.lang.Override + public boolean hasFileDataSource() { + return dataSourceCase_ == 3; + } + /** + * + * + *
                                +   * Structured or unstructured data.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + * + * @return The fileDataSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + getFileDataSource() { + if (dataSourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) + dataSource_; + } + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + .getDefaultInstance(); + } + /** + * + * + *
                                +   * Structured or unstructured data.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSourceOrBuilder + getFileDataSourceOrBuilder() { + if (dataSourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) + dataSource_; + } + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + .getDefaultInstance(); + } + + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + /** + * + * + *
                                +   * Required. Full resource name of the location, such as
                                +   * `projects/{project}/locations/{location}`.
                                +   * 
                                + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; + } + } + /** + * + * + *
                                +   * Required. Full resource name of the location, such as
                                +   * `projects/{project}/locations/{location}`.
                                +   * 
                                + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = 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(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); + } + if (dataSourceCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource) + dataSource_); + } + if (dataSourceCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) + dataSource_); + } + 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(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); + } + if (dataSourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource) + dataSource_); + } + if (dataSourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) + dataSource_); + } + 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.discoveryengine.v1alpha.EstimateDataSizeRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest other = + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest) obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (!getDataSourceCase().equals(other.getDataSourceCase())) return false; + switch (dataSourceCase_) { + case 2: + if (!getWebsiteDataSource().equals(other.getWebsiteDataSource())) return false; + break; + case 3: + if (!getFileDataSource().equals(other.getFileDataSource())) 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) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + switch (dataSourceCase_) { + case 2: + hash = (37 * hash) + WEBSITE_DATA_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getWebsiteDataSource().hashCode(); + break; + case 3: + hash = (37 * hash) + FILE_DATA_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getFileDataSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest 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.discoveryengine.v1alpha.EstimateDataSizeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest 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.discoveryengine.v1alpha.EstimateDataSizeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest 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.discoveryengine.v1alpha.EstimateDataSizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest 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.discoveryengine.v1alpha.EstimateDataSizeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest 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.discoveryengine.v1alpha.EstimateDataSizeRequest 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
                                +   * [EstimateBillingService.EstimateDataSize][google.cloud.discoveryengine.v1alpha.EstimateBillingService.EstimateDataSize]
                                +   * method
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest) + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.class, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (websiteDataSourceBuilder_ != null) { + websiteDataSourceBuilder_.clear(); + } + if (fileDataSourceBuilder_ != null) { + fileDataSourceBuilder_.clear(); + } + location_ = ""; + dataSourceCase_ = 0; + dataSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest build() { + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest result = + new com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.location_ = location_; + } + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest result) { + result.dataSourceCase_ = dataSourceCase_; + result.dataSource_ = this.dataSource_; + if (dataSourceCase_ == 2 && websiteDataSourceBuilder_ != null) { + result.dataSource_ = websiteDataSourceBuilder_.build(); + } + if (dataSourceCase_ == 3 && fileDataSourceBuilder_ != null) { + result.dataSource_ = fileDataSourceBuilder_.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.discoveryengine.v1alpha.EstimateDataSizeRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.getDefaultInstance()) + return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getDataSourceCase()) { + case WEBSITE_DATA_SOURCE: + { + mergeWebsiteDataSource(other.getWebsiteDataSource()); + break; + } + case FILE_DATA_SOURCE: + { + mergeFileDataSource(other.getFileDataSource()); + break; + } + case DATASOURCE_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: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage( + getWebsiteDataSourceFieldBuilder().getBuilder(), extensionRegistry); + dataSourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getFileDataSourceFieldBuilder().getBuilder(), extensionRegistry); + dataSourceCase_ = 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 dataSourceCase_ = 0; + private java.lang.Object dataSource_; + + public DataSourceCase getDataSourceCase() { + return DataSourceCase.forNumber(dataSourceCase_); + } + + public Builder clearDataSource() { + dataSourceCase_ = 0; + dataSource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .Builder, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSourceOrBuilder> + websiteDataSourceBuilder_; + /** + * + * + *
                                +     * Website data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + * + * @return Whether the websiteDataSource field is set. + */ + @java.lang.Override + public boolean hasWebsiteDataSource() { + return dataSourceCase_ == 2; + } + /** + * + * + *
                                +     * Website data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + * + * @return The websiteDataSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + getWebsiteDataSource() { + if (websiteDataSourceBuilder_ == null) { + if (dataSourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource) + dataSource_; + } + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .getDefaultInstance(); + } else { + if (dataSourceCase_ == 2) { + return websiteDataSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .getDefaultInstance(); + } + } + /** + * + * + *
                                +     * Website data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + */ + public Builder setWebsiteDataSource( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource value) { + if (websiteDataSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSource_ = value; + onChanged(); + } else { + websiteDataSourceBuilder_.setMessage(value); + } + dataSourceCase_ = 2; + return this; + } + /** + * + * + *
                                +     * Website data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + */ + public Builder setWebsiteDataSource( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource.Builder + builderForValue) { + if (websiteDataSourceBuilder_ == null) { + dataSource_ = builderForValue.build(); + onChanged(); + } else { + websiteDataSourceBuilder_.setMessage(builderForValue.build()); + } + dataSourceCase_ = 2; + return this; + } + /** + * + * + *
                                +     * Website data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + */ + public Builder mergeWebsiteDataSource( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource value) { + if (websiteDataSourceBuilder_ == null) { + if (dataSourceCase_ == 2 + && dataSource_ + != com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource.getDefaultInstance()) { + dataSource_ = + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .newBuilder( + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource) + dataSource_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSource_ = value; + } + onChanged(); + } else { + if (dataSourceCase_ == 2) { + websiteDataSourceBuilder_.mergeFrom(value); + } else { + websiteDataSourceBuilder_.setMessage(value); + } + } + dataSourceCase_ = 2; + return this; + } + /** + * + * + *
                                +     * Website data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + */ + public Builder clearWebsiteDataSource() { + if (websiteDataSourceBuilder_ == null) { + if (dataSourceCase_ == 2) { + dataSourceCase_ = 0; + dataSource_ = null; + onChanged(); + } + } else { + if (dataSourceCase_ == 2) { + dataSourceCase_ = 0; + dataSource_ = null; + } + websiteDataSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +     * Website data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + */ + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .Builder + getWebsiteDataSourceBuilder() { + return getWebsiteDataSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Website data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSourceOrBuilder + getWebsiteDataSourceOrBuilder() { + if ((dataSourceCase_ == 2) && (websiteDataSourceBuilder_ != null)) { + return websiteDataSourceBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSource) + dataSource_; + } + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .getDefaultInstance(); + } + } + /** + * + * + *
                                +     * Website data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .Builder, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSourceOrBuilder> + getWebsiteDataSourceFieldBuilder() { + if (websiteDataSourceBuilder_ == null) { + if (!(dataSourceCase_ == 2)) { + dataSource_ = + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .getDefaultInstance(); + } + websiteDataSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + .Builder, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .WebsiteDataSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource) + dataSource_, + getParentForChildren(), + isClean()); + dataSource_ = null; + } + dataSourceCase_ = 2; + onChanged(); + return websiteDataSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource.Builder, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .FileDataSourceOrBuilder> + fileDataSourceBuilder_; + /** + * + * + *
                                +     * Structured or unstructured data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + * + * @return Whether the fileDataSource field is set. + */ + @java.lang.Override + public boolean hasFileDataSource() { + return dataSourceCase_ == 3; + } + /** + * + * + *
                                +     * Structured or unstructured data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + * + * @return The fileDataSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + getFileDataSource() { + if (fileDataSourceBuilder_ == null) { + if (dataSourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) + dataSource_; + } + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + .getDefaultInstance(); + } else { + if (dataSourceCase_ == 3) { + return fileDataSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + .getDefaultInstance(); + } + } + /** + * + * + *
                                +     * Structured or unstructured data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + */ + public Builder setFileDataSource( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource value) { + if (fileDataSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSource_ = value; + onChanged(); + } else { + fileDataSourceBuilder_.setMessage(value); + } + dataSourceCase_ = 3; + return this; + } + /** + * + * + *
                                +     * Structured or unstructured data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + */ + public Builder setFileDataSource( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource.Builder + builderForValue) { + if (fileDataSourceBuilder_ == null) { + dataSource_ = builderForValue.build(); + onChanged(); + } else { + fileDataSourceBuilder_.setMessage(builderForValue.build()); + } + dataSourceCase_ = 3; + return this; + } + /** + * + * + *
                                +     * Structured or unstructured data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + */ + public Builder mergeFileDataSource( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource value) { + if (fileDataSourceBuilder_ == null) { + if (dataSourceCase_ == 3 + && dataSource_ + != com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + .getDefaultInstance()) { + dataSource_ = + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + .newBuilder( + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .FileDataSource) + dataSource_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSource_ = value; + } + onChanged(); + } else { + if (dataSourceCase_ == 3) { + fileDataSourceBuilder_.mergeFrom(value); + } else { + fileDataSourceBuilder_.setMessage(value); + } + } + dataSourceCase_ = 3; + return this; + } + /** + * + * + *
                                +     * Structured or unstructured data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + */ + public Builder clearFileDataSource() { + if (fileDataSourceBuilder_ == null) { + if (dataSourceCase_ == 3) { + dataSourceCase_ = 0; + dataSource_ = null; + onChanged(); + } + } else { + if (dataSourceCase_ == 3) { + dataSourceCase_ = 0; + dataSource_ = null; + } + fileDataSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +     * Structured or unstructured data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + */ + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource.Builder + getFileDataSourceBuilder() { + return getFileDataSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Structured or unstructured data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSourceOrBuilder + getFileDataSourceOrBuilder() { + if ((dataSourceCase_ == 3) && (fileDataSourceBuilder_ != null)) { + return fileDataSourceBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) + dataSource_; + } + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + .getDefaultInstance(); + } + } + /** + * + * + *
                                +     * Structured or unstructured data.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource.Builder, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .FileDataSourceOrBuilder> + getFileDataSourceFieldBuilder() { + if (fileDataSourceBuilder_ == null) { + if (!(dataSourceCase_ == 3)) { + dataSource_ = + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + .getDefaultInstance(); + } + fileDataSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + .Builder, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + .FileDataSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource) + dataSource_, + getParentForChildren(), + isClean()); + dataSource_ = null; + } + dataSourceCase_ = 3; + onChanged(); + return fileDataSourceBuilder_; + } + + private java.lang.Object location_ = ""; + /** + * + * + *
                                +     * Required. Full resource name of the location, such as
                                +     * `projects/{project}/locations/{location}`.
                                +     * 
                                + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Required. Full resource name of the location, such as
                                +     * `projects/{project}/locations/{location}`.
                                +     * 
                                + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Required. Full resource name of the location, such as
                                +     * `projects/{project}/locations/{location}`.
                                +     * 
                                + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. Full resource name of the location, such as
                                +     * `projects/{project}/locations/{location}`.
                                +     * 
                                + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. Full resource name of the location, such as
                                +     * `projects/{project}/locations/{location}`.
                                +     * 
                                + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000004; + 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.discoveryengine.v1alpha.EstimateDataSizeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest) + private static final com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EstimateDataSizeRequest 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.discoveryengine.v1alpha.EstimateDataSizeRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeRequestOrBuilder.java new file mode 100644 index 000000000000..169203658b33 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * 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/discoveryengine/v1alpha/estimate_billing_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface EstimateDataSizeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Website data.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + * + * @return Whether the websiteDataSource field is set. + */ + boolean hasWebsiteDataSource(); + /** + * + * + *
                                +   * Website data.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + * + * @return The websiteDataSource. + */ + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource + getWebsiteDataSource(); + /** + * + * + *
                                +   * Website data.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSource website_data_source = 2; + * + */ + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.WebsiteDataSourceOrBuilder + getWebsiteDataSourceOrBuilder(); + + /** + * + * + *
                                +   * Structured or unstructured data.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + * + * @return Whether the fileDataSource field is set. + */ + boolean hasFileDataSource(); + /** + * + * + *
                                +   * Structured or unstructured data.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + * + * @return The fileDataSource. + */ + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource + getFileDataSource(); + /** + * + * + *
                                +   * Structured or unstructured data.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSource file_data_source = 3; + * + */ + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.FileDataSourceOrBuilder + getFileDataSourceOrBuilder(); + + /** + * + * + *
                                +   * Required. Full resource name of the location, such as
                                +   * `projects/{project}/locations/{location}`.
                                +   * 
                                + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
                                +   * Required. Full resource name of the location, such as
                                +   * `projects/{project}/locations/{location}`.
                                +   * 
                                + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest.DataSourceCase + getDataSourceCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeResponse.java new file mode 100644 index 000000000000..9365259adfc8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeResponse.java @@ -0,0 +1,642 @@ +/* + * 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/discoveryengine/v1alpha/estimate_billing_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Response of the EstimateDataSize request. If the long running
                                + * operation was successful, then this message is returned by the
                                + * google.longrunning.Operations.response field if the operation was successful.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse} + */ +public final class EstimateDataSizeResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse) + EstimateDataSizeResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use EstimateDataSizeResponse.newBuilder() to construct. + private EstimateDataSizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EstimateDataSizeResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EstimateDataSizeResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse.class, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse.Builder.class); + } + + public static final int DATA_SIZE_BYTES_FIELD_NUMBER = 1; + private long dataSizeBytes_ = 0L; + /** + * + * + *
                                +   * Data size in terms of bytes.
                                +   * 
                                + * + * int64 data_size_bytes = 1; + * + * @return The dataSizeBytes. + */ + @java.lang.Override + public long getDataSizeBytes() { + return dataSizeBytes_; + } + + public static final int DOCUMENT_COUNT_FIELD_NUMBER = 2; + private long documentCount_ = 0L; + /** + * + * + *
                                +   * Total number of documents.
                                +   * 
                                + * + * int64 document_count = 2; + * + * @return The documentCount. + */ + @java.lang.Override + public long getDocumentCount() { + return documentCount_; + } + + 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 (dataSizeBytes_ != 0L) { + output.writeInt64(1, dataSizeBytes_); + } + if (documentCount_ != 0L) { + output.writeInt64(2, documentCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataSizeBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, dataSizeBytes_); + } + if (documentCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, documentCount_); + } + 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.discoveryengine.v1alpha.EstimateDataSizeResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse other = + (com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse) obj; + + if (getDataSizeBytes() != other.getDataSizeBytes()) return false; + if (getDocumentCount() != other.getDocumentCount()) 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) + DATA_SIZE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDataSizeBytes()); + hash = (37 * hash) + DOCUMENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDocumentCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse 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.discoveryengine.v1alpha.EstimateDataSizeResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse 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.discoveryengine.v1alpha.EstimateDataSizeResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse 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.discoveryengine.v1alpha.EstimateDataSizeResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse + 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.discoveryengine.v1alpha.EstimateDataSizeResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse 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.discoveryengine.v1alpha.EstimateDataSizeResponse 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 of the EstimateDataSize request. If the long running
                                +   * operation was successful, then this message is returned by the
                                +   * google.longrunning.Operations.response field if the operation was successful.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse) + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse.class, + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataSizeBytes_ = 0L; + documentCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_EstimateDataSizeResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse build() { + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse result = + new com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataSizeBytes_ = dataSizeBytes_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.documentCount_ = documentCount_; + } + } + + @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.discoveryengine.v1alpha.EstimateDataSizeResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse.getDefaultInstance()) + return this; + if (other.getDataSizeBytes() != 0L) { + setDataSizeBytes(other.getDataSizeBytes()); + } + if (other.getDocumentCount() != 0L) { + setDocumentCount(other.getDocumentCount()); + } + 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: + { + dataSizeBytes_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + documentCount_ = 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 dataSizeBytes_; + /** + * + * + *
                                +     * Data size in terms of bytes.
                                +     * 
                                + * + * int64 data_size_bytes = 1; + * + * @return The dataSizeBytes. + */ + @java.lang.Override + public long getDataSizeBytes() { + return dataSizeBytes_; + } + /** + * + * + *
                                +     * Data size in terms of bytes.
                                +     * 
                                + * + * int64 data_size_bytes = 1; + * + * @param value The dataSizeBytes to set. + * @return This builder for chaining. + */ + public Builder setDataSizeBytes(long value) { + + dataSizeBytes_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Data size in terms of bytes.
                                +     * 
                                + * + * int64 data_size_bytes = 1; + * + * @return This builder for chaining. + */ + public Builder clearDataSizeBytes() { + bitField0_ = (bitField0_ & ~0x00000001); + dataSizeBytes_ = 0L; + onChanged(); + return this; + } + + private long documentCount_; + /** + * + * + *
                                +     * Total number of documents.
                                +     * 
                                + * + * int64 document_count = 2; + * + * @return The documentCount. + */ + @java.lang.Override + public long getDocumentCount() { + return documentCount_; + } + /** + * + * + *
                                +     * Total number of documents.
                                +     * 
                                + * + * int64 document_count = 2; + * + * @param value The documentCount to set. + * @return This builder for chaining. + */ + public Builder setDocumentCount(long value) { + + documentCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Total number of documents.
                                +     * 
                                + * + * int64 document_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearDocumentCount() { + bitField0_ = (bitField0_ & ~0x00000002); + documentCount_ = 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.discoveryengine.v1alpha.EstimateDataSizeResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse) + private static final com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EstimateDataSizeResponse 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.discoveryengine.v1alpha.EstimateDataSizeResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeResponseOrBuilder.java new file mode 100644 index 000000000000..61f301c93c2a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/EstimateDataSizeResponseOrBuilder.java @@ -0,0 +1,52 @@ +/* + * 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/discoveryengine/v1alpha/estimate_billing_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface EstimateDataSizeResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Data size in terms of bytes.
                                +   * 
                                + * + * int64 data_size_bytes = 1; + * + * @return The dataSizeBytes. + */ + long getDataSizeBytes(); + + /** + * + * + *
                                +   * Total number of documents.
                                +   * 
                                + * + * int64 document_count = 2; + * + * @return The documentCount. + */ + long getDocumentCount(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/FieldConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/FieldConfig.java index 505811f354c6..22d4605e55ec 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/FieldConfig.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/FieldConfig.java @@ -152,6 +152,16 @@ public enum FieldType implements com.google.protobuf.ProtocolMessageEnum { * GEOLOCATION = 6; */ GEOLOCATION(6), + /** + * + * + *
                                +     * Field value type is Datetime.
                                +     * 
                                + * + * DATETIME = 7; + */ + DATETIME(7), UNRECOGNIZED(-1), ; @@ -225,6 +235,16 @@ public enum FieldType implements com.google.protobuf.ProtocolMessageEnum { * GEOLOCATION = 6; */ public static final int GEOLOCATION_VALUE = 6; + /** + * + * + *
                                +     * Field value type is Datetime.
                                +     * 
                                + * + * DATETIME = 7; + */ + public static final int DATETIME_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -264,6 +284,8 @@ public static FieldType forNumber(int value) { return BOOLEAN; case 6: return GEOLOCATION; + case 7: + return DATETIME; default: return null; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetAclConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetAclConfigRequest.java new file mode 100644 index 000000000000..9a6a8368d65f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetAclConfigRequest.java @@ -0,0 +1,686 @@ +/* + * 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/discoveryengine/v1alpha/acl_config_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Request message for GetAclConfigRequest method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetAclConfigRequest} + */ +public final class GetAclConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.GetAclConfigRequest) + GetAclConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAclConfigRequest.newBuilder() to construct. + private GetAclConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAclConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAclConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetAclConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetAclConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest.class, + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                +   * Required. Resource name of
                                +   * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], such as
                                +   * `projects/*/locations/*/aclConfig`.
                                +   *
                                +   * If the caller does not have permission to access the
                                +   * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], regardless of
                                +   * whether or not it exists, a PERMISSION_DENIED error is returned.
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                +   * Required. Resource name of
                                +   * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], such as
                                +   * `projects/*/locations/*/aclConfig`.
                                +   *
                                +   * If the caller does not have permission to access the
                                +   * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], regardless of
                                +   * whether or not it exists, a PERMISSION_DENIED error is returned.
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.discoveryengine.v1alpha.GetAclConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest other = + (com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest 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.discoveryengine.v1alpha.GetAclConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest 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.discoveryengine.v1alpha.GetAclConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest 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.discoveryengine.v1alpha.GetAclConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest 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.discoveryengine.v1alpha.GetAclConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest 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.discoveryengine.v1alpha.GetAclConfigRequest 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 GetAclConfigRequest method.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetAclConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.GetAclConfigRequest) + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetAclConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetAclConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest.class, + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetAclConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest build() { + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest result = + new com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.discoveryengine.v1alpha.GetAclConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + name_ = 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 name_ = ""; + /** + * + * + *
                                +     * Required. Resource name of
                                +     * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], such as
                                +     * `projects/*/locations/*/aclConfig`.
                                +     *
                                +     * If the caller does not have permission to access the
                                +     * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], regardless of
                                +     * whether or not it exists, a PERMISSION_DENIED error is returned.
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Required. Resource name of
                                +     * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], such as
                                +     * `projects/*/locations/*/aclConfig`.
                                +     *
                                +     * If the caller does not have permission to access the
                                +     * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], regardless of
                                +     * whether or not it exists, a PERMISSION_DENIED error is returned.
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Required. Resource name of
                                +     * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], such as
                                +     * `projects/*/locations/*/aclConfig`.
                                +     *
                                +     * If the caller does not have permission to access the
                                +     * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], regardless of
                                +     * whether or not it exists, a PERMISSION_DENIED error is returned.
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. Resource name of
                                +     * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], such as
                                +     * `projects/*/locations/*/aclConfig`.
                                +     *
                                +     * If the caller does not have permission to access the
                                +     * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], regardless of
                                +     * whether or not it exists, a PERMISSION_DENIED error is returned.
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. Resource name of
                                +     * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], such as
                                +     * `projects/*/locations/*/aclConfig`.
                                +     *
                                +     * If the caller does not have permission to access the
                                +     * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], regardless of
                                +     * whether or not it exists, a PERMISSION_DENIED error is returned.
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 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.discoveryengine.v1alpha.GetAclConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.GetAclConfigRequest) + private static final com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAclConfigRequest 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.discoveryengine.v1alpha.GetAclConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetAclConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetAclConfigRequestOrBuilder.java new file mode 100644 index 000000000000..652359e7090a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetAclConfigRequestOrBuilder.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/discoveryengine/v1alpha/acl_config_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface GetAclConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.GetAclConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Required. Resource name of
                                +   * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], such as
                                +   * `projects/*/locations/*/aclConfig`.
                                +   *
                                +   * If the caller does not have permission to access the
                                +   * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], regardless of
                                +   * whether or not it exists, a PERMISSION_DENIED error is returned.
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                +   * Required. Resource name of
                                +   * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], such as
                                +   * `projects/*/locations/*/aclConfig`.
                                +   *
                                +   * If the caller does not have permission to access the
                                +   * [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], regardless of
                                +   * whether or not it exists, a PERMISSION_DENIED error is returned.
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetChunkRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetChunkRequest.java new file mode 100644 index 000000000000..a4766b74c58d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetChunkRequest.java @@ -0,0 +1,707 @@ +/* + * 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/discoveryengine/v1alpha/chunk_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Request message for
                                + * [ChunkService.GetChunk][google.cloud.discoveryengine.v1alpha.ChunkService.GetChunk]
                                + * method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetChunkRequest} + */ +public final class GetChunkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.GetChunkRequest) + GetChunkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetChunkRequest.newBuilder() to construct. + private GetChunkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetChunkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetChunkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetChunkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetChunkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest.class, + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                +   * Required. Full resource name of
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], such as
                                +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`.
                                +   *
                                +   * If the caller does not have permission to access the
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], regardless of whether
                                +   * or not it exists, a `PERMISSION_DENIED` error is returned.
                                +   *
                                +   * If the requested [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] does
                                +   * not exist, a `NOT_FOUND` error is returned.
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                +   * Required. Full resource name of
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], such as
                                +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`.
                                +   *
                                +   * If the caller does not have permission to access the
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], regardless of whether
                                +   * or not it exists, a `PERMISSION_DENIED` error is returned.
                                +   *
                                +   * If the requested [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] does
                                +   * not exist, a `NOT_FOUND` error is returned.
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.discoveryengine.v1alpha.GetChunkRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest other = + (com.google.cloud.discoveryengine.v1alpha.GetChunkRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.GetChunkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetChunkRequest 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.discoveryengine.v1alpha.GetChunkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetChunkRequest 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.discoveryengine.v1alpha.GetChunkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetChunkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetChunkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetChunkRequest 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.discoveryengine.v1alpha.GetChunkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetChunkRequest 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.discoveryengine.v1alpha.GetChunkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetChunkRequest 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.discoveryengine.v1alpha.GetChunkRequest 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
                                +   * [ChunkService.GetChunk][google.cloud.discoveryengine.v1alpha.ChunkService.GetChunk]
                                +   * method.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetChunkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.GetChunkRequest) + com.google.cloud.discoveryengine.v1alpha.GetChunkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetChunkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetChunkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest.class, + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.GetChunkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetChunkRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetChunkRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.GetChunkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetChunkRequest build() { + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetChunkRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.GetChunkRequest result = + new com.google.cloud.discoveryengine.v1alpha.GetChunkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.GetChunkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.discoveryengine.v1alpha.GetChunkRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.GetChunkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.GetChunkRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.GetChunkRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + name_ = 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 name_ = ""; + /** + * + * + *
                                +     * Required. Full resource name of
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], such as
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`.
                                +     *
                                +     * If the caller does not have permission to access the
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], regardless of whether
                                +     * or not it exists, a `PERMISSION_DENIED` error is returned.
                                +     *
                                +     * If the requested [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] does
                                +     * not exist, a `NOT_FOUND` error is returned.
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Required. Full resource name of
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], such as
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`.
                                +     *
                                +     * If the caller does not have permission to access the
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], regardless of whether
                                +     * or not it exists, a `PERMISSION_DENIED` error is returned.
                                +     *
                                +     * If the requested [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] does
                                +     * not exist, a `NOT_FOUND` error is returned.
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Required. Full resource name of
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], such as
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`.
                                +     *
                                +     * If the caller does not have permission to access the
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], regardless of whether
                                +     * or not it exists, a `PERMISSION_DENIED` error is returned.
                                +     *
                                +     * If the requested [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] does
                                +     * not exist, a `NOT_FOUND` error is returned.
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. Full resource name of
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], such as
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`.
                                +     *
                                +     * If the caller does not have permission to access the
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], regardless of whether
                                +     * or not it exists, a `PERMISSION_DENIED` error is returned.
                                +     *
                                +     * If the requested [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] does
                                +     * not exist, a `NOT_FOUND` error is returned.
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. Full resource name of
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], such as
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`.
                                +     *
                                +     * If the caller does not have permission to access the
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], regardless of whether
                                +     * or not it exists, a `PERMISSION_DENIED` error is returned.
                                +     *
                                +     * If the requested [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] does
                                +     * not exist, a `NOT_FOUND` error is returned.
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 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.discoveryengine.v1alpha.GetChunkRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.GetChunkRequest) + private static final com.google.cloud.discoveryengine.v1alpha.GetChunkRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.GetChunkRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetChunkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetChunkRequest 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.discoveryengine.v1alpha.GetChunkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetChunkRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetChunkRequestOrBuilder.java new file mode 100644 index 000000000000..1f3e5a1a9aa0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetChunkRequestOrBuilder.java @@ -0,0 +1,73 @@ +/* + * 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/discoveryengine/v1alpha/chunk_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface GetChunkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.GetChunkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Required. Full resource name of
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], such as
                                +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`.
                                +   *
                                +   * If the caller does not have permission to access the
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], regardless of whether
                                +   * or not it exists, a `PERMISSION_DENIED` error is returned.
                                +   *
                                +   * If the requested [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] does
                                +   * not exist, a `NOT_FOUND` error is returned.
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                +   * Required. Full resource name of
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], such as
                                +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`.
                                +   *
                                +   * If the caller does not have permission to access the
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], regardless of whether
                                +   * or not it exists, a `PERMISSION_DENIED` error is returned.
                                +   *
                                +   * If the requested [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] does
                                +   * not exist, a `NOT_FOUND` error is returned.
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetDocumentProcessingConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetDocumentProcessingConfigRequest.java new file mode 100644 index 000000000000..015d1ced616c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetDocumentProcessingConfigRequest.java @@ -0,0 +1,675 @@ +/* + * 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/discoveryengine/v1alpha/data_store_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Request for
                                + * [DataStoreService.GetDocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DataStoreService.GetDocumentProcessingConfig]
                                + * method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest} + */ +public final class GetDocumentProcessingConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest) + GetDocumentProcessingConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDocumentProcessingConfigRequest.newBuilder() to construct. + private GetDocumentProcessingConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDocumentProcessingConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDocumentProcessingConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DataStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentProcessingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DataStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentProcessingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest.class, + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                +   * Required. Full DocumentProcessingConfig resource name. Format:
                                +   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig`
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                +   * Required. Full DocumentProcessingConfig resource name. Format:
                                +   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig`
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest other = + (com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + 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.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + 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.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + 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.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + 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.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + 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.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest 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 for
                                +   * [DataStoreService.GetDocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DataStoreService.GetDocumentProcessingConfig]
                                +   * method.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest) + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DataStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentProcessingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DataStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentProcessingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest.class, + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DataStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetDocumentProcessingConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest build() { + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest result = + new com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + name_ = 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 name_ = ""; + /** + * + * + *
                                +     * Required. Full DocumentProcessingConfig resource name. Format:
                                +     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig`
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Required. Full DocumentProcessingConfig resource name. Format:
                                +     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig`
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Required. Full DocumentProcessingConfig resource name. Format:
                                +     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig`
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. Full DocumentProcessingConfig resource name. Format:
                                +     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig`
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. Full DocumentProcessingConfig resource name. Format:
                                +     * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig`
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 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.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest) + private static final com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDocumentProcessingConfigRequest 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.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetDocumentProcessingConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetDocumentProcessingConfigRequestOrBuilder.java new file mode 100644 index 000000000000..6bf148b13778 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetDocumentProcessingConfigRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * 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/discoveryengine/v1alpha/data_store_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface GetDocumentProcessingConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Required. Full DocumentProcessingConfig resource name. Format:
                                +   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig`
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                +   * Required. Full DocumentProcessingConfig resource name. Format:
                                +   * `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig`
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetServingConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetServingConfigRequest.java new file mode 100644 index 000000000000..e24d573a2c07 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetServingConfigRequest.java @@ -0,0 +1,654 @@ +/* + * 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/discoveryengine/v1alpha/serving_config_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Request for GetServingConfig method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetServingConfigRequest} + */ +public final class GetServingConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.GetServingConfigRequest) + GetServingConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetServingConfigRequest.newBuilder() to construct. + private GetServingConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetServingConfigRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetServingConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetServingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetServingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest.class, + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                +   * Required. The resource name of the ServingConfig to get. Format:
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                +   * Required. The resource name of the ServingConfig to get. Format:
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.discoveryengine.v1alpha.GetServingConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest other = + (com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest 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.discoveryengine.v1alpha.GetServingConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest 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.discoveryengine.v1alpha.GetServingConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest 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.discoveryengine.v1alpha.GetServingConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest 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.discoveryengine.v1alpha.GetServingConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest 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.discoveryengine.v1alpha.GetServingConfigRequest 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 for GetServingConfig method.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GetServingConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.GetServingConfigRequest) + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetServingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetServingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest.class, + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_GetServingConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest build() { + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest result = + new com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.discoveryengine.v1alpha.GetServingConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + name_ = 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 name_ = ""; + /** + * + * + *
                                +     * Required. The resource name of the ServingConfig to get. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Required. The resource name of the ServingConfig to get. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Required. The resource name of the ServingConfig to get. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The resource name of the ServingConfig to get. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The resource name of the ServingConfig to get. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                +     * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 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.discoveryengine.v1alpha.GetServingConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.GetServingConfigRequest) + private static final com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServingConfigRequest 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.discoveryengine.v1alpha.GetServingConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetServingConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetServingConfigRequestOrBuilder.java new file mode 100644 index 000000000000..3608c4329337 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GetServingConfigRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * 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/discoveryengine/v1alpha/serving_config_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface GetServingConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.GetServingConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Required. The resource name of the ServingConfig to get. Format:
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                +   * Required. The resource name of the ServingConfig to get. Format:
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                +   * 
                                + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GuidedSearchSpec.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GuidedSearchSpec.java new file mode 100644 index 000000000000..9dec692b2f36 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GuidedSearchSpec.java @@ -0,0 +1,730 @@ +/* + * 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/discoveryengine/v1alpha/common.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Defines guided search spec.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GuidedSearchSpec} + */ +public final class GuidedSearchSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.GuidedSearchSpec) + GuidedSearchSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use GuidedSearchSpec.newBuilder() to construct. + private GuidedSearchSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GuidedSearchSpec() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GuidedSearchSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_GuidedSearchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_GuidedSearchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.class, + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.Builder.class); + } + + public static final int ENABLE_REFINEMENT_ATTRIBUTES_FIELD_NUMBER = 1; + private boolean enableRefinementAttributes_ = false; + /** + * + * + *
                                +   * Whether or not to enable and include refinement attributes in gudied search
                                +   * result.
                                +   * 
                                + * + * bool enable_refinement_attributes = 1; + * + * @return The enableRefinementAttributes. + */ + @java.lang.Override + public boolean getEnableRefinementAttributes() { + return enableRefinementAttributes_; + } + + public static final int ENABLE_RELATED_QUESTIONS_FIELD_NUMBER = 2; + private boolean enableRelatedQuestions_ = false; + /** + * + * + *
                                +   * Whether or not to enable and include related questions in search response.
                                +   * 
                                + * + * bool enable_related_questions = 2; + * + * @return The enableRelatedQuestions. + */ + @java.lang.Override + public boolean getEnableRelatedQuestions() { + return enableRelatedQuestions_; + } + + public static final int MAX_RELATED_QUESTIONS_FIELD_NUMBER = 3; + private int maxRelatedQuestions_ = 0; + /** + * + * + *
                                +   * Max number of related questions to be returned. The valid range is [1, 5].
                                +   * If enable_related_questions is true, the default value is 3.
                                +   * 
                                + * + * int32 max_related_questions = 3; + * + * @return The maxRelatedQuestions. + */ + @java.lang.Override + public int getMaxRelatedQuestions() { + return maxRelatedQuestions_; + } + + 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 (enableRefinementAttributes_ != false) { + output.writeBool(1, enableRefinementAttributes_); + } + if (enableRelatedQuestions_ != false) { + output.writeBool(2, enableRelatedQuestions_); + } + if (maxRelatedQuestions_ != 0) { + output.writeInt32(3, maxRelatedQuestions_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableRefinementAttributes_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableRefinementAttributes_); + } + if (enableRelatedQuestions_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableRelatedQuestions_); + } + if (maxRelatedQuestions_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxRelatedQuestions_); + } + 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.discoveryengine.v1alpha.GuidedSearchSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec other = + (com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec) obj; + + if (getEnableRefinementAttributes() != other.getEnableRefinementAttributes()) return false; + if (getEnableRelatedQuestions() != other.getEnableRelatedQuestions()) return false; + if (getMaxRelatedQuestions() != other.getMaxRelatedQuestions()) 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) + ENABLE_REFINEMENT_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableRefinementAttributes()); + hash = (37 * hash) + ENABLE_RELATED_QUESTIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableRelatedQuestions()); + hash = (37 * hash) + MAX_RELATED_QUESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMaxRelatedQuestions(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec 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.discoveryengine.v1alpha.GuidedSearchSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec 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.discoveryengine.v1alpha.GuidedSearchSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec 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.discoveryengine.v1alpha.GuidedSearchSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec 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.discoveryengine.v1alpha.GuidedSearchSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec 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.discoveryengine.v1alpha.GuidedSearchSpec 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 guided search spec.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.GuidedSearchSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.GuidedSearchSpec) + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_GuidedSearchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_GuidedSearchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.class, + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableRefinementAttributes_ = false; + enableRelatedQuestions_ = false; + maxRelatedQuestions_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_GuidedSearchSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec build() { + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec buildPartial() { + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec result = + new com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableRefinementAttributes_ = enableRefinementAttributes_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableRelatedQuestions_ = enableRelatedQuestions_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxRelatedQuestions_ = maxRelatedQuestions_; + } + } + + @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.discoveryengine.v1alpha.GuidedSearchSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec other) { + if (other == com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.getDefaultInstance()) + return this; + if (other.getEnableRefinementAttributes() != false) { + setEnableRefinementAttributes(other.getEnableRefinementAttributes()); + } + if (other.getEnableRelatedQuestions() != false) { + setEnableRelatedQuestions(other.getEnableRelatedQuestions()); + } + if (other.getMaxRelatedQuestions() != 0) { + setMaxRelatedQuestions(other.getMaxRelatedQuestions()); + } + 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: + { + enableRefinementAttributes_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + enableRelatedQuestions_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + maxRelatedQuestions_ = 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 boolean enableRefinementAttributes_; + /** + * + * + *
                                +     * Whether or not to enable and include refinement attributes in gudied search
                                +     * result.
                                +     * 
                                + * + * bool enable_refinement_attributes = 1; + * + * @return The enableRefinementAttributes. + */ + @java.lang.Override + public boolean getEnableRefinementAttributes() { + return enableRefinementAttributes_; + } + /** + * + * + *
                                +     * Whether or not to enable and include refinement attributes in gudied search
                                +     * result.
                                +     * 
                                + * + * bool enable_refinement_attributes = 1; + * + * @param value The enableRefinementAttributes to set. + * @return This builder for chaining. + */ + public Builder setEnableRefinementAttributes(boolean value) { + + enableRefinementAttributes_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Whether or not to enable and include refinement attributes in gudied search
                                +     * result.
                                +     * 
                                + * + * bool enable_refinement_attributes = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnableRefinementAttributes() { + bitField0_ = (bitField0_ & ~0x00000001); + enableRefinementAttributes_ = false; + onChanged(); + return this; + } + + private boolean enableRelatedQuestions_; + /** + * + * + *
                                +     * Whether or not to enable and include related questions in search response.
                                +     * 
                                + * + * bool enable_related_questions = 2; + * + * @return The enableRelatedQuestions. + */ + @java.lang.Override + public boolean getEnableRelatedQuestions() { + return enableRelatedQuestions_; + } + /** + * + * + *
                                +     * Whether or not to enable and include related questions in search response.
                                +     * 
                                + * + * bool enable_related_questions = 2; + * + * @param value The enableRelatedQuestions to set. + * @return This builder for chaining. + */ + public Builder setEnableRelatedQuestions(boolean value) { + + enableRelatedQuestions_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Whether or not to enable and include related questions in search response.
                                +     * 
                                + * + * bool enable_related_questions = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnableRelatedQuestions() { + bitField0_ = (bitField0_ & ~0x00000002); + enableRelatedQuestions_ = false; + onChanged(); + return this; + } + + private int maxRelatedQuestions_; + /** + * + * + *
                                +     * Max number of related questions to be returned. The valid range is [1, 5].
                                +     * If enable_related_questions is true, the default value is 3.
                                +     * 
                                + * + * int32 max_related_questions = 3; + * + * @return The maxRelatedQuestions. + */ + @java.lang.Override + public int getMaxRelatedQuestions() { + return maxRelatedQuestions_; + } + /** + * + * + *
                                +     * Max number of related questions to be returned. The valid range is [1, 5].
                                +     * If enable_related_questions is true, the default value is 3.
                                +     * 
                                + * + * int32 max_related_questions = 3; + * + * @param value The maxRelatedQuestions to set. + * @return This builder for chaining. + */ + public Builder setMaxRelatedQuestions(int value) { + + maxRelatedQuestions_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Max number of related questions to be returned. The valid range is [1, 5].
                                +     * If enable_related_questions is true, the default value is 3.
                                +     * 
                                + * + * int32 max_related_questions = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaxRelatedQuestions() { + bitField0_ = (bitField0_ & ~0x00000004); + maxRelatedQuestions_ = 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.discoveryengine.v1alpha.GuidedSearchSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.GuidedSearchSpec) + private static final com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GuidedSearchSpec 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.discoveryengine.v1alpha.GuidedSearchSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GuidedSearchSpecOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GuidedSearchSpecOrBuilder.java new file mode 100644 index 000000000000..3bf7d5a54d43 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/GuidedSearchSpecOrBuilder.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/discoveryengine/v1alpha/common.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface GuidedSearchSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.GuidedSearchSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Whether or not to enable and include refinement attributes in gudied search
                                +   * result.
                                +   * 
                                + * + * bool enable_refinement_attributes = 1; + * + * @return The enableRefinementAttributes. + */ + boolean getEnableRefinementAttributes(); + + /** + * + * + *
                                +   * Whether or not to enable and include related questions in search response.
                                +   * 
                                + * + * bool enable_related_questions = 2; + * + * @return The enableRelatedQuestions. + */ + boolean getEnableRelatedQuestions(); + + /** + * + * + *
                                +   * Max number of related questions to be returned. The valid range is [1, 5].
                                +   * If enable_related_questions is true, the default value is 3.
                                +   * 
                                + * + * int32 max_related_questions = 3; + * + * @return The maxRelatedQuestions. + */ + int getMaxRelatedQuestions(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/IdpConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/IdpConfig.java new file mode 100644 index 000000000000..456cfac0e844 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/IdpConfig.java @@ -0,0 +1,1741 @@ +/* + * 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/discoveryengine/v1alpha/common.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Identity Provider Config.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.IdpConfig} + */ +public final class IdpConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.IdpConfig) + IdpConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use IdpConfig.newBuilder() to construct. + private IdpConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IdpConfig() { + idpType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IdpConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.IdpConfig.class, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.Builder.class); + } + + /** + * + * + *
                                +   * Identity Provider Type.
                                +   * 
                                + * + * Protobuf enum {@code google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType} + */ + public enum IdpType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                +     * Default value. ACL search not enabled.
                                +     * 
                                + * + * IDP_TYPE_UNSPECIFIED = 0; + */ + IDP_TYPE_UNSPECIFIED(0), + /** + * + * + *
                                +     * Google 1P provider.
                                +     * 
                                + * + * GSUITE = 1; + */ + GSUITE(1), + /** + * + * + *
                                +     * Third party provider.
                                +     * 
                                + * + * THIRD_PARTY = 2; + */ + THIRD_PARTY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                +     * Default value. ACL search not enabled.
                                +     * 
                                + * + * IDP_TYPE_UNSPECIFIED = 0; + */ + public static final int IDP_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
                                +     * Google 1P provider.
                                +     * 
                                + * + * GSUITE = 1; + */ + public static final int GSUITE_VALUE = 1; + /** + * + * + *
                                +     * Third party provider.
                                +     * 
                                + * + * THIRD_PARTY = 2; + */ + public static final int THIRD_PARTY_VALUE = 2; + + 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 IdpType 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 IdpType forNumber(int value) { + switch (value) { + case 0: + return IDP_TYPE_UNSPECIFIED; + case 1: + return GSUITE; + case 2: + return THIRD_PARTY; + 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 IdpType findValueByNumber(int number) { + return IdpType.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.discoveryengine.v1alpha.IdpConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final IdpType[] VALUES = values(); + + public static IdpType 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 IdpType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType) + } + + public interface ExternalIdpConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +     * Workforce pool name.
                                +     * Example: "locations/global/workforcePools/pool_id"
                                +     * 
                                + * + * string workforce_pool_name = 1; + * + * @return The workforcePoolName. + */ + java.lang.String getWorkforcePoolName(); + /** + * + * + *
                                +     * Workforce pool name.
                                +     * Example: "locations/global/workforcePools/pool_id"
                                +     * 
                                + * + * string workforce_pool_name = 1; + * + * @return The bytes for workforcePoolName. + */ + com.google.protobuf.ByteString getWorkforcePoolNameBytes(); + } + /** + * + * + *
                                +   * Third party IDP Config.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig} + */ + public static final class ExternalIdpConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig) + ExternalIdpConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExternalIdpConfig.newBuilder() to construct. + private ExternalIdpConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExternalIdpConfig() { + workforcePoolName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExternalIdpConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_ExternalIdpConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_ExternalIdpConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig.class, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig.Builder.class); + } + + public static final int WORKFORCE_POOL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object workforcePoolName_ = ""; + /** + * + * + *
                                +     * Workforce pool name.
                                +     * Example: "locations/global/workforcePools/pool_id"
                                +     * 
                                + * + * string workforce_pool_name = 1; + * + * @return The workforcePoolName. + */ + @java.lang.Override + public java.lang.String getWorkforcePoolName() { + java.lang.Object ref = workforcePoolName_; + 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(); + workforcePoolName_ = s; + return s; + } + } + /** + * + * + *
                                +     * Workforce pool name.
                                +     * Example: "locations/global/workforcePools/pool_id"
                                +     * 
                                + * + * string workforce_pool_name = 1; + * + * @return The bytes for workforcePoolName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkforcePoolNameBytes() { + java.lang.Object ref = workforcePoolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workforcePoolName_ = 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(workforcePoolName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workforcePoolName_); + } + 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(workforcePoolName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workforcePoolName_); + } + 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.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig other = + (com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig) obj; + + if (!getWorkforcePoolName().equals(other.getWorkforcePoolName())) 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) + WORKFORCE_POOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getWorkforcePoolName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig 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.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig 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.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig 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.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig + 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.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig 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.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig 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; + } + /** + * + * + *
                                +     * Third party IDP Config.
                                +     * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig) + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_ExternalIdpConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_ExternalIdpConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig.class, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workforcePoolName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_ExternalIdpConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig build() { + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig buildPartial() { + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig result = + new com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workforcePoolName_ = workforcePoolName_; + } + } + + @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.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig + .getDefaultInstance()) return this; + if (!other.getWorkforcePoolName().isEmpty()) { + workforcePoolName_ = other.workforcePoolName_; + 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: + { + workforcePoolName_ = 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 workforcePoolName_ = ""; + /** + * + * + *
                                +       * Workforce pool name.
                                +       * Example: "locations/global/workforcePools/pool_id"
                                +       * 
                                + * + * string workforce_pool_name = 1; + * + * @return The workforcePoolName. + */ + public java.lang.String getWorkforcePoolName() { + java.lang.Object ref = workforcePoolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workforcePoolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +       * Workforce pool name.
                                +       * Example: "locations/global/workforcePools/pool_id"
                                +       * 
                                + * + * string workforce_pool_name = 1; + * + * @return The bytes for workforcePoolName. + */ + public com.google.protobuf.ByteString getWorkforcePoolNameBytes() { + java.lang.Object ref = workforcePoolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workforcePoolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +       * Workforce pool name.
                                +       * Example: "locations/global/workforcePools/pool_id"
                                +       * 
                                + * + * string workforce_pool_name = 1; + * + * @param value The workforcePoolName to set. + * @return This builder for chaining. + */ + public Builder setWorkforcePoolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workforcePoolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +       * Workforce pool name.
                                +       * Example: "locations/global/workforcePools/pool_id"
                                +       * 
                                + * + * string workforce_pool_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearWorkforcePoolName() { + workforcePoolName_ = getDefaultInstance().getWorkforcePoolName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +       * Workforce pool name.
                                +       * Example: "locations/global/workforcePools/pool_id"
                                +       * 
                                + * + * string workforce_pool_name = 1; + * + * @param value The bytes for workforcePoolName to set. + * @return This builder for chaining. + */ + public Builder setWorkforcePoolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workforcePoolName_ = 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.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig) + private static final com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExternalIdpConfig 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.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int IDP_TYPE_FIELD_NUMBER = 1; + private int idpType_ = 0; + /** + * + * + *
                                +   * Identity provider type configured.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType idp_type = 1; + * + * @return The enum numeric value on the wire for idpType. + */ + @java.lang.Override + public int getIdpTypeValue() { + return idpType_; + } + /** + * + * + *
                                +   * Identity provider type configured.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType idp_type = 1; + * + * @return The idpType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType getIdpType() { + com.google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType result = + com.google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType.forNumber(idpType_); + return result == null + ? com.google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType.UNRECOGNIZED + : result; + } + + public static final int EXTERNAL_IDP_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig externalIdpConfig_; + /** + * + * + *
                                +   * External Identity provider config.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return Whether the externalIdpConfig field is set. + */ + @java.lang.Override + public boolean hasExternalIdpConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * External Identity provider config.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return The externalIdpConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig + getExternalIdpConfig() { + return externalIdpConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig.getDefaultInstance() + : externalIdpConfig_; + } + /** + * + * + *
                                +   * External Identity provider config.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfigOrBuilder + getExternalIdpConfigOrBuilder() { + return externalIdpConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig.getDefaultInstance() + : externalIdpConfig_; + } + + 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 (idpType_ + != com.google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType.IDP_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, idpType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getExternalIdpConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (idpType_ + != com.google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType.IDP_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, idpType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExternalIdpConfig()); + } + 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.discoveryengine.v1alpha.IdpConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.IdpConfig other = + (com.google.cloud.discoveryengine.v1alpha.IdpConfig) obj; + + if (idpType_ != other.idpType_) return false; + if (hasExternalIdpConfig() != other.hasExternalIdpConfig()) return false; + if (hasExternalIdpConfig()) { + if (!getExternalIdpConfig().equals(other.getExternalIdpConfig())) 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) + IDP_TYPE_FIELD_NUMBER; + hash = (53 * hash) + idpType_; + if (hasExternalIdpConfig()) { + hash = (37 * hash) + EXTERNAL_IDP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getExternalIdpConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig 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.discoveryengine.v1alpha.IdpConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig 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.discoveryengine.v1alpha.IdpConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig 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.discoveryengine.v1alpha.IdpConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig 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.discoveryengine.v1alpha.IdpConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig 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.discoveryengine.v1alpha.IdpConfig 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; + } + /** + * + * + *
                                +   * Identity Provider Config.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.IdpConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.IdpConfig) + com.google.cloud.discoveryengine.v1alpha.IdpConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.IdpConfig.class, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.IdpConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExternalIdpConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + idpType_ = 0; + externalIdpConfig_ = null; + if (externalIdpConfigBuilder_ != null) { + externalIdpConfigBuilder_.dispose(); + externalIdpConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_IdpConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IdpConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.IdpConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IdpConfig build() { + com.google.cloud.discoveryengine.v1alpha.IdpConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IdpConfig buildPartial() { + com.google.cloud.discoveryengine.v1alpha.IdpConfig result = + new com.google.cloud.discoveryengine.v1alpha.IdpConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.IdpConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.idpType_ = idpType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.externalIdpConfig_ = + externalIdpConfigBuilder_ == null + ? externalIdpConfig_ + : externalIdpConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1alpha.IdpConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.IdpConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.IdpConfig other) { + if (other == com.google.cloud.discoveryengine.v1alpha.IdpConfig.getDefaultInstance()) + return this; + if (other.idpType_ != 0) { + setIdpTypeValue(other.getIdpTypeValue()); + } + if (other.hasExternalIdpConfig()) { + mergeExternalIdpConfig(other.getExternalIdpConfig()); + } + 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: + { + idpType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getExternalIdpConfigFieldBuilder().getBuilder(), extensionRegistry); + 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 int idpType_ = 0; + /** + * + * + *
                                +     * Identity provider type configured.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType idp_type = 1; + * + * @return The enum numeric value on the wire for idpType. + */ + @java.lang.Override + public int getIdpTypeValue() { + return idpType_; + } + /** + * + * + *
                                +     * Identity provider type configured.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType idp_type = 1; + * + * @param value The enum numeric value on the wire for idpType to set. + * @return This builder for chaining. + */ + public Builder setIdpTypeValue(int value) { + idpType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Identity provider type configured.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType idp_type = 1; + * + * @return The idpType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType getIdpType() { + com.google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType result = + com.google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType.forNumber(idpType_); + return result == null + ? com.google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType.UNRECOGNIZED + : result; + } + /** + * + * + *
                                +     * Identity provider type configured.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType idp_type = 1; + * + * @param value The idpType to set. + * @return This builder for chaining. + */ + public Builder setIdpType(com.google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + idpType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Identity provider type configured.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType idp_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearIdpType() { + bitField0_ = (bitField0_ & ~0x00000001); + idpType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig externalIdpConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfigOrBuilder> + externalIdpConfigBuilder_; + /** + * + * + *
                                +     * External Identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return Whether the externalIdpConfig field is set. + */ + public boolean hasExternalIdpConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +     * External Identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return The externalIdpConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig + getExternalIdpConfig() { + if (externalIdpConfigBuilder_ == null) { + return externalIdpConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig + .getDefaultInstance() + : externalIdpConfig_; + } else { + return externalIdpConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * External Identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public Builder setExternalIdpConfig( + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig value) { + if (externalIdpConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + externalIdpConfig_ = value; + } else { + externalIdpConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * External Identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public Builder setExternalIdpConfig( + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig.Builder + builderForValue) { + if (externalIdpConfigBuilder_ == null) { + externalIdpConfig_ = builderForValue.build(); + } else { + externalIdpConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * External Identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public Builder mergeExternalIdpConfig( + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig value) { + if (externalIdpConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && externalIdpConfig_ != null + && externalIdpConfig_ + != com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig + .getDefaultInstance()) { + getExternalIdpConfigBuilder().mergeFrom(value); + } else { + externalIdpConfig_ = value; + } + } else { + externalIdpConfigBuilder_.mergeFrom(value); + } + if (externalIdpConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * External Identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public Builder clearExternalIdpConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + externalIdpConfig_ = null; + if (externalIdpConfigBuilder_ != null) { + externalIdpConfigBuilder_.dispose(); + externalIdpConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * External Identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig.Builder + getExternalIdpConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getExternalIdpConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * External Identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfigOrBuilder + getExternalIdpConfigOrBuilder() { + if (externalIdpConfigBuilder_ != null) { + return externalIdpConfigBuilder_.getMessageOrBuilder(); + } else { + return externalIdpConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig + .getDefaultInstance() + : externalIdpConfig_; + } + } + /** + * + * + *
                                +     * External Identity provider config.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfigOrBuilder> + getExternalIdpConfigFieldBuilder() { + if (externalIdpConfigBuilder_ == null) { + externalIdpConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfigOrBuilder>( + getExternalIdpConfig(), getParentForChildren(), isClean()); + externalIdpConfig_ = null; + } + return externalIdpConfigBuilder_; + } + + @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.discoveryengine.v1alpha.IdpConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.IdpConfig) + private static final com.google.cloud.discoveryengine.v1alpha.IdpConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.IdpConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.IdpConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdpConfig 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.discoveryengine.v1alpha.IdpConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/IdpConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/IdpConfigOrBuilder.java new file mode 100644 index 000000000000..4f6f061cca1c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/IdpConfigOrBuilder.java @@ -0,0 +1,93 @@ +/* + * 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/discoveryengine/v1alpha/common.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface IdpConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.IdpConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Identity provider type configured.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType idp_type = 1; + * + * @return The enum numeric value on the wire for idpType. + */ + int getIdpTypeValue(); + /** + * + * + *
                                +   * Identity provider type configured.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType idp_type = 1; + * + * @return The idpType. + */ + com.google.cloud.discoveryengine.v1alpha.IdpConfig.IdpType getIdpType(); + + /** + * + * + *
                                +   * External Identity provider config.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return Whether the externalIdpConfig field is set. + */ + boolean hasExternalIdpConfig(); + /** + * + * + *
                                +   * External Identity provider config.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return The externalIdpConfig. + */ + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig getExternalIdpConfig(); + /** + * + * + *
                                +   * External Identity provider config.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + com.google.cloud.discoveryengine.v1alpha.IdpConfig.ExternalIdpConfigOrBuilder + getExternalIdpConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportConfigProto.java index 83a83d41c8b0..70f3918eb85c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportConfigProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportConfigProto.java @@ -72,6 +72,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1alpha_ImportDocumentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_InlineSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -84,77 +100,96 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n8google/cloud/discoveryengine/v1alpha/i" + "mport_config.proto\022$google.cloud.discove" + "ryengine.v1alpha\032\037google/api/field_behav" - + "ior.proto\032\031google/api/resource.proto\0323go" - + "ogle/cloud/discoveryengine/v1alpha/docum" - + "ent.proto\0325google/cloud/discoveryengine/" - + "v1alpha/user_event.proto\032\037google/protobu" - + "f/timestamp.proto\032\027google/rpc/status.pro" - + "to\032\026google/type/date.proto\"9\n\tGcsSource\022" - + "\027\n\ninput_uris\030\001 \003(\tB\003\340A\002\022\023\n\013data_schema\030" - + "\002 \001(\t\"\274\001\n\016BigQuerySource\022+\n\016partition_da" - + "te\030\005 \001(\0132\021.google.type.DateH\000\022\022\n\nproject" - + "_id\030\001 \001(\t\022\027\n\ndataset_id\030\002 \001(\tB\003\340A\002\022\025\n\010ta" - + "ble_id\030\003 \001(\tB\003\340A\002\022\027\n\017gcs_staging_dir\030\004 \001" - + "(\t\022\023\n\013data_schema\030\006 \001(\tB\013\n\tpartition\"8\n\021" - + "ImportErrorConfig\022\024\n\ngcs_prefix\030\001 \001(\tH\000B" - + "\r\n\013destination\"\214\004\n\027ImportUserEventsReque" - + "st\022c\n\rinline_source\030\002 \001(\0132J.google.cloud" - + ".discoveryengine.v1alpha.ImportUserEvent" - + "sRequest.InlineSourceH\000\022E\n\ngcs_source\030\003 " - + "\001(\0132/.google.cloud.discoveryengine.v1alp" - + "ha.GcsSourceH\000\022O\n\017bigquery_source\030\004 \001(\0132" - + "4.google.cloud.discoveryengine.v1alpha.B" - + "igQuerySourceH\000\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n" - + "(discoveryengine.googleapis.com/DataStor" - + "e\022M\n\014error_config\030\005 \001(\01327.google.cloud.d" - + "iscoveryengine.v1alpha.ImportErrorConfig" - + "\032Y\n\014InlineSource\022I\n\013user_events\030\001 \003(\0132/." - + "google.cloud.discoveryengine.v1alpha.Use" - + "rEventB\003\340A\002B\010\n\006source\"\320\001\n\030ImportUserEven" - + "tsResponse\022)\n\rerror_samples\030\001 \003(\0132\022.goog" - + "le.rpc.Status\022M\n\014error_config\030\002 \001(\01327.go" - + "ogle.cloud.discoveryengine.v1alpha.Impor" - + "tErrorConfig\022\033\n\023joined_events_count\030\003 \001(" - + "\003\022\035\n\025unjoined_events_count\030\004 \001(\003\"\252\001\n\030Imp" - + "ortUserEventsMetadata\022/\n\013create_time\030\001 \001" - + "(\0132\032.google.protobuf.Timestamp\022/\n\013update" - + "_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022" - + "\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfailure_count\030" - + "\004 \001(\003\"\251\001\n\027ImportDocumentsMetadata\022/\n\013cre" - + "ate_time\030\001 \001(\0132\032.google.protobuf.Timesta" - + "mp\022/\n\013update_time\030\002 \001(\0132\032.google.protobu" - + "f.Timestamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfa" - + "ilure_count\030\004 \001(\003\"\365\005\n\026ImportDocumentsReq" - + "uest\022b\n\rinline_source\030\002 \001(\0132I.google.clo" - + "ud.discoveryengine.v1alpha.ImportDocumen" - + "tsRequest.InlineSourceH\000\022E\n\ngcs_source\030\003" - + " \001(\0132/.google.cloud.discoveryengine.v1al" - + "pha.GcsSourceH\000\022O\n\017bigquery_source\030\004 \001(\013" - + "24.google.cloud.discoveryengine.v1alpha." - + "BigQuerySourceH\000\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'" - + "\n%discoveryengine.googleapis.com/Branch\022" - + "M\n\014error_config\030\005 \001(\01327.google.cloud.dis" - + "coveryengine.v1alpha.ImportErrorConfig\022l" - + "\n\023reconciliation_mode\030\006 \001(\0162O.google.clo" - + "ud.discoveryengine.v1alpha.ImportDocumen" - + "tsRequest.ReconciliationMode\022\031\n\021auto_gen" - + "erate_ids\030\010 \001(\010\022\020\n\010id_field\030\t \001(\t\032V\n\014Inl" - + "ineSource\022F\n\tdocuments\030\001 \003(\0132..google.cl" - + "oud.discoveryengine.v1alpha.DocumentB\003\340A" - + "\002\"T\n\022ReconciliationMode\022#\n\037RECONCILIATIO" - + "N_MODE_UNSPECIFIED\020\000\022\017\n\013INCREMENTAL\020\001\022\010\n" - + "\004FULL\020\002B\010\n\006source\"\223\001\n\027ImportDocumentsRes" - + "ponse\022)\n\rerror_samples\030\001 \003(\0132\022.google.rp" - + "c.Status\022M\n\014error_config\030\002 \001(\01327.google." - + "cloud.discoveryengine.v1alpha.ImportErro" - + "rConfigB\235\002\n(com.google.cloud.discoveryen" - + "gine.v1alphaB\021ImportConfigProtoP\001ZRcloud" - + ".google.com/go/discoveryengine/apiv1alph" - + "a/discoveryenginepb;discoveryenginepb\242\002\017" - + "DISCOVERYENGINE\252\002$Google.Cloud.Discovery" - + "Engine.V1Alpha\312\002$Google\\Cloud\\DiscoveryE" - + "ngine\\V1alpha\352\002\'Google::Cloud::Discovery" - + "Engine::V1alphab\006proto3" + + "ior.proto\032\031google/api/resource.proto\0325go" + + "ogle/cloud/discoveryengine/v1alpha/compl" + + "etion.proto\0323google/cloud/discoveryengin" + + "e/v1alpha/document.proto\0325google/cloud/d" + + "iscoveryengine/v1alpha/user_event.proto\032" + + "\037google/protobuf/timestamp.proto\032\027google" + + "/rpc/status.proto\032\026google/type/date.prot" + + "o\"9\n\tGcsSource\022\027\n\ninput_uris\030\001 \003(\tB\003\340A\002\022" + + "\023\n\013data_schema\030\002 \001(\t\"\274\001\n\016BigQuerySource\022" + + "+\n\016partition_date\030\005 \001(\0132\021.google.type.Da" + + "teH\000\022\022\n\nproject_id\030\001 \001(\t\022\027\n\ndataset_id\030\002" + + " \001(\tB\003\340A\002\022\025\n\010table_id\030\003 \001(\tB\003\340A\002\022\027\n\017gcs_" + + "staging_dir\030\004 \001(\t\022\023\n\013data_schema\030\006 \001(\tB\013" + + "\n\tpartition\"8\n\021ImportErrorConfig\022\024\n\ngcs_" + + "prefix\030\001 \001(\tH\000B\r\n\013destination\"\214\004\n\027Import" + + "UserEventsRequest\022c\n\rinline_source\030\002 \001(\013" + + "2J.google.cloud.discoveryengine.v1alpha." + + "ImportUserEventsRequest.InlineSourceH\000\022E" + + "\n\ngcs_source\030\003 \001(\0132/.google.cloud.discov" + + "eryengine.v1alpha.GcsSourceH\000\022O\n\017bigquer" + + "y_source\030\004 \001(\01324.google.cloud.discoverye" + + "ngine.v1alpha.BigQuerySourceH\000\022@\n\006parent" + + "\030\001 \001(\tB0\340A\002\372A*\n(discoveryengine.googleap" + + "is.com/DataStore\022M\n\014error_config\030\005 \001(\01327" + + ".google.cloud.discoveryengine.v1alpha.Im" + + "portErrorConfig\032Y\n\014InlineSource\022I\n\013user_" + + "events\030\001 \003(\0132/.google.cloud.discoveryeng" + + "ine.v1alpha.UserEventB\003\340A\002B\010\n\006source\"\320\001\n" + + "\030ImportUserEventsResponse\022)\n\rerror_sampl" + + "es\030\001 \003(\0132\022.google.rpc.Status\022M\n\014error_co" + + "nfig\030\002 \001(\01327.google.cloud.discoveryengin" + + "e.v1alpha.ImportErrorConfig\022\033\n\023joined_ev" + + "ents_count\030\003 \001(\003\022\035\n\025unjoined_events_coun" + + "t\030\004 \001(\003\"\252\001\n\030ImportUserEventsMetadata\022/\n\013" + + "create_time\030\001 \001(\0132\032.google.protobuf.Time" + + "stamp\022/\n\013update_time\030\002 \001(\0132\032.google.prot" + + "obuf.Timestamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n" + + "\rfailure_count\030\004 \001(\003\"\251\001\n\027ImportDocuments" + + "Metadata\022/\n\013create_time\030\001 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032" + + ".google.protobuf.Timestamp\022\025\n\rsuccess_co" + + "unt\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003\"\365\005\n\026Imp" + + "ortDocumentsRequest\022b\n\rinline_source\030\002 \001" + + "(\0132I.google.cloud.discoveryengine.v1alph" + + "a.ImportDocumentsRequest.InlineSourceH\000\022" + + "E\n\ngcs_source\030\003 \001(\0132/.google.cloud.disco" + + "veryengine.v1alpha.GcsSourceH\000\022O\n\017bigque" + + "ry_source\030\004 \001(\01324.google.cloud.discovery" + + "engine.v1alpha.BigQuerySourceH\000\022=\n\006paren" + + "t\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengine.googlea" + + "pis.com/Branch\022M\n\014error_config\030\005 \001(\01327.g" + + "oogle.cloud.discoveryengine.v1alpha.Impo" + + "rtErrorConfig\022l\n\023reconciliation_mode\030\006 \001" + + "(\0162O.google.cloud.discoveryengine.v1alph" + + "a.ImportDocumentsRequest.ReconciliationM" + + "ode\022\031\n\021auto_generate_ids\030\010 \001(\010\022\020\n\010id_fie" + + "ld\030\t \001(\t\032V\n\014InlineSource\022F\n\tdocuments\030\001 " + + "\003(\0132..google.cloud.discoveryengine.v1alp" + + "ha.DocumentB\003\340A\002\"T\n\022ReconciliationMode\022#" + + "\n\037RECONCILIATION_MODE_UNSPECIFIED\020\000\022\017\n\013I" + + "NCREMENTAL\020\001\022\010\n\004FULL\020\002B\010\n\006source\"\223\001\n\027Imp" + + "ortDocumentsResponse\022)\n\rerror_samples\030\001 " + + "\003(\0132\022.google.rpc.Status\022M\n\014error_config\030" + + "\002 \001(\01327.google.cloud.discoveryengine.v1a" + + "lpha.ImportErrorConfig\"\224\003\n&ImportSuggest" + + "ionDenyListEntriesRequest\022r\n\rinline_sour" + + "ce\030\002 \001(\0132Y.google.cloud.discoveryengine." + + "v1alpha.ImportSuggestionDenyListEntriesR" + + "equest.InlineSourceH\000\022E\n\ngcs_source\030\003 \001(" + + "\0132/.google.cloud.discoveryengine.v1alpha" + + ".GcsSourceH\000\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(di" + + "scoveryengine.googleapis.com/DataStore\032c" + + "\n\014InlineSource\022S\n\007entries\030\001 \003(\0132=.google" + + ".cloud.discoveryengine.v1alpha.Suggestio" + + "nDenyListEntryB\003\340A\002B\010\n\006source\"\222\001\n\'Import" + + "SuggestionDenyListEntriesResponse\022)\n\rerr" + + "or_samples\030\001 \003(\0132\022.google.rpc.Status\022\036\n\026" + + "imported_entries_count\030\002 \001(\003\022\034\n\024failed_e" + + "ntries_count\030\003 \001(\003\"\213\001\n\'ImportSuggestionD" + + "enyListEntriesMetadata\022/\n\013create_time\030\001 " + + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" + + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "B\235\002\n(com.google.cloud.discoveryengine.v1" + + "alphaB\021ImportConfigProtoP\001ZRcloud.google" + + ".com/go/discoveryengine/apiv1alpha/disco" + + "veryenginepb;discoveryenginepb\242\002\017DISCOVE" + + "RYENGINE\252\002$Google.Cloud.DiscoveryEngine." + + "V1Alpha\312\002$Google\\Cloud\\DiscoveryEngine\\V" + + "1alpha\352\002\'Google::Cloud::DiscoveryEngine:" + + ":V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -162,6 +197,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.cloud.discoveryengine.v1alpha.CompletionProto.getDescriptor(), com.google.cloud.discoveryengine.v1alpha.DocumentProto.getDescriptor(), com.google.cloud.discoveryengine.v1alpha.UserEventProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -274,6 +310,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ErrorSamples", "ErrorConfig", }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_descriptor, + new java.lang.String[] { + "InlineSource", "GcsSource", "Parent", "Source", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_InlineSource_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_InlineSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_InlineSource_descriptor, + new java.lang.String[] { + "Entries", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesResponse_descriptor, + new java.lang.String[] { + "ErrorSamples", "ImportedEntriesCount", "FailedEntriesCount", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesMetadata_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -282,6 +352,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.CompletionProto.getDescriptor(); com.google.cloud.discoveryengine.v1alpha.DocumentProto.getDescriptor(); com.google.cloud.discoveryengine.v1alpha.UserEventProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesMetadata.java new file mode 100644 index 000000000000..fe66d5b70ffc --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesMetadata.java @@ -0,0 +1,1032 @@ +/* + * 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/discoveryengine/v1alpha/import_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Metadata related to the progress of the ImportSuggestionDenyListEntries
                                + * operation. This is returned by the google.longrunning.Operation.metadata
                                + * field.
                                + * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata} + */ +public final class ImportSuggestionDenyListEntriesMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata) + ImportSuggestionDenyListEntriesMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportSuggestionDenyListEntriesMetadata.newBuilder() to construct. + private ImportSuggestionDenyListEntriesMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportSuggestionDenyListEntriesMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportSuggestionDenyListEntriesMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata.class, + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata.Builder + .class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata other = + (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata 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 related to the progress of the ImportSuggestionDenyListEntries
                                +   * operation. This is returned by the google.longrunning.Operation.metadata
                                +   * field.
                                +   * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata) + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + .class, + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + build() { + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata result = + new com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + .getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + 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(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata) + private static final com.google.cloud.discoveryengine.v1alpha + .ImportSuggestionDenyListEntriesMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportSuggestionDenyListEntriesMetadata 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesMetadataOrBuilder.java new file mode 100644 index 000000000000..d22fe9e97b0e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesMetadataOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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/discoveryengine/v1alpha/import_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ImportSuggestionDenyListEntriesMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesRequest.java new file mode 100644 index 000000000000..7d4384ab2af5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesRequest.java @@ -0,0 +1,2650 @@ +/* + * 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/discoveryengine/v1alpha/import_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Request message for
                                + * [CompletionService.ImportSuggestionDenyListEntries][google.cloud.discoveryengine.v1alpha.CompletionService.ImportSuggestionDenyListEntries]
                                + * method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest} + */ +public final class ImportSuggestionDenyListEntriesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest) + ImportSuggestionDenyListEntriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportSuggestionDenyListEntriesRequest.newBuilder() to construct. + private ImportSuggestionDenyListEntriesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportSuggestionDenyListEntriesRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportSuggestionDenyListEntriesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.class, + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.Builder + .class); + } + + public interface InlineSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +     * Required. A list of all denylist entries to import. Max of 1000 items.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getEntriesList(); + /** + * + * + *
                                +     * Required. A list of all denylist entries to import. Max of 1000 items.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry getEntries(int index); + /** + * + * + *
                                +     * Required. A list of all denylist entries to import. Max of 1000 items.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getEntriesCount(); + /** + * + * + *
                                +     * Required. A list of all denylist entries to import. Max of 1000 items.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntryOrBuilder> + getEntriesOrBuilderList(); + /** + * + * + *
                                +     * Required. A list of all denylist entries to import. Max of 1000 items.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntryOrBuilder getEntriesOrBuilder( + int index); + } + /** + * + * + *
                                +   * The inline source for SuggestionDenyListEntry.
                                +   * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource} + */ + public static final class InlineSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource) + InlineSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use InlineSource.newBuilder() to construct. + private InlineSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InlineSource() { + entries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InlineSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.class, + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.Builder.class); + } + + public static final int ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + entries_; + /** + * + * + *
                                +     * Required. A list of all denylist entries to import. Max of 1000 items.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getEntriesList() { + return entries_; + } + /** + * + * + *
                                +     * Required. A list of all denylist entries to import. Max of 1000 items.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntryOrBuilder> + getEntriesOrBuilderList() { + return entries_; + } + /** + * + * + *
                                +     * Required. A list of all denylist entries to import. Max of 1000 items.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getEntriesCount() { + return entries_.size(); + } + /** + * + * + *
                                +     * Required. A list of all denylist entries to import. Max of 1000 items.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry getEntries(int index) { + return entries_.get(index); + } + /** + * + * + *
                                +     * Required. A list of all denylist entries to import. Max of 1000 items.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntryOrBuilder + getEntriesOrBuilder(int index) { + return entries_.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 < entries_.size(); i++) { + output.writeMessage(1, entries_.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 < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource + other = + (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource) + obj; + + if (!getEntriesList().equals(other.getEntriesList())) 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 (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                                +     * The inline source for SuggestionDenyListEntry.
                                +     * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource) + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.class, + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + } else { + entries_ = null; + entriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_InlineSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + build() { + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource + result = + new com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + result) { + if (entriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.entries_ = entries_; + } else { + result.entries_ = entriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + result) { + int from_bitField0_ = bitField0_; + } + + @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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.getDefaultInstance()) return this; + if (entriesBuilder_ == null) { + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + } else { + if (!other.entries_.isEmpty()) { + if (entriesBuilder_.isEmpty()) { + entriesBuilder_.dispose(); + entriesBuilder_ = null; + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000001); + entriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntriesFieldBuilder() + : null; + } else { + entriesBuilder_.addAllMessages(other.entries_); + } + } + } + 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: + { + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.parser(), + extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.addMessage(m); + } + 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.util.List + entries_ = java.util.Collections.emptyList(); + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + entries_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry>(entries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry, + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.Builder, + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntryOrBuilder> + entriesBuilder_; + + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getEntriesList() { + if (entriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entries_); + } else { + return entriesBuilder_.getMessageList(); + } + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getEntriesCount() { + if (entriesBuilder_ == null) { + return entries_.size(); + } else { + return entriesBuilder_.getCount(); + } + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry getEntries( + int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessage(index); + } + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEntries( + int index, com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + } else { + entriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEntries( + int index, + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.set(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEntries( + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + } else { + entriesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEntries( + int index, com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(index, value); + onChanged(); + } else { + entriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEntries( + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEntries( + int index, + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.Builder + builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllEntries( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry> + values) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + } else { + entriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEntries() { + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + entriesBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeEntries(int index) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.remove(index); + onChanged(); + } else { + entriesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.Builder + getEntriesBuilder(int index) { + return getEntriesFieldBuilder().getBuilder(index); + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntryOrBuilder + getEntriesOrBuilder(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntryOrBuilder> + getEntriesOrBuilderList() { + if (entriesBuilder_ != null) { + return entriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entries_); + } + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.Builder + addEntriesBuilder() { + return getEntriesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry + .getDefaultInstance()); + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.Builder + addEntriesBuilder(int index) { + return getEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry + .getDefaultInstance()); + } + /** + * + * + *
                                +       * Required. A list of all denylist entries to import. Max of 1000 items.
                                +       * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.Builder> + getEntriesBuilderList() { + return getEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry, + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.Builder, + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntryOrBuilder> + getEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry, + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.Builder, + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntryOrBuilder>( + entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entries_ = null; + } + return entriesBuilder_; + } + + @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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource) + private static final com.google.cloud.discoveryengine.v1alpha + .ImportSuggestionDenyListEntriesRequest.InlineSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineSource 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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 { + INLINE_SOURCE(2), + GCS_SOURCE(3), + 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 INLINE_SOURCE; + case 3: + return GCS_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 INLINE_SOURCE_FIELD_NUMBER = 2; + /** + * + * + *
                                +   * The Inline source for the input content for suggestion deny list entries.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + /** + * + * + *
                                +   * The Inline source for the input content for suggestion deny list entries.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + getInlineSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.getDefaultInstance(); + } + /** + * + * + *
                                +   * The Inline source for the input content for suggestion deny list entries.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.getDefaultInstance(); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 3; + /** + * + * + *
                                +   * Cloud Storage location for the input content.
                                +   *
                                +   * Only 1 file can be specified that contains all entries to import.
                                +   * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +   * list entry imports:
                                +   *
                                +   * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +   * per line.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 3; + } + /** + * + * + *
                                +   * Cloud Storage location for the input content.
                                +   *
                                +   * Only 1 file can be specified that contains all entries to import.
                                +   * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +   * list entry imports:
                                +   *
                                +   * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +   * per line.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource() { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + /** + * + * + *
                                +   * Cloud Storage location for the input content.
                                +   *
                                +   * Only 1 file can be specified that contains all entries to import.
                                +   * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +   * list entry imports:
                                +   *
                                +   * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +   * per line.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
                                +   * Required. The parent data store resource name for which to import denylist
                                +   * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +   * 
                                + * + * + * 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 parent data store resource name for which to import denylist
                                +   * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +   * 
                                + * + * + * 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; + } + } + + 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_); + } + if (sourceCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource) + source_); + } + if (sourceCase_ == 3) { + output.writeMessage(3, (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_); + } + 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_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource) + source_); + } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.discoveryengine.v1alpha.GcsSource) 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest other = + (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getInlineSource().equals(other.getInlineSource())) return false; + break; + case 3: + if (!getGcsSource().equals(other.getGcsSource())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + switch (sourceCase_) { + case 2: + hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInlineSource().hashCode(); + break; + case 3: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest 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
                                +   * [CompletionService.ImportSuggestionDenyListEntries][google.cloud.discoveryengine.v1alpha.CompletionService.ImportSuggestionDenyListEntries]
                                +   * method.
                                +   * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest) + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.class, + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (inlineSourceBuilder_ != null) { + inlineSourceBuilder_.clear(); + } + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.clear(); + } + parent_ = ""; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest build() { + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest result = + new com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parent_ = parent_; + } + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && inlineSourceBuilder_ != null) { + result.source_ = inlineSourceBuilder_.build(); + } + if (sourceCase_ == 3 && gcsSourceBuilder_ != null) { + result.source_ = gcsSourceBuilder_.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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getSourceCase()) { + case INLINE_SOURCE: + { + mergeInlineSource(other.getInlineSource()); + break; + } + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage(getInlineSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 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 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource, + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.Builder, + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSourceOrBuilder> + inlineSourceBuilder_; + /** + * + * + *
                                +     * The Inline source for the input content for suggestion deny list entries.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + /** + * + * + *
                                +     * The Inline source for the input content for suggestion deny list entries.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource + getInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return inlineSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.getDefaultInstance(); + } + } + /** + * + * + *
                                +     * The Inline source for the input content for suggestion deny list entries.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource + value) { + if (inlineSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + inlineSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
                                +     * The Inline source for the input content for suggestion deny list entries.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource + .Builder + builderForValue) { + if (inlineSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + inlineSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
                                +     * The Inline source for the input content for suggestion deny list entries.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + */ + public Builder mergeInlineSource( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource + value) { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ + != com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.newBuilder( + (com.google.cloud.discoveryengine.v1alpha + .ImportSuggestionDenyListEntriesRequest.InlineSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + inlineSourceBuilder_.mergeFrom(value); + } else { + inlineSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
                                +     * The Inline source for the input content for suggestion deny list entries.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + */ + public Builder clearInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + inlineSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +     * The Inline source for the input content for suggestion deny list entries.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.Builder + getInlineSourceBuilder() { + return getInlineSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * The Inline source for the input content for suggestion deny list entries.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { + return inlineSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.getDefaultInstance(); + } + } + /** + * + * + *
                                +     * The Inline source for the input content for suggestion deny list entries.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource, + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.Builder, + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSourceOrBuilder> + getInlineSourceFieldBuilder() { + if (inlineSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.getDefaultInstance(); + } + inlineSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource, + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource.Builder, + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return inlineSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     *
                                +     * Only 1 file can be specified that contains all entries to import.
                                +     * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +     * list entry imports:
                                +     *
                                +     * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +     * per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 3; + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     *
                                +     * Only 1 file can be specified that contains all entries to import.
                                +     * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +     * list entry imports:
                                +     *
                                +     * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +     * per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     *
                                +     * Only 1 file can be specified that contains all entries to import.
                                +     * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +     * list entry imports:
                                +     *
                                +     * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +     * per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder setGcsSource(com.google.cloud.discoveryengine.v1alpha.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     *
                                +     * Only 1 file can be specified that contains all entries to import.
                                +     * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +     * list entry imports:
                                +     *
                                +     * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +     * per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder setGcsSource( + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     *
                                +     * Only 1 file can be specified that contains all entries to import.
                                +     * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +     * list entry imports:
                                +     *
                                +     * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +     * per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1alpha.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3 + && source_ != com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1alpha.GcsSource.newBuilder( + (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     *
                                +     * Only 1 file can be specified that contains all entries to import.
                                +     * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +     * list entry imports:
                                +     *
                                +     * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +     * per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     *
                                +     * Only 1 file can be specified that contains all entries to import.
                                +     * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +     * list entry imports:
                                +     *
                                +     * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +     * per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + public com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     *
                                +     * Only 1 file can be specified that contains all entries to import.
                                +     * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +     * list entry imports:
                                +     *
                                +     * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +     * per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if ((sourceCase_ == 3) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     *
                                +     * Only 1 file can be specified that contains all entries to import.
                                +     * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +     * list entry imports:
                                +     *
                                +     * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +     * per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + return gcsSourceBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
                                +     * Required. The parent data store resource name for which to import denylist
                                +     * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +     * 
                                + * + * + * 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 parent data store resource name for which to import denylist
                                +     * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +     * 
                                + * + * + * 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 parent data store resource name for which to import denylist
                                +     * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +     * 
                                + * + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The parent data store resource name for which to import denylist
                                +     * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +     * 
                                + * + * + * 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_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The parent data store resource name for which to import denylist
                                +     * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +     * 
                                + * + * + * 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_ |= 0x00000004; + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest) + private static final com.google.cloud.discoveryengine.v1alpha + .ImportSuggestionDenyListEntriesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportSuggestionDenyListEntriesRequest 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesRequestOrBuilder.java new file mode 100644 index 000000000000..97031edeb40c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * 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/discoveryengine/v1alpha/import_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ImportSuggestionDenyListEntriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * The Inline source for the input content for suggestion deny list entries.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + boolean hasInlineSource(); + /** + * + * + *
                                +   * The Inline source for the input content for suggestion deny list entries.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource + getInlineSource(); + /** + * + * + *
                                +   * The Inline source for the input content for suggestion deny list entries.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; + * + */ + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest + .InlineSourceOrBuilder + getInlineSourceOrBuilder(); + + /** + * + * + *
                                +   * Cloud Storage location for the input content.
                                +   *
                                +   * Only 1 file can be specified that contains all entries to import.
                                +   * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +   * list entry imports:
                                +   *
                                +   * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +   * per line.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
                                +   * Cloud Storage location for the input content.
                                +   *
                                +   * Only 1 file can be specified that contains all entries to import.
                                +   * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +   * list entry imports:
                                +   *
                                +   * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +   * per line.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + * + * @return The gcsSource. + */ + com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource(); + /** + * + * + *
                                +   * Cloud Storage location for the input content.
                                +   *
                                +   * Only 1 file can be specified that contains all entries to import.
                                +   * Supported values `gcs_source.schema` for autocomplete suggestion deny
                                +   * list entry imports:
                                +   *
                                +   * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry]
                                +   * per line.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 3; + */ + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder(); + + /** + * + * + *
                                +   * Required. The parent data store resource name for which to import denylist
                                +   * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +   * 
                                + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
                                +   * Required. The parent data store resource name for which to import denylist
                                +   * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +   * 
                                + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest.SourceCase + getSourceCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesResponse.java new file mode 100644 index 000000000000..97e1e8dad6db --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesResponse.java @@ -0,0 +1,1148 @@ +/* + * 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/discoveryengine/v1alpha/import_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Response message for
                                + * [CompletionService.ImportSuggestionDenyListEntries][google.cloud.discoveryengine.v1alpha.CompletionService.ImportSuggestionDenyListEntries]
                                + * method.
                                + * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse} + */ +public final class ImportSuggestionDenyListEntriesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse) + ImportSuggestionDenyListEntriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ImportSuggestionDenyListEntriesResponse.newBuilder() to construct. + private ImportSuggestionDenyListEntriesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImportSuggestionDenyListEntriesResponse() { + errorSamples_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImportSuggestionDenyListEntriesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse.class, + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse.Builder + .class); + } + + public static final int ERROR_SAMPLES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List errorSamples_; + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List getErrorSamplesList() { + return errorSamples_; + } + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List getErrorSamplesOrBuilderList() { + return errorSamples_; + } + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public int getErrorSamplesCount() { + return errorSamples_.size(); + } + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.Status getErrorSamples(int index) { + return errorSamples_.get(index); + } + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + return errorSamples_.get(index); + } + + public static final int IMPORTED_ENTRIES_COUNT_FIELD_NUMBER = 2; + private long importedEntriesCount_ = 0L; + /** + * + * + *
                                +   * Count of deny list entries successfully imported.
                                +   * 
                                + * + * int64 imported_entries_count = 2; + * + * @return The importedEntriesCount. + */ + @java.lang.Override + public long getImportedEntriesCount() { + return importedEntriesCount_; + } + + public static final int FAILED_ENTRIES_COUNT_FIELD_NUMBER = 3; + private long failedEntriesCount_ = 0L; + /** + * + * + *
                                +   * Count of deny list entries that failed to be imported.
                                +   * 
                                + * + * int64 failed_entries_count = 3; + * + * @return The failedEntriesCount. + */ + @java.lang.Override + public long getFailedEntriesCount() { + return failedEntriesCount_; + } + + 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 < errorSamples_.size(); i++) { + output.writeMessage(1, errorSamples_.get(i)); + } + if (importedEntriesCount_ != 0L) { + output.writeInt64(2, importedEntriesCount_); + } + if (failedEntriesCount_ != 0L) { + output.writeInt64(3, failedEntriesCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < errorSamples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errorSamples_.get(i)); + } + if (importedEntriesCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, importedEntriesCount_); + } + if (failedEntriesCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, failedEntriesCount_); + } + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse other = + (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse) obj; + + if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (getImportedEntriesCount() != other.getImportedEntriesCount()) return false; + if (getFailedEntriesCount() != other.getFailedEntriesCount()) 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 (getErrorSamplesCount() > 0) { + hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getErrorSamplesList().hashCode(); + } + hash = (37 * hash) + IMPORTED_ENTRIES_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getImportedEntriesCount()); + hash = (37 * hash) + FAILED_ENTRIES_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailedEntriesCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse 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
                                +   * [CompletionService.ImportSuggestionDenyListEntries][google.cloud.discoveryengine.v1alpha.CompletionService.ImportSuggestionDenyListEntries]
                                +   * method.
                                +   * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse) + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + .class, + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + } else { + errorSamples_ = null; + errorSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + importedEntriesCount_ = 0L; + failedEntriesCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ImportSuggestionDenyListEntriesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + build() { + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse result = + new com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse result) { + if (errorSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.errorSamples_ = errorSamples_; + } else { + result.errorSamples_ = errorSamplesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.importedEntriesCount_ = importedEntriesCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.failedEntriesCount_ = failedEntriesCount_; + } + } + + @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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + .getDefaultInstance()) return this; + if (errorSamplesBuilder_ == null) { + if (!other.errorSamples_.isEmpty()) { + if (errorSamples_.isEmpty()) { + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureErrorSamplesIsMutable(); + errorSamples_.addAll(other.errorSamples_); + } + onChanged(); + } + } else { + if (!other.errorSamples_.isEmpty()) { + if (errorSamplesBuilder_.isEmpty()) { + errorSamplesBuilder_.dispose(); + errorSamplesBuilder_ = null; + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + errorSamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorSamplesFieldBuilder() + : null; + } else { + errorSamplesBuilder_.addAllMessages(other.errorSamples_); + } + } + } + if (other.getImportedEntriesCount() != 0L) { + setImportedEntriesCount(other.getImportedEntriesCount()); + } + if (other.getFailedEntriesCount() != 0L) { + setFailedEntriesCount(other.getFailedEntriesCount()); + } + 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: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(m); + } else { + errorSamplesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + importedEntriesCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + failedEntriesCount_ = input.readInt64(); + 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 java.util.List errorSamples_ = java.util.Collections.emptyList(); + + private void ensureErrorSamplesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + errorSamples_ = new java.util.ArrayList(errorSamples_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorSamplesBuilder_; + + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesList() { + if (errorSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(errorSamples_); + } else { + return errorSamplesBuilder_.getMessageList(); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public int getErrorSamplesCount() { + if (errorSamplesBuilder_ == null) { + return errorSamples_.size(); + } else { + return errorSamplesBuilder_.getCount(); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status getErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessage(index); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, value); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addAllErrorSamples(java.lang.Iterable values) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); + onChanged(); + } else { + errorSamplesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder clearErrorSamples() { + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + errorSamplesBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder removeErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.remove(index); + onChanged(); + } else { + errorSamplesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder().getBuilder(index); + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesOrBuilderList() { + if (errorSamplesBuilder_ != null) { + return errorSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errorSamples_); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder() { + return getErrorSamplesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesBuilderList() { + return getErrorSamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorSamplesFieldBuilder() { + if (errorSamplesBuilder_ == null) { + errorSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errorSamples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errorSamples_ = null; + } + return errorSamplesBuilder_; + } + + private long importedEntriesCount_; + /** + * + * + *
                                +     * Count of deny list entries successfully imported.
                                +     * 
                                + * + * int64 imported_entries_count = 2; + * + * @return The importedEntriesCount. + */ + @java.lang.Override + public long getImportedEntriesCount() { + return importedEntriesCount_; + } + /** + * + * + *
                                +     * Count of deny list entries successfully imported.
                                +     * 
                                + * + * int64 imported_entries_count = 2; + * + * @param value The importedEntriesCount to set. + * @return This builder for chaining. + */ + public Builder setImportedEntriesCount(long value) { + + importedEntriesCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Count of deny list entries successfully imported.
                                +     * 
                                + * + * int64 imported_entries_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearImportedEntriesCount() { + bitField0_ = (bitField0_ & ~0x00000002); + importedEntriesCount_ = 0L; + onChanged(); + return this; + } + + private long failedEntriesCount_; + /** + * + * + *
                                +     * Count of deny list entries that failed to be imported.
                                +     * 
                                + * + * int64 failed_entries_count = 3; + * + * @return The failedEntriesCount. + */ + @java.lang.Override + public long getFailedEntriesCount() { + return failedEntriesCount_; + } + /** + * + * + *
                                +     * Count of deny list entries that failed to be imported.
                                +     * 
                                + * + * int64 failed_entries_count = 3; + * + * @param value The failedEntriesCount to set. + * @return This builder for chaining. + */ + public Builder setFailedEntriesCount(long value) { + + failedEntriesCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Count of deny list entries that failed to be imported.
                                +     * 
                                + * + * int64 failed_entries_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearFailedEntriesCount() { + bitField0_ = (bitField0_ & ~0x00000004); + failedEntriesCount_ = 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse) + private static final com.google.cloud.discoveryengine.v1alpha + .ImportSuggestionDenyListEntriesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportSuggestionDenyListEntriesResponse 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.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesResponseOrBuilder.java new file mode 100644 index 000000000000..622edc4480a8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ImportSuggestionDenyListEntriesResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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/discoveryengine/v1alpha/import_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ImportSuggestionDenyListEntriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + java.util.List getErrorSamplesList(); + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + com.google.rpc.Status getErrorSamples(int index); + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + int getErrorSamplesCount(); + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + java.util.List getErrorSamplesOrBuilderList(); + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); + + /** + * + * + *
                                +   * Count of deny list entries successfully imported.
                                +   * 
                                + * + * int64 imported_entries_count = 2; + * + * @return The importedEntriesCount. + */ + long getImportedEntriesCount(); + + /** + * + * + *
                                +   * Count of deny list entries that failed to be imported.
                                +   * 
                                + * + * int64 failed_entries_count = 3; + * + * @return The failedEntriesCount. + */ + long getFailedEntriesCount(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListChunksRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListChunksRequest.java new file mode 100644 index 000000000000..b20b07c53620 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListChunksRequest.java @@ -0,0 +1,1040 @@ +/* + * 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/discoveryengine/v1alpha/chunk_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Request message for
                                + * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                + * method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListChunksRequest} + */ +public final class ListChunksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListChunksRequest) + ListChunksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListChunksRequest.newBuilder() to construct. + private ListChunksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListChunksRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListChunksRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListChunksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListChunksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest.class, + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
                                +   * Required. The parent document resource name, such as
                                +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
                                +   *
                                +   * If the caller does not have permission to list
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s under this document,
                                +   * regardless of whether or not this document exists, a `PERMISSION_DENIED`
                                +   * error is returned.
                                +   * 
                                + * + * + * 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 parent document resource name, such as
                                +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
                                +   *
                                +   * If the caller does not have permission to list
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s under this document,
                                +   * regardless of whether or not this document exists, a `PERMISSION_DENIED`
                                +   * error is returned.
                                +   * 
                                + * + * + * 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
                                +   * Maximum number of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s to
                                +   * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
                                +   * Values above 1000 will be coerced to 1000.
                                +   *
                                +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                                +   * 
                                + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
                                +   * A page token
                                +   * [ListChunksResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListChunksResponse.next_page_token],
                                +   * received from a previous
                                +   * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +   * call. Provide this to retrieve the subsequent page.
                                +   *
                                +   * When paginating, all other parameters provided to
                                +   * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +   * must match the call that provided the page token. Otherwise, an
                                +   * `INVALID_ARGUMENT` error is returned.
                                +   * 
                                + * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
                                +   * A page token
                                +   * [ListChunksResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListChunksResponse.next_page_token],
                                +   * received from a previous
                                +   * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +   * call. Provide this to retrieve the subsequent page.
                                +   *
                                +   * When paginating, all other parameters provided to
                                +   * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +   * must match the call that provided the page token. Otherwise, an
                                +   * `INVALID_ARGUMENT` error is returned.
                                +   * 
                                + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.discoveryengine.v1alpha.ListChunksRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest other = + (com.google.cloud.discoveryengine.v1alpha.ListChunksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksRequest 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.discoveryengine.v1alpha.ListChunksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksRequest 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.discoveryengine.v1alpha.ListChunksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksRequest 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.discoveryengine.v1alpha.ListChunksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksRequest 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.discoveryengine.v1alpha.ListChunksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksRequest 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.discoveryengine.v1alpha.ListChunksRequest 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
                                +   * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +   * method.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListChunksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListChunksRequest) + com.google.cloud.discoveryengine.v1alpha.ListChunksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListChunksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListChunksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest.class, + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ListChunksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListChunksRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListChunksRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListChunksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListChunksRequest build() { + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListChunksRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListChunksRequest result = + new com.google.cloud.discoveryengine.v1alpha.ListChunksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ListChunksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.discoveryengine.v1alpha.ListChunksRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ListChunksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ListChunksRequest other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ListChunksRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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 bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
                                +     * Required. The parent document resource name, such as
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
                                +     *
                                +     * If the caller does not have permission to list
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s under this document,
                                +     * regardless of whether or not this document exists, a `PERMISSION_DENIED`
                                +     * error is returned.
                                +     * 
                                + * + * + * 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 parent document resource name, such as
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
                                +     *
                                +     * If the caller does not have permission to list
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s under this document,
                                +     * regardless of whether or not this document exists, a `PERMISSION_DENIED`
                                +     * error is returned.
                                +     * 
                                + * + * + * 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 parent document resource name, such as
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
                                +     *
                                +     * If the caller does not have permission to list
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s under this document,
                                +     * regardless of whether or not this document exists, a `PERMISSION_DENIED`
                                +     * error is returned.
                                +     * 
                                + * + * + * 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 parent document resource name, such as
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
                                +     *
                                +     * If the caller does not have permission to list
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s under this document,
                                +     * regardless of whether or not this document exists, a `PERMISSION_DENIED`
                                +     * error is returned.
                                +     * 
                                + * + * + * 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 parent document resource name, such as
                                +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
                                +     *
                                +     * If the caller does not have permission to list
                                +     * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s under this document,
                                +     * regardless of whether or not this document exists, a `PERMISSION_DENIED`
                                +     * error is returned.
                                +     * 
                                + * + * + * 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 int pageSize_; + /** + * + * + *
                                +     * Maximum number of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s to
                                +     * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
                                +     * Values above 1000 will be coerced to 1000.
                                +     *
                                +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                                +     * 
                                + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
                                +     * Maximum number of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s to
                                +     * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
                                +     * Values above 1000 will be coerced to 1000.
                                +     *
                                +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                                +     * 
                                + * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Maximum number of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s to
                                +     * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
                                +     * Values above 1000 will be coerced to 1000.
                                +     *
                                +     * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                                +     * 
                                + * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
                                +     * A page token
                                +     * [ListChunksResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListChunksResponse.next_page_token],
                                +     * received from a previous
                                +     * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     * `INVALID_ARGUMENT` error is returned.
                                +     * 
                                + * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * A page token
                                +     * [ListChunksResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListChunksResponse.next_page_token],
                                +     * received from a previous
                                +     * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     * `INVALID_ARGUMENT` error is returned.
                                +     * 
                                + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * A page token
                                +     * [ListChunksResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListChunksResponse.next_page_token],
                                +     * received from a previous
                                +     * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     * `INVALID_ARGUMENT` error is returned.
                                +     * 
                                + * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * A page token
                                +     * [ListChunksResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListChunksResponse.next_page_token],
                                +     * received from a previous
                                +     * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     * `INVALID_ARGUMENT` error is returned.
                                +     * 
                                + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                +     * A page token
                                +     * [ListChunksResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListChunksResponse.next_page_token],
                                +     * received from a previous
                                +     * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     * `INVALID_ARGUMENT` error is returned.
                                +     * 
                                + * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + 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.discoveryengine.v1alpha.ListChunksRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListChunksRequest) + private static final com.google.cloud.discoveryengine.v1alpha.ListChunksRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListChunksRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListChunksRequest 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.discoveryengine.v1alpha.ListChunksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListChunksRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListChunksRequestOrBuilder.java new file mode 100644 index 000000000000..1e98d9b3b8fb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListChunksRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * 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/discoveryengine/v1alpha/chunk_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListChunksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListChunksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Required. The parent document resource name, such as
                                +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
                                +   *
                                +   * If the caller does not have permission to list
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s under this document,
                                +   * regardless of whether or not this document exists, a `PERMISSION_DENIED`
                                +   * error is returned.
                                +   * 
                                + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
                                +   * Required. The parent document resource name, such as
                                +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`.
                                +   *
                                +   * If the caller does not have permission to list
                                +   * [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s under this document,
                                +   * regardless of whether or not this document exists, a `PERMISSION_DENIED`
                                +   * error is returned.
                                +   * 
                                + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                +   * Maximum number of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s to
                                +   * return. If unspecified, defaults to 100. The maximum allowed value is 1000.
                                +   * Values above 1000 will be coerced to 1000.
                                +   *
                                +   * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                                +   * 
                                + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                +   * A page token
                                +   * [ListChunksResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListChunksResponse.next_page_token],
                                +   * received from a previous
                                +   * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +   * call. Provide this to retrieve the subsequent page.
                                +   *
                                +   * When paginating, all other parameters provided to
                                +   * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +   * must match the call that provided the page token. Otherwise, an
                                +   * `INVALID_ARGUMENT` error is returned.
                                +   * 
                                + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
                                +   * A page token
                                +   * [ListChunksResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListChunksResponse.next_page_token],
                                +   * received from a previous
                                +   * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +   * call. Provide this to retrieve the subsequent page.
                                +   *
                                +   * When paginating, all other parameters provided to
                                +   * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +   * must match the call that provided the page token. Otherwise, an
                                +   * `INVALID_ARGUMENT` error is returned.
                                +   * 
                                + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListChunksResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListChunksResponse.java new file mode 100644 index 000000000000..882af8be1ca8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListChunksResponse.java @@ -0,0 +1,1145 @@ +/* + * 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/discoveryengine/v1alpha/chunk_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Response message for
                                + * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                + * method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListChunksResponse} + */ +public final class ListChunksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListChunksResponse) + ListChunksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListChunksResponse.newBuilder() to construct. + private ListChunksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListChunksResponse() { + chunks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListChunksResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListChunksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListChunksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse.class, + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse.Builder.class); + } + + public static final int CHUNKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List chunks_; + /** + * + * + *
                                +   * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + @java.lang.Override + public java.util.List getChunksList() { + return chunks_; + } + /** + * + * + *
                                +   * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + @java.lang.Override + public java.util.List + getChunksOrBuilderList() { + return chunks_; + } + /** + * + * + *
                                +   * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + @java.lang.Override + public int getChunksCount() { + return chunks_.size(); + } + /** + * + * + *
                                +   * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Chunk getChunks(int index) { + return chunks_.get(index); + } + /** + * + * + *
                                +   * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder getChunksOrBuilder(int index) { + return chunks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
                                +   * A token that can be sent as
                                +   * [ListChunksRequest.page_token][google.cloud.discoveryengine.v1alpha.ListChunksRequest.page_token]
                                +   * to retrieve the next page. If this field is omitted, there are no
                                +   * subsequent pages.
                                +   * 
                                + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
                                +   * A token that can be sent as
                                +   * [ListChunksRequest.page_token][google.cloud.discoveryengine.v1alpha.ListChunksRequest.page_token]
                                +   * to retrieve the next page. If this field is omitted, there are no
                                +   * subsequent pages.
                                +   * 
                                + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < chunks_.size(); i++) { + output.writeMessage(1, chunks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < chunks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, chunks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.discoveryengine.v1alpha.ListChunksResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse other = + (com.google.cloud.discoveryengine.v1alpha.ListChunksResponse) obj; + + if (!getChunksList().equals(other.getChunksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getChunksCount() > 0) { + hash = (37 * hash) + CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + getChunksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksResponse 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.discoveryengine.v1alpha.ListChunksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksResponse 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.discoveryengine.v1alpha.ListChunksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksResponse 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.discoveryengine.v1alpha.ListChunksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksResponse 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.discoveryengine.v1alpha.ListChunksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksResponse 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.discoveryengine.v1alpha.ListChunksResponse 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
                                +   * [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks]
                                +   * method.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListChunksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListChunksResponse) + com.google.cloud.discoveryengine.v1alpha.ListChunksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListChunksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListChunksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse.class, + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ListChunksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (chunksBuilder_ == null) { + chunks_ = java.util.Collections.emptyList(); + } else { + chunks_ = null; + chunksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ChunkServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListChunksResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListChunksResponse getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListChunksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListChunksResponse build() { + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListChunksResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse result = + new com.google.cloud.discoveryengine.v1alpha.ListChunksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.ListChunksResponse result) { + if (chunksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + chunks_ = java.util.Collections.unmodifiableList(chunks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.chunks_ = chunks_; + } else { + result.chunks_ = chunksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ListChunksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.discoveryengine.v1alpha.ListChunksResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ListChunksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ListChunksResponse other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ListChunksResponse.getDefaultInstance()) + return this; + if (chunksBuilder_ == null) { + if (!other.chunks_.isEmpty()) { + if (chunks_.isEmpty()) { + chunks_ = other.chunks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChunksIsMutable(); + chunks_.addAll(other.chunks_); + } + onChanged(); + } + } else { + if (!other.chunks_.isEmpty()) { + if (chunksBuilder_.isEmpty()) { + chunksBuilder_.dispose(); + chunksBuilder_ = null; + chunks_ = other.chunks_; + bitField0_ = (bitField0_ & ~0x00000001); + chunksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChunksFieldBuilder() + : null; + } else { + chunksBuilder_.addAllMessages(other.chunks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.discoveryengine.v1alpha.Chunk m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.Chunk.parser(), extensionRegistry); + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.add(m); + } else { + chunksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List chunks_ = + java.util.Collections.emptyList(); + + private void ensureChunksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + chunks_ = new java.util.ArrayList(chunks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Chunk, + com.google.cloud.discoveryengine.v1alpha.Chunk.Builder, + com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder> + chunksBuilder_; + + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public java.util.List getChunksList() { + if (chunksBuilder_ == null) { + return java.util.Collections.unmodifiableList(chunks_); + } else { + return chunksBuilder_.getMessageList(); + } + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public int getChunksCount() { + if (chunksBuilder_ == null) { + return chunks_.size(); + } else { + return chunksBuilder_.getCount(); + } + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Chunk getChunks(int index) { + if (chunksBuilder_ == null) { + return chunks_.get(index); + } else { + return chunksBuilder_.getMessage(index); + } + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public Builder setChunks(int index, com.google.cloud.discoveryengine.v1alpha.Chunk value) { + if (chunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunksIsMutable(); + chunks_.set(index, value); + onChanged(); + } else { + chunksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public Builder setChunks( + int index, com.google.cloud.discoveryengine.v1alpha.Chunk.Builder builderForValue) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.set(index, builderForValue.build()); + onChanged(); + } else { + chunksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public Builder addChunks(com.google.cloud.discoveryengine.v1alpha.Chunk value) { + if (chunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunksIsMutable(); + chunks_.add(value); + onChanged(); + } else { + chunksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public Builder addChunks(int index, com.google.cloud.discoveryengine.v1alpha.Chunk value) { + if (chunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunksIsMutable(); + chunks_.add(index, value); + onChanged(); + } else { + chunksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public Builder addChunks( + com.google.cloud.discoveryengine.v1alpha.Chunk.Builder builderForValue) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.add(builderForValue.build()); + onChanged(); + } else { + chunksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public Builder addChunks( + int index, com.google.cloud.discoveryengine.v1alpha.Chunk.Builder builderForValue) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.add(index, builderForValue.build()); + onChanged(); + } else { + chunksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public Builder addAllChunks( + java.lang.Iterable values) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, chunks_); + onChanged(); + } else { + chunksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public Builder clearChunks() { + if (chunksBuilder_ == null) { + chunks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + chunksBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public Builder removeChunks(int index) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.remove(index); + onChanged(); + } else { + chunksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Chunk.Builder getChunksBuilder(int index) { + return getChunksFieldBuilder().getBuilder(index); + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder getChunksOrBuilder(int index) { + if (chunksBuilder_ == null) { + return chunks_.get(index); + } else { + return chunksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public java.util.List + getChunksOrBuilderList() { + if (chunksBuilder_ != null) { + return chunksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(chunks_); + } + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Chunk.Builder addChunksBuilder() { + return getChunksFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1alpha.Chunk.getDefaultInstance()); + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public com.google.cloud.discoveryengine.v1alpha.Chunk.Builder addChunksBuilder(int index) { + return getChunksFieldBuilder() + .addBuilder(index, com.google.cloud.discoveryengine.v1alpha.Chunk.getDefaultInstance()); + } + /** + * + * + *
                                +     * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + public java.util.List + getChunksBuilderList() { + return getChunksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Chunk, + com.google.cloud.discoveryengine.v1alpha.Chunk.Builder, + com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder> + getChunksFieldBuilder() { + if (chunksBuilder_ == null) { + chunksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Chunk, + com.google.cloud.discoveryengine.v1alpha.Chunk.Builder, + com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder>( + chunks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + chunks_ = null; + } + return chunksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
                                +     * A token that can be sent as
                                +     * [ListChunksRequest.page_token][google.cloud.discoveryengine.v1alpha.ListChunksRequest.page_token]
                                +     * to retrieve the next page. If this field is omitted, there are no
                                +     * subsequent pages.
                                +     * 
                                + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * A token that can be sent as
                                +     * [ListChunksRequest.page_token][google.cloud.discoveryengine.v1alpha.ListChunksRequest.page_token]
                                +     * to retrieve the next page. If this field is omitted, there are no
                                +     * subsequent pages.
                                +     * 
                                + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * A token that can be sent as
                                +     * [ListChunksRequest.page_token][google.cloud.discoveryengine.v1alpha.ListChunksRequest.page_token]
                                +     * to retrieve the next page. If this field is omitted, there are no
                                +     * subsequent pages.
                                +     * 
                                + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * A token that can be sent as
                                +     * [ListChunksRequest.page_token][google.cloud.discoveryengine.v1alpha.ListChunksRequest.page_token]
                                +     * to retrieve the next page. If this field is omitted, there are no
                                +     * subsequent pages.
                                +     * 
                                + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                +     * A token that can be sent as
                                +     * [ListChunksRequest.page_token][google.cloud.discoveryengine.v1alpha.ListChunksRequest.page_token]
                                +     * to retrieve the next page. If this field is omitted, there are no
                                +     * subsequent pages.
                                +     * 
                                + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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.discoveryengine.v1alpha.ListChunksResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListChunksResponse) + private static final com.google.cloud.discoveryengine.v1alpha.ListChunksResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListChunksResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListChunksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListChunksResponse 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.discoveryengine.v1alpha.ListChunksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListChunksResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListChunksResponseOrBuilder.java new file mode 100644 index 000000000000..91c0e2fae297 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListChunksResponseOrBuilder.java @@ -0,0 +1,109 @@ +/* + * 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/discoveryengine/v1alpha/chunk_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListChunksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListChunksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + java.util.List getChunksList(); + /** + * + * + *
                                +   * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + com.google.cloud.discoveryengine.v1alpha.Chunk getChunks(int index); + /** + * + * + *
                                +   * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + int getChunksCount(); + /** + * + * + *
                                +   * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + java.util.List + getChunksOrBuilderList(); + /** + * + * + *
                                +   * The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.Chunk chunks = 1; + */ + com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder getChunksOrBuilder(int index); + + /** + * + * + *
                                +   * A token that can be sent as
                                +   * [ListChunksRequest.page_token][google.cloud.discoveryengine.v1alpha.ListChunksRequest.page_token]
                                +   * to retrieve the next page. If this field is omitted, there are no
                                +   * subsequent pages.
                                +   * 
                                + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
                                +   * A token that can be sent as
                                +   * [ListChunksRequest.page_token][google.cloud.discoveryengine.v1alpha.ListChunksRequest.page_token]
                                +   * to retrieve the next page. If this field is omitted, there are no
                                +   * subsequent pages.
                                +   * 
                                + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDataStoresRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDataStoresRequest.java index ae09ca843427..29e242615d76 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDataStoresRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDataStoresRequest.java @@ -78,7 +78,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The parent branch resource name, such as * `projects/{project}/locations/{location}/collections/{collection_id}`. * - * If the caller does not have permission to list [DataStores][]s under this + * If the caller does not have permission to list + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s under this * location, regardless of whether or not this data store exists, a * PERMISSION_DENIED error is returned. * @@ -108,7 +109,8 @@ public java.lang.String getParent() { * Required. The parent branch resource name, such as * `projects/{project}/locations/{location}/collections/{collection_id}`. * - * If the caller does not have permission to list [DataStores][]s under this + * If the caller does not have permission to list + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s under this * location, regardless of whether or not this data store exists, a * PERMISSION_DENIED error is returned. * @@ -703,7 +705,8 @@ public Builder mergeFrom( * Required. The parent branch resource name, such as * `projects/{project}/locations/{location}/collections/{collection_id}`. * - * If the caller does not have permission to list [DataStores][]s under this + * If the caller does not have permission to list + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s under this * location, regardless of whether or not this data store exists, a * PERMISSION_DENIED error is returned. * @@ -732,7 +735,8 @@ public java.lang.String getParent() { * Required. The parent branch resource name, such as * `projects/{project}/locations/{location}/collections/{collection_id}`. * - * If the caller does not have permission to list [DataStores][]s under this + * If the caller does not have permission to list + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s under this * location, regardless of whether or not this data store exists, a * PERMISSION_DENIED error is returned. * @@ -761,7 +765,8 @@ public com.google.protobuf.ByteString getParentBytes() { * Required. The parent branch resource name, such as * `projects/{project}/locations/{location}/collections/{collection_id}`. * - * If the caller does not have permission to list [DataStores][]s under this + * If the caller does not have permission to list + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s under this * location, regardless of whether or not this data store exists, a * PERMISSION_DENIED error is returned. * @@ -789,7 +794,8 @@ public Builder setParent(java.lang.String value) { * Required. The parent branch resource name, such as * `projects/{project}/locations/{location}/collections/{collection_id}`. * - * If the caller does not have permission to list [DataStores][]s under this + * If the caller does not have permission to list + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s under this * location, regardless of whether or not this data store exists, a * PERMISSION_DENIED error is returned. * @@ -813,7 +819,8 @@ public Builder clearParent() { * Required. The parent branch resource name, such as * `projects/{project}/locations/{location}/collections/{collection_id}`. * - * If the caller does not have permission to list [DataStores][]s under this + * If the caller does not have permission to list + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s under this * location, regardless of whether or not this data store exists, a * PERMISSION_DENIED error is returned. * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDataStoresRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDataStoresRequestOrBuilder.java index a289e8914472..895a5d2dd4fd 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDataStoresRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListDataStoresRequestOrBuilder.java @@ -31,7 +31,8 @@ public interface ListDataStoresRequestOrBuilder * Required. The parent branch resource name, such as * `projects/{project}/locations/{location}/collections/{collection_id}`. * - * If the caller does not have permission to list [DataStores][]s under this + * If the caller does not have permission to list + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s under this * location, regardless of whether or not this data store exists, a * PERMISSION_DENIED error is returned. * @@ -50,7 +51,8 @@ public interface ListDataStoresRequestOrBuilder * Required. The parent branch resource name, such as * `projects/{project}/locations/{location}/collections/{collection_id}`. * - * If the caller does not have permission to list [DataStores][]s under this + * If the caller does not have permission to list + * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s under this * location, regardless of whether or not this data store exists, a * PERMISSION_DENIED error is returned. * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListServingConfigsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListServingConfigsRequest.java new file mode 100644 index 000000000000..10376d9794c9 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListServingConfigsRequest.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/discoveryengine/v1alpha/serving_config_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Request for ListServingConfigs method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest} + */ +public final class ListServingConfigsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest) + ListServingConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListServingConfigsRequest.newBuilder() to construct. + private ListServingConfigsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListServingConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListServingConfigsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest.class, + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
                                +   * Required. Full resource name of the parent resource. Format:
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                +   * 
                                + * + * + * 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. Full resource name of the parent resource. Format:
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                +   * 
                                + * + * + * 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 PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
                                +   * Optional. Maximum number of results to return. If unspecified, defaults
                                +   * to 100. If a value greater than 100 is provided, at most 100 results are
                                +   * returned.
                                +   * 
                                + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
                                +   * Optional. A page token, received from a previous `ListServingConfigs` call.
                                +   * Provide this to retrieve the subsequent page.
                                +   * 
                                + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
                                +   * Optional. A page token, received from a previous `ListServingConfigs` call.
                                +   * Provide this to retrieve the subsequent page.
                                +   * 
                                + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + 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.discoveryengine.v1alpha.ListServingConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest other = + (com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest 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.discoveryengine.v1alpha.ListServingConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest 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.discoveryengine.v1alpha.ListServingConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest 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.discoveryengine.v1alpha.ListServingConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest + 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.discoveryengine.v1alpha.ListServingConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest 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.discoveryengine.v1alpha.ListServingConfigsRequest 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 for ListServingConfigs method.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest) + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest.class, + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest build() { + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest result = + new com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @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.discoveryengine.v1alpha.ListServingConfigsRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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 bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
                                +     * Required. Full resource name of the parent resource. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                +     * 
                                + * + * + * 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. Full resource name of the parent resource. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                +     * 
                                + * + * + * 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. Full resource name of the parent resource. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                +     * 
                                + * + * + * 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. Full resource name of the parent resource. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                +     * 
                                + * + * + * 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. Full resource name of the parent resource. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                +     * 
                                + * + * + * 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 int pageSize_; + /** + * + * + *
                                +     * Optional. Maximum number of results to return. If unspecified, defaults
                                +     * to 100. If a value greater than 100 is provided, at most 100 results are
                                +     * returned.
                                +     * 
                                + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
                                +     * Optional. Maximum number of results to return. If unspecified, defaults
                                +     * to 100. If a value greater than 100 is provided, at most 100 results are
                                +     * returned.
                                +     * 
                                + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Optional. Maximum number of results to return. If unspecified, defaults
                                +     * to 100. If a value greater than 100 is provided, at most 100 results are
                                +     * returned.
                                +     * 
                                + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
                                +     * Optional. A page token, received from a previous `ListServingConfigs` call.
                                +     * Provide this to retrieve the subsequent page.
                                +     * 
                                + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Optional. A page token, received from a previous `ListServingConfigs` call.
                                +     * Provide this to retrieve the subsequent page.
                                +     * 
                                + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Optional. A page token, received from a previous `ListServingConfigs` call.
                                +     * Provide this to retrieve the subsequent page.
                                +     * 
                                + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Optional. A page token, received from a previous `ListServingConfigs` call.
                                +     * Provide this to retrieve the subsequent page.
                                +     * 
                                + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Optional. A page token, received from a previous `ListServingConfigs` call.
                                +     * Provide this to retrieve the subsequent page.
                                +     * 
                                + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + 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.discoveryengine.v1alpha.ListServingConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest) + private static final com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServingConfigsRequest 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.discoveryengine.v1alpha.ListServingConfigsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListServingConfigsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListServingConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..fc1b07ab40cb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListServingConfigsRequestOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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/discoveryengine/v1alpha/serving_config_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListServingConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Required. Full resource name of the parent resource. Format:
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                +   * 
                                + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
                                +   * Required. Full resource name of the parent resource. Format:
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                +   * 
                                + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                +   * Optional. Maximum number of results to return. If unspecified, defaults
                                +   * to 100. If a value greater than 100 is provided, at most 100 results are
                                +   * returned.
                                +   * 
                                + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                +   * Optional. A page token, received from a previous `ListServingConfigs` call.
                                +   * Provide this to retrieve the subsequent page.
                                +   * 
                                + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
                                +   * Optional. A page token, received from a previous `ListServingConfigs` call.
                                +   * Provide this to retrieve the subsequent page.
                                +   * 
                                + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListServingConfigsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListServingConfigsResponse.java new file mode 100644 index 000000000000..5088d85144eb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListServingConfigsResponse.java @@ -0,0 +1,1166 @@ +/* + * 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/discoveryengine/v1alpha/serving_config_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Response for ListServingConfigs method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse} + */ +public final class ListServingConfigsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse) + ListServingConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListServingConfigsResponse.newBuilder() to construct. + private ListServingConfigsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListServingConfigsResponse() { + servingConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListServingConfigsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse.class, + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse.Builder.class); + } + + public static final int SERVING_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List servingConfigs_; + /** + * + * + *
                                +   * All the ServingConfigs for a given dataStore.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + */ + @java.lang.Override + public java.util.List + getServingConfigsList() { + return servingConfigs_; + } + /** + * + * + *
                                +   * All the ServingConfigs for a given dataStore.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + */ + @java.lang.Override + public java.util.List + getServingConfigsOrBuilderList() { + return servingConfigs_; + } + /** + * + * + *
                                +   * All the ServingConfigs for a given dataStore.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + */ + @java.lang.Override + public int getServingConfigsCount() { + return servingConfigs_.size(); + } + /** + * + * + *
                                +   * All the ServingConfigs for a given dataStore.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig getServingConfigs(int index) { + return servingConfigs_.get(index); + } + /** + * + * + *
                                +   * All the ServingConfigs for a given dataStore.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfigOrBuilder getServingConfigsOrBuilder( + int index) { + return servingConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
                                +   * Pagination token, if not returned indicates the last page.
                                +   * 
                                + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
                                +   * Pagination token, if not returned indicates the last page.
                                +   * 
                                + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < servingConfigs_.size(); i++) { + output.writeMessage(1, servingConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < servingConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, servingConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.discoveryengine.v1alpha.ListServingConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse other = + (com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse) obj; + + if (!getServingConfigsList().equals(other.getServingConfigsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getServingConfigsCount() > 0) { + hash = (37 * hash) + SERVING_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getServingConfigsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse 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.discoveryengine.v1alpha.ListServingConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse 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.discoveryengine.v1alpha.ListServingConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse 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.discoveryengine.v1alpha.ListServingConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse + 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.discoveryengine.v1alpha.ListServingConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse 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.discoveryengine.v1alpha.ListServingConfigsResponse 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 for ListServingConfigs method.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse) + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse.class, + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (servingConfigsBuilder_ == null) { + servingConfigs_ = java.util.Collections.emptyList(); + } else { + servingConfigs_ = null; + servingConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse build() { + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse result = + new com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse result) { + if (servingConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + servingConfigs_ = java.util.Collections.unmodifiableList(servingConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.servingConfigs_ = servingConfigs_; + } else { + result.servingConfigs_ = servingConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.discoveryengine.v1alpha.ListServingConfigsResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse + .getDefaultInstance()) return this; + if (servingConfigsBuilder_ == null) { + if (!other.servingConfigs_.isEmpty()) { + if (servingConfigs_.isEmpty()) { + servingConfigs_ = other.servingConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureServingConfigsIsMutable(); + servingConfigs_.addAll(other.servingConfigs_); + } + onChanged(); + } + } else { + if (!other.servingConfigs_.isEmpty()) { + if (servingConfigsBuilder_.isEmpty()) { + servingConfigsBuilder_.dispose(); + servingConfigsBuilder_ = null; + servingConfigs_ = other.servingConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + servingConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getServingConfigsFieldBuilder() + : null; + } else { + servingConfigsBuilder_.addAllMessages(other.servingConfigs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.discoveryengine.v1alpha.ServingConfig m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.parser(), + extensionRegistry); + if (servingConfigsBuilder_ == null) { + ensureServingConfigsIsMutable(); + servingConfigs_.add(m); + } else { + servingConfigsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List servingConfigs_ = + java.util.Collections.emptyList(); + + private void ensureServingConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + servingConfigs_ = + new java.util.ArrayList( + servingConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ServingConfig, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ServingConfigOrBuilder> + servingConfigsBuilder_; + + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public java.util.List + getServingConfigsList() { + if (servingConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(servingConfigs_); + } else { + return servingConfigsBuilder_.getMessageList(); + } + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public int getServingConfigsCount() { + if (servingConfigsBuilder_ == null) { + return servingConfigs_.size(); + } else { + return servingConfigsBuilder_.getCount(); + } + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ServingConfig getServingConfigs(int index) { + if (servingConfigsBuilder_ == null) { + return servingConfigs_.get(index); + } else { + return servingConfigsBuilder_.getMessage(index); + } + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public Builder setServingConfigs( + int index, com.google.cloud.discoveryengine.v1alpha.ServingConfig value) { + if (servingConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServingConfigsIsMutable(); + servingConfigs_.set(index, value); + onChanged(); + } else { + servingConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public Builder setServingConfigs( + int index, com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder builderForValue) { + if (servingConfigsBuilder_ == null) { + ensureServingConfigsIsMutable(); + servingConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + servingConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public Builder addServingConfigs(com.google.cloud.discoveryengine.v1alpha.ServingConfig value) { + if (servingConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServingConfigsIsMutable(); + servingConfigs_.add(value); + onChanged(); + } else { + servingConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public Builder addServingConfigs( + int index, com.google.cloud.discoveryengine.v1alpha.ServingConfig value) { + if (servingConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServingConfigsIsMutable(); + servingConfigs_.add(index, value); + onChanged(); + } else { + servingConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public Builder addServingConfigs( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder builderForValue) { + if (servingConfigsBuilder_ == null) { + ensureServingConfigsIsMutable(); + servingConfigs_.add(builderForValue.build()); + onChanged(); + } else { + servingConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public Builder addServingConfigs( + int index, com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder builderForValue) { + if (servingConfigsBuilder_ == null) { + ensureServingConfigsIsMutable(); + servingConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + servingConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public Builder addAllServingConfigs( + java.lang.Iterable + values) { + if (servingConfigsBuilder_ == null) { + ensureServingConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, servingConfigs_); + onChanged(); + } else { + servingConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public Builder clearServingConfigs() { + if (servingConfigsBuilder_ == null) { + servingConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + servingConfigsBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public Builder removeServingConfigs(int index) { + if (servingConfigsBuilder_ == null) { + ensureServingConfigsIsMutable(); + servingConfigs_.remove(index); + onChanged(); + } else { + servingConfigsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder getServingConfigsBuilder( + int index) { + return getServingConfigsFieldBuilder().getBuilder(index); + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ServingConfigOrBuilder + getServingConfigsOrBuilder(int index) { + if (servingConfigsBuilder_ == null) { + return servingConfigs_.get(index); + } else { + return servingConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public java.util.List + getServingConfigsOrBuilderList() { + if (servingConfigsBuilder_ != null) { + return servingConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(servingConfigs_); + } + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder + addServingConfigsBuilder() { + return getServingConfigsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1alpha.ServingConfig.getDefaultInstance()); + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder addServingConfigsBuilder( + int index) { + return getServingConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1alpha.ServingConfig.getDefaultInstance()); + } + /** + * + * + *
                                +     * All the ServingConfigs for a given dataStore.
                                +     * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + * + */ + public java.util.List + getServingConfigsBuilderList() { + return getServingConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ServingConfig, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ServingConfigOrBuilder> + getServingConfigsFieldBuilder() { + if (servingConfigsBuilder_ == null) { + servingConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ServingConfig, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ServingConfigOrBuilder>( + servingConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + servingConfigs_ = null; + } + return servingConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
                                +     * Pagination token, if not returned indicates the last page.
                                +     * 
                                + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Pagination token, if not returned indicates the last page.
                                +     * 
                                + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Pagination token, if not returned indicates the last page.
                                +     * 
                                + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Pagination token, if not returned indicates the last page.
                                +     * 
                                + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Pagination token, if not returned indicates the last page.
                                +     * 
                                + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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.discoveryengine.v1alpha.ListServingConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse) + private static final com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServingConfigsResponse 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.discoveryengine.v1alpha.ListServingConfigsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListServingConfigsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListServingConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..a47f9745bd49 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ListServingConfigsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/discoveryengine/v1alpha/serving_config_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ListServingConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * All the ServingConfigs for a given dataStore.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + */ + java.util.List getServingConfigsList(); + /** + * + * + *
                                +   * All the ServingConfigs for a given dataStore.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + */ + com.google.cloud.discoveryengine.v1alpha.ServingConfig getServingConfigs(int index); + /** + * + * + *
                                +   * All the ServingConfigs for a given dataStore.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + */ + int getServingConfigsCount(); + /** + * + * + *
                                +   * All the ServingConfigs for a given dataStore.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + */ + java.util.List + getServingConfigsOrBuilderList(); + /** + * + * + *
                                +   * All the ServingConfigs for a given dataStore.
                                +   * 
                                + * + * repeated .google.cloud.discoveryengine.v1alpha.ServingConfig serving_configs = 1; + */ + com.google.cloud.discoveryengine.v1alpha.ServingConfigOrBuilder getServingConfigsOrBuilder( + int index); + + /** + * + * + *
                                +   * Pagination token, if not returned indicates the last page.
                                +   * 
                                + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
                                +   * Pagination token, if not returned indicates the last page.
                                +   * 
                                + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/LocationName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/LocationName.java new file mode 100644 index 000000000000..073de7feefd2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/LocationName.java @@ -0,0 +1,192 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Principal.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Principal.java new file mode 100644 index 000000000000..1fbad6c555d5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/Principal.java @@ -0,0 +1,1062 @@ +/* + * 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/discoveryengine/v1alpha/common.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Principal identifier of a user or a group.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Principal} + */ +public final class Principal extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.Principal) + PrincipalOrBuilder { + private static final long serialVersionUID = 0L; + // Use Principal.newBuilder() to construct. + private Principal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Principal() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Principal(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_Principal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_Principal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Principal.class, + com.google.cloud.discoveryengine.v1alpha.Principal.Builder.class); + } + + private int principalCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object principal_; + + public enum PrincipalCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER_ID(1), + GROUP_ID(2), + PRINCIPAL_NOT_SET(0); + private final int value; + + private PrincipalCase(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 PrincipalCase valueOf(int value) { + return forNumber(value); + } + + public static PrincipalCase forNumber(int value) { + switch (value) { + case 1: + return USER_ID; + case 2: + return GROUP_ID; + case 0: + return PRINCIPAL_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PrincipalCase getPrincipalCase() { + return PrincipalCase.forNumber(principalCase_); + } + + public static final int USER_ID_FIELD_NUMBER = 1; + /** + * + * + *
                                +   * User identifier.
                                +   * For Google Workspace user account, user_id should be the google workspace
                                +   * user email.
                                +   * For non-google identity provider user account, user_id is the mapped user
                                +   * identifier configured during the workforcepool config.
                                +   * 
                                + * + * string user_id = 1; + * + * @return Whether the userId field is set. + */ + public boolean hasUserId() { + return principalCase_ == 1; + } + /** + * + * + *
                                +   * User identifier.
                                +   * For Google Workspace user account, user_id should be the google workspace
                                +   * user email.
                                +   * For non-google identity provider user account, user_id is the mapped user
                                +   * identifier configured during the workforcepool config.
                                +   * 
                                + * + * string user_id = 1; + * + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = ""; + if (principalCase_ == 1) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 1) { + principal_ = s; + } + return s; + } + } + /** + * + * + *
                                +   * User identifier.
                                +   * For Google Workspace user account, user_id should be the google workspace
                                +   * user email.
                                +   * For non-google identity provider user account, user_id is the mapped user
                                +   * identifier configured during the workforcepool config.
                                +   * 
                                + * + * string user_id = 1; + * + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 1) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 1) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_ID_FIELD_NUMBER = 2; + /** + * + * + *
                                +   * Group identifier.
                                +   * For Google Workspace user account, group_id should be the google
                                +   * workspace group email.
                                +   * For non-google identity provider user account, group_id is the mapped
                                +   * group identifier configured during the workforcepool config.
                                +   * 
                                + * + * string group_id = 2; + * + * @return Whether the groupId field is set. + */ + public boolean hasGroupId() { + return principalCase_ == 2; + } + /** + * + * + *
                                +   * Group identifier.
                                +   * For Google Workspace user account, group_id should be the google
                                +   * workspace group email.
                                +   * For non-google identity provider user account, group_id is the mapped
                                +   * group identifier configured during the workforcepool config.
                                +   * 
                                + * + * string group_id = 2; + * + * @return The groupId. + */ + public java.lang.String getGroupId() { + java.lang.Object ref = ""; + if (principalCase_ == 2) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 2) { + principal_ = s; + } + return s; + } + } + /** + * + * + *
                                +   * Group identifier.
                                +   * For Google Workspace user account, group_id should be the google
                                +   * workspace group email.
                                +   * For non-google identity provider user account, group_id is the mapped
                                +   * group identifier configured during the workforcepool config.
                                +   * 
                                + * + * string group_id = 2; + * + * @return The bytes for groupId. + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 2) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 2) { + principal_ = 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 (principalCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, principal_); + } + if (principalCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (principalCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, principal_); + } + if (principalCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); + } + 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.discoveryengine.v1alpha.Principal)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.Principal other = + (com.google.cloud.discoveryengine.v1alpha.Principal) obj; + + if (!getPrincipalCase().equals(other.getPrincipalCase())) return false; + switch (principalCase_) { + case 1: + if (!getUserId().equals(other.getUserId())) return false; + break; + case 2: + if (!getGroupId().equals(other.getGroupId())) 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 (principalCase_) { + case 1: + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + break; + case 2: + hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.Principal parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Principal 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.discoveryengine.v1alpha.Principal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Principal 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.discoveryengine.v1alpha.Principal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.Principal parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.Principal parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Principal 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.discoveryengine.v1alpha.Principal parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Principal 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.discoveryengine.v1alpha.Principal parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.Principal 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.discoveryengine.v1alpha.Principal 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; + } + /** + * + * + *
                                +   * Principal identifier of a user or a group.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.Principal} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.Principal) + com.google.cloud.discoveryengine.v1alpha.PrincipalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_Principal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_Principal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.Principal.class, + com.google.cloud.discoveryengine.v1alpha.Principal.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.Principal.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + principalCase_ = 0; + principal_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.CommonProto + .internal_static_google_cloud_discoveryengine_v1alpha_Principal_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Principal getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.Principal.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Principal build() { + com.google.cloud.discoveryengine.v1alpha.Principal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Principal buildPartial() { + com.google.cloud.discoveryengine.v1alpha.Principal result = + new com.google.cloud.discoveryengine.v1alpha.Principal(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.Principal result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.Principal result) { + result.principalCase_ = principalCase_; + result.principal_ = this.principal_; + } + + @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.discoveryengine.v1alpha.Principal) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.Principal) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.Principal other) { + if (other == com.google.cloud.discoveryengine.v1alpha.Principal.getDefaultInstance()) + return this; + switch (other.getPrincipalCase()) { + case USER_ID: + { + principalCase_ = 1; + principal_ = other.principal_; + onChanged(); + break; + } + case GROUP_ID: + { + principalCase_ = 2; + principal_ = other.principal_; + onChanged(); + break; + } + case PRINCIPAL_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: + { + java.lang.String s = input.readStringRequireUtf8(); + principalCase_ = 1; + principal_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + principalCase_ = 2; + principal_ = s; + 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 principalCase_ = 0; + private java.lang.Object principal_; + + public PrincipalCase getPrincipalCase() { + return PrincipalCase.forNumber(principalCase_); + } + + public Builder clearPrincipal() { + principalCase_ = 0; + principal_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                +     * User identifier.
                                +     * For Google Workspace user account, user_id should be the google workspace
                                +     * user email.
                                +     * For non-google identity provider user account, user_id is the mapped user
                                +     * identifier configured during the workforcepool config.
                                +     * 
                                + * + * string user_id = 1; + * + * @return Whether the userId field is set. + */ + @java.lang.Override + public boolean hasUserId() { + return principalCase_ == 1; + } + /** + * + * + *
                                +     * User identifier.
                                +     * For Google Workspace user account, user_id should be the google workspace
                                +     * user email.
                                +     * For non-google identity provider user account, user_id is the mapped user
                                +     * identifier configured during the workforcepool config.
                                +     * 
                                + * + * string user_id = 1; + * + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = ""; + if (principalCase_ == 1) { + ref = principal_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 1) { + principal_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * User identifier.
                                +     * For Google Workspace user account, user_id should be the google workspace
                                +     * user email.
                                +     * For non-google identity provider user account, user_id is the mapped user
                                +     * identifier configured during the workforcepool config.
                                +     * 
                                + * + * string user_id = 1; + * + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 1) { + ref = principal_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 1) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * User identifier.
                                +     * For Google Workspace user account, user_id should be the google workspace
                                +     * user email.
                                +     * For non-google identity provider user account, user_id is the mapped user
                                +     * identifier configured during the workforcepool config.
                                +     * 
                                + * + * string user_id = 1; + * + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + principalCase_ = 1; + principal_ = value; + onChanged(); + return this; + } + /** + * + * + *
                                +     * User identifier.
                                +     * For Google Workspace user account, user_id should be the google workspace
                                +     * user email.
                                +     * For non-google identity provider user account, user_id is the mapped user
                                +     * identifier configured during the workforcepool config.
                                +     * 
                                + * + * string user_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearUserId() { + if (principalCase_ == 1) { + principalCase_ = 0; + principal_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * User identifier.
                                +     * For Google Workspace user account, user_id should be the google workspace
                                +     * user email.
                                +     * For non-google identity provider user account, user_id is the mapped user
                                +     * identifier configured during the workforcepool config.
                                +     * 
                                + * + * string user_id = 1; + * + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalCase_ = 1; + principal_ = value; + onChanged(); + return this; + } + + /** + * + * + *
                                +     * Group identifier.
                                +     * For Google Workspace user account, group_id should be the google
                                +     * workspace group email.
                                +     * For non-google identity provider user account, group_id is the mapped
                                +     * group identifier configured during the workforcepool config.
                                +     * 
                                + * + * string group_id = 2; + * + * @return Whether the groupId field is set. + */ + @java.lang.Override + public boolean hasGroupId() { + return principalCase_ == 2; + } + /** + * + * + *
                                +     * Group identifier.
                                +     * For Google Workspace user account, group_id should be the google
                                +     * workspace group email.
                                +     * For non-google identity provider user account, group_id is the mapped
                                +     * group identifier configured during the workforcepool config.
                                +     * 
                                + * + * string group_id = 2; + * + * @return The groupId. + */ + @java.lang.Override + public java.lang.String getGroupId() { + java.lang.Object ref = ""; + if (principalCase_ == 2) { + ref = principal_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 2) { + principal_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Group identifier.
                                +     * For Google Workspace user account, group_id should be the google
                                +     * workspace group email.
                                +     * For non-google identity provider user account, group_id is the mapped
                                +     * group identifier configured during the workforcepool config.
                                +     * 
                                + * + * string group_id = 2; + * + * @return The bytes for groupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 2) { + ref = principal_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 2) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Group identifier.
                                +     * For Google Workspace user account, group_id should be the google
                                +     * workspace group email.
                                +     * For non-google identity provider user account, group_id is the mapped
                                +     * group identifier configured during the workforcepool config.
                                +     * 
                                + * + * string group_id = 2; + * + * @param value The groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + principalCase_ = 2; + principal_ = value; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Group identifier.
                                +     * For Google Workspace user account, group_id should be the google
                                +     * workspace group email.
                                +     * For non-google identity provider user account, group_id is the mapped
                                +     * group identifier configured during the workforcepool config.
                                +     * 
                                + * + * string group_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearGroupId() { + if (principalCase_ == 2) { + principalCase_ = 0; + principal_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Group identifier.
                                +     * For Google Workspace user account, group_id should be the google
                                +     * workspace group email.
                                +     * For non-google identity provider user account, group_id is the mapped
                                +     * group identifier configured during the workforcepool config.
                                +     * 
                                + * + * string group_id = 2; + * + * @param value The bytes for groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalCase_ = 2; + principal_ = value; + 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.discoveryengine.v1alpha.Principal) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.Principal) + private static final com.google.cloud.discoveryengine.v1alpha.Principal DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.Principal(); + } + + public static com.google.cloud.discoveryengine.v1alpha.Principal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Principal 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.discoveryengine.v1alpha.Principal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PrincipalOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PrincipalOrBuilder.java new file mode 100644 index 000000000000..d3dec84f2abb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PrincipalOrBuilder.java @@ -0,0 +1,126 @@ +/* + * 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/discoveryengine/v1alpha/common.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface PrincipalOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.Principal) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * User identifier.
                                +   * For Google Workspace user account, user_id should be the google workspace
                                +   * user email.
                                +   * For non-google identity provider user account, user_id is the mapped user
                                +   * identifier configured during the workforcepool config.
                                +   * 
                                + * + * string user_id = 1; + * + * @return Whether the userId field is set. + */ + boolean hasUserId(); + /** + * + * + *
                                +   * User identifier.
                                +   * For Google Workspace user account, user_id should be the google workspace
                                +   * user email.
                                +   * For non-google identity provider user account, user_id is the mapped user
                                +   * identifier configured during the workforcepool config.
                                +   * 
                                + * + * string user_id = 1; + * + * @return The userId. + */ + java.lang.String getUserId(); + /** + * + * + *
                                +   * User identifier.
                                +   * For Google Workspace user account, user_id should be the google workspace
                                +   * user email.
                                +   * For non-google identity provider user account, user_id is the mapped user
                                +   * identifier configured during the workforcepool config.
                                +   * 
                                + * + * string user_id = 1; + * + * @return The bytes for userId. + */ + com.google.protobuf.ByteString getUserIdBytes(); + + /** + * + * + *
                                +   * Group identifier.
                                +   * For Google Workspace user account, group_id should be the google
                                +   * workspace group email.
                                +   * For non-google identity provider user account, group_id is the mapped
                                +   * group identifier configured during the workforcepool config.
                                +   * 
                                + * + * string group_id = 2; + * + * @return Whether the groupId field is set. + */ + boolean hasGroupId(); + /** + * + * + *
                                +   * Group identifier.
                                +   * For Google Workspace user account, group_id should be the google
                                +   * workspace group email.
                                +   * For non-google identity provider user account, group_id is the mapped
                                +   * group identifier configured during the workforcepool config.
                                +   * 
                                + * + * string group_id = 2; + * + * @return The groupId. + */ + java.lang.String getGroupId(); + /** + * + * + *
                                +   * Group identifier.
                                +   * For Google Workspace user account, group_id should be the google
                                +   * workspace group email.
                                +   * For non-google identity provider user account, group_id is the mapped
                                +   * group identifier configured during the workforcepool config.
                                +   * 
                                + * + * string group_id = 2; + * + * @return The bytes for groupId. + */ + com.google.protobuf.ByteString getGroupIdBytes(); + + com.google.cloud.discoveryengine.v1alpha.Principal.PrincipalCase getPrincipalCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeConfigProto.java index 6481715f15ae..d4b16659f105 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeConfigProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeConfigProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_PurgeErrorConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_PurgeErrorConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -52,6 +56,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -64,35 +80,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n7google/cloud/discoveryengine/v1alpha/p" + "urge_config.proto\022$google.cloud.discover" + "yengine.v1alpha\032\037google/api/field_behavi" - + "or.proto\032\031google/api/resource.proto\032\037goo" - + "gle/protobuf/timestamp.proto\"~\n\026PurgeUse" - + "rEventsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(" - + "discoveryengine.googleapis.com/DataStore" - + "\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\r\n\005force\030\003 \001(\010\".\n\027" - + "PurgeUserEventsResponse\022\023\n\013purge_count\030\001" - + " \001(\003\"\251\001\n\027PurgeUserEventsMetadata\022/\n\013crea" - + "te_time\030\001 \001(\0132\032.google.protobuf.Timestam" - + "p\022/\n\013update_time\030\002 \001(\0132\032.google.protobuf" - + ".Timestamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfai" - + "lure_count\030\004 \001(\003\"z\n\025PurgeDocumentsReques" - + "t\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengi" - + "ne.googleapis.com/Branch\022\023\n\006filter\030\002 \001(\t" - + "B\003\340A\002\022\r\n\005force\030\003 \001(\010\"q\n\026PurgeDocumentsRe" - + "sponse\022\023\n\013purge_count\030\001 \001(\003\022B\n\014purge_sam" - + "ple\030\002 \003(\tB,\372A)\n\'discoveryengine.googleap" - + "is.com/Document\"\250\001\n\026PurgeDocumentsMetada" - + "ta\022/\n\013create_time\030\001 \001(\0132\032.google.protobu" - + "f.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.googl" - + "e.protobuf.Timestamp\022\025\n\rsuccess_count\030\003 " - + "\001(\003\022\025\n\rfailure_count\030\004 \001(\003B\234\002\n(com.googl" - + "e.cloud.discoveryengine.v1alphaB\020PurgeCo" - + "nfigProtoP\001ZRcloud.google.com/go/discove" - + "ryengine/apiv1alpha/discoveryenginepb;di" - + "scoveryenginepb\242\002\017DISCOVERYENGINE\252\002$Goog" - + "le.Cloud.DiscoveryEngine.V1Alpha\312\002$Googl" - + "e\\Cloud\\DiscoveryEngine\\V1alpha\352\002\'Google" - + "::Cloud::DiscoveryEngine::V1alphab\006proto" - + "3" + + "or.proto\032\031google/api/resource.proto\0328goo" + + "gle/cloud/discoveryengine/v1alpha/import" + + "_config.proto\032\037google/protobuf/timestamp" + + ".proto\032\027google/rpc/status.proto\"~\n\026Purge" + + "UserEventsRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A" + + "*\n(discoveryengine.googleapis.com/DataSt" + + "ore\022\023\n\006filter\030\002 \001(\tB\003\340A\002\022\r\n\005force\030\003 \001(\010\"" + + ".\n\027PurgeUserEventsResponse\022\023\n\013purge_coun" + + "t\030\001 \001(\003\"\251\001\n\027PurgeUserEventsMetadata\022/\n\013c" + + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tamp\022/\n\013update_time\030\002 \001(\0132\032.google.proto" + + "buf.Timestamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\r" + + "failure_count\030\004 \001(\003\"7\n\020PurgeErrorConfig\022" + + "\024\n\ngcs_prefix\030\001 \001(\tH\000B\r\n\013destination\"\231\002\n" + + "\025PurgeDocumentsRequest\022E\n\ngcs_source\030\005 \001" + + "(\0132/.google.cloud.discoveryengine.v1alph" + + "a.GcsSourceH\000\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\n%d" + + "iscoveryengine.googleapis.com/Branch\022\023\n\006" + + "filter\030\002 \001(\tB\003\340A\002\022L\n\014error_config\030\007 \001(\0132" + + "6.google.cloud.discoveryengine.v1alpha.P" + + "urgeErrorConfig\022\r\n\005force\030\003 \001(\010B\010\n\006source" + + "\"q\n\026PurgeDocumentsResponse\022\023\n\013purge_coun" + + "t\030\001 \001(\003\022B\n\014purge_sample\030\002 \003(\tB,\372A)\n\'disc" + + "overyengine.googleapis.com/Document\"\277\001\n\026" + + "PurgeDocumentsMetadata\022/\n\013create_time\030\001 " + + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat" + + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp" + + "\022\025\n\rsuccess_count\030\003 \001(\003\022\025\n\rfailure_count" + + "\030\004 \001(\003\022\025\n\rignored_count\030\005 \001(\003\"i\n%PurgeSu" + + "ggestionDenyListEntriesRequest\022@\n\006parent" + + "\030\001 \001(\tB0\340A\002\372A*\n(discoveryengine.googleap" + + "is.com/DataStore\"h\n&PurgeSuggestionDenyL" + + "istEntriesResponse\022\023\n\013purge_count\030\001 \001(\003\022" + + ")\n\rerror_samples\030\002 \003(\0132\022.google.rpc.Stat" + + "us\"\212\001\n&PurgeSuggestionDenyListEntriesMet" + + "adata\022/\n\013create_time\030\001 \001(\0132\032.google.prot" + + "obuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\234\002\n(com.google.c" + + "loud.discoveryengine.v1alphaB\020PurgeConfi" + + "gProtoP\001ZRcloud.google.com/go/discoverye" + + "ngine/apiv1alpha/discoveryenginepb;disco" + + "veryenginepb\242\002\017DISCOVERYENGINE\252\002$Google." + + "Cloud.DiscoveryEngine.V1Alpha\312\002$Google\\C" + + "loud\\DiscoveryEngine\\V1alpha\352\002\'Google::C" + + "loud::DiscoveryEngine::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -100,7 +132,9 @@ 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.cloud.discoveryengine.v1alpha.ImportConfigProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1alpha_PurgeUserEventsRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -126,16 +160,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", }); - internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_PurgeErrorConfig_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeErrorConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_PurgeErrorConfig_descriptor, + new java.lang.String[] { + "GcsPrefix", "Destination", + }); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsRequest_descriptor, new java.lang.String[] { - "Parent", "Filter", "Force", + "GcsSource", "Parent", "Filter", "ErrorConfig", "Force", "Source", }); internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsResponse_descriptor, @@ -143,12 +185,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PurgeCount", "PurgeSample", }); internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_PurgeDocumentsMetadata_descriptor, new java.lang.String[] { - "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", + "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", "IgnoredCount", + }); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesResponse_descriptor, + new java.lang.String[] { + "PurgeCount", "ErrorSamples", + }); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesMetadata_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -158,7 +224,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.ImportConfigProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadata.java index 1f134b47e0e6..e52bfde5c844 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadata.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadata.java @@ -194,6 +194,24 @@ public long getFailureCount() { return failureCount_; } + public static final int IGNORED_COUNT_FIELD_NUMBER = 5; + private long ignoredCount_ = 0L; + /** + * + * + *
                                +   * Count of entries that were ignored as entries were not found.
                                +   * 
                                + * + * int64 ignored_count = 5; + * + * @return The ignoredCount. + */ + @java.lang.Override + public long getIgnoredCount() { + return ignoredCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -220,6 +238,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (failureCount_ != 0L) { output.writeInt64(4, failureCount_); } + if (ignoredCount_ != 0L) { + output.writeInt64(5, ignoredCount_); + } getUnknownFields().writeTo(output); } @@ -241,6 +262,9 @@ public int getSerializedSize() { if (failureCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); } + if (ignoredCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ignoredCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -267,6 +291,7 @@ public boolean equals(final java.lang.Object obj) { } if (getSuccessCount() != other.getSuccessCount()) return false; if (getFailureCount() != other.getFailureCount()) return false; + if (getIgnoredCount() != other.getIgnoredCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,6 +315,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessCount()); hash = (37 * hash) + FAILURE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailureCount()); + hash = (37 * hash) + IGNORED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIgnoredCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -453,6 +480,7 @@ public Builder clear() { } successCount_ = 0L; failureCount_ = 0L; + ignoredCount_ = 0L; return this; } @@ -506,6 +534,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000008) != 0)) { result.failureCount_ = failureCount_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ignoredCount_ = ignoredCount_; + } result.bitField0_ |= to_bitField0_; } @@ -569,6 +600,9 @@ public Builder mergeFrom( if (other.getFailureCount() != 0L) { setFailureCount(other.getFailureCount()); } + if (other.getIgnoredCount() != 0L) { + setIgnoredCount(other.getIgnoredCount()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -619,6 +653,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 40: + { + ignoredCount_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1123,6 +1163,59 @@ public Builder clearFailureCount() { return this; } + private long ignoredCount_; + /** + * + * + *
                                +     * Count of entries that were ignored as entries were not found.
                                +     * 
                                + * + * int64 ignored_count = 5; + * + * @return The ignoredCount. + */ + @java.lang.Override + public long getIgnoredCount() { + return ignoredCount_; + } + /** + * + * + *
                                +     * Count of entries that were ignored as entries were not found.
                                +     * 
                                + * + * int64 ignored_count = 5; + * + * @param value The ignoredCount to set. + * @return This builder for chaining. + */ + public Builder setIgnoredCount(long value) { + + ignoredCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Count of entries that were ignored as entries were not found.
                                +     * 
                                + * + * int64 ignored_count = 5; + * + * @return This builder for chaining. + */ + public Builder clearIgnoredCount() { + bitField0_ = (bitField0_ & ~0x00000010); + ignoredCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadataOrBuilder.java index 7f462491ede9..bf4eae588ffe 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadataOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsMetadataOrBuilder.java @@ -122,4 +122,17 @@ public interface PurgeDocumentsMetadataOrBuilder * @return The failureCount. */ long getFailureCount(); + + /** + * + * + *
                                +   * Count of entries that were ignored as entries were not found.
                                +   * 
                                + * + * int64 ignored_count = 5; + * + * @return The ignoredCount. + */ + long getIgnoredCount(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequest.java index 1a324b9173f6..f0b2331490de 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequest.java @@ -66,6 +66,113 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.Builder.class); } + private int bitField0_; + 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 { + GCS_SOURCE(5), + 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 5: + return GCS_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 GCS_SOURCE_FIELD_NUMBER = 5; + /** + * + * + *
                                +   * Cloud Storage location for the input content.
                                +   * Supported `data_schema`:
                                +   * * `document_id`: One valid
                                +   * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 5; + } + /** + * + * + *
                                +   * Cloud Storage location for the input content.
                                +   * Supported `data_schema`:
                                +   * * `document_id`: One valid
                                +   * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource() { + if (sourceCase_ == 5) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + /** + * + * + *
                                +   * Cloud Storage location for the input content.
                                +   * Supported `data_schema`:
                                +   * * `document_id`: One valid
                                +   * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if (sourceCase_ == 5) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -178,6 +285,57 @@ public com.google.protobuf.ByteString getFilterBytes() { } } + public static final int ERROR_CONFIG_FIELD_NUMBER = 7; + private com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig errorConfig_; + /** + * + * + *
                                +   * The desired location of errors incurred during the purge.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + * + * @return Whether the errorConfig field is set. + */ + @java.lang.Override + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * The desired location of errors incurred during the purge.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + * + * @return The errorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig getErrorConfig() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.getDefaultInstance() + : errorConfig_; + } + /** + * + * + *
                                +   * The desired location of errors incurred during the purge.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfigOrBuilder + getErrorConfigOrBuilder() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.getDefaultInstance() + : errorConfig_; + } + public static final int FORCE_FIELD_NUMBER = 3; private boolean force_ = false; /** @@ -220,6 +378,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (force_ != false) { output.writeBool(3, force_); } + if (sourceCase_ == 5) { + output.writeMessage(5, (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getErrorConfig()); + } getUnknownFields().writeTo(output); } @@ -238,6 +402,14 @@ public int getSerializedSize() { if (force_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); } + if (sourceCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getErrorConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -256,7 +428,19 @@ public boolean equals(final java.lang.Object obj) { if (!getParent().equals(other.getParent())) return false; if (!getFilter().equals(other.getFilter())) return false; + if (hasErrorConfig() != other.hasErrorConfig()) return false; + if (hasErrorConfig()) { + if (!getErrorConfig().equals(other.getErrorConfig())) return false; + } if (getForce() != other.getForce()) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 5: + if (!getGcsSource().equals(other.getGcsSource())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -272,8 +456,20 @@ public int hashCode() { hash = (53 * hash) + getParent().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); + if (hasErrorConfig()) { + hash = (37 * hash) + ERROR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getErrorConfig().hashCode(); + } hash = (37 * hash) + FORCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + switch (sourceCase_) { + case 5: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -406,19 +602,38 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.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) { + getErrorConfigFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.clear(); + } parent_ = ""; filter_ = ""; + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } force_ = false; + sourceCase_ = 0; + source_ = null; return this; } @@ -450,6 +665,7 @@ public com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest buildParti if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -457,15 +673,31 @@ public com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest buildParti private void buildPartial0( com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { + if (((from_bitField0_ & 0x00000002) != 0)) { result.parent_ = parent_; } - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.filter_ = filter_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.errorConfig_ = + errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.force_ = force_; } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 5 && gcsSourceBuilder_ != null) { + result.source_ = gcsSourceBuilder_.build(); + } } @java.lang.Override @@ -517,17 +749,31 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.PurgeDocuments return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } + if (other.hasErrorConfig()) { + mergeErrorConfig(other.getErrorConfig()); + } if (other.getForce() != false) { setForce(other.getForce()); } + switch (other.getSourceCase()) { + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -557,21 +803,33 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 24: { force_ = input.readBool(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 24 + case 42: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 5; + break; + } // case 42 + case 58: + { + input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -589,8 +847,258 @@ public Builder mergeFrom( 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.discoveryengine.v1alpha.GcsSource, + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * Supported `data_schema`:
                                +     * * `document_id`: One valid
                                +     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 5; + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * Supported `data_schema`:
                                +     * * `document_id`: One valid
                                +     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 5) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } else { + if (sourceCase_ == 5) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * Supported `data_schema`:
                                +     * * `document_id`: One valid
                                +     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + */ + public Builder setGcsSource(com.google.cloud.discoveryengine.v1alpha.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + sourceCase_ = 5; + return this; + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * Supported `data_schema`:
                                +     * * `document_id`: One valid
                                +     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + */ + public Builder setGcsSource( + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder builderForValue) { + if (gcsSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 5; + return this; + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * Supported `data_schema`:
                                +     * * `document_id`: One valid
                                +     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + */ + public Builder mergeGcsSource(com.google.cloud.discoveryengine.v1alpha.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 5 + && source_ != com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1alpha.GcsSource.newBuilder( + (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 5) { + gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 5; + return this; + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * Supported `data_schema`:
                                +     * * `document_id`: One valid
                                +     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 5) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 5) { + sourceCase_ = 0; + source_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * Supported `data_schema`:
                                +     * * `document_id`: One valid
                                +     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + */ + public com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * Supported `data_schema`:
                                +     * * `document_id`: One valid
                                +     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder() { + if ((sourceCase_ == 5) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 5) { + return (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_; + } + return com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + } + /** + * + * + *
                                +     * Cloud Storage location for the input content.
                                +     * Supported `data_schema`:
                                +     * * `document_id`: One valid
                                +     * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(sourceCase_ == 5)) { + source_ = com.google.cloud.discoveryengine.v1alpha.GcsSource.getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GcsSource, + com.google.cloud.discoveryengine.v1alpha.GcsSource.Builder, + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.GcsSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 5; + onChanged(); + return gcsSourceBuilder_; + } + private java.lang.Object parent_ = ""; /** * @@ -662,7 +1170,7 @@ public Builder setParent(java.lang.String value) { throw new NullPointerException(); } parent_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -682,7 +1190,7 @@ public Builder setParent(java.lang.String value) { */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -707,7 +1215,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); parent_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -780,7 +1288,7 @@ public Builder setFilter(java.lang.String value) { throw new NullPointerException(); } filter_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -799,7 +1307,7 @@ public Builder setFilter(java.lang.String value) { */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -823,10 +1331,200 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); filter_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig errorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig, + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfigOrBuilder> + errorConfigBuilder_; + /** + * + * + *
                                +     * The desired location of errors incurred during the purge.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + * + * @return Whether the errorConfig field is set. + */ + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                +     * The desired location of errors incurred during the purge.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + * + * @return The errorConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig getErrorConfig() { + if (errorConfigBuilder_ == null) { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.getDefaultInstance() + : errorConfig_; + } else { + return errorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * The desired location of errors incurred during the purge.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + */ + public Builder setErrorConfig(com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorConfig_ = value; + } else { + errorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; onChanged(); return this; } + /** + * + * + *
                                +     * The desired location of errors incurred during the purge.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.Builder builderForValue) { + if (errorConfigBuilder_ == null) { + errorConfig_ = builderForValue.build(); + } else { + errorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                +     * The desired location of errors incurred during the purge.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + */ + public Builder mergeErrorConfig( + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && errorConfig_ != null + && errorConfig_ + != com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.getDefaultInstance()) { + getErrorConfigBuilder().mergeFrom(value); + } else { + errorConfig_ = value; + } + } else { + errorConfigBuilder_.mergeFrom(value); + } + if (errorConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * The desired location of errors incurred during the purge.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + */ + public Builder clearErrorConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * The desired location of errors incurred during the purge.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + */ + public com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.Builder + getErrorConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getErrorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * The desired location of errors incurred during the purge.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + */ + public com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfigOrBuilder + getErrorConfigOrBuilder() { + if (errorConfigBuilder_ != null) { + return errorConfigBuilder_.getMessageOrBuilder(); + } else { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.getDefaultInstance() + : errorConfig_; + } + } + /** + * + * + *
                                +     * The desired location of errors incurred during the purge.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig, + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfigOrBuilder> + getErrorConfigFieldBuilder() { + if (errorConfigBuilder_ == null) { + errorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig, + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfigOrBuilder>( + getErrorConfig(), getParentForChildren(), isClean()); + errorConfig_ = null; + } + return errorConfigBuilder_; + } private boolean force_; /** @@ -861,7 +1559,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -878,7 +1576,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); force_ = false; onChanged(); return this; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequestOrBuilder.java index 780cd0b2fc85..a3daeca5e3c6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeDocumentsRequestOrBuilder.java @@ -24,6 +24,50 @@ public interface PurgeDocumentsRequestOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
                                +   * Cloud Storage location for the input content.
                                +   * Supported `data_schema`:
                                +   * * `document_id`: One valid
                                +   * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
                                +   * Cloud Storage location for the input content.
                                +   * Supported `data_schema`:
                                +   * * `document_id`: One valid
                                +   * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + * + * @return The gcsSource. + */ + com.google.cloud.discoveryengine.v1alpha.GcsSource getGcsSource(); + /** + * + * + *
                                +   * Cloud Storage location for the input content.
                                +   * Supported `data_schema`:
                                +   * * `document_id`: One valid
                                +   * [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GcsSource gcs_source = 5; + */ + com.google.cloud.discoveryengine.v1alpha.GcsSourceOrBuilder getGcsSourceOrBuilder(); + /** * * @@ -84,6 +128,41 @@ public interface PurgeDocumentsRequestOrBuilder */ com.google.protobuf.ByteString getFilterBytes(); + /** + * + * + *
                                +   * The desired location of errors incurred during the purge.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + * + * @return Whether the errorConfig field is set. + */ + boolean hasErrorConfig(); + /** + * + * + *
                                +   * The desired location of errors incurred during the purge.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + * + * @return The errorConfig. + */ + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig getErrorConfig(); + /** + * + * + *
                                +   * The desired location of errors incurred during the purge.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.PurgeErrorConfig error_config = 7; + */ + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfigOrBuilder getErrorConfigOrBuilder(); + /** * * @@ -97,4 +176,6 @@ public interface PurgeDocumentsRequestOrBuilder * @return The force. */ boolean getForce(); + + com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest.SourceCase getSourceCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeErrorConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeErrorConfig.java new file mode 100644 index 000000000000..09cab069626b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeErrorConfig.java @@ -0,0 +1,785 @@ +/* + * 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/discoveryengine/v1alpha/purge_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Configuration of destination for Purge related errors.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeErrorConfig} + */ +public final class PurgeErrorConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.PurgeErrorConfig) + PurgeErrorConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeErrorConfig.newBuilder() to construct. + private PurgeErrorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeErrorConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeErrorConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeErrorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeErrorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.class, + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.Builder.class); + } + + private int destinationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object destination_; + + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_PREFIX(1), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(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 DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 1: + return GCS_PREFIX; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int GCS_PREFIX_FIELD_NUMBER = 1; + /** + * + * + *
                                +   * Cloud Storage prefix for purge errors. This must be an empty,
                                +   * existing Cloud Storage directory. Purge errors are written to
                                +   * sharded files in this directory, one per line, as a JSON-encoded
                                +   * `google.rpc.Status` message.
                                +   * 
                                + * + * string gcs_prefix = 1; + * + * @return Whether the gcsPrefix field is set. + */ + public boolean hasGcsPrefix() { + return destinationCase_ == 1; + } + /** + * + * + *
                                +   * Cloud Storage prefix for purge errors. This must be an empty,
                                +   * existing Cloud Storage directory. Purge errors are written to
                                +   * sharded files in this directory, one per line, as a JSON-encoded
                                +   * `google.rpc.Status` message.
                                +   * 
                                + * + * string gcs_prefix = 1; + * + * @return The gcsPrefix. + */ + public java.lang.String getGcsPrefix() { + java.lang.Object ref = ""; + if (destinationCase_ == 1) { + ref = destination_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 1) { + destination_ = s; + } + return s; + } + } + /** + * + * + *
                                +   * Cloud Storage prefix for purge errors. This must be an empty,
                                +   * existing Cloud Storage directory. Purge errors are written to
                                +   * sharded files in this directory, one per line, as a JSON-encoded
                                +   * `google.rpc.Status` message.
                                +   * 
                                + * + * string gcs_prefix = 1; + * + * @return The bytes for gcsPrefix. + */ + public com.google.protobuf.ByteString getGcsPrefixBytes() { + java.lang.Object ref = ""; + if (destinationCase_ == 1) { + ref = destination_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationCase_ == 1) { + destination_ = 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 (destinationCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destination_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (destinationCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destination_); + } + 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.discoveryengine.v1alpha.PurgeErrorConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig other = + (com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig) obj; + + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 1: + if (!getGcsPrefix().equals(other.getGcsPrefix())) 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 (destinationCase_) { + case 1: + hash = (37 * hash) + GCS_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getGcsPrefix().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig 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.discoveryengine.v1alpha.PurgeErrorConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig 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.discoveryengine.v1alpha.PurgeErrorConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig 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.discoveryengine.v1alpha.PurgeErrorConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig 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.discoveryengine.v1alpha.PurgeErrorConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig 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.discoveryengine.v1alpha.PurgeErrorConfig 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; + } + /** + * + * + *
                                +   * Configuration of destination for Purge related errors.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeErrorConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.PurgeErrorConfig) + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeErrorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeErrorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.class, + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeErrorConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig build() { + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig buildPartial() { + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig result = + new com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + } + + @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.discoveryengine.v1alpha.PurgeErrorConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig other) { + if (other == com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.getDefaultInstance()) + return this; + switch (other.getDestinationCase()) { + case GCS_PREFIX: + { + destinationCase_ = 1; + destination_ = other.destination_; + onChanged(); + break; + } + case DESTINATION_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: + { + java.lang.String s = input.readStringRequireUtf8(); + destinationCase_ = 1; + destination_ = s; + 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 destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                +     * Cloud Storage prefix for purge errors. This must be an empty,
                                +     * existing Cloud Storage directory. Purge errors are written to
                                +     * sharded files in this directory, one per line, as a JSON-encoded
                                +     * `google.rpc.Status` message.
                                +     * 
                                + * + * string gcs_prefix = 1; + * + * @return Whether the gcsPrefix field is set. + */ + @java.lang.Override + public boolean hasGcsPrefix() { + return destinationCase_ == 1; + } + /** + * + * + *
                                +     * Cloud Storage prefix for purge errors. This must be an empty,
                                +     * existing Cloud Storage directory. Purge errors are written to
                                +     * sharded files in this directory, one per line, as a JSON-encoded
                                +     * `google.rpc.Status` message.
                                +     * 
                                + * + * string gcs_prefix = 1; + * + * @return The gcsPrefix. + */ + @java.lang.Override + public java.lang.String getGcsPrefix() { + java.lang.Object ref = ""; + if (destinationCase_ == 1) { + ref = destination_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 1) { + destination_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Cloud Storage prefix for purge errors. This must be an empty,
                                +     * existing Cloud Storage directory. Purge errors are written to
                                +     * sharded files in this directory, one per line, as a JSON-encoded
                                +     * `google.rpc.Status` message.
                                +     * 
                                + * + * string gcs_prefix = 1; + * + * @return The bytes for gcsPrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsPrefixBytes() { + java.lang.Object ref = ""; + if (destinationCase_ == 1) { + ref = destination_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationCase_ == 1) { + destination_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Cloud Storage prefix for purge errors. This must be an empty,
                                +     * existing Cloud Storage directory. Purge errors are written to
                                +     * sharded files in this directory, one per line, as a JSON-encoded
                                +     * `google.rpc.Status` message.
                                +     * 
                                + * + * string gcs_prefix = 1; + * + * @param value The gcsPrefix to set. + * @return This builder for chaining. + */ + public Builder setGcsPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationCase_ = 1; + destination_ = value; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Cloud Storage prefix for purge errors. This must be an empty,
                                +     * existing Cloud Storage directory. Purge errors are written to
                                +     * sharded files in this directory, one per line, as a JSON-encoded
                                +     * `google.rpc.Status` message.
                                +     * 
                                + * + * string gcs_prefix = 1; + * + * @return This builder for chaining. + */ + public Builder clearGcsPrefix() { + if (destinationCase_ == 1) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Cloud Storage prefix for purge errors. This must be an empty,
                                +     * existing Cloud Storage directory. Purge errors are written to
                                +     * sharded files in this directory, one per line, as a JSON-encoded
                                +     * `google.rpc.Status` message.
                                +     * 
                                + * + * string gcs_prefix = 1; + * + * @param value The bytes for gcsPrefix to set. + * @return This builder for chaining. + */ + public Builder setGcsPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationCase_ = 1; + destination_ = value; + 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.discoveryengine.v1alpha.PurgeErrorConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.PurgeErrorConfig) + private static final com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeErrorConfig 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.discoveryengine.v1alpha.PurgeErrorConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeErrorConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeErrorConfigOrBuilder.java new file mode 100644 index 000000000000..f3e25023e04b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeErrorConfigOrBuilder.java @@ -0,0 +1,74 @@ +/* + * 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/discoveryengine/v1alpha/purge_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface PurgeErrorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.PurgeErrorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Cloud Storage prefix for purge errors. This must be an empty,
                                +   * existing Cloud Storage directory. Purge errors are written to
                                +   * sharded files in this directory, one per line, as a JSON-encoded
                                +   * `google.rpc.Status` message.
                                +   * 
                                + * + * string gcs_prefix = 1; + * + * @return Whether the gcsPrefix field is set. + */ + boolean hasGcsPrefix(); + /** + * + * + *
                                +   * Cloud Storage prefix for purge errors. This must be an empty,
                                +   * existing Cloud Storage directory. Purge errors are written to
                                +   * sharded files in this directory, one per line, as a JSON-encoded
                                +   * `google.rpc.Status` message.
                                +   * 
                                + * + * string gcs_prefix = 1; + * + * @return The gcsPrefix. + */ + java.lang.String getGcsPrefix(); + /** + * + * + *
                                +   * Cloud Storage prefix for purge errors. This must be an empty,
                                +   * existing Cloud Storage directory. Purge errors are written to
                                +   * sharded files in this directory, one per line, as a JSON-encoded
                                +   * `google.rpc.Status` message.
                                +   * 
                                + * + * string gcs_prefix = 1; + * + * @return The bytes for gcsPrefix. + */ + com.google.protobuf.ByteString getGcsPrefixBytes(); + + com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig.DestinationCase getDestinationCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesMetadata.java new file mode 100644 index 000000000000..3fe2d2a6f03a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesMetadata.java @@ -0,0 +1,1028 @@ +/* + * 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/discoveryengine/v1alpha/purge_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Metadata related to the progress of the PurgeSuggestionDenyListEntries
                                + * operation. This is returned by the google.longrunning.Operation.metadata
                                + * field.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata} + */ +public final class PurgeSuggestionDenyListEntriesMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata) + PurgeSuggestionDenyListEntriesMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeSuggestionDenyListEntriesMetadata.newBuilder() to construct. + private PurgeSuggestionDenyListEntriesMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeSuggestionDenyListEntriesMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeSuggestionDenyListEntriesMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata.class, + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata.Builder + .class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata other = + (com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata 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 related to the progress of the PurgeSuggestionDenyListEntries
                                +   * operation. This is returned by the google.longrunning.Operation.metadata
                                +   * field.
                                +   * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata) + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata.class, + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata build() { + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata result = + new com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + .getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + 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(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata) + private static final com.google.cloud.discoveryengine.v1alpha + .PurgeSuggestionDenyListEntriesMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata(); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeSuggestionDenyListEntriesMetadata 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesMetadataOrBuilder.java new file mode 100644 index 000000000000..f9e95d3fe0d1 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesMetadataOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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/discoveryengine/v1alpha/purge_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface PurgeSuggestionDenyListEntriesMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesRequest.java new file mode 100644 index 000000000000..321b9316b09e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesRequest.java @@ -0,0 +1,680 @@ +/* + * 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/discoveryengine/v1alpha/purge_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Request message for
                                + * [CompletionService.PurgeSuggestionDenyListEntries][google.cloud.discoveryengine.v1alpha.CompletionService.PurgeSuggestionDenyListEntries]
                                + * method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest} + */ +public final class PurgeSuggestionDenyListEntriesRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest) + PurgeSuggestionDenyListEntriesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeSuggestionDenyListEntriesRequest.newBuilder() to construct. + private PurgeSuggestionDenyListEntriesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeSuggestionDenyListEntriesRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeSuggestionDenyListEntriesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest.class, + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
                                +   * Required. The parent data store resource name for which to import denylist
                                +   * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +   * 
                                + * + * + * 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 parent data store resource name for which to import denylist
                                +   * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +   * 
                                + * + * + * 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; + } + } + + 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_); + } + 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_); + } + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest other = + (com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest) obj; + + if (!getParent().equals(other.getParent())) 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(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest 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
                                +   * [CompletionService.PurgeSuggestionDenyListEntries][google.cloud.discoveryengine.v1alpha.CompletionService.PurgeSuggestionDenyListEntries]
                                +   * method.
                                +   * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest) + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest.class, + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest build() { + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest result = + new com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + 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: + { + parent_ = 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 parent_ = ""; + /** + * + * + *
                                +     * Required. The parent data store resource name for which to import denylist
                                +     * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +     * 
                                + * + * + * 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 parent data store resource name for which to import denylist
                                +     * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +     * 
                                + * + * + * 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 parent data store resource name for which to import denylist
                                +     * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +     * 
                                + * + * + * 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 parent data store resource name for which to import denylist
                                +     * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +     * 
                                + * + * + * 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 parent data store resource name for which to import denylist
                                +     * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +     * 
                                + * + * + * 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; + } + + @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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest) + private static final com.google.cloud.discoveryengine.v1alpha + .PurgeSuggestionDenyListEntriesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeSuggestionDenyListEntriesRequest 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesRequestOrBuilder.java new file mode 100644 index 000000000000..fa16a189dcef --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * 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/discoveryengine/v1alpha/purge_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface PurgeSuggestionDenyListEntriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Required. The parent data store resource name for which to import denylist
                                +   * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +   * 
                                + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
                                +   * Required. The parent data store resource name for which to import denylist
                                +   * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*.
                                +   * 
                                + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesResponse.java new file mode 100644 index 000000000000..f4c4b4800a79 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesResponse.java @@ -0,0 +1,1051 @@ +/* + * 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/discoveryengine/v1alpha/purge_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Response message for
                                + * [CompletionService.PurgeSuggestionDenyListEntries][google.cloud.discoveryengine.v1alpha.CompletionService.PurgeSuggestionDenyListEntries]
                                + * method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse} + */ +public final class PurgeSuggestionDenyListEntriesResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse) + PurgeSuggestionDenyListEntriesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use PurgeSuggestionDenyListEntriesResponse.newBuilder() to construct. + private PurgeSuggestionDenyListEntriesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PurgeSuggestionDenyListEntriesResponse() { + errorSamples_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PurgeSuggestionDenyListEntriesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse.class, + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse.Builder + .class); + } + + public static final int PURGE_COUNT_FIELD_NUMBER = 1; + private long purgeCount_ = 0L; + /** + * + * + *
                                +   * Number of suggestion deny list entries purged.
                                +   * 
                                + * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + + public static final int ERROR_SAMPLES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List errorSamples_; + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public java.util.List getErrorSamplesList() { + return errorSamples_; + } + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public java.util.List getErrorSamplesOrBuilderList() { + return errorSamples_; + } + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public int getErrorSamplesCount() { + return errorSamples_.size(); + } + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public com.google.rpc.Status getErrorSamples(int index) { + return errorSamples_.get(index); + } + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + return errorSamples_.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 { + if (purgeCount_ != 0L) { + output.writeInt64(1, purgeCount_); + } + for (int i = 0; i < errorSamples_.size(); i++) { + output.writeMessage(2, errorSamples_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (purgeCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, purgeCount_); + } + for (int i = 0; i < errorSamples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errorSamples_.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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse other = + (com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse) obj; + + if (getPurgeCount() != other.getPurgeCount()) return false; + if (!getErrorSamplesList().equals(other.getErrorSamplesList())) 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) + PURGE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPurgeCount()); + if (getErrorSamplesCount() > 0) { + hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getErrorSamplesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse 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
                                +   * [CompletionService.PurgeSuggestionDenyListEntries][google.cloud.discoveryengine.v1alpha.CompletionService.PurgeSuggestionDenyListEntries]
                                +   * method.
                                +   * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse) + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse.class, + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + purgeCount_ = 0L; + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + } else { + errorSamples_ = null; + errorSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_PurgeSuggestionDenyListEntriesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse build() { + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse result = + new com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse result) { + if (errorSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errorSamples_ = errorSamples_; + } else { + result.errorSamples_ = errorSamplesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.purgeCount_ = purgeCount_; + } + } + + @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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + .getDefaultInstance()) return this; + if (other.getPurgeCount() != 0L) { + setPurgeCount(other.getPurgeCount()); + } + if (errorSamplesBuilder_ == null) { + if (!other.errorSamples_.isEmpty()) { + if (errorSamples_.isEmpty()) { + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorSamplesIsMutable(); + errorSamples_.addAll(other.errorSamples_); + } + onChanged(); + } + } else { + if (!other.errorSamples_.isEmpty()) { + if (errorSamplesBuilder_.isEmpty()) { + errorSamplesBuilder_.dispose(); + errorSamplesBuilder_ = null; + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000002); + errorSamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorSamplesFieldBuilder() + : null; + } else { + errorSamplesBuilder_.addAllMessages(other.errorSamples_); + } + } + } + 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: + { + purgeCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(m); + } else { + errorSamplesBuilder_.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 long purgeCount_; + /** + * + * + *
                                +     * Number of suggestion deny list entries purged.
                                +     * 
                                + * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + @java.lang.Override + public long getPurgeCount() { + return purgeCount_; + } + /** + * + * + *
                                +     * Number of suggestion deny list entries purged.
                                +     * 
                                + * + * int64 purge_count = 1; + * + * @param value The purgeCount to set. + * @return This builder for chaining. + */ + public Builder setPurgeCount(long value) { + + purgeCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Number of suggestion deny list entries purged.
                                +     * 
                                + * + * int64 purge_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearPurgeCount() { + bitField0_ = (bitField0_ & ~0x00000001); + purgeCount_ = 0L; + onChanged(); + return this; + } + + private java.util.List errorSamples_ = java.util.Collections.emptyList(); + + private void ensureErrorSamplesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + errorSamples_ = new java.util.ArrayList(errorSamples_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorSamplesBuilder_; + + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public java.util.List getErrorSamplesList() { + if (errorSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(errorSamples_); + } else { + return errorSamplesBuilder_.getMessageList(); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public int getErrorSamplesCount() { + if (errorSamplesBuilder_ == null) { + return errorSamples_.size(); + } else { + return errorSamplesBuilder_.getCount(); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.Status getErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessage(index); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, value); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addErrorSamples(com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addAllErrorSamples(java.lang.Iterable values) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); + onChanged(); + } else { + errorSamplesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder clearErrorSamples() { + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + errorSamplesBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder removeErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.remove(index); + onChanged(); + } else { + errorSamplesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder().getBuilder(index); + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public java.util.List getErrorSamplesOrBuilderList() { + if (errorSamplesBuilder_ != null) { + return errorSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errorSamples_); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder() { + return getErrorSamplesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the request.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + public java.util.List getErrorSamplesBuilderList() { + return getErrorSamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorSamplesFieldBuilder() { + if (errorSamplesBuilder_ == null) { + errorSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errorSamples_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + errorSamples_ = null; + } + return errorSamplesBuilder_; + } + + @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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse) + private static final com.google.cloud.discoveryengine.v1alpha + .PurgeSuggestionDenyListEntriesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse(); + } + + public static com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeSuggestionDenyListEntriesResponse 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.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesResponseOrBuilder.java new file mode 100644 index 000000000000..eadaec9c9678 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/PurgeSuggestionDenyListEntriesResponseOrBuilder.java @@ -0,0 +1,90 @@ +/* + * 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/discoveryengine/v1alpha/purge_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface PurgeSuggestionDenyListEntriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Number of suggestion deny list entries purged.
                                +   * 
                                + * + * int64 purge_count = 1; + * + * @return The purgeCount. + */ + long getPurgeCount(); + + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + java.util.List getErrorSamplesList(); + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + com.google.rpc.Status getErrorSamples(int index); + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + int getErrorSamplesCount(); + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + java.util.List getErrorSamplesOrBuilderList(); + /** + * + * + *
                                +   * A sample of errors encountered while processing the request.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 2; + */ + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequest.java index 75e9182bc8b9..198437abbb39 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequest.java @@ -97,7 +97,9 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * config. For example, for Engine * `projects/*/locations/global/collections/*/engines/my-engine`, you can use * `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine` - * for your [Recommend][] requests. + * for your + * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend] + * requests. * * * @@ -132,7 +134,9 @@ public java.lang.String getServingConfig() { * config. For example, for Engine * `projects/*/locations/global/collections/*/engines/my-engine`, you can use * `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine` - * for your [Recommend][] requests. + * for your + * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend] + * requests. * * * @@ -1341,7 +1345,9 @@ public Builder mergeFrom( * config. For example, for Engine * `projects/*/locations/global/collections/*/engines/my-engine`, you can use * `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine` - * for your [Recommend][] requests. + * for your + * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend] + * requests. * * * @@ -1375,7 +1381,9 @@ public java.lang.String getServingConfig() { * config. For example, for Engine * `projects/*/locations/global/collections/*/engines/my-engine`, you can use * `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine` - * for your [Recommend][] requests. + * for your + * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend] + * requests. * * * @@ -1409,7 +1417,9 @@ public com.google.protobuf.ByteString getServingConfigBytes() { * config. For example, for Engine * `projects/*/locations/global/collections/*/engines/my-engine`, you can use * `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine` - * for your [Recommend][] requests. + * for your + * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend] + * requests. * * * @@ -1442,7 +1452,9 @@ public Builder setServingConfig(java.lang.String value) { * config. For example, for Engine * `projects/*/locations/global/collections/*/engines/my-engine`, you can use * `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine` - * for your [Recommend][] requests. + * for your + * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend] + * requests. * * * @@ -1471,7 +1483,9 @@ public Builder clearServingConfig() { * config. For example, for Engine * `projects/*/locations/global/collections/*/engines/my-engine`, you can use * `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine` - * for your [Recommend][] requests. + * for your + * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend] + * requests. * * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequestOrBuilder.java index ca000b038c46..2f9392dfbbfc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecommendRequestOrBuilder.java @@ -38,7 +38,9 @@ public interface RecommendRequestOrBuilder * config. For example, for Engine * `projects/*/locations/global/collections/*/engines/my-engine`, you can use * `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine` - * for your [Recommend][] requests. + * for your + * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend] + * requests. * * * @@ -62,7 +64,9 @@ public interface RecommendRequestOrBuilder * config. For example, for Engine * `projects/*/locations/global/collections/*/engines/my-engine`, you can use * `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine` - * for your [Recommend][] requests. + * for your + * [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend] + * requests. * * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisResponse.java index f2b9fd4180fa..00131b54199a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/RecrawlUrisResponse.java @@ -277,7 +277,7 @@ public interface FailureReasonOrBuilder * * *
                                -     * Details about why crawling failed for a particular CorpusType, e.g.
                                +     * Details about why crawling failed for a particular CorpusType, e.g.,
                                      * DESKTOP and MOBILE crawling may fail for different reasons.
                                      * 
                                * @@ -789,7 +789,7 @@ protected Builder newBuilderForType( * * *
                                -       * Details about why crawling failed for a particular CorpusType, e.g.
                                +       * Details about why crawling failed for a particular CorpusType, e.g.,
                                        * DESKTOP and MOBILE crawling may fail for different reasons.
                                        * 
                                * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaProto.java index 7025f1295bef..c40a0d57d54a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SchemaProto.java @@ -60,7 +60,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/{schema}\022iprojects/{project}/locations/" + "{location}/collections/{collection}/data" + "Stores/{data_store}/schemas/{schema}B\010\n\006" - + "schema\"\362\013\n\013FieldConfig\022\027\n\nfield_path\030\001 \001" + + "schema\"\201\014\n\013FieldConfig\022\027\n\nfield_path\030\001 \001" + "(\tB\003\340A\002\022T\n\nfield_type\030\002 \001(\0162;.google.clo" + "ud.discoveryengine.v1alpha.FieldConfig.F" + "ieldTypeB\003\340A\003\022[\n\020indexable_option\030\003 \001(\0162" @@ -78,34 +78,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "onfig.CompletableOption\022b\n\026recs_filterab" + "le_option\030\t \001(\0162B.google.cloud.discovery" + "engine.v1alpha.FieldConfig.FilterableOpt" - + "ion\022\036\n\021key_property_type\030\007 \001(\tB\003\340A\003\"v\n\tF" - + "ieldType\022\032\n\026FIELD_TYPE_UNSPECIFIED\020\000\022\n\n\006" - + "OBJECT\020\001\022\n\n\006STRING\020\002\022\n\n\006NUMBER\020\003\022\013\n\007INTE" - + "GER\020\004\022\013\n\007BOOLEAN\020\005\022\017\n\013GEOLOCATION\020\006\"b\n\017I" - + "ndexableOption\022 \n\034INDEXABLE_OPTION_UNSPE" - + "CIFIED\020\000\022\025\n\021INDEXABLE_ENABLED\020\001\022\026\n\022INDEX" - + "ABLE_DISABLED\020\002\"\201\001\n\026DynamicFacetableOpti" - + "on\022(\n$DYNAMIC_FACETABLE_OPTION_UNSPECIFI" - + "ED\020\000\022\035\n\031DYNAMIC_FACETABLE_ENABLED\020\001\022\036\n\032D" - + "YNAMIC_FACETABLE_DISABLED\020\002\"f\n\020Searchabl" - + "eOption\022!\n\035SEARCHABLE_OPTION_UNSPECIFIED" - + "\020\000\022\026\n\022SEARCHABLE_ENABLED\020\001\022\027\n\023SEARCHABLE" - + "_DISABLED\020\002\"j\n\021RetrievableOption\022\"\n\036RETR" - + "IEVABLE_OPTION_UNSPECIFIED\020\000\022\027\n\023RETRIEVA" - + "BLE_ENABLED\020\001\022\030\n\024RETRIEVABLE_DISABLED\020\002\"" - + "j\n\021CompletableOption\022\"\n\036COMPLETABLE_OPTI" - + "ON_UNSPECIFIED\020\000\022\027\n\023COMPLETABLE_ENABLED\020" - + "\001\022\030\n\024COMPLETABLE_DISABLED\020\002\"f\n\020Filterabl" - + "eOption\022!\n\035FILTERABLE_OPTION_UNSPECIFIED" - + "\020\000\022\026\n\022FILTERABLE_ENABLED\020\001\022\027\n\023FILTERABLE" - + "_DISABLED\020\002B\227\002\n(com.google.cloud.discove" - + "ryengine.v1alphaB\013SchemaProtoP\001ZRcloud.g" - + "oogle.com/go/discoveryengine/apiv1alpha/" - + "discoveryenginepb;discoveryenginepb\242\002\017DI" - + "SCOVERYENGINE\252\002$Google.Cloud.DiscoveryEn" - + "gine.V1Alpha\312\002$Google\\Cloud\\DiscoveryEng" - + "ine\\V1alpha\352\002\'Google::Cloud::DiscoveryEn" - + "gine::V1alphab\006proto3" + + "ion\022\036\n\021key_property_type\030\007 \001(\tB\003\340A\003\"\204\001\n\t" + + "FieldType\022\032\n\026FIELD_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006OBJECT\020\001\022\n\n\006STRING\020\002\022\n\n\006NUMBER\020\003\022\013\n\007INT" + + "EGER\020\004\022\013\n\007BOOLEAN\020\005\022\017\n\013GEOLOCATION\020\006\022\014\n\010" + + "DATETIME\020\007\"b\n\017IndexableOption\022 \n\034INDEXAB" + + "LE_OPTION_UNSPECIFIED\020\000\022\025\n\021INDEXABLE_ENA" + + "BLED\020\001\022\026\n\022INDEXABLE_DISABLED\020\002\"\201\001\n\026Dynam" + + "icFacetableOption\022(\n$DYNAMIC_FACETABLE_O" + + "PTION_UNSPECIFIED\020\000\022\035\n\031DYNAMIC_FACETABLE" + + "_ENABLED\020\001\022\036\n\032DYNAMIC_FACETABLE_DISABLED" + + "\020\002\"f\n\020SearchableOption\022!\n\035SEARCHABLE_OPT" + + "ION_UNSPECIFIED\020\000\022\026\n\022SEARCHABLE_ENABLED\020" + + "\001\022\027\n\023SEARCHABLE_DISABLED\020\002\"j\n\021Retrievabl" + + "eOption\022\"\n\036RETRIEVABLE_OPTION_UNSPECIFIE" + + "D\020\000\022\027\n\023RETRIEVABLE_ENABLED\020\001\022\030\n\024RETRIEVA" + + "BLE_DISABLED\020\002\"j\n\021CompletableOption\022\"\n\036C" + + "OMPLETABLE_OPTION_UNSPECIFIED\020\000\022\027\n\023COMPL" + + "ETABLE_ENABLED\020\001\022\030\n\024COMPLETABLE_DISABLED" + + "\020\002\"f\n\020FilterableOption\022!\n\035FILTERABLE_OPT" + + "ION_UNSPECIFIED\020\000\022\026\n\022FILTERABLE_ENABLED\020" + + "\001\022\027\n\023FILTERABLE_DISABLED\020\002B\227\002\n(com.googl" + + "e.cloud.discoveryengine.v1alphaB\013SchemaP" + + "rotoP\001ZRcloud.google.com/go/discoveryeng" + + "ine/apiv1alpha/discoveryenginepb;discove" + + "ryenginepb\242\002\017DISCOVERYENGINE\252\002$Google.Cl" + + "oud.DiscoveryEngine.V1Alpha\312\002$Google\\Clo" + + "ud\\DiscoveryEngine\\V1alpha\352\002\'Google::Clo" + + "ud::DiscoveryEngine::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequest.java index 5962dbfd82cc..5d3ee2853127 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequest.java @@ -45,6 +45,7 @@ private SearchRequest() { branch_ = ""; query_ = ""; pageToken_ = ""; + dataStoreSpecs_ = java.util.Collections.emptyList(); filter_ = ""; canonicalFilter_ = ""; orderBy_ = ""; @@ -899,316 +900,1006 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface FacetSpecOrBuilder + public interface DataStoreSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec) com.google.protobuf.MessageOrBuilder { /** * * *
                                -     * Required. The facet key specification.
                                -     * 
                                - * - * - * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the facetKey field is set. - */ - boolean hasFacetKey(); - /** - * - * - *
                                -     * Required. The facet key specification.
                                +     * Required. Full resource name of
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], such as
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                      * 
                                * * - * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * - * @return The facetKey. + * @return The dataStore. */ - com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey getFacetKey(); + java.lang.String getDataStore(); /** * * *
                                -     * Required. The facet key specification.
                                +     * Required. Full resource name of
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], such as
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                      * 
                                * * - * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * - */ - com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKeyOrBuilder - getFacetKeyOrBuilder(); - - /** - * - * - *
                                -     * Maximum of facet values that should be returned for this facet. If
                                -     * unspecified, defaults to 20. The maximum allowed value is 300. Values
                                -     * above 300 are coerced to 300.
                                -     *
                                -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                -     * 
                                - * - * int32 limit = 2; - * - * @return The limit. - */ - int getLimit(); - - /** - * - * - *
                                -     * List of keys to exclude when faceting.
                                -     *
                                -     *
                                -     * By default,
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                -     * is not excluded from the filter unless it is listed in this field.
                                -     *
                                -     * Listing a facet key in this field allows its values to appear as facet
                                -     * results, even when they are filtered out of search results. Using this
                                -     * field does not affect what search results are returned.
                                -     *
                                -     * For example, suppose there are 100 documents with the color facet "Red"
                                -     * and 200 documents with the color facet "Blue". A query containing the
                                -     * filter "color:ANY("Red")" and having "color" as
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                -     * would by default return only "Red" documents in the search results, and
                                -     * also return "Red" with count 100 as the only color facet. Although there
                                -     * are also blue documents available, "Blue" would not be shown as an
                                -     * available facet value.
                                -     *
                                -     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                -     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                -     * "color" key is now excluded from the filter. Because this field doesn't
                                -     * affect search results, the search results are still correctly filtered to
                                -     * return only "Red" documents.
                                -     *
                                -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                -     * error is returned.
                                -     * 
                                - * - * repeated string excluded_filter_keys = 3; - * - * @return A list containing the excludedFilterKeys. - */ - java.util.List getExcludedFilterKeysList(); - /** - * - * - *
                                -     * List of keys to exclude when faceting.
                                -     *
                                -     *
                                -     * By default,
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                -     * is not excluded from the filter unless it is listed in this field.
                                -     *
                                -     * Listing a facet key in this field allows its values to appear as facet
                                -     * results, even when they are filtered out of search results. Using this
                                -     * field does not affect what search results are returned.
                                -     *
                                -     * For example, suppose there are 100 documents with the color facet "Red"
                                -     * and 200 documents with the color facet "Blue". A query containing the
                                -     * filter "color:ANY("Red")" and having "color" as
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                -     * would by default return only "Red" documents in the search results, and
                                -     * also return "Red" with count 100 as the only color facet. Although there
                                -     * are also blue documents available, "Blue" would not be shown as an
                                -     * available facet value.
                                -     *
                                -     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                -     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                -     * "color" key is now excluded from the filter. Because this field doesn't
                                -     * affect search results, the search results are still correctly filtered to
                                -     * return only "Red" documents.
                                -     *
                                -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                -     * error is returned.
                                -     * 
                                - * - * repeated string excluded_filter_keys = 3; - * - * @return The count of excludedFilterKeys. - */ - int getExcludedFilterKeysCount(); - /** - * - * - *
                                -     * List of keys to exclude when faceting.
                                -     *
                                -     *
                                -     * By default,
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                -     * is not excluded from the filter unless it is listed in this field.
                                -     *
                                -     * Listing a facet key in this field allows its values to appear as facet
                                -     * results, even when they are filtered out of search results. Using this
                                -     * field does not affect what search results are returned.
                                -     *
                                -     * For example, suppose there are 100 documents with the color facet "Red"
                                -     * and 200 documents with the color facet "Blue". A query containing the
                                -     * filter "color:ANY("Red")" and having "color" as
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                -     * would by default return only "Red" documents in the search results, and
                                -     * also return "Red" with count 100 as the only color facet. Although there
                                -     * are also blue documents available, "Blue" would not be shown as an
                                -     * available facet value.
                                -     *
                                -     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                -     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                -     * "color" key is now excluded from the filter. Because this field doesn't
                                -     * affect search results, the search results are still correctly filtered to
                                -     * return only "Red" documents.
                                -     *
                                -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                -     * error is returned.
                                -     * 
                                - * - * repeated string excluded_filter_keys = 3; - * - * @param index The index of the element to return. - * @return The excludedFilterKeys at the given index. - */ - java.lang.String getExcludedFilterKeys(int index); - /** - * - * - *
                                -     * List of keys to exclude when faceting.
                                -     *
                                -     *
                                -     * By default,
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                -     * is not excluded from the filter unless it is listed in this field.
                                -     *
                                -     * Listing a facet key in this field allows its values to appear as facet
                                -     * results, even when they are filtered out of search results. Using this
                                -     * field does not affect what search results are returned.
                                -     *
                                -     * For example, suppose there are 100 documents with the color facet "Red"
                                -     * and 200 documents with the color facet "Blue". A query containing the
                                -     * filter "color:ANY("Red")" and having "color" as
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                -     * would by default return only "Red" documents in the search results, and
                                -     * also return "Red" with count 100 as the only color facet. Although there
                                -     * are also blue documents available, "Blue" would not be shown as an
                                -     * available facet value.
                                -     *
                                -     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                -     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                -     * "color" key is now excluded from the filter. Because this field doesn't
                                -     * affect search results, the search results are still correctly filtered to
                                -     * return only "Red" documents.
                                -     *
                                -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                -     * error is returned.
                                -     * 
                                - * - * repeated string excluded_filter_keys = 3; - * - * @param index The index of the value to return. - * @return The bytes of the excludedFilterKeys at the given index. - */ - com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index); - - /** - * - * - *
                                -     * Enables dynamic position for this facet. If set to true, the position of
                                -     * this facet among all facets in the response is determined automatically.
                                -     * If dynamic facets are enabled, it is ordered together.
                                -     * If set to false, the position of this facet in the
                                -     * response is the same as in the request, and it is ranked before
                                -     * the facets with dynamic position enable and all dynamic facets.
                                -     *
                                -     * For example, you may always want to have rating facet returned in
                                -     * the response, but it's not necessarily to always display the rating facet
                                -     * at the top. In that case, you can set enable_dynamic_position to true so
                                -     * that the position of rating facet in response is determined
                                -     * automatically.
                                -     *
                                -     * Another example, assuming you have the following facets in the request:
                                -     *
                                -     * * "rating", enable_dynamic_position = true
                                -     *
                                -     * * "price", enable_dynamic_position = false
                                      *
                                -     * * "brands", enable_dynamic_position = false
                                -     *
                                -     * And also you have a dynamic facets enabled, which generates a facet
                                -     * `gender`. Then the final order of the facets in the response can be
                                -     * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
                                -     * "rating") depends on how API orders "gender" and "rating" facets.
                                -     * However, notice that "price" and "brands" are always
                                -     * ranked at first and second position because their enable_dynamic_position
                                -     * is false.
                                -     * 
                                - * - * bool enable_dynamic_position = 4; - * - * @return The enableDynamicPosition. + * @return The bytes for dataStore. */ - boolean getEnableDynamicPosition(); + com.google.protobuf.ByteString getDataStoreBytes(); } /** * * *
                                -   * A facet specification to perform faceted search.
                                +   * A struct to define data stores to filter on in a search call.
                                    * 
                                * - * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec} */ - public static final class FacetSpec extends com.google.protobuf.GeneratedMessageV3 + public static final class DataStoreSpec extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec) - FacetSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec) + DataStoreSpecOrBuilder { private static final long serialVersionUID = 0L; - // Use FacetSpec.newBuilder() to construct. - private FacetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use DataStoreSpec.newBuilder() to construct. + private DataStoreSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FacetSpec() { - excludedFilterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private DataStoreSpec() { + dataStore_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FacetSpec(); + return new DataStoreSpec(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_DataStoreSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_DataStoreSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.class, - com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.Builder.class); + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.class, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.Builder.class); } - public interface FacetKeyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey) + public static final int DATA_STORE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataStore_ = ""; + /** + * + * + *
                                +     * Required. Full resource name of
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], such as
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                +     * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataStore. + */ + @java.lang.Override + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + 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(); + dataStore_ = s; + return s; + } + } + /** + * + * + *
                                +     * Required. Full resource name of
                                +     * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], such as
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                +     * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataStore. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = 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(dataStore_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataStore_); + } + 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(dataStore_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataStore_); + } + 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.discoveryengine.v1alpha.SearchRequest.DataStoreSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec other = + (com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec) obj; + + if (!getDataStore().equals(other.getDataStore())) 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) + DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getDataStore().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec 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.discoveryengine.v1alpha.SearchRequest.DataStoreSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec 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.discoveryengine.v1alpha.SearchRequest.DataStoreSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec 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.discoveryengine.v1alpha.SearchRequest.DataStoreSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec + 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.discoveryengine.v1alpha.SearchRequest.DataStoreSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec 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.discoveryengine.v1alpha.SearchRequest.DataStoreSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                                +     * A struct to define data stores to filter on in a search call.
                                +     * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec) + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_DataStoreSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_DataStoreSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.class, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataStore_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_DataStoreSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec build() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec result = + new com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataStore_ = dataStore_; + } + } + + @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.discoveryengine.v1alpha.SearchRequest.DataStoreSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec + .getDefaultInstance()) return this; + if (!other.getDataStore().isEmpty()) { + dataStore_ = other.dataStore_; + 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: + { + dataStore_ = 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 dataStore_ = ""; + /** + * + * + *
                                +       * Required. Full resource name of
                                +       * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], such as
                                +       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                +       * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataStore. + */ + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +       * Required. Full resource name of
                                +       * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], such as
                                +       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                +       * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataStore. + */ + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +       * Required. Full resource name of
                                +       * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], such as
                                +       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                +       * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataStore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +       * Required. Full resource name of
                                +       * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], such as
                                +       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                +       * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataStore() { + dataStore_ = getDefaultInstance().getDataStore(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +       * Required. Full resource name of
                                +       * [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], such as
                                +       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                +       * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataStore_ = 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.discoveryengine.v1alpha.SearchRequest.DataStoreSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec) + private static final com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataStoreSpec 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.discoveryengine.v1alpha.SearchRequest.DataStoreSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FacetSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +     * Required. The facet key specification.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the facetKey field is set. + */ + boolean hasFacetKey(); + /** + * + * + *
                                +     * Required. The facet key specification.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The facetKey. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey getFacetKey(); + /** + * + * + *
                                +     * Required. The facet key specification.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKeyOrBuilder + getFacetKeyOrBuilder(); + + /** + * + * + *
                                +     * Maximum of facet values that should be returned for this facet. If
                                +     * unspecified, defaults to 20. The maximum allowed value is 300. Values
                                +     * above 300 are coerced to 300.
                                +     *
                                +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                +     * 
                                + * + * int32 limit = 2; + * + * @return The limit. + */ + int getLimit(); + + /** + * + * + *
                                +     * List of keys to exclude when faceting.
                                +     *
                                +     *
                                +     * By default,
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                +     * is not excluded from the filter unless it is listed in this field.
                                +     *
                                +     * Listing a facet key in this field allows its values to appear as facet
                                +     * results, even when they are filtered out of search results. Using this
                                +     * field does not affect what search results are returned.
                                +     *
                                +     * For example, suppose there are 100 documents with the color facet "Red"
                                +     * and 200 documents with the color facet "Blue". A query containing the
                                +     * filter "color:ANY("Red")" and having "color" as
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                +     * would by default return only "Red" documents in the search results, and
                                +     * also return "Red" with count 100 as the only color facet. Although there
                                +     * are also blue documents available, "Blue" would not be shown as an
                                +     * available facet value.
                                +     *
                                +     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                +     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                +     * "color" key is now excluded from the filter. Because this field doesn't
                                +     * affect search results, the search results are still correctly filtered to
                                +     * return only "Red" documents.
                                +     *
                                +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                +     * error is returned.
                                +     * 
                                + * + * repeated string excluded_filter_keys = 3; + * + * @return A list containing the excludedFilterKeys. + */ + java.util.List getExcludedFilterKeysList(); + /** + * + * + *
                                +     * List of keys to exclude when faceting.
                                +     *
                                +     *
                                +     * By default,
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                +     * is not excluded from the filter unless it is listed in this field.
                                +     *
                                +     * Listing a facet key in this field allows its values to appear as facet
                                +     * results, even when they are filtered out of search results. Using this
                                +     * field does not affect what search results are returned.
                                +     *
                                +     * For example, suppose there are 100 documents with the color facet "Red"
                                +     * and 200 documents with the color facet "Blue". A query containing the
                                +     * filter "color:ANY("Red")" and having "color" as
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                +     * would by default return only "Red" documents in the search results, and
                                +     * also return "Red" with count 100 as the only color facet. Although there
                                +     * are also blue documents available, "Blue" would not be shown as an
                                +     * available facet value.
                                +     *
                                +     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                +     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                +     * "color" key is now excluded from the filter. Because this field doesn't
                                +     * affect search results, the search results are still correctly filtered to
                                +     * return only "Red" documents.
                                +     *
                                +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                +     * error is returned.
                                +     * 
                                + * + * repeated string excluded_filter_keys = 3; + * + * @return The count of excludedFilterKeys. + */ + int getExcludedFilterKeysCount(); + /** + * + * + *
                                +     * List of keys to exclude when faceting.
                                +     *
                                +     *
                                +     * By default,
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                +     * is not excluded from the filter unless it is listed in this field.
                                +     *
                                +     * Listing a facet key in this field allows its values to appear as facet
                                +     * results, even when they are filtered out of search results. Using this
                                +     * field does not affect what search results are returned.
                                +     *
                                +     * For example, suppose there are 100 documents with the color facet "Red"
                                +     * and 200 documents with the color facet "Blue". A query containing the
                                +     * filter "color:ANY("Red")" and having "color" as
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                +     * would by default return only "Red" documents in the search results, and
                                +     * also return "Red" with count 100 as the only color facet. Although there
                                +     * are also blue documents available, "Blue" would not be shown as an
                                +     * available facet value.
                                +     *
                                +     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                +     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                +     * "color" key is now excluded from the filter. Because this field doesn't
                                +     * affect search results, the search results are still correctly filtered to
                                +     * return only "Red" documents.
                                +     *
                                +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                +     * error is returned.
                                +     * 
                                + * + * repeated string excluded_filter_keys = 3; + * + * @param index The index of the element to return. + * @return The excludedFilterKeys at the given index. + */ + java.lang.String getExcludedFilterKeys(int index); + /** + * + * + *
                                +     * List of keys to exclude when faceting.
                                +     *
                                +     *
                                +     * By default,
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                +     * is not excluded from the filter unless it is listed in this field.
                                +     *
                                +     * Listing a facet key in this field allows its values to appear as facet
                                +     * results, even when they are filtered out of search results. Using this
                                +     * field does not affect what search results are returned.
                                +     *
                                +     * For example, suppose there are 100 documents with the color facet "Red"
                                +     * and 200 documents with the color facet "Blue". A query containing the
                                +     * filter "color:ANY("Red")" and having "color" as
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey.key]
                                +     * would by default return only "Red" documents in the search results, and
                                +     * also return "Red" with count 100 as the only color facet. Although there
                                +     * are also blue documents available, "Blue" would not be shown as an
                                +     * available facet value.
                                +     *
                                +     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                +     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                +     * "color" key is now excluded from the filter. Because this field doesn't
                                +     * affect search results, the search results are still correctly filtered to
                                +     * return only "Red" documents.
                                +     *
                                +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                +     * error is returned.
                                +     * 
                                + * + * repeated string excluded_filter_keys = 3; + * + * @param index The index of the value to return. + * @return The bytes of the excludedFilterKeys at the given index. + */ + com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index); + + /** + * + * + *
                                +     * Enables dynamic position for this facet. If set to true, the position of
                                +     * this facet among all facets in the response is determined automatically.
                                +     * If dynamic facets are enabled, it is ordered together.
                                +     * If set to false, the position of this facet in the
                                +     * response is the same as in the request, and it is ranked before
                                +     * the facets with dynamic position enable and all dynamic facets.
                                +     *
                                +     * For example, you may always want to have rating facet returned in
                                +     * the response, but it's not necessarily to always display the rating facet
                                +     * at the top. In that case, you can set enable_dynamic_position to true so
                                +     * that the position of rating facet in response is determined
                                +     * automatically.
                                +     *
                                +     * Another example, assuming you have the following facets in the request:
                                +     *
                                +     * * "rating", enable_dynamic_position = true
                                +     *
                                +     * * "price", enable_dynamic_position = false
                                +     *
                                +     * * "brands", enable_dynamic_position = false
                                +     *
                                +     * And also you have a dynamic facets enabled, which generates a facet
                                +     * `gender`. Then the final order of the facets in the response can be
                                +     * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
                                +     * "rating") depends on how API orders "gender" and "rating" facets.
                                +     * However, notice that "price" and "brands" are always
                                +     * ranked at first and second position because their enable_dynamic_position
                                +     * is false.
                                +     * 
                                + * + * bool enable_dynamic_position = 4; + * + * @return The enableDynamicPosition. + */ + boolean getEnableDynamicPosition(); + } + /** + * + * + *
                                +   * A facet specification to perform faceted search.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec} + */ + public static final class FacetSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec) + FacetSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use FacetSpec.newBuilder() to construct. + private FacetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FacetSpec() { + excludedFilterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FacetSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.class, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.Builder.class); + } + + public interface FacetKeyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.FacetKey) com.google.protobuf.MessageOrBuilder { /** @@ -5980,9 +6671,8 @@ public interface ConditionBoostSpecOrBuilder * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6002,9 +6692,8 @@ public interface ConditionBoostSpecOrBuilder * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6105,9 +6794,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6138,9 +6826,8 @@ public java.lang.String getCondition() { * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6623,9 +7310,8 @@ public Builder mergeFrom( * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6655,9 +7341,8 @@ public java.lang.String getCondition() { * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6687,9 +7372,8 @@ public com.google.protobuf.ByteString getConditionBytes() { * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6718,9 +7402,8 @@ public Builder setCondition(java.lang.String value) { * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6745,9 +7428,8 @@ public Builder clearCondition() { * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -9975,6 +10657,46 @@ public interface ContentSearchSpecOrBuilder com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec .ExtractiveContentSpecOrBuilder getExtractiveContentSpecOrBuilder(); + + /** + * + * + *
                                +     * Specifies the search result mode. If unspecified, the
                                +     * search result mode is based on
                                +     * [DataStore.DocumentProcessingConfig.chunking_config][]:
                                +     * * If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
                                +     *   it defaults to `CHUNKS`.
                                +     * * Otherwise, it defaults to `DOCUMENTS`.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The enum numeric value on the wire for searchResultMode. + */ + int getSearchResultModeValue(); + /** + * + * + *
                                +     * Specifies the search result mode. If unspecified, the
                                +     * search result mode is based on
                                +     * [DataStore.DocumentProcessingConfig.chunking_config][]:
                                +     * * If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
                                +     *   it defaults to `CHUNKS`.
                                +     * * Otherwise, it defaults to `DOCUMENTS`.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The searchResultMode. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode + getSearchResultMode(); } /** * @@ -9995,7 +10717,9 @@ private ContentSearchSpec(com.google.protobuf.GeneratedMessageV3.Builder buil super(builder); } - private ContentSearchSpec() {} + private ContentSearchSpec() { + searchResultMode_ = 0; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -10019,6 +10743,177 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } + /** + * + * + *
                                +     * Specifies the search result mode. If unspecified, the
                                +     * search result mode is based on
                                +     * [DataStore.DocumentProcessingConfig.chunking_config][]:
                                +     * * If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
                                +     *   it defaults to `CHUNKS`.
                                +     * * Otherwise, it defaults to `DOCUMENTS`.
                                +     * 
                                + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode} + */ + public enum SearchResultMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                +       * Default value.
                                +       * 
                                + * + * SEARCH_RESULT_MODE_UNSPECIFIED = 0; + */ + SEARCH_RESULT_MODE_UNSPECIFIED(0), + /** + * + * + *
                                +       * Returns documents in the search result.
                                +       * 
                                + * + * DOCUMENTS = 1; + */ + DOCUMENTS(1), + /** + * + * + *
                                +       * Returns chunks in the search result. Only available if the
                                +       * [DataStore.DocumentProcessingConfig.chunking_config][] is specified.
                                +       * 
                                + * + * CHUNKS = 2; + */ + CHUNKS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                +       * Default value.
                                +       * 
                                + * + * SEARCH_RESULT_MODE_UNSPECIFIED = 0; + */ + public static final int SEARCH_RESULT_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
                                +       * Returns documents in the search result.
                                +       * 
                                + * + * DOCUMENTS = 1; + */ + public static final int DOCUMENTS_VALUE = 1; + /** + * + * + *
                                +       * Returns chunks in the search result. Only available if the
                                +       * [DataStore.DocumentProcessingConfig.chunking_config][] is specified.
                                +       * 
                                + * + * CHUNKS = 2; + */ + public static final int CHUNKS_VALUE = 2; + + 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 SearchResultMode 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 SearchResultMode forNumber(int value) { + switch (value) { + case 0: + return SEARCH_RESULT_MODE_UNSPECIFIED; + case 1: + return DOCUMENTS; + case 2: + return CHUNKS; + 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 SearchResultMode findValueByNumber(int number) { + return SearchResultMode.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.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SearchResultMode[] VALUES = values(); + + public static SearchResultMode 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 SearchResultMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode) + } + public interface SnippetSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec) @@ -10037,7 +10932,7 @@ public interface SnippetSpecOrBuilder * * @deprecated * google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=308 + * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=321 * @return The maxSnippetCount. */ @java.lang.Deprecated @@ -10055,7 +10950,7 @@ public interface SnippetSpecOrBuilder * * @deprecated * google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=312 + * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=325 * @return The referenceOnly. */ @java.lang.Deprecated @@ -10136,7 +11031,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @deprecated * google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=308 + * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=321 * @return The maxSnippetCount. */ @java.lang.Override @@ -10159,7 +11054,7 @@ public int getMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=312 + * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=325 * @return The referenceOnly. */ @java.lang.Override @@ -10638,7 +11533,7 @@ public Builder mergeFrom( * * @deprecated * google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=308 + * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=321 * @return The maxSnippetCount. */ @java.lang.Override @@ -10659,7 +11554,7 @@ public int getMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=308 + * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=321 * @param value The maxSnippetCount to set. * @return This builder for chaining. */ @@ -10684,7 +11579,7 @@ public Builder setMaxSnippetCount(int value) { * * @deprecated * google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=308 + * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=321 * @return This builder for chaining. */ @java.lang.Deprecated @@ -10708,7 +11603,7 @@ public Builder clearMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=312 + * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=325 * @return The referenceOnly. */ @java.lang.Override @@ -10728,7 +11623,7 @@ public boolean getReferenceOnly() { * * @deprecated * google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=312 + * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=325 * @param value The referenceOnly to set. * @return This builder for chaining. */ @@ -10752,7 +11647,7 @@ public Builder setReferenceOnly(boolean value) { * * @deprecated * google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=312 + * is deprecated. See google/cloud/discoveryengine/v1alpha/search_service.proto;l=325 * @return This builder for chaining. */ @java.lang.Deprecated @@ -10906,7 +11801,7 @@ public interface SummarySpecOrBuilder * of results returned is less than `summaryResultCount`, the summary is * generated from all of the results. * - * At most five results can be used to generate a summary. + * At most 10 results can be used to generate a summary. * * * int32 summary_result_count = 1; @@ -11894,8 +12789,16 @@ public interface ModelSpecOrBuilder * * *
                                -         * The string format of the model version.
                                -         * e.g. stable, preview, etc.
                                +         * The model version used to generate the summary.
                                +         *
                                +         * Supported values are:
                                +         *
                                +         * * `stable`: string. Default value when no value is specified. Uses a
                                +         *   generally available, fine-tuned version of the text-bison@001
                                +         *   model.
                                +         * * `preview`: string. (Public preview) Uses a fine-tuned version of
                                +         *   the text-bison@002 model. This model works only for summaries in
                                +         *   English.
                                          * 
                                * * string version = 1; @@ -11907,8 +12810,16 @@ public interface ModelSpecOrBuilder * * *
                                -         * The string format of the model version.
                                -         * e.g. stable, preview, etc.
                                +         * The model version used to generate the summary.
                                +         *
                                +         * Supported values are:
                                +         *
                                +         * * `stable`: string. Default value when no value is specified. Uses a
                                +         *   generally available, fine-tuned version of the text-bison@001
                                +         *   model.
                                +         * * `preview`: string. (Public preview) Uses a fine-tuned version of
                                +         *   the text-bison@002 model. This model works only for summaries in
                                +         *   English.
                                          * 
                                * * string version = 1; @@ -11972,8 +12883,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                -         * The string format of the model version.
                                -         * e.g. stable, preview, etc.
                                +         * The model version used to generate the summary.
                                +         *
                                +         * Supported values are:
                                +         *
                                +         * * `stable`: string. Default value when no value is specified. Uses a
                                +         *   generally available, fine-tuned version of the text-bison@001
                                +         *   model.
                                +         * * `preview`: string. (Public preview) Uses a fine-tuned version of
                                +         *   the text-bison@002 model. This model works only for summaries in
                                +         *   English.
                                          * 
                                * * string version = 1; @@ -11996,8 +12915,16 @@ public java.lang.String getVersion() { * * *
                                -         * The string format of the model version.
                                -         * e.g. stable, preview, etc.
                                +         * The model version used to generate the summary.
                                +         *
                                +         * Supported values are:
                                +         *
                                +         * * `stable`: string. Default value when no value is specified. Uses a
                                +         *   generally available, fine-tuned version of the text-bison@001
                                +         *   model.
                                +         * * `preview`: string. (Public preview) Uses a fine-tuned version of
                                +         *   the text-bison@002 model. This model works only for summaries in
                                +         *   English.
                                          * 
                                * * string version = 1; @@ -12431,8 +13358,16 @@ public Builder mergeFrom( * * *
                                -           * The string format of the model version.
                                -           * e.g. stable, preview, etc.
                                +           * The model version used to generate the summary.
                                +           *
                                +           * Supported values are:
                                +           *
                                +           * * `stable`: string. Default value when no value is specified. Uses a
                                +           *   generally available, fine-tuned version of the text-bison@001
                                +           *   model.
                                +           * * `preview`: string. (Public preview) Uses a fine-tuned version of
                                +           *   the text-bison@002 model. This model works only for summaries in
                                +           *   English.
                                            * 
                                * * string version = 1; @@ -12454,8 +13389,16 @@ public java.lang.String getVersion() { * * *
                                -           * The string format of the model version.
                                -           * e.g. stable, preview, etc.
                                +           * The model version used to generate the summary.
                                +           *
                                +           * Supported values are:
                                +           *
                                +           * * `stable`: string. Default value when no value is specified. Uses a
                                +           *   generally available, fine-tuned version of the text-bison@001
                                +           *   model.
                                +           * * `preview`: string. (Public preview) Uses a fine-tuned version of
                                +           *   the text-bison@002 model. This model works only for summaries in
                                +           *   English.
                                            * 
                                * * string version = 1; @@ -12477,8 +13420,16 @@ public com.google.protobuf.ByteString getVersionBytes() { * * *
                                -           * The string format of the model version.
                                -           * e.g. stable, preview, etc.
                                +           * The model version used to generate the summary.
                                +           *
                                +           * Supported values are:
                                +           *
                                +           * * `stable`: string. Default value when no value is specified. Uses a
                                +           *   generally available, fine-tuned version of the text-bison@001
                                +           *   model.
                                +           * * `preview`: string. (Public preview) Uses a fine-tuned version of
                                +           *   the text-bison@002 model. This model works only for summaries in
                                +           *   English.
                                            * 
                                * * string version = 1; @@ -12499,8 +13450,16 @@ public Builder setVersion(java.lang.String value) { * * *
                                -           * The string format of the model version.
                                -           * e.g. stable, preview, etc.
                                +           * The model version used to generate the summary.
                                +           *
                                +           * Supported values are:
                                +           *
                                +           * * `stable`: string. Default value when no value is specified. Uses a
                                +           *   generally available, fine-tuned version of the text-bison@001
                                +           *   model.
                                +           * * `preview`: string. (Public preview) Uses a fine-tuned version of
                                +           *   the text-bison@002 model. This model works only for summaries in
                                +           *   English.
                                            * 
                                * * string version = 1; @@ -12517,8 +13476,16 @@ public Builder clearVersion() { * * *
                                -           * The string format of the model version.
                                -           * e.g. stable, preview, etc.
                                +           * The model version used to generate the summary.
                                +           *
                                +           * Supported values are:
                                +           *
                                +           * * `stable`: string. Default value when no value is specified. Uses a
                                +           *   generally available, fine-tuned version of the text-bison@001
                                +           *   model.
                                +           * * `preview`: string. (Public preview) Uses a fine-tuned version of
                                +           *   the text-bison@002 model. This model works only for summaries in
                                +           *   English.
                                            * 
                                * * string version = 1; @@ -12620,7 +13587,7 @@ public com.google.protobuf.Parser getParserForType() { * of results returned is less than `summaryResultCount`, the summary is * generated from all of the results. * - * At most five results can be used to generate a summary. + * At most 10 results can be used to generate a summary. * * * int32 summary_result_count = 1; @@ -13487,7 +14454,7 @@ public Builder mergeFrom( * of results returned is less than `summaryResultCount`, the summary is * generated from all of the results. * - * At most five results can be used to generate a summary. + * At most 10 results can be used to generate a summary. * * * int32 summary_result_count = 1; @@ -13506,7 +14473,7 @@ public int getSummaryResultCount() { * of results returned is less than `summaryResultCount`, the summary is * generated from all of the results. * - * At most five results can be used to generate a summary. + * At most 10 results can be used to generate a summary. * * * int32 summary_result_count = 1; @@ -13529,7 +14496,7 @@ public Builder setSummaryResultCount(int value) { * of results returned is less than `summaryResultCount`, the summary is * generated from all of the results. * - * At most five results can be used to generate a summary. + * At most 10 results can be used to generate a summary. * * * int32 summary_result_count = 1; @@ -14498,7 +15465,7 @@ public interface ExtractiveContentSpecOrBuilder * `max_extractive_answer_count`, return all of the answers. Otherwise, * return the `max_extractive_answer_count`. * - * At most one answer is returned for each + * At most five answers are returned for each * [SearchResult][google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult]. * * @@ -14647,7 +15614,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * `max_extractive_answer_count`, return all of the answers. Otherwise, * return the `max_extractive_answer_count`. * - * At most one answer is returned for each + * At most five answers are returned for each * [SearchResult][google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult]. * * @@ -15272,7 +16239,7 @@ public Builder mergeFrom( * `max_extractive_answer_count`, return all of the answers. Otherwise, * return the `max_extractive_answer_count`. * - * At most one answer is returned for each + * At most five answers are returned for each * [SearchResult][google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult]. * * @@ -15299,7 +16266,7 @@ public int getMaxExtractiveAnswerCount() { * `max_extractive_answer_count`, return all of the answers. Otherwise, * return the `max_extractive_answer_count`. * - * At most one answer is returned for each + * At most five answers are returned for each * [SearchResult][google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult]. * * @@ -15330,7 +16297,7 @@ public Builder setMaxExtractiveAnswerCount(int value) { * `max_extractive_answer_count`, return all of the answers. Otherwise, * return the `max_extractive_answer_count`. * - * At most one answer is returned for each + * At most five answers are returned for each * [SearchResult][google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult]. * * @@ -15899,6 +16866,61 @@ public boolean hasExtractiveContentSpec() { : extractiveContentSpec_; } + public static final int SEARCH_RESULT_MODE_FIELD_NUMBER = 4; + private int searchResultMode_ = 0; + /** + * + * + *
                                +     * Specifies the search result mode. If unspecified, the
                                +     * search result mode is based on
                                +     * [DataStore.DocumentProcessingConfig.chunking_config][]:
                                +     * * If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
                                +     *   it defaults to `CHUNKS`.
                                +     * * Otherwise, it defaults to `DOCUMENTS`.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The enum numeric value on the wire for searchResultMode. + */ + @java.lang.Override + public int getSearchResultModeValue() { + return searchResultMode_; + } + /** + * + * + *
                                +     * Specifies the search result mode. If unspecified, the
                                +     * search result mode is based on
                                +     * [DataStore.DocumentProcessingConfig.chunking_config][]:
                                +     * * If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
                                +     *   it defaults to `CHUNKS`.
                                +     * * Otherwise, it defaults to `DOCUMENTS`.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The searchResultMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode + getSearchResultMode() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode + result = + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + .SearchResultMode.forNumber(searchResultMode_); + return result == null + ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + .SearchResultMode.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -15922,6 +16944,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getExtractiveContentSpec()); } + if (searchResultMode_ + != com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + .SearchResultMode.SEARCH_RESULT_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, searchResultMode_); + } getUnknownFields().writeTo(output); } @@ -15941,6 +16969,12 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExtractiveContentSpec()); } + if (searchResultMode_ + != com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + .SearchResultMode.SEARCH_RESULT_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, searchResultMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -15970,6 +17004,7 @@ public boolean equals(final java.lang.Object obj) { if (hasExtractiveContentSpec()) { if (!getExtractiveContentSpec().equals(other.getExtractiveContentSpec())) return false; } + if (searchResultMode_ != other.searchResultMode_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -15993,6 +17028,8 @@ public int hashCode() { hash = (37 * hash) + EXTRACTIVE_CONTENT_SPEC_FIELD_NUMBER; hash = (53 * hash) + getExtractiveContentSpec().hashCode(); } + hash = (37 * hash) + SEARCH_RESULT_MODE_FIELD_NUMBER; + hash = (53 * hash) + searchResultMode_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -16169,6 +17206,7 @@ public Builder clear() { extractiveContentSpecBuilder_.dispose(); extractiveContentSpecBuilder_ = null; } + searchResultMode_ = 0; return this; } @@ -16228,6 +17266,9 @@ private void buildPartial0( : extractiveContentSpecBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.searchResultMode_ = searchResultMode_; + } result.bitField0_ |= to_bitField0_; } @@ -16292,6 +17333,9 @@ public Builder mergeFrom( if (other.hasExtractiveContentSpec()) { mergeExtractiveContentSpec(other.getExtractiveContentSpec()); } + if (other.searchResultMode_ != 0) { + setSearchResultModeValue(other.getSearchResultModeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -16337,6 +17381,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 32: + { + searchResultMode_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -17068,6 +18118,140 @@ public Builder clearExtractiveContentSpec() { return extractiveContentSpecBuilder_; } + private int searchResultMode_ = 0; + /** + * + * + *
                                +       * Specifies the search result mode. If unspecified, the
                                +       * search result mode is based on
                                +       * [DataStore.DocumentProcessingConfig.chunking_config][]:
                                +       * * If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
                                +       *   it defaults to `CHUNKS`.
                                +       * * Otherwise, it defaults to `DOCUMENTS`.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The enum numeric value on the wire for searchResultMode. + */ + @java.lang.Override + public int getSearchResultModeValue() { + return searchResultMode_; + } + /** + * + * + *
                                +       * Specifies the search result mode. If unspecified, the
                                +       * search result mode is based on
                                +       * [DataStore.DocumentProcessingConfig.chunking_config][]:
                                +       * * If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
                                +       *   it defaults to `CHUNKS`.
                                +       * * Otherwise, it defaults to `DOCUMENTS`.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @param value The enum numeric value on the wire for searchResultMode to set. + * @return This builder for chaining. + */ + public Builder setSearchResultModeValue(int value) { + searchResultMode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                +       * Specifies the search result mode. If unspecified, the
                                +       * search result mode is based on
                                +       * [DataStore.DocumentProcessingConfig.chunking_config][]:
                                +       * * If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
                                +       *   it defaults to `CHUNKS`.
                                +       * * Otherwise, it defaults to `DOCUMENTS`.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The searchResultMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + .SearchResultMode + getSearchResultMode() { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode + result = + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + .SearchResultMode.forNumber(searchResultMode_); + return result == null + ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + .SearchResultMode.UNRECOGNIZED + : result; + } + /** + * + * + *
                                +       * Specifies the search result mode. If unspecified, the
                                +       * search result mode is based on
                                +       * [DataStore.DocumentProcessingConfig.chunking_config][]:
                                +       * * If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
                                +       *   it defaults to `CHUNKS`.
                                +       * * Otherwise, it defaults to `DOCUMENTS`.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @param value The searchResultMode to set. + * @return This builder for chaining. + */ + public Builder setSearchResultMode( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + searchResultMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
                                +       * Specifies the search result mode. If unspecified, the
                                +       * search result mode is based on
                                +       * [DataStore.DocumentProcessingConfig.chunking_config][]:
                                +       * * If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
                                +       *   it defaults to `CHUNKS`.
                                +       * * Otherwise, it defaults to `DOCUMENTS`.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearSearchResultMode() { + bitField0_ = (bitField0_ & ~0x00000008); + searchResultMode_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -19588,6 +20772,92 @@ public int getOffset() { return offset_; } + public static final int DATA_STORE_SPECS_FIELD_NUMBER = 32; + + @SuppressWarnings("serial") + private java.util.List + dataStoreSpecs_; + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public java.util.List + getDataStoreSpecsList() { + return dataStoreSpecs_; + } + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsOrBuilderList() { + return dataStoreSpecs_; + } + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public int getDataStoreSpecsCount() { + return dataStoreSpecs_.size(); + } + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec getDataStoreSpecs( + int index) { + return dataStoreSpecs_.get(index); + } + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpecOrBuilder + getDataStoreSpecsOrBuilder(int index) { + return dataStoreSpecs_.get(index); + } + public static final int FILTER_FIELD_NUMBER = 7; @SuppressWarnings("serial") @@ -20457,12 +21727,13 @@ public boolean hasContentSearchSpec() { *
                                    * Uses the provided embedding to do additional semantic document retrieval.
                                    * The retrieval is based on the dot product of
                                -   * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -   * embedding that is provided in
                                -   * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * and the document embedding that is provided in
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                    *
                                -   * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -   * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +   * If
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +   * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                    * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; @@ -20480,12 +21751,13 @@ public boolean hasEmbeddingSpec() { *
                                    * Uses the provided embedding to do additional semantic document retrieval.
                                    * The retrieval is based on the dot product of
                                -   * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -   * embedding that is provided in
                                -   * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * and the document embedding that is provided in
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                    *
                                -   * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -   * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +   * If
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +   * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                    * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; @@ -20505,12 +21777,13 @@ public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec getE *
                                    * Uses the provided embedding to do additional semantic document retrieval.
                                    * The retrieval is based on the dot product of
                                -   * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -   * embedding that is provided in
                                -   * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * and the document embedding that is provided in
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                    *
                                -   * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -   * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +   * If
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +   * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                    * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; @@ -20798,6 +22071,60 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int CUSTOM_FINE_TUNING_SPEC_FIELD_NUMBER = 34; + private com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec customFineTuningSpec_; + /** + * + * + *
                                +   * Custom fine tuning configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + * + * @return Whether the customFineTuningSpec field is set. + */ + @java.lang.Override + public boolean hasCustomFineTuningSpec() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
                                +   * Custom fine tuning configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + * + * @return The customFineTuningSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec getCustomFineTuningSpec() { + return customFineTuningSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.getDefaultInstance() + : customFineTuningSpec_; + } + /** + * + * + *
                                +   * Custom fine tuning configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpecOrBuilder + getCustomFineTuningSpecOrBuilder() { + return customFineTuningSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.getDefaultInstance() + : customFineTuningSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -20876,6 +22203,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalFilter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, canonicalFilter_); } + for (int i = 0; i < dataStoreSpecs_.size(); i++) { + output.writeMessage(32, dataStoreSpecs_.get(i)); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(34, getCustomFineTuningSpec()); + } getUnknownFields().writeTo(output); } @@ -20966,6 +22299,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalFilter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, canonicalFilter_); } + for (int i = 0; i < dataStoreSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, dataStoreSpecs_.get(i)); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(34, getCustomFineTuningSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -20992,6 +22332,7 @@ public boolean equals(final java.lang.Object obj) { if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getOffset() != other.getOffset()) return false; + if (!getDataStoreSpecsList().equals(other.getDataStoreSpecsList())) return false; if (!getFilter().equals(other.getFilter())) return false; if (!getCanonicalFilter().equals(other.getCanonicalFilter())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; @@ -21025,6 +22366,10 @@ public boolean equals(final java.lang.Object obj) { if (!getRankingExpression().equals(other.getRankingExpression())) return false; if (getSafeSearch() != other.getSafeSearch()) return false; if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; + if (hasCustomFineTuningSpec() != other.hasCustomFineTuningSpec()) return false; + if (hasCustomFineTuningSpec()) { + if (!getCustomFineTuningSpec().equals(other.getCustomFineTuningSpec())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -21052,6 +22397,10 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset(); + if (getDataStoreSpecsCount() > 0) { + hash = (37 * hash) + DATA_STORE_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getDataStoreSpecsList().hashCode(); + } hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + CANONICAL_FILTER_FIELD_NUMBER; @@ -21100,6 +22449,10 @@ public int hashCode() { hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetUserLabels().hashCode(); } + if (hasCustomFineTuningSpec()) { + hash = (37 * hash) + CUSTOM_FINE_TUNING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getCustomFineTuningSpec().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -21270,6 +22623,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getImageQueryFieldBuilder(); + getDataStoreSpecsFieldBuilder(); getUserInfoFieldBuilder(); getFacetSpecsFieldBuilder(); getBoostSpecFieldBuilder(); @@ -21277,6 +22631,7 @@ private void maybeForceBuilderInitialization() { getSpellCorrectionSpecFieldBuilder(); getContentSearchSpecFieldBuilder(); getEmbeddingSpecFieldBuilder(); + getCustomFineTuningSpecFieldBuilder(); } } @@ -21295,6 +22650,13 @@ public Builder clear() { pageSize_ = 0; pageToken_ = ""; offset_ = 0; + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecs_ = java.util.Collections.emptyList(); + } else { + dataStoreSpecs_ = null; + dataStoreSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); filter_ = ""; canonicalFilter_ = ""; orderBy_ = ""; @@ -21309,7 +22671,7 @@ public Builder clear() { facetSpecs_ = null; facetSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); boostSpec_ = null; if (boostSpecBuilder_ != null) { boostSpecBuilder_.dispose(); @@ -21340,6 +22702,11 @@ public Builder clear() { rankingExpression_ = ""; safeSearch_ = false; internalGetMutableUserLabels().clear(); + customFineTuningSpec_ = null; + if (customFineTuningSpecBuilder_ != null) { + customFineTuningSpecBuilder_.dispose(); + customFineTuningSpecBuilder_ = null; + } return this; } @@ -21377,10 +22744,19 @@ public com.google.cloud.discoveryengine.v1alpha.SearchRequest buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.discoveryengine.v1alpha.SearchRequest result) { + if (dataStoreSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + dataStoreSpecs_ = java.util.Collections.unmodifiableList(dataStoreSpecs_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.dataStoreSpecs_ = dataStoreSpecs_; + } else { + result.dataStoreSpecs_ = dataStoreSpecsBuilder_.build(); + } if (facetSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { facetSpecs_ = java.util.Collections.unmodifiableList(facetSpecs_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } result.facetSpecs_ = facetSpecs_; } else { @@ -21413,65 +22789,72 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.SearchReques if (((from_bitField0_ & 0x00000040) != 0)) { result.offset_ = offset_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.filter_ = filter_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.canonicalFilter_ = canonicalFilter_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.orderBy_ = orderBy_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.params_ = internalGetParams().build(ParamsDefaultEntryHolder.defaultEntry); } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.queryExpansionSpec_ = queryExpansionSpecBuilder_ == null ? queryExpansionSpec_ : queryExpansionSpecBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.spellCorrectionSpec_ = spellCorrectionSpecBuilder_ == null ? spellCorrectionSpec_ : spellCorrectionSpecBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.userPseudoId_ = userPseudoId_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.contentSearchSpec_ = contentSearchSpecBuilder_ == null ? contentSearchSpec_ : contentSearchSpecBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.embeddingSpec_ = embeddingSpecBuilder_ == null ? embeddingSpec_ : embeddingSpecBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.rankingExpression_ = rankingExpression_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.safeSearch_ = safeSearch_; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { result.userLabels_ = internalGetUserLabels(); result.userLabels_.makeImmutable(); } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.customFineTuningSpec_ = + customFineTuningSpecBuilder_ == null + ? customFineTuningSpec_ + : customFineTuningSpecBuilder_.build(); + to_bitField0_ |= 0x00000080; + } result.bitField0_ |= to_bitField0_; } @@ -21550,19 +22933,46 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest if (other.getOffset() != 0) { setOffset(other.getOffset()); } + if (dataStoreSpecsBuilder_ == null) { + if (!other.dataStoreSpecs_.isEmpty()) { + if (dataStoreSpecs_.isEmpty()) { + dataStoreSpecs_ = other.dataStoreSpecs_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.addAll(other.dataStoreSpecs_); + } + onChanged(); + } + } else { + if (!other.dataStoreSpecs_.isEmpty()) { + if (dataStoreSpecsBuilder_.isEmpty()) { + dataStoreSpecsBuilder_.dispose(); + dataStoreSpecsBuilder_ = null; + dataStoreSpecs_ = other.dataStoreSpecs_; + bitField0_ = (bitField0_ & ~0x00000080); + dataStoreSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataStoreSpecsFieldBuilder() + : null; + } else { + dataStoreSpecsBuilder_.addAllMessages(other.dataStoreSpecs_); + } + } + } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getCanonicalFilter().isEmpty()) { canonicalFilter_ = other.canonicalFilter_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (!other.getOrderBy().isEmpty()) { orderBy_ = other.orderBy_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (other.hasUserInfo()) { @@ -21572,7 +22982,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest if (!other.facetSpecs_.isEmpty()) { if (facetSpecs_.isEmpty()) { facetSpecs_ = other.facetSpecs_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureFacetSpecsIsMutable(); facetSpecs_.addAll(other.facetSpecs_); @@ -21585,7 +22995,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest facetSpecsBuilder_.dispose(); facetSpecsBuilder_ = null; facetSpecs_ = other.facetSpecs_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); facetSpecsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFacetSpecsFieldBuilder() @@ -21599,7 +23009,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest mergeBoostSpec(other.getBoostSpec()); } internalGetMutableParams().mergeFrom(other.internalGetParams()); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; if (other.hasQueryExpansionSpec()) { mergeQueryExpansionSpec(other.getQueryExpansionSpec()); } @@ -21608,7 +23018,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest } if (!other.getUserPseudoId().isEmpty()) { userPseudoId_ = other.userPseudoId_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } if (other.hasContentSearchSpec()) { @@ -21619,14 +23029,17 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.SearchRequest } if (!other.getRankingExpression().isEmpty()) { rankingExpression_ = other.rankingExpression_; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } if (other.getSafeSearch() != false) { setSafeSearch(other.getSafeSearch()); } internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; + if (other.hasCustomFineTuningSpec()) { + mergeCustomFineTuningSpec(other.getCustomFineTuningSpec()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -21692,13 +23105,13 @@ public Builder mergeFrom( case 58: { filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 58 case 66: { orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 66 case 74: @@ -21718,7 +23131,7 @@ public Builder mergeFrom( case 82: { input.readMessage(getBoostSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 82 case 90: @@ -21730,27 +23143,27 @@ public Builder mergeFrom( internalGetMutableParams() .ensureBuilderMap() .put(params__.getKey(), params__.getValue()); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 90 case 106: { input.readMessage( getQueryExpansionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 106 case 114: { input.readMessage( getSpellCorrectionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 114 case 122: { userPseudoId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 122 case 154: @@ -21762,13 +23175,13 @@ public Builder mergeFrom( case 160: { safeSearch_ = input.readBool(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 160 case 170: { input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 170 case 178: @@ -21780,34 +23193,56 @@ public Builder mergeFrom( internalGetMutableUserLabels() .getMutableMap() .put(userLabels__.getKey(), userLabels__.getValue()); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 178 case 186: { input.readMessage(getEmbeddingSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 186 case 194: { input.readMessage( getContentSearchSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 194 case 210: { rankingExpression_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 210 case 234: { canonicalFilter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 234 + case 258: + { + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec m = + input.readMessage( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec + .parser(), + extensionRegistry); + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(m); + } else { + dataStoreSpecsBuilder_.addMessage(m); + } + break; + } // case 258 + case 274: + { + input.readMessage( + getCustomFineTuningSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 274 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -21825,116 +23260,510 @@ public Builder mergeFrom( return this; } - private int bitField0_; - - private java.lang.Object servingConfig_ = ""; + private int bitField0_; + + private java.lang.Object servingConfig_ = ""; + /** + * + * + *
                                +     * Required. The resource name of the Search serving config, such as
                                +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                +     * or
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                +     * This field is used to identify the serving configuration name, set
                                +     * of models used to make the search.
                                +     * 
                                + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The servingConfig. + */ + public java.lang.String getServingConfig() { + java.lang.Object ref = servingConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servingConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Required. The resource name of the Search serving config, such as
                                +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                +     * or
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                +     * This field is used to identify the serving configuration name, set
                                +     * of models used to make the search.
                                +     * 
                                + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for servingConfig. + */ + public com.google.protobuf.ByteString getServingConfigBytes() { + java.lang.Object ref = servingConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servingConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Required. The resource name of the Search serving config, such as
                                +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                +     * or
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                +     * This field is used to identify the serving configuration name, set
                                +     * of models used to make the search.
                                +     * 
                                + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The servingConfig to set. + * @return This builder for chaining. + */ + public Builder setServingConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + servingConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The resource name of the Search serving config, such as
                                +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                +     * or
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                +     * This field is used to identify the serving configuration name, set
                                +     * of models used to make the search.
                                +     * 
                                + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearServingConfig() { + servingConfig_ = getDefaultInstance().getServingConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The resource name of the Search serving config, such as
                                +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                +     * or
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                +     * This field is used to identify the serving configuration name, set
                                +     * of models used to make the search.
                                +     * 
                                + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for servingConfig to set. + * @return This builder for chaining. + */ + public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servingConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object branch_ = ""; + /** + * + * + *
                                +     * The branch resource name, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     *
                                +     * Use `default_branch` as the branch ID or leave this field empty, to search
                                +     * documents under the default branch.
                                +     * 
                                + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @return The branch. + */ + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * The branch resource name, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     *
                                +     * Use `default_branch` as the branch ID or leave this field empty, to search
                                +     * documents under the default branch.
                                +     * 
                                + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for branch. + */ + public com.google.protobuf.ByteString getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * The branch resource name, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     *
                                +     * Use `default_branch` as the branch ID or leave this field empty, to search
                                +     * documents under the default branch.
                                +     * 
                                + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The branch to set. + * @return This builder for chaining. + */ + public Builder setBranch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * The branch resource name, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     *
                                +     * Use `default_branch` as the branch ID or leave this field empty, to search
                                +     * documents under the default branch.
                                +     * 
                                + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearBranch() { + branch_ = getDefaultInstance().getBranch(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                +     * The branch resource name, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     *
                                +     * Use `default_branch` as the branch ID or leave this field empty, to search
                                +     * documents under the default branch.
                                +     * 
                                + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for branch to set. + * @return This builder for chaining. + */ + public Builder setBranchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; /** * * *
                                -     * Required. The resource name of the Search serving config, such as
                                -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                -     * or
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                -     * This field is used to identify the serving configuration name, set
                                -     * of models used to make the search.
                                +     * Raw search query.
                                      * 
                                * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * string query = 3; * - * @return The servingConfig. + * @return The query. */ - public java.lang.String getServingConfig() { - java.lang.Object ref = servingConfig_; + public java.lang.String getQuery() { + java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - servingConfig_ = s; + query_ = s; return s; } else { - return (java.lang.String) ref; + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Raw search query.
                                +     * 
                                + * + * string query = 3; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Raw search query.
                                +     * 
                                + * + * string query = 3; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Raw search query.
                                +     * 
                                + * + * string query = 3; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Raw search query.
                                +     * 
                                + * + * string query = 3; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery imageQuery_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder> + imageQueryBuilder_; + /** + * + * + *
                                +     * Raw image query.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * + * @return Whether the imageQuery field is set. + */ + public boolean hasImageQuery() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                +     * Raw image query.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * + * @return The imageQuery. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery getImageQuery() { + if (imageQueryBuilder_ == null) { + return imageQuery_ == null + ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.getDefaultInstance() + : imageQuery_; + } else { + return imageQueryBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Raw image query.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + */ + public Builder setImageQuery( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery value) { + if (imageQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + imageQuery_ = value; + } else { + imageQueryBuilder_.setMessage(value); } + bitField0_ |= 0x00000008; + onChanged(); + return this; } /** * * *
                                -     * Required. The resource name of the Search serving config, such as
                                -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                -     * or
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                -     * This field is used to identify the serving configuration name, set
                                -     * of models used to make the search.
                                +     * Raw image query.
                                      * 
                                * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for servingConfig. + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; */ - public com.google.protobuf.ByteString getServingConfigBytes() { - java.lang.Object ref = servingConfig_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servingConfig_ = b; - return b; + public Builder setImageQuery( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder builderForValue) { + if (imageQueryBuilder_ == null) { + imageQuery_ = builderForValue.build(); } else { - return (com.google.protobuf.ByteString) ref; + imageQueryBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000008; + onChanged(); + return this; } /** * * *
                                -     * Required. The resource name of the Search serving config, such as
                                -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                -     * or
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                -     * This field is used to identify the serving configuration name, set
                                -     * of models used to make the search.
                                +     * Raw image query.
                                      * 
                                * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The servingConfig to set. - * @return This builder for chaining. + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; */ - public Builder setServingConfig(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeImageQuery( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery value) { + if (imageQueryBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && imageQuery_ != null + && imageQuery_ + != com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery + .getDefaultInstance()) { + getImageQueryBuilder().mergeFrom(value); + } else { + imageQuery_ = value; + } + } else { + imageQueryBuilder_.mergeFrom(value); + } + if (imageQuery_ != null) { + bitField0_ |= 0x00000008; + onChanged(); } - servingConfig_ = value; - bitField0_ |= 0x00000001; - onChanged(); return this; } /** * * *
                                -     * Required. The resource name of the Search serving config, such as
                                -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                -     * or
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                -     * This field is used to identify the serving configuration name, set
                                -     * of models used to make the search.
                                +     * Raw image query.
                                      * 
                                * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; */ - public Builder clearServingConfig() { - servingConfig_ = getDefaultInstance().getServingConfig(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearImageQuery() { + bitField0_ = (bitField0_ & ~0x00000008); + imageQuery_ = null; + if (imageQueryBuilder_ != null) { + imageQueryBuilder_.dispose(); + imageQueryBuilder_ = null; + } onChanged(); return this; } @@ -21942,128 +23771,104 @@ public Builder clearServingConfig() { * * *
                                -     * Required. The resource name of the Search serving config, such as
                                -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                -     * or
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                -     * This field is used to identify the serving configuration name, set
                                -     * of models used to make the search.
                                +     * Raw image query.
                                      * 
                                * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for servingConfig to set. - * @return This builder for chaining. + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; */ - public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - servingConfig_ = value; - bitField0_ |= 0x00000001; + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder + getImageQueryBuilder() { + bitField0_ |= 0x00000008; onChanged(); - return this; + return getImageQueryFieldBuilder().getBuilder(); } - - private java.lang.Object branch_ = ""; /** * * *
                                -     * The branch resource name, such as
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                -     *
                                -     * Use `default_branch` as the branch ID or leave this field empty, to search
                                -     * documents under the default branch.
                                +     * Raw image query.
                                      * 
                                * - * string branch = 2 [(.google.api.resource_reference) = { ... } - * - * @return The branch. + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; */ - public java.lang.String getBranch() { - java.lang.Object ref = branch_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - branch_ = s; - return s; + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder + getImageQueryOrBuilder() { + if (imageQueryBuilder_ != null) { + return imageQueryBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return imageQuery_ == null + ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.getDefaultInstance() + : imageQuery_; } } /** * * *
                                -     * The branch resource name, such as
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                -     *
                                -     * Use `default_branch` as the branch ID or leave this field empty, to search
                                -     * documents under the default branch.
                                +     * Raw image query.
                                      * 
                                * - * string branch = 2 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for branch. + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; */ - public com.google.protobuf.ByteString getBranchBytes() { - java.lang.Object ref = branch_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - branch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder> + getImageQueryFieldBuilder() { + if (imageQueryBuilder_ == null) { + imageQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder>( + getImageQuery(), getParentForChildren(), isClean()); + imageQuery_ = null; } + return imageQueryBuilder_; } + + private int pageSize_; /** * * *
                                -     * The branch resource name, such as
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     * Maximum number of
                                +     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
                                +     * unspecified, defaults to a reasonable value. The maximum allowed value is
                                +     * 100. Values above 100 are coerced to 100.
                                      *
                                -     * Use `default_branch` as the branch ID or leave this field empty, to search
                                -     * documents under the default branch.
                                +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                      * 
                                * - * string branch = 2 [(.google.api.resource_reference) = { ... } + * int32 page_size = 4; * - * @param value The branch to set. - * @return This builder for chaining. + * @return The pageSize. */ - public Builder setBranch(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - branch_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + @java.lang.Override + public int getPageSize() { + return pageSize_; } /** * * *
                                -     * The branch resource name, such as
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     * Maximum number of
                                +     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
                                +     * unspecified, defaults to a reasonable value. The maximum allowed value is
                                +     * 100. Values above 100 are coerced to 100.
                                      *
                                -     * Use `default_branch` as the branch ID or leave this field empty, to search
                                -     * documents under the default branch.
                                +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                      * 
                                * - * string branch = 2 [(.google.api.resource_reference) = { ... } + * int32 page_size = 4; * + * @param value The pageSize to set. * @return This builder for chaining. */ - public Builder clearBranch() { - branch_ = getDefaultInstance().getBranch(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -22071,47 +23876,50 @@ public Builder clearBranch() { * * *
                                -     * The branch resource name, such as
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     * Maximum number of
                                +     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
                                +     * unspecified, defaults to a reasonable value. The maximum allowed value is
                                +     * 100. Values above 100 are coerced to 100.
                                      *
                                -     * Use `default_branch` as the branch ID or leave this field empty, to search
                                -     * documents under the default branch.
                                +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                      * 
                                * - * string branch = 2 [(.google.api.resource_reference) = { ... } + * int32 page_size = 4; * - * @param value The bytes for branch to set. * @return This builder for chaining. */ - public Builder setBranchBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - branch_ = value; - bitField0_ |= 0x00000002; + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000010); + pageSize_ = 0; onChanged(); return this; } - private java.lang.Object query_ = ""; + private java.lang.Object pageToken_ = ""; /** * * *
                                -     * Raw search query.
                                +     * A page token received from a previous
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     *  `INVALID_ARGUMENT`  error is returned.
                                      * 
                                * - * string query = 3; + * string page_token = 5; * - * @return The query. + * @return The pageToken. */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - query_ = s; + pageToken_ = s; return s; } else { return (java.lang.String) ref; @@ -22121,19 +23929,26 @@ public java.lang.String getQuery() { * * *
                                -     * Raw search query.
                                +     * A page token received from a previous
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     *  `INVALID_ARGUMENT`  error is returned.
                                      * 
                                * - * string query = 3; + * string page_token = 5; * - * @return The bytes for query. + * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; + pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -22143,20 +23958,27 @@ public com.google.protobuf.ByteString getQueryBytes() { * * *
                                -     * Raw search query.
                                +     * A page token received from a previous
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     *  `INVALID_ARGUMENT`  error is returned.
                                      * 
                                * - * string query = 3; + * string page_token = 5; * - * @param value The query to set. + * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setQuery(java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - query_ = value; - bitField0_ |= 0x00000004; + pageToken_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -22164,16 +23986,23 @@ public Builder setQuery(java.lang.String value) { * * *
                                -     * Raw search query.
                                +     * A page token received from a previous
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     *  `INVALID_ARGUMENT`  error is returned.
                                      * 
                                * - * string query = 3; + * string page_token = 5; * * @return This builder for chaining. */ - public Builder clearQuery() { - query_ = getDefaultInstance().getQuery(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -22181,498 +24010,519 @@ public Builder clearQuery() { * * *
                                -     * Raw search query.
                                +     * A page token received from a previous
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     *  `INVALID_ARGUMENT`  error is returned.
                                      * 
                                * - * string query = 3; + * string page_token = 5; * - * @param value The bytes for query to set. + * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - query_ = value; - bitField0_ |= 0x00000004; + pageToken_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } - private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery imageQuery_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder> - imageQueryBuilder_; + private int offset_; /** * * *
                                -     * Raw image query.
                                +     * A 0-indexed integer that specifies the current offset (that is, starting
                                +     * result location, amongst the
                                +     * [Document][google.cloud.discoveryengine.v1alpha.Document]s deemed by the
                                +     * API as relevant) in search results. This field is only considered if
                                +     * [page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
                                +     * is unset.
                                +     *
                                +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                      * 
                                * - * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * int32 offset = 6; * - * @return Whether the imageQuery field is set. + * @return The offset. */ - public boolean hasImageQuery() { - return ((bitField0_ & 0x00000008) != 0); + @java.lang.Override + public int getOffset() { + return offset_; } /** * * *
                                -     * Raw image query.
                                +     * A 0-indexed integer that specifies the current offset (that is, starting
                                +     * result location, amongst the
                                +     * [Document][google.cloud.discoveryengine.v1alpha.Document]s deemed by the
                                +     * API as relevant) in search results. This field is only considered if
                                +     * [page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
                                +     * is unset.
                                +     *
                                +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                      * 
                                * - * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * int32 offset = 6; * - * @return The imageQuery. + * @param value The offset to set. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery getImageQuery() { - if (imageQueryBuilder_ == null) { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; - } else { - return imageQueryBuilder_.getMessage(); - } + public Builder setOffset(int value) { + + offset_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; } /** * * *
                                -     * Raw image query.
                                +     * A 0-indexed integer that specifies the current offset (that is, starting
                                +     * result location, amongst the
                                +     * [Document][google.cloud.discoveryengine.v1alpha.Document]s deemed by the
                                +     * API as relevant) in search results. This field is only considered if
                                +     * [page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
                                +     * is unset.
                                +     *
                                +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                      * 
                                * - * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * int32 offset = 6; + * + * @return This builder for chaining. */ - public Builder setImageQuery( - com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery value) { - if (imageQueryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - imageQuery_ = value; - } else { - imageQueryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000040); + offset_ = 0; onChanged(); return this; } + + private java.util.List + dataStoreSpecs_ = java.util.Collections.emptyList(); + + private void ensureDataStoreSpecsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + dataStoreSpecs_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec>( + dataStoreSpecs_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpecOrBuilder> + dataStoreSpecsBuilder_; + /** * * *
                                -     * Raw image query.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder setImageQuery( - com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder builderForValue) { - if (imageQueryBuilder_ == null) { - imageQuery_ = builderForValue.build(); + public java.util.List + getDataStoreSpecsList() { + if (dataStoreSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataStoreSpecs_); } else { - imageQueryBuilder_.setMessage(builderForValue.build()); + return dataStoreSpecsBuilder_.getMessageList(); } - bitField0_ |= 0x00000008; - onChanged(); - return this; } /** * * *
                                -     * Raw image query.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder mergeImageQuery( - com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery value) { - if (imageQueryBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && imageQuery_ != null - && imageQuery_ - != com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery - .getDefaultInstance()) { - getImageQueryBuilder().mergeFrom(value); - } else { - imageQuery_ = value; - } + public int getDataStoreSpecsCount() { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.size(); } else { - imageQueryBuilder_.mergeFrom(value); - } - if (imageQuery_ != null) { - bitField0_ |= 0x00000008; - onChanged(); + return dataStoreSpecsBuilder_.getCount(); } - return this; } /** * * *
                                -     * Raw image query.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder clearImageQuery() { - bitField0_ = (bitField0_ & ~0x00000008); - imageQuery_ = null; - if (imageQueryBuilder_ != null) { - imageQueryBuilder_.dispose(); - imageQueryBuilder_ = null; + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec getDataStoreSpecs( + int index) { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.get(index); + } else { + return dataStoreSpecsBuilder_.getMessage(index); } - onChanged(); - return this; } /** * * *
                                -     * Raw image query.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder - getImageQueryBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getImageQueryFieldBuilder().getBuilder(); + public Builder setDataStoreSpecs( + int index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec value) { + if (dataStoreSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.set(index, value); + onChanged(); + } else { + dataStoreSpecsBuilder_.setMessage(index, value); + } + return this; } /** * * *
                                -     * Raw image query.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder - getImageQueryOrBuilder() { - if (imageQueryBuilder_ != null) { - return imageQueryBuilder_.getMessageOrBuilder(); + public Builder setDataStoreSpecs( + int index, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.set(index, builderForValue.build()); + onChanged(); } else { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; + dataStoreSpecsBuilder_.setMessage(index, builderForValue.build()); } + return this; } /** * * *
                                -     * Raw image query.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * .google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery image_query = 19; + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder> - getImageQueryFieldBuilder() { - if (imageQueryBuilder_ == null) { - imageQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1alpha.SearchRequest.ImageQueryOrBuilder>( - getImageQuery(), getParentForChildren(), isClean()); - imageQuery_ = null; + public Builder addDataStoreSpecs( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec value) { + if (dataStoreSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(value); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(value); } - return imageQueryBuilder_; + return this; } - - private int pageSize_; /** * * *
                                -     * Maximum number of
                                -     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
                                -     * unspecified, defaults to a reasonable value. The maximum allowed value is
                                -     * 100. Values above 100 are coerced to 100.
                                -     *
                                -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * int32 page_size = 4; - * - * @return The pageSize. + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - @java.lang.Override - public int getPageSize() { - return pageSize_; + public Builder addDataStoreSpecs( + int index, com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec value) { + if (dataStoreSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(index, value); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(index, value); + } + return this; } /** * * *
                                -     * Maximum number of
                                -     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
                                -     * unspecified, defaults to a reasonable value. The maximum allowed value is
                                -     * 100. Values above 100 are coerced to 100.
                                -     *
                                -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * int32 page_size = 4; - * - * @param value The pageSize to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000010; - onChanged(); + public Builder addDataStoreSpecs( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(builderForValue.build()); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(builderForValue.build()); + } return this; } /** * * *
                                -     * Maximum number of
                                -     * [Document][google.cloud.discoveryengine.v1alpha.Document]s to return. If
                                -     * unspecified, defaults to a reasonable value. The maximum allowed value is
                                -     * 100. Values above 100 are coerced to 100.
                                -     *
                                -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * int32 page_size = 4; - * - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000010); - pageSize_ = 0; - onChanged(); + public Builder addDataStoreSpecs( + int index, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(index, builderForValue.build()); + } return this; } - - private java.lang.Object pageToken_ = ""; /** * * *
                                -     * A page token received from a previous
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                -     * call. Provide this to retrieve the subsequent page.
                                -     *
                                -     * When paginating, all other parameters provided to
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                -     * must match the call that provided the page token. Otherwise, an
                                -     *  `INVALID_ARGUMENT`  error is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * string page_token = 5; - * - * @return The pageToken. + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; + public Builder addAllDataStoreSpecs( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec> + values) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStoreSpecs_); + onChanged(); } else { - return (java.lang.String) ref; + dataStoreSpecsBuilder_.addAllMessages(values); } + return this; } /** * * *
                                -     * A page token received from a previous
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                -     * call. Provide this to retrieve the subsequent page.
                                -     *
                                -     * When paginating, all other parameters provided to
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                -     * must match the call that provided the page token. Otherwise, an
                                -     *  `INVALID_ARGUMENT`  error is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * string page_token = 5; - * - * @return The bytes for pageToken. + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; + public Builder clearDataStoreSpecs() { + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + dataStoreSpecsBuilder_.clear(); } + return this; } /** * * *
                                -     * A page token received from a previous
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                -     * call. Provide this to retrieve the subsequent page.
                                -     *
                                -     * When paginating, all other parameters provided to
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                -     * must match the call that provided the page token. Otherwise, an
                                -     *  `INVALID_ARGUMENT`  error is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * string page_token = 5; - * - * @param value The pageToken to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder removeDataStoreSpecs(int index) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.remove(index); + onChanged(); + } else { + dataStoreSpecsBuilder_.remove(index); } - pageToken_ = value; - bitField0_ |= 0x00000020; - onChanged(); return this; } /** * * *
                                -     * A page token received from a previous
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                -     * call. Provide this to retrieve the subsequent page.
                                -     *
                                -     * When paginating, all other parameters provided to
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                -     * must match the call that provided the page token. Otherwise, an
                                -     *  `INVALID_ARGUMENT`  error is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * string page_token = 5; - * - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.Builder + getDataStoreSpecsBuilder(int index) { + return getDataStoreSpecsFieldBuilder().getBuilder(index); } /** * * *
                                -     * A page token received from a previous
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                -     * call. Provide this to retrieve the subsequent page.
                                -     *
                                -     * When paginating, all other parameters provided to
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1alpha.SearchService.Search]
                                -     * must match the call that provided the page token. Otherwise, an
                                -     *  `INVALID_ARGUMENT`  error is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * string page_token = 5; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpecOrBuilder + getDataStoreSpecsOrBuilder(int index) { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.get(index); + } else { + return dataStoreSpecsBuilder_.getMessageOrBuilder(index); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; } - - private int offset_; /** * * *
                                -     * A 0-indexed integer that specifies the current offset (that is, starting
                                -     * result location, amongst the
                                -     * [Document][google.cloud.discoveryengine.v1alpha.Document]s deemed by the
                                -     * API as relevant) in search results. This field is only considered if
                                -     * [page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
                                -     * is unset.
                                -     *
                                -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * int32 offset = 6; - * - * @return The offset. + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - @java.lang.Override - public int getOffset() { - return offset_; + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsOrBuilderList() { + if (dataStoreSpecsBuilder_ != null) { + return dataStoreSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataStoreSpecs_); + } } /** * * *
                                -     * A 0-indexed integer that specifies the current offset (that is, starting
                                -     * result location, amongst the
                                -     * [Document][google.cloud.discoveryengine.v1alpha.Document]s deemed by the
                                -     * API as relevant) in search results. This field is only considered if
                                -     * [page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
                                -     * is unset.
                                -     *
                                -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * int32 offset = 6; - * - * @param value The offset to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder setOffset(int value) { - - offset_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.Builder + addDataStoreSpecsBuilder() { + return getDataStoreSpecsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec + .getDefaultInstance()); } /** * * *
                                -     * A 0-indexed integer that specifies the current offset (that is, starting
                                -     * result location, amongst the
                                -     * [Document][google.cloud.discoveryengine.v1alpha.Document]s deemed by the
                                -     * API as relevant) in search results. This field is only considered if
                                -     * [page_token][google.cloud.discoveryengine.v1alpha.SearchRequest.page_token]
                                -     * is unset.
                                +     * A list of data store specs to apply on a search call.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.Builder + addDataStoreSpecsBuilder(int index) { + return getDataStoreSpecsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec + .getDefaultInstance()); + } + /** * - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * * - * int32 offset = 6; + *
                                +     * A list of data store specs to apply on a search call.
                                +     * 
                                * - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder clearOffset() { - bitField0_ = (bitField0_ & ~0x00000040); - offset_ = 0; - onChanged(); - return this; + public java.util.List< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.Builder> + getDataStoreSpecsBuilderList() { + return getDataStoreSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsFieldBuilder() { + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpecOrBuilder>( + dataStoreSpecs_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + dataStoreSpecs_ = null; + } + return dataStoreSpecsBuilder_; } private java.lang.Object filter_ = ""; @@ -22779,7 +24629,7 @@ public Builder setFilter(java.lang.String value) { throw new NullPointerException(); } filter_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -22810,7 +24660,7 @@ public Builder setFilter(java.lang.String value) { */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -22846,7 +24696,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); filter_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -22946,7 +24796,7 @@ public Builder setCanonicalFilter(java.lang.String value) { throw new NullPointerException(); } canonicalFilter_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -22974,7 +24824,7 @@ public Builder setCanonicalFilter(java.lang.String value) { */ public Builder clearCanonicalFilter() { canonicalFilter_ = getDefaultInstance().getCanonicalFilter(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -23007,7 +24857,7 @@ public Builder setCanonicalFilterBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); canonicalFilter_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -23092,7 +24942,7 @@ public Builder setOrderBy(java.lang.String value) { throw new NullPointerException(); } orderBy_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -23115,7 +24965,7 @@ public Builder setOrderBy(java.lang.String value) { */ public Builder clearOrderBy() { orderBy_ = getDefaultInstance().getOrderBy(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -23143,7 +24993,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); orderBy_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -23169,7 +25019,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -23215,7 +25065,7 @@ public Builder setUserInfo(com.google.cloud.discoveryengine.v1alpha.UserInfo val } else { userInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -23238,7 +25088,7 @@ public Builder setUserInfo( } else { userInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -23256,7 +25106,7 @@ public Builder setUserInfo( */ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1alpha.UserInfo value) { if (userInfoBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && userInfo_ != null && userInfo_ != com.google.cloud.discoveryengine.v1alpha.UserInfo.getDefaultInstance()) { @@ -23268,7 +25118,7 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1alpha.UserInfo v userInfoBuilder_.mergeFrom(value); } if (userInfo_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -23286,7 +25136,7 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1alpha.UserInfo v * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; */ public Builder clearUserInfo() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); userInfo_ = null; if (userInfoBuilder_ != null) { userInfoBuilder_.dispose(); @@ -23308,7 +25158,7 @@ public Builder clearUserInfo() { * .google.cloud.discoveryengine.v1alpha.UserInfo user_info = 21; */ public com.google.cloud.discoveryengine.v1alpha.UserInfo.Builder getUserInfoBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return getUserInfoFieldBuilder().getBuilder(); } @@ -23366,11 +25216,11 @@ public com.google.cloud.discoveryengine.v1alpha.UserInfoOrBuilder getUserInfoOrB facetSpecs_ = java.util.Collections.emptyList(); private void ensureFacetSpecsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { facetSpecs_ = new java.util.ArrayList< com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec>(facetSpecs_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } @@ -23639,7 +25489,7 @@ public Builder addAllFacetSpecs( public Builder clearFacetSpecs() { if (facetSpecsBuilder_ == null) { facetSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { facetSpecsBuilder_.clear(); @@ -23799,7 +25649,7 @@ public Builder removeFacetSpecs(int index) { com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpec.Builder, com.google.cloud.discoveryengine.v1alpha.SearchRequest.FacetSpecOrBuilder>( - facetSpecs_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); + facetSpecs_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); facetSpecs_ = null; } return facetSpecsBuilder_; @@ -23825,7 +25675,7 @@ public Builder removeFacetSpecs(int index) { * @return Whether the boostSpec field is set. */ public boolean hasBoostSpec() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -23870,7 +25720,7 @@ public Builder setBoostSpec( } else { boostSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -23892,7 +25742,7 @@ public Builder setBoostSpec( } else { boostSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -23910,7 +25760,7 @@ public Builder setBoostSpec( public Builder mergeBoostSpec( com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec value) { if (boostSpecBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && boostSpec_ != null && boostSpec_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec @@ -23923,7 +25773,7 @@ public Builder mergeBoostSpec( boostSpecBuilder_.mergeFrom(value); } if (boostSpec_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -23940,7 +25790,7 @@ public Builder mergeBoostSpec( * .google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec boost_spec = 10; */ public Builder clearBoostSpec() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); boostSpec_ = null; if (boostSpecBuilder_ != null) { boostSpecBuilder_.dispose(); @@ -23962,7 +25812,7 @@ public Builder clearBoostSpec() { */ public com.google.cloud.discoveryengine.v1alpha.SearchRequest.BoostSpec.Builder getBoostSpecBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return getBoostSpecFieldBuilder().getBuilder(); } @@ -24063,7 +25913,7 @@ public com.google.protobuf.Value build(com.google.protobuf.ValueOrBuilder val) { if (params_ == null) { params_ = new com.google.protobuf.MapFieldBuilder<>(paramsConverter); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return params_; } @@ -24214,7 +26064,7 @@ public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { } public Builder clearParams() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); internalGetMutableParams().clear(); return this; } @@ -24253,7 +26103,7 @@ public Builder removeParams(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParams() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return internalGetMutableParams().ensureMessageMap(); } /** @@ -24289,7 +26139,7 @@ public Builder putParams(java.lang.String key, com.google.protobuf.Value value) throw new NullPointerException("map value"); } internalGetMutableParams().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return this; } /** @@ -24324,7 +26174,7 @@ public Builder putAllParams(java.util.Map */ public Builder clearQueryExpansionSpec() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); queryExpansionSpec_ = null; if (queryExpansionSpecBuilder_ != null) { queryExpansionSpecBuilder_.dispose(); @@ -24535,7 +26385,7 @@ public Builder clearQueryExpansionSpec() { */ public com.google.cloud.discoveryengine.v1alpha.SearchRequest.QueryExpansionSpec.Builder getQueryExpansionSpecBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getQueryExpansionSpecFieldBuilder().getBuilder(); } @@ -24613,7 +26463,7 @@ public Builder clearQueryExpansionSpec() { * @return Whether the spellCorrectionSpec field is set. */ public boolean hasSpellCorrectionSpec() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -24662,7 +26512,7 @@ public Builder setSpellCorrectionSpec( } else { spellCorrectionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -24686,7 +26536,7 @@ public Builder setSpellCorrectionSpec( } else { spellCorrectionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -24705,7 +26555,7 @@ public Builder setSpellCorrectionSpec( public Builder mergeSpellCorrectionSpec( com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec value) { if (spellCorrectionSpecBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && spellCorrectionSpec_ != null && spellCorrectionSpec_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec @@ -24718,7 +26568,7 @@ public Builder mergeSpellCorrectionSpec( spellCorrectionSpecBuilder_.mergeFrom(value); } if (spellCorrectionSpec_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -24736,7 +26586,7 @@ public Builder mergeSpellCorrectionSpec( *
                                */ public Builder clearSpellCorrectionSpec() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); spellCorrectionSpec_ = null; if (spellCorrectionSpecBuilder_ != null) { spellCorrectionSpecBuilder_.dispose(); @@ -24759,7 +26609,7 @@ public Builder clearSpellCorrectionSpec() { */ public com.google.cloud.discoveryengine.v1alpha.SearchRequest.SpellCorrectionSpec.Builder getSpellCorrectionSpecBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return getSpellCorrectionSpecFieldBuilder().getBuilder(); } @@ -24917,7 +26767,7 @@ public Builder setUserPseudoId(java.lang.String value) { throw new NullPointerException(); } userPseudoId_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -24947,7 +26797,7 @@ public Builder setUserPseudoId(java.lang.String value) { */ public Builder clearUserPseudoId() { userPseudoId_ = getDefaultInstance().getUserPseudoId(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -24982,7 +26832,7 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); userPseudoId_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -25008,7 +26858,7 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { * @return Whether the contentSearchSpec field is set. */ public boolean hasContentSearchSpec() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -25055,7 +26905,7 @@ public Builder setContentSearchSpec( } else { contentSearchSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -25078,7 +26928,7 @@ public Builder setContentSearchSpec( } else { contentSearchSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -25096,7 +26946,7 @@ public Builder setContentSearchSpec( public Builder mergeContentSearchSpec( com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec value) { if (contentSearchSpecBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00040000) != 0) && contentSearchSpec_ != null && contentSearchSpec_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec @@ -25109,7 +26959,7 @@ public Builder mergeContentSearchSpec( contentSearchSpecBuilder_.mergeFrom(value); } if (contentSearchSpec_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -25126,7 +26976,7 @@ public Builder mergeContentSearchSpec( *
                                */ public Builder clearContentSearchSpec() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); contentSearchSpec_ = null; if (contentSearchSpecBuilder_ != null) { contentSearchSpecBuilder_.dispose(); @@ -25148,7 +26998,7 @@ public Builder clearContentSearchSpec() { */ public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.Builder getContentSearchSpecBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return getContentSearchSpecFieldBuilder().getBuilder(); } @@ -25214,12 +27064,13 @@ public Builder clearContentSearchSpec() { *
                                      * Uses the provided embedding to do additional semantic document retrieval.
                                      * The retrieval is based on the dot product of
                                -     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -     * embedding that is provided in
                                -     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embedding that is provided in
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                      *
                                -     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -     * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +     * If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +     * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                      * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; @@ -25228,7 +27079,7 @@ public Builder clearContentSearchSpec() { * @return Whether the embeddingSpec field is set. */ public boolean hasEmbeddingSpec() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -25236,12 +27087,13 @@ public boolean hasEmbeddingSpec() { *
                                      * Uses the provided embedding to do additional semantic document retrieval.
                                      * The retrieval is based on the dot product of
                                -     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -     * embedding that is provided in
                                -     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embedding that is provided in
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                      *
                                -     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -     * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +     * If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +     * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                      * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; @@ -25265,12 +27117,13 @@ public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec getE *
                                      * Uses the provided embedding to do additional semantic document retrieval.
                                      * The retrieval is based on the dot product of
                                -     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -     * embedding that is provided in
                                -     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embedding that is provided in
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                      *
                                -     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -     * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +     * If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +     * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                      * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; @@ -25286,7 +27139,7 @@ public Builder setEmbeddingSpec( } else { embeddingSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -25296,12 +27149,13 @@ public Builder setEmbeddingSpec( *
                                      * Uses the provided embedding to do additional semantic document retrieval.
                                      * The retrieval is based on the dot product of
                                -     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -     * embedding that is provided in
                                -     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embedding that is provided in
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                      *
                                -     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -     * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +     * If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +     * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                      * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; @@ -25315,7 +27169,7 @@ public Builder setEmbeddingSpec( } else { embeddingSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -25325,12 +27179,13 @@ public Builder setEmbeddingSpec( *
                                      * Uses the provided embedding to do additional semantic document retrieval.
                                      * The retrieval is based on the dot product of
                                -     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -     * embedding that is provided in
                                -     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embedding that is provided in
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                      *
                                -     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -     * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +     * If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +     * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                      * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; @@ -25339,7 +27194,7 @@ public Builder setEmbeddingSpec( public Builder mergeEmbeddingSpec( com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec value) { if (embeddingSpecBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) + if (((bitField0_ & 0x00080000) != 0) && embeddingSpec_ != null && embeddingSpec_ != com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec @@ -25352,7 +27207,7 @@ public Builder mergeEmbeddingSpec( embeddingSpecBuilder_.mergeFrom(value); } if (embeddingSpec_ != null) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -25363,19 +27218,20 @@ public Builder mergeEmbeddingSpec( *
                                      * Uses the provided embedding to do additional semantic document retrieval.
                                      * The retrieval is based on the dot product of
                                -     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -     * embedding that is provided in
                                -     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embedding that is provided in
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                      *
                                -     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -     * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +     * If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +     * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                      * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; * */ public Builder clearEmbeddingSpec() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); embeddingSpec_ = null; if (embeddingSpecBuilder_ != null) { embeddingSpecBuilder_.dispose(); @@ -25390,12 +27246,13 @@ public Builder clearEmbeddingSpec() { *
                                      * Uses the provided embedding to do additional semantic document retrieval.
                                      * The retrieval is based on the dot product of
                                -     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -     * embedding that is provided in
                                -     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embedding that is provided in
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                      *
                                -     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -     * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +     * If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +     * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                      * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; @@ -25403,7 +27260,7 @@ public Builder clearEmbeddingSpec() { */ public com.google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.Builder getEmbeddingSpecBuilder() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return getEmbeddingSpecFieldBuilder().getBuilder(); } @@ -25413,12 +27270,13 @@ public Builder clearEmbeddingSpec() { *
                                      * Uses the provided embedding to do additional semantic document retrieval.
                                      * The retrieval is based on the dot product of
                                -     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -     * embedding that is provided in
                                -     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embedding that is provided in
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                      *
                                -     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -     * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +     * If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +     * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                      * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; @@ -25441,12 +27299,13 @@ public Builder clearEmbeddingSpec() { *
                                      * Uses the provided embedding to do additional semantic document retrieval.
                                      * The retrieval is based on the dot product of
                                -     * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -     * embedding that is provided in
                                -     * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embedding that is provided in
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                      *
                                -     * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -     * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +     * If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +     * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                      * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; @@ -25588,7 +27447,7 @@ public Builder setRankingExpression(java.lang.String value) { throw new NullPointerException(); } rankingExpression_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -25624,7 +27483,7 @@ public Builder setRankingExpression(java.lang.String value) { */ public Builder clearRankingExpression() { rankingExpression_ = getDefaultInstance().getRankingExpression(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -25665,7 +27524,7 @@ public Builder setRankingExpressionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); rankingExpression_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -25703,7 +27562,7 @@ public boolean getSafeSearch() { public Builder setSafeSearch(boolean value) { safeSearch_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -25720,7 +27579,7 @@ public Builder setSafeSearch(boolean value) { * @return This builder for chaining. */ public Builder clearSafeSearch() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); safeSearch_ = false; onChanged(); return this; @@ -25746,7 +27605,7 @@ public Builder clearSafeSearch() { if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return userLabels_; } @@ -25895,7 +27754,7 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) { } public Builder clearUserLabels() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); internalGetMutableUserLabels().getMutableMap().clear(); return this; } @@ -25934,7 +27793,7 @@ public Builder removeUserLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableUserLabels() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; return internalGetMutableUserLabels().getMutableMap(); } /** @@ -25970,7 +27829,7 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableUserLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; return this; } /** @@ -26000,9 +27859,219 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllUserLabels(java.util.Map values) { internalGetMutableUserLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec customFineTuningSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec, + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpecOrBuilder> + customFineTuningSpecBuilder_; + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + * + * @return Whether the customFineTuningSpec field is set. + */ + public boolean hasCustomFineTuningSpec() { + return ((bitField0_ & 0x00800000) != 0); + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + * + * @return The customFineTuningSpec. + */ + public com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec getCustomFineTuningSpec() { + if (customFineTuningSpecBuilder_ == null) { + return customFineTuningSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.getDefaultInstance() + : customFineTuningSpec_; + } else { + return customFineTuningSpecBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + */ + public Builder setCustomFineTuningSpec( + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec value) { + if (customFineTuningSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFineTuningSpec_ = value; + } else { + customFineTuningSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + */ + public Builder setCustomFineTuningSpec( + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.Builder builderForValue) { + if (customFineTuningSpecBuilder_ == null) { + customFineTuningSpec_ = builderForValue.build(); + } else { + customFineTuningSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + */ + public Builder mergeCustomFineTuningSpec( + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec value) { + if (customFineTuningSpecBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && customFineTuningSpec_ != null + && customFineTuningSpec_ + != com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec + .getDefaultInstance()) { + getCustomFineTuningSpecBuilder().mergeFrom(value); + } else { + customFineTuningSpec_ = value; + } + } else { + customFineTuningSpecBuilder_.mergeFrom(value); + } + if (customFineTuningSpec_ != null) { + bitField0_ |= 0x00800000; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + */ + public Builder clearCustomFineTuningSpec() { + bitField0_ = (bitField0_ & ~0x00800000); + customFineTuningSpec_ = null; + if (customFineTuningSpecBuilder_ != null) { + customFineTuningSpecBuilder_.dispose(); + customFineTuningSpecBuilder_ = null; + } + onChanged(); return this; } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + */ + public com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.Builder + getCustomFineTuningSpecBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return getCustomFineTuningSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + */ + public com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpecOrBuilder + getCustomFineTuningSpecOrBuilder() { + if (customFineTuningSpecBuilder_ != null) { + return customFineTuningSpecBuilder_.getMessageOrBuilder(); + } else { + return customFineTuningSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.getDefaultInstance() + : customFineTuningSpec_; + } + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec, + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpecOrBuilder> + getCustomFineTuningSpecFieldBuilder() { + if (customFineTuningSpecBuilder_ == null) { + customFineTuningSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec, + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpecOrBuilder>( + getCustomFineTuningSpec(), getParentForChildren(), isClean()); + customFineTuningSpec_ = null; + } + return customFineTuningSpecBuilder_; + } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequestOrBuilder.java index ec5aa367bb24..2a6292c73486 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchRequestOrBuilder.java @@ -234,6 +234,71 @@ public interface SearchRequestOrBuilder */ int getOffset(); + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + java.util.List + getDataStoreSpecsList(); + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec getDataStoreSpecs(int index); + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + int getDataStoreSpecsCount(); + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + java.util.List< + ? extends com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsOrBuilderList(); + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.DataStoreSpecOrBuilder + getDataStoreSpecsOrBuilder(int index); + /** * * @@ -859,12 +924,13 @@ com.google.protobuf.Value getParamsOrDefault( *
                                    * Uses the provided embedding to do additional semantic document retrieval.
                                    * The retrieval is based on the dot product of
                                -   * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -   * embedding that is provided in
                                -   * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * and the document embedding that is provided in
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                    *
                                -   * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -   * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +   * If
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +   * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                    * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; @@ -879,12 +945,13 @@ com.google.protobuf.Value getParamsOrDefault( *
                                    * Uses the provided embedding to do additional semantic document retrieval.
                                    * The retrieval is based on the dot product of
                                -   * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -   * embedding that is provided in
                                -   * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * and the document embedding that is provided in
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                    *
                                -   * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -   * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +   * If
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +   * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                    * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; @@ -899,12 +966,13 @@ com.google.protobuf.Value getParamsOrDefault( *
                                    * Uses the provided embedding to do additional semantic document retrieval.
                                    * The retrieval is based on the dot product of
                                -   * [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document
                                -   * embedding that is provided in
                                -   * [SearchRequest.embedding_spec.embedding_vectors.field_path][].
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * and the document embedding that is provided in
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
                                    *
                                -   * If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not
                                -   * provided, it will use [ServingConfig.embedding_config.field_paths][].
                                +   * If
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
                                +   * is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][].
                                    * 
                                * * .google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec embedding_spec = 23; @@ -1127,4 +1195,43 @@ java.lang.String getUserLabelsOrDefault( * map<string, string> user_labels = 22; */ java.lang.String getUserLabelsOrThrow(java.lang.String key); + + /** + * + * + *
                                +   * Custom fine tuning configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + * + * @return Whether the customFineTuningSpec field is set. + */ + boolean hasCustomFineTuningSpec(); + /** + * + * + *
                                +   * Custom fine tuning configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + * + * @return The customFineTuningSpec. + */ + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec getCustomFineTuningSpec(); + /** + * + * + *
                                +   * Custom fine tuning configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 34; + * + */ + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpecOrBuilder + getCustomFineTuningSpecOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchResponse.java index 5ac8e1d64a9e..f09fa375851e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchResponse.java @@ -142,6 +142,50 @@ public interface SearchResultOrBuilder */ com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrBuilder(); + /** + * + * + *
                                +     * The chunk data in the search response if the
                                +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +     * is set to
                                +     * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + * + * @return Whether the chunk field is set. + */ + boolean hasChunk(); + /** + * + * + *
                                +     * The chunk data in the search response if the
                                +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +     * is set to
                                +     * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + * + * @return The chunk. + */ + com.google.cloud.discoveryengine.v1alpha.Chunk getChunk(); + /** + * + * + *
                                +     * The chunk data in the search response if the
                                +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +     * is set to
                                +     * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + */ + com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder getChunkOrBuilder(); + /** * * @@ -370,6 +414,65 @@ public com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrB : document_; } + public static final int CHUNK_FIELD_NUMBER = 18; + private com.google.cloud.discoveryengine.v1alpha.Chunk chunk_; + /** + * + * + *
                                +     * The chunk data in the search response if the
                                +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +     * is set to
                                +     * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + * + * @return Whether the chunk field is set. + */ + @java.lang.Override + public boolean hasChunk() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +     * The chunk data in the search response if the
                                +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +     * is set to
                                +     * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + * + * @return The chunk. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.Chunk getChunk() { + return chunk_ == null + ? com.google.cloud.discoveryengine.v1alpha.Chunk.getDefaultInstance() + : chunk_; + } + /** + * + * + *
                                +     * The chunk data in the search response if the
                                +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +     * is set to
                                +     * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder getChunkOrBuilder() { + return chunk_ == null + ? com.google.cloud.discoveryengine.v1alpha.Chunk.getDefaultInstance() + : chunk_; + } + public static final int MODEL_SCORES_FIELD_NUMBER = 4; private static final class ModelScoresDefaultEntryHolder { @@ -513,6 +616,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetModelScores(), ModelScoresDefaultEntryHolder.defaultEntry, 4); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(18, getChunk()); + } getUnknownFields().writeTo(output); } @@ -541,6 +647,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, modelScores__); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getChunk()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -562,6 +671,10 @@ public boolean equals(final java.lang.Object obj) { if (hasDocument()) { if (!getDocument().equals(other.getDocument())) return false; } + if (hasChunk() != other.hasChunk()) return false; + if (hasChunk()) { + if (!getChunk().equals(other.getChunk())) return false; + } if (!internalGetModelScores().equals(other.internalGetModelScores())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -580,6 +693,10 @@ public int hashCode() { hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; hash = (53 * hash) + getDocument().hashCode(); } + if (hasChunk()) { + hash = (37 * hash) + CHUNK_FIELD_NUMBER; + hash = (53 * hash) + getChunk().hashCode(); + } if (!internalGetModelScores().getMap().isEmpty()) { hash = (37 * hash) + MODEL_SCORES_FIELD_NUMBER; hash = (53 * hash) + internalGetModelScores().hashCode(); @@ -752,6 +869,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDocumentFieldBuilder(); + getChunkFieldBuilder(); } } @@ -765,6 +883,11 @@ public Builder clear() { documentBuilder_.dispose(); documentBuilder_ = null; } + chunk_ = null; + if (chunkBuilder_ != null) { + chunkBuilder_.dispose(); + chunkBuilder_ = null; + } internalGetMutableModelScores().clear(); return this; } @@ -815,6 +938,10 @@ private void buildPartial0( to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.chunk_ = chunkBuilder_ == null ? chunk_ : chunkBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.modelScores_ = internalGetModelScores().build(ModelScoresDefaultEntryHolder.defaultEntry); } @@ -880,8 +1007,11 @@ public Builder mergeFrom( if (other.hasDocument()) { mergeDocument(other.getDocument()); } + if (other.hasChunk()) { + mergeChunk(other.getChunk()); + } internalGetMutableModelScores().mergeFrom(other.internalGetModelScores()); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -931,9 +1061,15 @@ public Builder mergeFrom( internalGetMutableModelScores() .ensureBuilderMap() .put(modelScores__.getKey(), modelScores__.getValue()); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 34 + case 146: + { + input.readMessage(getChunkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1260,6 +1396,219 @@ public com.google.cloud.discoveryengine.v1alpha.DocumentOrBuilder getDocumentOrB return documentBuilder_; } + private com.google.cloud.discoveryengine.v1alpha.Chunk chunk_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Chunk, + com.google.cloud.discoveryengine.v1alpha.Chunk.Builder, + com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder> + chunkBuilder_; + /** + * + * + *
                                +       * The chunk data in the search response if the
                                +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +       * is set to
                                +       * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + * + * @return Whether the chunk field is set. + */ + public boolean hasChunk() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                                +       * The chunk data in the search response if the
                                +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +       * is set to
                                +       * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + * + * @return The chunk. + */ + public com.google.cloud.discoveryengine.v1alpha.Chunk getChunk() { + if (chunkBuilder_ == null) { + return chunk_ == null + ? com.google.cloud.discoveryengine.v1alpha.Chunk.getDefaultInstance() + : chunk_; + } else { + return chunkBuilder_.getMessage(); + } + } + /** + * + * + *
                                +       * The chunk data in the search response if the
                                +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +       * is set to
                                +       * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + */ + public Builder setChunk(com.google.cloud.discoveryengine.v1alpha.Chunk value) { + if (chunkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunk_ = value; + } else { + chunkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +       * The chunk data in the search response if the
                                +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +       * is set to
                                +       * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + */ + public Builder setChunk( + com.google.cloud.discoveryengine.v1alpha.Chunk.Builder builderForValue) { + if (chunkBuilder_ == null) { + chunk_ = builderForValue.build(); + } else { + chunkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +       * The chunk data in the search response if the
                                +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +       * is set to
                                +       * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + */ + public Builder mergeChunk(com.google.cloud.discoveryengine.v1alpha.Chunk value) { + if (chunkBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && chunk_ != null + && chunk_ != com.google.cloud.discoveryengine.v1alpha.Chunk.getDefaultInstance()) { + getChunkBuilder().mergeFrom(value); + } else { + chunk_ = value; + } + } else { + chunkBuilder_.mergeFrom(value); + } + if (chunk_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
                                +       * The chunk data in the search response if the
                                +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +       * is set to
                                +       * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + */ + public Builder clearChunk() { + bitField0_ = (bitField0_ & ~0x00000004); + chunk_ = null; + if (chunkBuilder_ != null) { + chunkBuilder_.dispose(); + chunkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +       * The chunk data in the search response if the
                                +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +       * is set to
                                +       * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + */ + public com.google.cloud.discoveryengine.v1alpha.Chunk.Builder getChunkBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getChunkFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +       * The chunk data in the search response if the
                                +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +       * is set to
                                +       * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + */ + public com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder getChunkOrBuilder() { + if (chunkBuilder_ != null) { + return chunkBuilder_.getMessageOrBuilder(); + } else { + return chunk_ == null + ? com.google.cloud.discoveryengine.v1alpha.Chunk.getDefaultInstance() + : chunk_; + } + } + /** + * + * + *
                                +       * The chunk data in the search response if the
                                +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode]
                                +       * is set to
                                +       * [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                                +       * 
                                + * + * .google.cloud.discoveryengine.v1alpha.Chunk chunk = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Chunk, + com.google.cloud.discoveryengine.v1alpha.Chunk.Builder, + com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder> + getChunkFieldBuilder() { + if (chunkBuilder_ == null) { + chunkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.Chunk, + com.google.cloud.discoveryengine.v1alpha.Chunk.Builder, + com.google.cloud.discoveryengine.v1alpha.ChunkOrBuilder>( + getChunk(), getParentForChildren(), isClean()); + chunk_ = null; + } + return chunkBuilder_; + } + private static final class ModelScoresConverter implements com.google.protobuf.MapFieldBuilder.Converter< java.lang.String, @@ -1312,7 +1661,7 @@ public com.google.cloud.discoveryengine.v1alpha.DoubleList build( if (modelScores_ == null) { modelScores_ = new com.google.protobuf.MapFieldBuilder<>(modelScoresConverter); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return modelScores_; } @@ -1409,7 +1758,7 @@ public com.google.cloud.discoveryengine.v1alpha.DoubleList getModelScoresOrThrow } public Builder clearModelScores() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableModelScores().clear(); return this; } @@ -1434,7 +1783,7 @@ public Builder removeModelScores(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableModelScores() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return internalGetMutableModelScores().ensureMessageMap(); } /** @@ -1456,7 +1805,7 @@ public Builder putModelScores( throw new NullPointerException("map value"); } internalGetMutableModelScores().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return this; } /** @@ -1480,7 +1829,7 @@ public Builder putAllModelScores( } } internalGetMutableModelScores().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; return this; } /** @@ -6827,6 +7176,12 @@ public interface SummaryOrBuilder getSafetyAttributesOrBuilder(); /** + * + * + *
                                +     * Summary with metadata information.
                                +     * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * @@ -6835,6 +7190,12 @@ public interface SummaryOrBuilder */ boolean hasSummaryWithMetadata(); /** + * + * + *
                                +     * Summary with metadata information.
                                +     * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * @@ -6844,6 +7205,12 @@ public interface SummaryOrBuilder com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata getSummaryWithMetadata(); /** + * + * + *
                                +     * Summary with metadata information.
                                +     * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * @@ -11400,7 +11767,7 @@ public interface ReferenceOrBuilder * * *
                                -       * GCS or HTTP uri for the document.
                                +       * Cloud Storage or HTTP uri for the document.
                                        * 
                                * * string uri = 3; @@ -11412,7 +11779,7 @@ public interface ReferenceOrBuilder * * *
                                -       * GCS or HTTP uri for the document.
                                +       * Cloud Storage or HTTP uri for the document.
                                        * 
                                * * string uri = 3; @@ -11590,7 +11957,7 @@ public com.google.protobuf.ByteString getDocumentBytes() { * * *
                                -       * GCS or HTTP uri for the document.
                                +       * Cloud Storage or HTTP uri for the document.
                                        * 
                                * * string uri = 3; @@ -11613,7 +11980,7 @@ public java.lang.String getUri() { * * *
                                -       * GCS or HTTP uri for the document.
                                +       * Cloud Storage or HTTP uri for the document.
                                        * 
                                * * string uri = 3; @@ -12296,7 +12663,7 @@ public Builder setDocumentBytes(com.google.protobuf.ByteString value) { * * *
                                -         * GCS or HTTP uri for the document.
                                +         * Cloud Storage or HTTP uri for the document.
                                          * 
                                * * string uri = 3; @@ -12318,7 +12685,7 @@ public java.lang.String getUri() { * * *
                                -         * GCS or HTTP uri for the document.
                                +         * Cloud Storage or HTTP uri for the document.
                                          * 
                                * * string uri = 3; @@ -12340,7 +12707,7 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
                                -         * GCS or HTTP uri for the document.
                                +         * Cloud Storage or HTTP uri for the document.
                                          * 
                                * * string uri = 3; @@ -12361,7 +12728,7 @@ public Builder setUri(java.lang.String value) { * * *
                                -         * GCS or HTTP uri for the document.
                                +         * Cloud Storage or HTTP uri for the document.
                                          * 
                                * * string uri = 3; @@ -12378,7 +12745,7 @@ public Builder clearUri() { * * *
                                -         * GCS or HTTP uri for the document.
                                +         * Cloud Storage or HTTP uri for the document.
                                          * 
                                * * string uri = 3; @@ -14449,6 +14816,12 @@ public boolean hasSafetyAttributes() { private com.google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summaryWithMetadata_; /** + * + * + *
                                +     * Summary with metadata information.
                                +     * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * @@ -14460,6 +14833,12 @@ public boolean hasSummaryWithMetadata() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * + *
                                +     * Summary with metadata information.
                                +     * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * @@ -14475,6 +14854,12 @@ public boolean hasSummaryWithMetadata() { : summaryWithMetadata_; } /** + * + * + *
                                +     * Summary with metadata information.
                                +     * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * @@ -15617,6 +16002,12 @@ public Builder clearSafetyAttributes() { .SummaryWithMetadataOrBuilder> summaryWithMetadataBuilder_; /** + * + * + *
                                +       * Summary with metadata information.
                                +       * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * @@ -15627,6 +16018,12 @@ public boolean hasSummaryWithMetadata() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * + *
                                +       * Summary with metadata information.
                                +       * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * @@ -15645,6 +16042,12 @@ public boolean hasSummaryWithMetadata() { } } /** + * + * + *
                                +       * Summary with metadata information.
                                +       * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * @@ -15665,6 +16068,12 @@ public Builder setSummaryWithMetadata( return this; } /** + * + * + *
                                +       * Summary with metadata information.
                                +       * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * @@ -15683,6 +16092,12 @@ public Builder setSummaryWithMetadata( return this; } /** + * + * + *
                                +       * Summary with metadata information.
                                +       * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * @@ -15710,6 +16125,12 @@ public Builder mergeSummaryWithMetadata( return this; } /** + * + * + *
                                +       * Summary with metadata information.
                                +       * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * @@ -15725,6 +16146,12 @@ public Builder clearSummaryWithMetadata() { return this; } /** + * + * + *
                                +       * Summary with metadata information.
                                +       * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * @@ -15737,6 +16164,12 @@ public Builder clearSummaryWithMetadata() { return getSummaryWithMetadataFieldBuilder().getBuilder(); } /** + * + * + *
                                +       * Summary with metadata information.
                                +       * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * @@ -15754,6 +16187,12 @@ public Builder clearSummaryWithMetadata() { } } /** + * + * + *
                                +       * Summary with metadata information.
                                +       * 
                                + * * * .google.cloud.discoveryengine.v1alpha.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceProto.java index 6663c725601e..fd512704b7e3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SearchServiceProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ImageQuery_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ImageQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_DataStoreSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_DataStoreSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -178,198 +182,212 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "eryengine.v1alpha\032\034google/api/annotation" + "s.proto\032\027google/api/client.proto\032\037google" + "/api/field_behavior.proto\032\031google/api/re" - + "source.proto\0321google/cloud/discoveryengi" - + "ne/v1alpha/common.proto\0323google/cloud/di" - + "scoveryengine/v1alpha/document.proto\032\034go" - + "ogle/protobuf/struct.proto\"\365\034\n\rSearchReq" - + "uest\022L\n\016serving_config\030\001 \001(\tB4\340A\002\372A.\n,di" - + "scoveryengine.googleapis.com/ServingConf" - + "ig\022:\n\006branch\030\002 \001(\tB*\372A\'\n%discoveryengine" - + ".googleapis.com/Branch\022\r\n\005query\030\003 \001(\t\022S\n" - + "\013image_query\030\023 \001(\0132>.google.cloud.discov" - + "eryengine.v1alpha.SearchRequest.ImageQue" - + "ry\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_token\030\005 \001(" - + "\t\022\016\n\006offset\030\006 \001(\005\022\016\n\006filter\030\007 \001(\t\022\030\n\020can" - + "onical_filter\030\035 \001(\t\022\020\n\010order_by\030\010 \001(\t\022A\n" - + "\tuser_info\030\025 \001(\0132..google.cloud.discover" - + "yengine.v1alpha.UserInfo\022R\n\013facet_specs\030" - + "\t \003(\0132=.google.cloud.discoveryengine.v1a" - + "lpha.SearchRequest.FacetSpec\022Q\n\nboost_sp" - + "ec\030\n \001(\0132=.google.cloud.discoveryengine." - + "v1alpha.SearchRequest.BoostSpec\022O\n\006param" - + "s\030\013 \003(\0132?.google.cloud.discoveryengine.v" - + "1alpha.SearchRequest.ParamsEntry\022d\n\024quer" - + "y_expansion_spec\030\r \001(\0132F.google.cloud.di" - + "scoveryengine.v1alpha.SearchRequest.Quer" - + "yExpansionSpec\022f\n\025spell_correction_spec\030" - + "\016 \001(\0132G.google.cloud.discoveryengine.v1a" - + "lpha.SearchRequest.SpellCorrectionSpec\022\026" - + "\n\016user_pseudo_id\030\017 \001(\t\022b\n\023content_search" - + "_spec\030\030 \001(\0132E.google.cloud.discoveryengi" - + "ne.v1alpha.SearchRequest.ContentSearchSp" - + "ec\022Y\n\016embedding_spec\030\027 \001(\0132A.google.clou" - + "d.discoveryengine.v1alpha.SearchRequest." - + "EmbeddingSpec\022\032\n\022ranking_expression\030\032 \001(" - + "\t\022\023\n\013safe_search\030\024 \001(\010\022X\n\013user_labels\030\026 " - + "\003(\0132C.google.cloud.discoveryengine.v1alp" - + "ha.SearchRequest.UserLabelsEntry\032,\n\nImag" - + "eQuery\022\025\n\013image_bytes\030\001 \001(\tH\000B\007\n\005image\032\206" - + "\003\n\tFacetSpec\022^\n\tfacet_key\030\001 \001(\0132F.google" + + "source.proto\0320google/cloud/discoveryengi" + + "ne/v1alpha/chunk.proto\0321google/cloud/dis" + + "coveryengine/v1alpha/common.proto\0323googl" + + "e/cloud/discoveryengine/v1alpha/document" + + ".proto\032\034google/protobuf/struct.proto\"\315 \n" + + "\rSearchRequest\022L\n\016serving_config\030\001 \001(\tB4" + + "\340A\002\372A.\n,discoveryengine.googleapis.com/S" + + "ervingConfig\022:\n\006branch\030\002 \001(\tB*\372A\'\n%disco" + + "veryengine.googleapis.com/Branch\022\r\n\005quer" + + "y\030\003 \001(\t\022S\n\013image_query\030\023 \001(\0132>.google.cl" + + "oud.discoveryengine.v1alpha.SearchReques" + + "t.ImageQuery\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_" + + "token\030\005 \001(\t\022\016\n\006offset\030\006 \001(\005\022[\n\020data_stor" + + "e_specs\030 \003(\0132A.google.cloud.discoveryen" + + "gine.v1alpha.SearchRequest.DataStoreSpec" + + "\022\016\n\006filter\030\007 \001(\t\022\030\n\020canonical_filter\030\035 \001" + + "(\t\022\020\n\010order_by\030\010 \001(\t\022A\n\tuser_info\030\025 \001(\0132" + + "..google.cloud.discoveryengine.v1alpha.U" + + "serInfo\022R\n\013facet_specs\030\t \003(\0132=.google.cl" + + "oud.discoveryengine.v1alpha.SearchReques" + + "t.FacetSpec\022Q\n\nboost_spec\030\n \001(\0132=.google" + ".cloud.discoveryengine.v1alpha.SearchReq" - + "uest.FacetSpec.FacetKeyB\003\340A\002\022\r\n\005limit\030\002 " - + "\001(\005\022\034\n\024excluded_filter_keys\030\003 \003(\t\022\037\n\027ena" - + "ble_dynamic_position\030\004 \001(\010\032\312\001\n\010FacetKey\022" - + "\020\n\003key\030\001 \001(\tB\003\340A\002\022A\n\tintervals\030\002 \003(\0132..g" - + "oogle.cloud.discoveryengine.v1alpha.Inte" - + "rval\022\031\n\021restricted_values\030\003 \003(\t\022\020\n\010prefi" - + "xes\030\004 \003(\t\022\020\n\010contains\030\005 \003(\t\022\030\n\020case_inse" - + "nsitive\030\006 \001(\010\022\020\n\010order_by\030\007 \001(\t\032\264\001\n\tBoos" - + "tSpec\022o\n\025condition_boost_specs\030\001 \003(\0132P.g" - + "oogle.cloud.discoveryengine.v1alpha.Sear" - + "chRequest.BoostSpec.ConditionBoostSpec\0326" - + "\n\022ConditionBoostSpec\022\021\n\tcondition\030\001 \001(\t\022" - + "\r\n\005boost\030\002 \001(\002\032\331\001\n\022QueryExpansionSpec\022c\n" - + "\tcondition\030\001 \001(\0162P.google.cloud.discover" - + "yengine.v1alpha.SearchRequest.QueryExpan" - + "sionSpec.Condition\022\036\n\026pin_unexpanded_res" - + "ults\030\002 \001(\010\">\n\tCondition\022\031\n\025CONDITION_UNS" - + "PECIFIED\020\000\022\014\n\010DISABLED\020\001\022\010\n\004AUTO\020\002\032\256\001\n\023S" - + "pellCorrectionSpec\022Z\n\004mode\030\001 \001(\0162L.googl" - + "e.cloud.discoveryengine.v1alpha.SearchRe" - + "quest.SpellCorrectionSpec.Mode\";\n\004Mode\022\024" - + "\n\020MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTION_ONLY\020" - + "\001\022\010\n\004AUTO\020\002\032\353\010\n\021ContentSearchSpec\022g\n\014sni" - + "ppet_spec\030\001 \001(\0132Q.google.cloud.discovery" - + "engine.v1alpha.SearchRequest.ContentSear" - + "chSpec.SnippetSpec\022g\n\014summary_spec\030\002 \001(\013" - + "2Q.google.cloud.discoveryengine.v1alpha." - + "SearchRequest.ContentSearchSpec.SummaryS" - + "pec\022|\n\027extractive_content_spec\030\003 \001(\0132[.g" - + "oogle.cloud.discoveryengine.v1alpha.Sear" - + "chRequest.ContentSearchSpec.ExtractiveCo" - + "ntentSpec\032`\n\013SnippetSpec\022\035\n\021max_snippet_" - + "count\030\001 \001(\005B\002\030\001\022\032\n\016reference_only\030\002 \001(\010B" - + "\002\030\001\022\026\n\016return_snippet\030\003 \001(\010\032\333\003\n\013SummaryS" - + "pec\022\034\n\024summary_result_count\030\001 \001(\005\022\031\n\021inc" - + "lude_citations\030\002 \001(\010\022 \n\030ignore_adversari" - + "al_query\030\003 \001(\010\022(\n ignore_non_summary_see" - + "king_query\030\004 \001(\010\022|\n\021model_prompt_spec\030\005 " - + "\001(\0132a.google.cloud.discoveryengine.v1alp" - + "ha.SearchRequest.ContentSearchSpec.Summa" - + "rySpec.ModelPromptSpec\022\025\n\rlanguage_code\030" - + "\006 \001(\t\022o\n\nmodel_spec\030\007 \001(\0132[.google.cloud" - + ".discoveryengine.v1alpha.SearchRequest.C" - + "ontentSearchSpec.SummarySpec.ModelSpec\032#" - + "\n\017ModelPromptSpec\022\020\n\010preamble\030\001 \001(\t\032\034\n\tM" - + "odelSpec\022\017\n\007version\030\001 \001(\t\032\305\001\n\025Extractive" - + "ContentSpec\022#\n\033max_extractive_answer_cou" - + "nt\030\001 \001(\005\022$\n\034max_extractive_segment_count" - + "\030\002 \001(\005\022\'\n\037return_extractive_segment_scor" - + "e\030\003 \001(\010\022\035\n\025num_previous_segments\030\004 \001(\005\022\031" - + "\n\021num_next_segments\030\005 \001(\005\032\264\001\n\rEmbeddingS" - + "pec\022l\n\021embedding_vectors\030\001 \003(\0132Q.google." + + "uest.BoostSpec\022O\n\006params\030\013 \003(\0132?.google." + "cloud.discoveryengine.v1alpha.SearchRequ" - + "est.EmbeddingSpec.EmbeddingVector\0325\n\017Emb" - + "eddingVector\022\022\n\nfield_path\030\001 \001(\t\022\016\n\006vect" - + "or\030\002 \003(\002\032E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005" - + "value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\032" - + "1\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001\"\235\027\n\016SearchResponse\022R\n\007results" - + "\030\001 \003(\0132A.google.cloud.discoveryengine.v1" - + "alpha.SearchResponse.SearchResult\022J\n\006fac" - + "ets\030\002 \003(\0132:.google.cloud.discoveryengine" - + ".v1alpha.SearchResponse.Facet\022e\n\024guided_" - + "search_result\030\010 \001(\0132G.google.cloud.disco" - + "veryengine.v1alpha.SearchResponse.Guided" - + "SearchResult\022\022\n\ntotal_size\030\003 \001(\005\022\031\n\021attr" - + "ibution_token\030\004 \001(\t\022\024\n\014redirect_uri\030\014 \001(" - + "\t\022\027\n\017next_page_token\030\005 \001(\t\022\027\n\017corrected_" - + "query\030\007 \001(\t\022M\n\007summary\030\t \001(\0132<.google.cl" - + "oud.discoveryengine.v1alpha.SearchRespon" - + "se.Summary\022\030\n\020applied_controls\030\n \003(\t\022f\n\025" - + "geo_search_debug_info\030\020 \003(\0132G.google.clo" - + "ud.discoveryengine.v1alpha.SearchRespons" - + "e.GeoSearchDebugInfo\022e\n\024query_expansion_" - + "info\030\016 \001(\0132G.google.cloud.discoveryengin" - + "e.v1alpha.SearchResponse.QueryExpansionI" - + "nfo\032\254\002\n\014SearchResult\022\n\n\002id\030\001 \001(\t\022@\n\010docu" - + "ment\030\002 \001(\0132..google.cloud.discoveryengin" - + "e.v1alpha.Document\022h\n\014model_scores\030\004 \003(\013" - + "2R.google.cloud.discoveryengine.v1alpha." - + "SearchResponse.SearchResult.ModelScoresE" - + "ntry\032d\n\020ModelScoresEntry\022\013\n\003key\030\001 \001(\t\022?\n" - + "\005value\030\002 \001(\01320.google.cloud.discoveryeng" - + "ine.v1alpha.DoubleList:\0028\001\032\203\002\n\005Facet\022\013\n\003" - + "key\030\001 \001(\t\022U\n\006values\030\002 \003(\0132E.google.cloud" - + ".discoveryengine.v1alpha.SearchResponse." - + "Facet.FacetValue\022\025\n\rdynamic_facet\030\003 \001(\010\032" - + "\177\n\nFacetValue\022\017\n\005value\030\001 \001(\tH\000\022B\n\010interv" - + "al\030\002 \001(\0132..google.cloud.discoveryengine." - + "v1alpha.IntervalH\000\022\r\n\005count\030\003 \001(\003B\r\n\013fac" - + "et_value\032\364\001\n\022GuidedSearchResult\022z\n\025refin" - + "ement_attributes\030\001 \003(\0132[.google.cloud.di" - + "scoveryengine.v1alpha.SearchResponse.Gui" - + "dedSearchResult.RefinementAttribute\022\033\n\023f" - + "ollow_up_questions\030\002 \003(\t\032E\n\023RefinementAt" - + "tribute\022\025\n\rattribute_key\030\001 \001(\t\022\027\n\017attrib" - + "ute_value\030\002 \001(\t\032\220\n\n\007Summary\022\024\n\014summary_t" - + "ext\030\001 \001(\t\022r\n\027summary_skipped_reasons\030\002 \003" - + "(\0162Q.google.cloud.discoveryengine.v1alph" - + "a.SearchResponse.Summary.SummarySkippedR" - + "eason\022h\n\021safety_attributes\030\003 \001(\0132M.googl" + + "est.ParamsEntry\022d\n\024query_expansion_spec\030" + + "\r \001(\0132F.google.cloud.discoveryengine.v1a" + + "lpha.SearchRequest.QueryExpansionSpec\022f\n" + + "\025spell_correction_spec\030\016 \001(\0132G.google.cl" + + "oud.discoveryengine.v1alpha.SearchReques" + + "t.SpellCorrectionSpec\022\026\n\016user_pseudo_id\030" + + "\017 \001(\t\022b\n\023content_search_spec\030\030 \001(\0132E.goo" + + "gle.cloud.discoveryengine.v1alpha.Search" + + "Request.ContentSearchSpec\022Y\n\016embedding_s" + + "pec\030\027 \001(\0132A.google.cloud.discoveryengine" + + ".v1alpha.SearchRequest.EmbeddingSpec\022\032\n\022" + + "ranking_expression\030\032 \001(\t\022\023\n\013safe_search\030" + + "\024 \001(\010\022X\n\013user_labels\030\026 \003(\0132C.google.clou" + + "d.discoveryengine.v1alpha.SearchRequest." + + "UserLabelsEntry\022[\n\027custom_fine_tuning_sp" + + "ec\030\" \001(\0132:.google.cloud.discoveryengine." + + "v1alpha.CustomFineTuningSpec\032,\n\nImageQue" + + "ry\022\025\n\013image_bytes\030\001 \001(\tH\000B\007\n\005image\032U\n\rDa" + + "taStoreSpec\022D\n\ndata_store\030\001 \001(\tB0\340A\002\372A*\n" + + "(discoveryengine.googleapis.com/DataStor" + + "e\032\206\003\n\tFacetSpec\022^\n\tfacet_key\030\001 \001(\0132F.goo" + + "gle.cloud.discoveryengine.v1alpha.Search" + + "Request.FacetSpec.FacetKeyB\003\340A\002\022\r\n\005limit" + + "\030\002 \001(\005\022\034\n\024excluded_filter_keys\030\003 \003(\t\022\037\n\027" + + "enable_dynamic_position\030\004 \001(\010\032\312\001\n\010FacetK" + + "ey\022\020\n\003key\030\001 \001(\tB\003\340A\002\022A\n\tintervals\030\002 \003(\0132" + + "..google.cloud.discoveryengine.v1alpha.I" + + "nterval\022\031\n\021restricted_values\030\003 \003(\t\022\020\n\010pr" + + "efixes\030\004 \003(\t\022\020\n\010contains\030\005 \003(\t\022\030\n\020case_i" + + "nsensitive\030\006 \001(\010\022\020\n\010order_by\030\007 \001(\t\032\264\001\n\tB" + + "oostSpec\022o\n\025condition_boost_specs\030\001 \003(\0132" + + "P.google.cloud.discoveryengine.v1alpha.S" + + "earchRequest.BoostSpec.ConditionBoostSpe" + + "c\0326\n\022ConditionBoostSpec\022\021\n\tcondition\030\001 \001" + + "(\t\022\r\n\005boost\030\002 \001(\002\032\331\001\n\022QueryExpansionSpec" + + "\022c\n\tcondition\030\001 \001(\0162P.google.cloud.disco" + + "veryengine.v1alpha.SearchRequest.QueryEx" + + "pansionSpec.Condition\022\036\n\026pin_unexpanded_" + + "results\030\002 \001(\010\">\n\tCondition\022\031\n\025CONDITION_" + + "UNSPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\010\n\004AUTO\020\002\032\256\001" + + "\n\023SpellCorrectionSpec\022Z\n\004mode\030\001 \001(\0162L.go" + + "ogle.cloud.discoveryengine.v1alpha.Searc" + + "hRequest.SpellCorrectionSpec.Mode\";\n\004Mod" + + "e\022\024\n\020MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTION_ON" + + "LY\020\001\022\010\n\004AUTO\020\002\032\262\n\n\021ContentSearchSpec\022g\n\014" + + "snippet_spec\030\001 \001(\0132Q.google.cloud.discov" + + "eryengine.v1alpha.SearchRequest.ContentS" + + "earchSpec.SnippetSpec\022g\n\014summary_spec\030\002 " + + "\001(\0132Q.google.cloud.discoveryengine.v1alp" + + "ha.SearchRequest.ContentSearchSpec.Summa" + + "rySpec\022|\n\027extractive_content_spec\030\003 \001(\0132" + + "[.google.cloud.discoveryengine.v1alpha.S" + + "earchRequest.ContentSearchSpec.Extractiv" + + "eContentSpec\022r\n\022search_result_mode\030\004 \001(\016" + + "2V.google.cloud.discoveryengine.v1alpha." + + "SearchRequest.ContentSearchSpec.SearchRe" + + "sultMode\032`\n\013SnippetSpec\022\035\n\021max_snippet_c" + + "ount\030\001 \001(\005B\002\030\001\022\032\n\016reference_only\030\002 \001(\010B\002" + + "\030\001\022\026\n\016return_snippet\030\003 \001(\010\032\333\003\n\013SummarySp" + + "ec\022\034\n\024summary_result_count\030\001 \001(\005\022\031\n\021incl" + + "ude_citations\030\002 \001(\010\022 \n\030ignore_adversaria" + + "l_query\030\003 \001(\010\022(\n ignore_non_summary_seek" + + "ing_query\030\004 \001(\010\022|\n\021model_prompt_spec\030\005 \001" + + "(\0132a.google.cloud.discoveryengine.v1alph" + + "a.SearchRequest.ContentSearchSpec.Summar" + + "ySpec.ModelPromptSpec\022\025\n\rlanguage_code\030\006" + + " \001(\t\022o\n\nmodel_spec\030\007 \001(\0132[.google.cloud." + + "discoveryengine.v1alpha.SearchRequest.Co" + + "ntentSearchSpec.SummarySpec.ModelSpec\032#\n" + + "\017ModelPromptSpec\022\020\n\010preamble\030\001 \001(\t\032\034\n\tMo" + + "delSpec\022\017\n\007version\030\001 \001(\t\032\305\001\n\025ExtractiveC" + + "ontentSpec\022#\n\033max_extractive_answer_coun" + + "t\030\001 \001(\005\022$\n\034max_extractive_segment_count\030" + + "\002 \001(\005\022\'\n\037return_extractive_segment_score" + + "\030\003 \001(\010\022\035\n\025num_previous_segments\030\004 \001(\005\022\031\n" + + "\021num_next_segments\030\005 \001(\005\"Q\n\020SearchResult" + + "Mode\022\"\n\036SEARCH_RESULT_MODE_UNSPECIFIED\020\000" + + "\022\r\n\tDOCUMENTS\020\001\022\n\n\006CHUNKS\020\002\032\264\001\n\rEmbeddin" + + "gSpec\022l\n\021embedding_vectors\030\001 \003(\0132Q.googl" + "e.cloud.discoveryengine.v1alpha.SearchRe" - + "sponse.Summary.SafetyAttributes\022o\n\025summa" - + "ry_with_metadata\030\004 \001(\0132P.google.cloud.di" - + "scoveryengine.v1alpha.SearchResponse.Sum" - + "mary.SummaryWithMetadata\0326\n\020SafetyAttrib" - + "utes\022\022\n\ncategories\030\001 \003(\t\022\016\n\006scores\030\002 \003(\002" - + "\032l\n\020CitationMetadata\022X\n\tcitations\030\001 \003(\0132" - + "E.google.cloud.discoveryengine.v1alpha.S" - + "earchResponse.Summary.Citation\032\220\001\n\010Citat" - + "ion\022\023\n\013start_index\030\001 \001(\003\022\021\n\tend_index\030\002 " - + "\001(\003\022\\\n\007sources\030\003 \003(\0132K.google.cloud.disc" - + "overyengine.v1alpha.SearchResponse.Summa" - + "ry.CitationSource\032)\n\016CitationSource\022\027\n\017r" - + "eference_index\030\004 \001(\003\032j\n\tReference\022\r\n\005tit" - + "le\030\001 \001(\t\022A\n\010document\030\002 \001(\tB/\340A\002\372A)\n\'disc" - + "overyengine.googleapis.com/Document\022\013\n\003u" - + "ri\030\003 \001(\t\032\354\001\n\023SummaryWithMetadata\022\017\n\007summ" - + "ary\030\001 \001(\t\022h\n\021citation_metadata\030\002 \001(\0132M.g" - + "oogle.cloud.discoveryengine.v1alpha.Sear" - + "chResponse.Summary.CitationMetadata\022Z\n\nr" - + "eferences\030\003 \003(\0132F.google.cloud.discovery" - + "engine.v1alpha.SearchResponse.Summary.Re" - + "ference\"\340\001\n\024SummarySkippedReason\022&\n\"SUMM" - + "ARY_SKIPPED_REASON_UNSPECIFIED\020\000\022\035\n\031ADVE" - + "RSARIAL_QUERY_IGNORED\020\001\022%\n!NON_SUMMARY_S" - + "EEKING_QUERY_IGNORED\020\002\022\037\n\033OUT_OF_DOMAIN_" - + "QUERY_IGNORED\020\003\022\036\n\032POTENTIAL_POLICY_VIOL" - + "ATION\020\004\022\031\n\025LLM_ADDON_NOT_ENABLED\020\005\032K\n\022Ge" - + "oSearchDebugInfo\022\036\n\026original_address_que" - + "ry\030\001 \001(\t\022\025\n\rerror_message\030\002 \001(\t\032I\n\022Query" - + "ExpansionInfo\022\026\n\016expanded_query\030\001 \001(\010\022\033\n" - + "\023pinned_result_count\030\002 \001(\0032\216\004\n\rSearchSer" - + "vice\022\250\003\n\006Search\0223.google.cloud.discovery" - + "engine.v1alpha.SearchRequest\0324.google.cl" - + "oud.discoveryengine.v1alpha.SearchRespon" - + "se\"\262\002\202\323\344\223\002\253\002\"U/v1alpha/{serving_config=p" - + "rojects/*/locations/*/dataStores/*/servi" - + "ngConfigs/*}:search:\001*Zh\"c/v1alpha/{serv" - + "ing_config=projects/*/locations/*/collec" - + "tions/*/dataStores/*/servingConfigs/*}:s" - + "earch:\001*Ze\"`/v1alpha/{serving_config=pro" - + "jects/*/locations/*/collections/*/engine" - + "s/*/servingConfigs/*}:search:\001*\032R\312A\036disc" - + "overyengine.googleapis.com\322A.https://www" - + ".googleapis.com/auth/cloud-platformB\236\002\n(" - + "com.google.cloud.discoveryengine.v1alpha" - + "B\022SearchServiceProtoP\001ZRcloud.google.com" - + "/go/discoveryengine/apiv1alpha/discovery" - + "enginepb;discoveryenginepb\242\002\017DISCOVERYEN" - + "GINE\252\002$Google.Cloud.DiscoveryEngine.V1Al" - + "pha\312\002$Google\\Cloud\\DiscoveryEngine\\V1alp" - + "ha\352\002\'Google::Cloud::DiscoveryEngine::V1a" - + "lphab\006proto3" + + "quest.EmbeddingSpec.EmbeddingVector\0325\n\017E" + + "mbeddingVector\022\022\n\nfield_path\030\001 \001(\t\022\016\n\006ve" + + "ctor\030\002 \003(\002\032E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022%" + + "\n\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028" + + "\001\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"\331\027\n\016SearchResponse\022R\n\007resul" + + "ts\030\001 \003(\0132A.google.cloud.discoveryengine." + + "v1alpha.SearchResponse.SearchResult\022J\n\006f" + + "acets\030\002 \003(\0132:.google.cloud.discoveryengi" + + "ne.v1alpha.SearchResponse.Facet\022e\n\024guide" + + "d_search_result\030\010 \001(\0132G.google.cloud.dis" + + "coveryengine.v1alpha.SearchResponse.Guid" + + "edSearchResult\022\022\n\ntotal_size\030\003 \001(\005\022\031\n\021at" + + "tribution_token\030\004 \001(\t\022\024\n\014redirect_uri\030\014 " + + "\001(\t\022\027\n\017next_page_token\030\005 \001(\t\022\027\n\017correcte" + + "d_query\030\007 \001(\t\022M\n\007summary\030\t \001(\0132<.google." + + "cloud.discoveryengine.v1alpha.SearchResp" + + "onse.Summary\022\030\n\020applied_controls\030\n \003(\t\022f" + + "\n\025geo_search_debug_info\030\020 \003(\0132G.google.c" + + "loud.discoveryengine.v1alpha.SearchRespo" + + "nse.GeoSearchDebugInfo\022e\n\024query_expansio" + + "n_info\030\016 \001(\0132G.google.cloud.discoveryeng" + + "ine.v1alpha.SearchResponse.QueryExpansio" + + "nInfo\032\350\002\n\014SearchResult\022\n\n\002id\030\001 \001(\t\022@\n\010do" + + "cument\030\002 \001(\0132..google.cloud.discoveryeng" + + "ine.v1alpha.Document\022:\n\005chunk\030\022 \001(\0132+.go" + + "ogle.cloud.discoveryengine.v1alpha.Chunk" + + "\022h\n\014model_scores\030\004 \003(\0132R.google.cloud.di" + + "scoveryengine.v1alpha.SearchResponse.Sea" + + "rchResult.ModelScoresEntry\032d\n\020ModelScore" + + "sEntry\022\013\n\003key\030\001 \001(\t\022?\n\005value\030\002 \001(\01320.goo" + + "gle.cloud.discoveryengine.v1alpha.Double" + + "List:\0028\001\032\203\002\n\005Facet\022\013\n\003key\030\001 \001(\t\022U\n\006value" + + "s\030\002 \003(\0132E.google.cloud.discoveryengine.v" + + "1alpha.SearchResponse.Facet.FacetValue\022\025" + + "\n\rdynamic_facet\030\003 \001(\010\032\177\n\nFacetValue\022\017\n\005v" + + "alue\030\001 \001(\tH\000\022B\n\010interval\030\002 \001(\0132..google." + + "cloud.discoveryengine.v1alpha.IntervalH\000" + + "\022\r\n\005count\030\003 \001(\003B\r\n\013facet_value\032\364\001\n\022Guide" + + "dSearchResult\022z\n\025refinement_attributes\030\001" + + " \003(\0132[.google.cloud.discoveryengine.v1al" + + "pha.SearchResponse.GuidedSearchResult.Re" + + "finementAttribute\022\033\n\023follow_up_questions" + + "\030\002 \003(\t\032E\n\023RefinementAttribute\022\025\n\rattribu" + + "te_key\030\001 \001(\t\022\027\n\017attribute_value\030\002 \001(\t\032\220\n" + + "\n\007Summary\022\024\n\014summary_text\030\001 \001(\t\022r\n\027summa" + + "ry_skipped_reasons\030\002 \003(\0162Q.google.cloud." + + "discoveryengine.v1alpha.SearchResponse.S" + + "ummary.SummarySkippedReason\022h\n\021safety_at" + + "tributes\030\003 \001(\0132M.google.cloud.discoverye" + + "ngine.v1alpha.SearchResponse.Summary.Saf" + + "etyAttributes\022o\n\025summary_with_metadata\030\004" + + " \001(\0132P.google.cloud.discoveryengine.v1al" + + "pha.SearchResponse.Summary.SummaryWithMe" + + "tadata\0326\n\020SafetyAttributes\022\022\n\ncategories" + + "\030\001 \003(\t\022\016\n\006scores\030\002 \003(\002\032l\n\020CitationMetada" + + "ta\022X\n\tcitations\030\001 \003(\0132E.google.cloud.dis" + + "coveryengine.v1alpha.SearchResponse.Summ" + + "ary.Citation\032\220\001\n\010Citation\022\023\n\013start_index" + + "\030\001 \001(\003\022\021\n\tend_index\030\002 \001(\003\022\\\n\007sources\030\003 \003" + + "(\0132K.google.cloud.discoveryengine.v1alph" + + "a.SearchResponse.Summary.CitationSource\032" + + ")\n\016CitationSource\022\027\n\017reference_index\030\004 \001" + + "(\003\032j\n\tReference\022\r\n\005title\030\001 \001(\t\022A\n\010docume" + + "nt\030\002 \001(\tB/\340A\002\372A)\n\'discoveryengine.google" + + "apis.com/Document\022\013\n\003uri\030\003 \001(\t\032\354\001\n\023Summa" + + "ryWithMetadata\022\017\n\007summary\030\001 \001(\t\022h\n\021citat" + + "ion_metadata\030\002 \001(\0132M.google.cloud.discov" + + "eryengine.v1alpha.SearchResponse.Summary" + + ".CitationMetadata\022Z\n\nreferences\030\003 \003(\0132F." + + "google.cloud.discoveryengine.v1alpha.Sea" + + "rchResponse.Summary.Reference\"\340\001\n\024Summar" + + "ySkippedReason\022&\n\"SUMMARY_SKIPPED_REASON" + + "_UNSPECIFIED\020\000\022\035\n\031ADVERSARIAL_QUERY_IGNO" + + "RED\020\001\022%\n!NON_SUMMARY_SEEKING_QUERY_IGNOR" + + "ED\020\002\022\037\n\033OUT_OF_DOMAIN_QUERY_IGNORED\020\003\022\036\n" + + "\032POTENTIAL_POLICY_VIOLATION\020\004\022\031\n\025LLM_ADD" + + "ON_NOT_ENABLED\020\005\032K\n\022GeoSearchDebugInfo\022\036" + + "\n\026original_address_query\030\001 \001(\t\022\025\n\rerror_" + + "message\030\002 \001(\t\032I\n\022QueryExpansionInfo\022\026\n\016e" + + "xpanded_query\030\001 \001(\010\022\033\n\023pinned_result_cou" + + "nt\030\002 \001(\0032\216\004\n\rSearchService\022\250\003\n\006Search\0223." + + "google.cloud.discoveryengine.v1alpha.Sea" + + "rchRequest\0324.google.cloud.discoveryengin" + + "e.v1alpha.SearchResponse\"\262\002\202\323\344\223\002\253\002\"U/v1a" + + "lpha/{serving_config=projects/*/location" + + "s/*/dataStores/*/servingConfigs/*}:searc" + + "h:\001*Zh\"c/v1alpha/{serving_config=project" + + "s/*/locations/*/collections/*/dataStores" + + "/*/servingConfigs/*}:search:\001*Ze\"`/v1alp" + + "ha/{serving_config=projects/*/locations/" + + "*/collections/*/engines/*/servingConfigs" + + "/*}:search:\001*\032R\312A\036discoveryengine.google" + + "apis.com\322A.https://www.googleapis.com/au" + + "th/cloud-platformB\236\002\n(com.google.cloud.d" + + "iscoveryengine.v1alphaB\022SearchServicePro" + + "toP\001ZRcloud.google.com/go/discoveryengin" + + "e/apiv1alpha/discoveryenginepb;discovery" + + "enginepb\242\002\017DISCOVERYENGINE\252\002$Google.Clou" + + "d.DiscoveryEngine.V1Alpha\312\002$Google\\Cloud" + + "\\DiscoveryEngine\\V1alpha\352\002\'Google::Cloud" + + "::DiscoveryEngine::V1alphab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -379,6 +397,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.ChunkProto.getDescriptor(), com.google.cloud.discoveryengine.v1alpha.CommonProto.getDescriptor(), com.google.cloud.discoveryengine.v1alpha.DocumentProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), @@ -396,6 +415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageSize", "PageToken", "Offset", + "DataStoreSpecs", "Filter", "CanonicalFilter", "OrderBy", @@ -411,6 +431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RankingExpression", "SafeSearch", "UserLabels", + "CustomFineTuningSpec", }); internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ImageQuery_descriptor = internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor @@ -422,10 +443,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ImageBytes", "Image", }); - internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_DataStoreSpec_descriptor = internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor .getNestedTypes() .get(1); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_DataStoreSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_DataStoreSpec_descriptor, + new java.lang.String[] { + "DataStore", + }); + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor + .getNestedTypes() + .get(2); internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_FacetSpec_descriptor, @@ -451,7 +482,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_descriptor = internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor .getNestedTypes() - .get(2); + .get(3); internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_BoostSpec_descriptor, @@ -471,7 +502,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_QueryExpansionSpec_descriptor = internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor .getNestedTypes() - .get(3); + .get(4); internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_QueryExpansionSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_QueryExpansionSpec_descriptor, @@ -481,7 +512,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_SpellCorrectionSpec_descriptor = internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor .getNestedTypes() - .get(4); + .get(5); internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_SpellCorrectionSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_SpellCorrectionSpec_descriptor, @@ -491,12 +522,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_descriptor = internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor .getNestedTypes() - .get(5); + .get(6); internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_descriptor, new java.lang.String[] { - "SnippetSpec", "SummarySpec", "ExtractiveContentSpec", + "SnippetSpec", "SummarySpec", "ExtractiveContentSpec", "SearchResultMode", }); internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_SnippetSpec_descriptor = internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ContentSearchSpec_descriptor @@ -561,7 +592,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_descriptor = internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor .getNestedTypes() - .get(6); + .get(7); internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_EmbeddingSpec_descriptor, @@ -581,7 +612,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ParamsEntry_descriptor = internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor .getNestedTypes() - .get(7); + .get(8); internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ParamsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_ParamsEntry_descriptor, @@ -591,7 +622,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_UserLabelsEntry_descriptor = internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_descriptor .getNestedTypes() - .get(8); + .get(9); internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_UserLabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_SearchRequest_UserLabelsEntry_descriptor, @@ -625,7 +656,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_descriptor, new java.lang.String[] { - "Id", "Document", "ModelScores", + "Id", "Document", "Chunk", "ModelScores", }); internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_ModelScoresEntry_descriptor = internal_static_google_cloud_discoveryengine_v1alpha_SearchResponse_SearchResult_descriptor @@ -780,6 +811,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.ChunkProto.getDescriptor(); com.google.cloud.discoveryengine.v1alpha.CommonProto.getDescriptor(); com.google.cloud.discoveryengine.v1alpha.DocumentProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfig.java new file mode 100644 index 000000000000..a01bc9544a51 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfig.java @@ -0,0 +1,9030 @@ +/* + * 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/discoveryengine/v1alpha/serving_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Configures metadata that is used to generate serving time results (e.g.
                                + * search results or recommendation predictions).
                                + * The ServingConfig is passed in the search and predict request and generates
                                + * results.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ServingConfig} + */ +public final class ServingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ServingConfig) + ServingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServingConfig.newBuilder() to construct. + private ServingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ServingConfig() { + name_ = ""; + displayName_ = ""; + solutionType_ = 0; + modelId_ = ""; + diversityLevel_ = ""; + rankingExpression_ = ""; + filterControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + boostControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + redirectControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + synonymsControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + onewaySynonymsControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dissociateControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + replacementControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ignoreControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ServingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.class, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder.class); + } + + public interface MediaConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +     * Specifies the content watched percentage threshold for demotion.
                                +     * Threshold value must be between [0, 1.0] inclusive.
                                +     * 
                                + * + * float content_watched_percentage_threshold = 2; + * + * @return Whether the contentWatchedPercentageThreshold field is set. + */ + boolean hasContentWatchedPercentageThreshold(); + /** + * + * + *
                                +     * Specifies the content watched percentage threshold for demotion.
                                +     * Threshold value must be between [0, 1.0] inclusive.
                                +     * 
                                + * + * float content_watched_percentage_threshold = 2; + * + * @return The contentWatchedPercentageThreshold. + */ + float getContentWatchedPercentageThreshold(); + + /** + * + * + *
                                +     * Specifies the content watched minutes threshold for demotion.
                                +     * 
                                + * + * float content_watched_seconds_threshold = 5; + * + * @return Whether the contentWatchedSecondsThreshold field is set. + */ + boolean hasContentWatchedSecondsThreshold(); + /** + * + * + *
                                +     * Specifies the content watched minutes threshold for demotion.
                                +     * 
                                + * + * float content_watched_seconds_threshold = 5; + * + * @return The contentWatchedSecondsThreshold. + */ + float getContentWatchedSecondsThreshold(); + + /** + * + * + *
                                +     * Specifies the event type used for demoting recommendation result.
                                +     * Currently supported values:
                                +     *
                                +     * * `view-item`: Item viewed.
                                +     * * `media-play`: Start/resume watching a video, playing a song, etc.
                                +     * * `media-complete`: Finished or stopped midway through a video, song,
                                +     * etc.
                                +     *
                                +     * If unset, watch history demotion will not be applied. Content freshness
                                +     * demotion will still be applied.
                                +     * 
                                + * + * string demotion_event_type = 1; + * + * @return The demotionEventType. + */ + java.lang.String getDemotionEventType(); + /** + * + * + *
                                +     * Specifies the event type used for demoting recommendation result.
                                +     * Currently supported values:
                                +     *
                                +     * * `view-item`: Item viewed.
                                +     * * `media-play`: Start/resume watching a video, playing a song, etc.
                                +     * * `media-complete`: Finished or stopped midway through a video, song,
                                +     * etc.
                                +     *
                                +     * If unset, watch history demotion will not be applied. Content freshness
                                +     * demotion will still be applied.
                                +     * 
                                + * + * string demotion_event_type = 1; + * + * @return The bytes for demotionEventType. + */ + com.google.protobuf.ByteString getDemotionEventTypeBytes(); + + /** + * + * + *
                                +     * Specifies the content freshness used for recommendation result.
                                +     * Contents will be demoted if contents were published for more than content
                                +     * freshness cutoff days.
                                +     * 
                                + * + * int32 content_freshness_cutoff_days = 4; + * + * @return The contentFreshnessCutoffDays. + */ + int getContentFreshnessCutoffDays(); + + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig.DemoteContentWatchedCase + getDemoteContentWatchedCase(); + } + /** + * + * + *
                                +   * Specifies the configurations needed for Media Discovery. Currently we
                                +   * support:
                                +   *
                                +   * * `demote_content_watched`: Threshold for watched content demotion.
                                +   * Customers can specify if using watched content demotion or use viewed
                                +   * detail page. Using the content watched demotion, customers need to specify
                                +   * the watched minutes or percentage exceeds the threshold, the content will
                                +   * be demoted in the recommendation result.
                                +   * * `promote_fresh_content`: cutoff days for fresh content promotion.
                                +   * Customers can specify if using content freshness promotion. If the content
                                +   * was published within the cutoff days, the content will be promoted in the
                                +   * recommendation result.
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig} + */ + public static final class MediaConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig) + MediaConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use MediaConfig.newBuilder() to construct. + private MediaConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MediaConfig() { + demotionEventType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MediaConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_MediaConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_MediaConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig.class, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig.Builder.class); + } + + private int demoteContentWatchedCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object demoteContentWatched_; + + public enum DemoteContentWatchedCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONTENT_WATCHED_PERCENTAGE_THRESHOLD(2), + CONTENT_WATCHED_SECONDS_THRESHOLD(5), + DEMOTECONTENTWATCHED_NOT_SET(0); + private final int value; + + private DemoteContentWatchedCase(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 DemoteContentWatchedCase valueOf(int value) { + return forNumber(value); + } + + public static DemoteContentWatchedCase forNumber(int value) { + switch (value) { + case 2: + return CONTENT_WATCHED_PERCENTAGE_THRESHOLD; + case 5: + return CONTENT_WATCHED_SECONDS_THRESHOLD; + case 0: + return DEMOTECONTENTWATCHED_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DemoteContentWatchedCase getDemoteContentWatchedCase() { + return DemoteContentWatchedCase.forNumber(demoteContentWatchedCase_); + } + + public static final int CONTENT_WATCHED_PERCENTAGE_THRESHOLD_FIELD_NUMBER = 2; + /** + * + * + *
                                +     * Specifies the content watched percentage threshold for demotion.
                                +     * Threshold value must be between [0, 1.0] inclusive.
                                +     * 
                                + * + * float content_watched_percentage_threshold = 2; + * + * @return Whether the contentWatchedPercentageThreshold field is set. + */ + @java.lang.Override + public boolean hasContentWatchedPercentageThreshold() { + return demoteContentWatchedCase_ == 2; + } + /** + * + * + *
                                +     * Specifies the content watched percentage threshold for demotion.
                                +     * Threshold value must be between [0, 1.0] inclusive.
                                +     * 
                                + * + * float content_watched_percentage_threshold = 2; + * + * @return The contentWatchedPercentageThreshold. + */ + @java.lang.Override + public float getContentWatchedPercentageThreshold() { + if (demoteContentWatchedCase_ == 2) { + return (java.lang.Float) demoteContentWatched_; + } + return 0F; + } + + public static final int CONTENT_WATCHED_SECONDS_THRESHOLD_FIELD_NUMBER = 5; + /** + * + * + *
                                +     * Specifies the content watched minutes threshold for demotion.
                                +     * 
                                + * + * float content_watched_seconds_threshold = 5; + * + * @return Whether the contentWatchedSecondsThreshold field is set. + */ + @java.lang.Override + public boolean hasContentWatchedSecondsThreshold() { + return demoteContentWatchedCase_ == 5; + } + /** + * + * + *
                                +     * Specifies the content watched minutes threshold for demotion.
                                +     * 
                                + * + * float content_watched_seconds_threshold = 5; + * + * @return The contentWatchedSecondsThreshold. + */ + @java.lang.Override + public float getContentWatchedSecondsThreshold() { + if (demoteContentWatchedCase_ == 5) { + return (java.lang.Float) demoteContentWatched_; + } + return 0F; + } + + public static final int DEMOTION_EVENT_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object demotionEventType_ = ""; + /** + * + * + *
                                +     * Specifies the event type used for demoting recommendation result.
                                +     * Currently supported values:
                                +     *
                                +     * * `view-item`: Item viewed.
                                +     * * `media-play`: Start/resume watching a video, playing a song, etc.
                                +     * * `media-complete`: Finished or stopped midway through a video, song,
                                +     * etc.
                                +     *
                                +     * If unset, watch history demotion will not be applied. Content freshness
                                +     * demotion will still be applied.
                                +     * 
                                + * + * string demotion_event_type = 1; + * + * @return The demotionEventType. + */ + @java.lang.Override + public java.lang.String getDemotionEventType() { + java.lang.Object ref = demotionEventType_; + 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(); + demotionEventType_ = s; + return s; + } + } + /** + * + * + *
                                +     * Specifies the event type used for demoting recommendation result.
                                +     * Currently supported values:
                                +     *
                                +     * * `view-item`: Item viewed.
                                +     * * `media-play`: Start/resume watching a video, playing a song, etc.
                                +     * * `media-complete`: Finished or stopped midway through a video, song,
                                +     * etc.
                                +     *
                                +     * If unset, watch history demotion will not be applied. Content freshness
                                +     * demotion will still be applied.
                                +     * 
                                + * + * string demotion_event_type = 1; + * + * @return The bytes for demotionEventType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDemotionEventTypeBytes() { + java.lang.Object ref = demotionEventType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + demotionEventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FRESHNESS_CUTOFF_DAYS_FIELD_NUMBER = 4; + private int contentFreshnessCutoffDays_ = 0; + /** + * + * + *
                                +     * Specifies the content freshness used for recommendation result.
                                +     * Contents will be demoted if contents were published for more than content
                                +     * freshness cutoff days.
                                +     * 
                                + * + * int32 content_freshness_cutoff_days = 4; + * + * @return The contentFreshnessCutoffDays. + */ + @java.lang.Override + public int getContentFreshnessCutoffDays() { + return contentFreshnessCutoffDays_; + } + + 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(demotionEventType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, demotionEventType_); + } + if (demoteContentWatchedCase_ == 2) { + output.writeFloat(2, (float) ((java.lang.Float) demoteContentWatched_)); + } + if (contentFreshnessCutoffDays_ != 0) { + output.writeInt32(4, contentFreshnessCutoffDays_); + } + if (demoteContentWatchedCase_ == 5) { + output.writeFloat(5, (float) ((java.lang.Float) demoteContentWatched_)); + } + 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(demotionEventType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, demotionEventType_); + } + if (demoteContentWatchedCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 2, (float) ((java.lang.Float) demoteContentWatched_)); + } + if (contentFreshnessCutoffDays_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(4, contentFreshnessCutoffDays_); + } + if (demoteContentWatchedCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 5, (float) ((java.lang.Float) demoteContentWatched_)); + } + 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.discoveryengine.v1alpha.ServingConfig.MediaConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig other = + (com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig) obj; + + if (!getDemotionEventType().equals(other.getDemotionEventType())) return false; + if (getContentFreshnessCutoffDays() != other.getContentFreshnessCutoffDays()) return false; + if (!getDemoteContentWatchedCase().equals(other.getDemoteContentWatchedCase())) return false; + switch (demoteContentWatchedCase_) { + case 2: + if (java.lang.Float.floatToIntBits(getContentWatchedPercentageThreshold()) + != java.lang.Float.floatToIntBits(other.getContentWatchedPercentageThreshold())) + return false; + break; + case 5: + if (java.lang.Float.floatToIntBits(getContentWatchedSecondsThreshold()) + != java.lang.Float.floatToIntBits(other.getContentWatchedSecondsThreshold())) + 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) + DEMOTION_EVENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDemotionEventType().hashCode(); + hash = (37 * hash) + CONTENT_FRESHNESS_CUTOFF_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getContentFreshnessCutoffDays(); + switch (demoteContentWatchedCase_) { + case 2: + hash = (37 * hash) + CONTENT_WATCHED_PERCENTAGE_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + java.lang.Float.floatToIntBits(getContentWatchedPercentageThreshold()); + break; + case 5: + hash = (37 * hash) + CONTENT_WATCHED_SECONDS_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getContentWatchedSecondsThreshold()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig 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.discoveryengine.v1alpha.ServingConfig.MediaConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig 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.discoveryengine.v1alpha.ServingConfig.MediaConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig 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.discoveryengine.v1alpha.ServingConfig.MediaConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig + 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.discoveryengine.v1alpha.ServingConfig.MediaConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig 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.discoveryengine.v1alpha.ServingConfig.MediaConfig 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; + } + /** + * + * + *
                                +     * Specifies the configurations needed for Media Discovery. Currently we
                                +     * support:
                                +     *
                                +     * * `demote_content_watched`: Threshold for watched content demotion.
                                +     * Customers can specify if using watched content demotion or use viewed
                                +     * detail page. Using the content watched demotion, customers need to specify
                                +     * the watched minutes or percentage exceeds the threshold, the content will
                                +     * be demoted in the recommendation result.
                                +     * * `promote_fresh_content`: cutoff days for fresh content promotion.
                                +     * Customers can specify if using content freshness promotion. If the content
                                +     * was published within the cutoff days, the content will be promoted in the
                                +     * recommendation result.
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +     * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig) + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_MediaConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_MediaConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig.class, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + demotionEventType_ = ""; + contentFreshnessCutoffDays_ = 0; + demoteContentWatchedCase_ = 0; + demoteContentWatched_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_MediaConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig build() { + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig result = + new com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.demotionEventType_ = demotionEventType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.contentFreshnessCutoffDays_ = contentFreshnessCutoffDays_; + } + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig result) { + result.demoteContentWatchedCase_ = demoteContentWatchedCase_; + result.demoteContentWatched_ = this.demoteContentWatched_; + } + + @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.discoveryengine.v1alpha.ServingConfig.MediaConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig + .getDefaultInstance()) return this; + if (!other.getDemotionEventType().isEmpty()) { + demotionEventType_ = other.demotionEventType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getContentFreshnessCutoffDays() != 0) { + setContentFreshnessCutoffDays(other.getContentFreshnessCutoffDays()); + } + switch (other.getDemoteContentWatchedCase()) { + case CONTENT_WATCHED_PERCENTAGE_THRESHOLD: + { + setContentWatchedPercentageThreshold(other.getContentWatchedPercentageThreshold()); + break; + } + case CONTENT_WATCHED_SECONDS_THRESHOLD: + { + setContentWatchedSecondsThreshold(other.getContentWatchedSecondsThreshold()); + break; + } + case DEMOTECONTENTWATCHED_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: + { + demotionEventType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 21: + { + demoteContentWatched_ = input.readFloat(); + demoteContentWatchedCase_ = 2; + break; + } // case 21 + case 32: + { + contentFreshnessCutoffDays_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 45: + { + demoteContentWatched_ = input.readFloat(); + demoteContentWatchedCase_ = 5; + break; + } // case 45 + 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 demoteContentWatchedCase_ = 0; + private java.lang.Object demoteContentWatched_; + + public DemoteContentWatchedCase getDemoteContentWatchedCase() { + return DemoteContentWatchedCase.forNumber(demoteContentWatchedCase_); + } + + public Builder clearDemoteContentWatched() { + demoteContentWatchedCase_ = 0; + demoteContentWatched_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
                                +       * Specifies the content watched percentage threshold for demotion.
                                +       * Threshold value must be between [0, 1.0] inclusive.
                                +       * 
                                + * + * float content_watched_percentage_threshold = 2; + * + * @return Whether the contentWatchedPercentageThreshold field is set. + */ + public boolean hasContentWatchedPercentageThreshold() { + return demoteContentWatchedCase_ == 2; + } + /** + * + * + *
                                +       * Specifies the content watched percentage threshold for demotion.
                                +       * Threshold value must be between [0, 1.0] inclusive.
                                +       * 
                                + * + * float content_watched_percentage_threshold = 2; + * + * @return The contentWatchedPercentageThreshold. + */ + public float getContentWatchedPercentageThreshold() { + if (demoteContentWatchedCase_ == 2) { + return (java.lang.Float) demoteContentWatched_; + } + return 0F; + } + /** + * + * + *
                                +       * Specifies the content watched percentage threshold for demotion.
                                +       * Threshold value must be between [0, 1.0] inclusive.
                                +       * 
                                + * + * float content_watched_percentage_threshold = 2; + * + * @param value The contentWatchedPercentageThreshold to set. + * @return This builder for chaining. + */ + public Builder setContentWatchedPercentageThreshold(float value) { + + demoteContentWatchedCase_ = 2; + demoteContentWatched_ = value; + onChanged(); + return this; + } + /** + * + * + *
                                +       * Specifies the content watched percentage threshold for demotion.
                                +       * Threshold value must be between [0, 1.0] inclusive.
                                +       * 
                                + * + * float content_watched_percentage_threshold = 2; + * + * @return This builder for chaining. + */ + public Builder clearContentWatchedPercentageThreshold() { + if (demoteContentWatchedCase_ == 2) { + demoteContentWatchedCase_ = 0; + demoteContentWatched_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
                                +       * Specifies the content watched minutes threshold for demotion.
                                +       * 
                                + * + * float content_watched_seconds_threshold = 5; + * + * @return Whether the contentWatchedSecondsThreshold field is set. + */ + public boolean hasContentWatchedSecondsThreshold() { + return demoteContentWatchedCase_ == 5; + } + /** + * + * + *
                                +       * Specifies the content watched minutes threshold for demotion.
                                +       * 
                                + * + * float content_watched_seconds_threshold = 5; + * + * @return The contentWatchedSecondsThreshold. + */ + public float getContentWatchedSecondsThreshold() { + if (demoteContentWatchedCase_ == 5) { + return (java.lang.Float) demoteContentWatched_; + } + return 0F; + } + /** + * + * + *
                                +       * Specifies the content watched minutes threshold for demotion.
                                +       * 
                                + * + * float content_watched_seconds_threshold = 5; + * + * @param value The contentWatchedSecondsThreshold to set. + * @return This builder for chaining. + */ + public Builder setContentWatchedSecondsThreshold(float value) { + + demoteContentWatchedCase_ = 5; + demoteContentWatched_ = value; + onChanged(); + return this; + } + /** + * + * + *
                                +       * Specifies the content watched minutes threshold for demotion.
                                +       * 
                                + * + * float content_watched_seconds_threshold = 5; + * + * @return This builder for chaining. + */ + public Builder clearContentWatchedSecondsThreshold() { + if (demoteContentWatchedCase_ == 5) { + demoteContentWatchedCase_ = 0; + demoteContentWatched_ = null; + onChanged(); + } + return this; + } + + private java.lang.Object demotionEventType_ = ""; + /** + * + * + *
                                +       * Specifies the event type used for demoting recommendation result.
                                +       * Currently supported values:
                                +       *
                                +       * * `view-item`: Item viewed.
                                +       * * `media-play`: Start/resume watching a video, playing a song, etc.
                                +       * * `media-complete`: Finished or stopped midway through a video, song,
                                +       * etc.
                                +       *
                                +       * If unset, watch history demotion will not be applied. Content freshness
                                +       * demotion will still be applied.
                                +       * 
                                + * + * string demotion_event_type = 1; + * + * @return The demotionEventType. + */ + public java.lang.String getDemotionEventType() { + java.lang.Object ref = demotionEventType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + demotionEventType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +       * Specifies the event type used for demoting recommendation result.
                                +       * Currently supported values:
                                +       *
                                +       * * `view-item`: Item viewed.
                                +       * * `media-play`: Start/resume watching a video, playing a song, etc.
                                +       * * `media-complete`: Finished or stopped midway through a video, song,
                                +       * etc.
                                +       *
                                +       * If unset, watch history demotion will not be applied. Content freshness
                                +       * demotion will still be applied.
                                +       * 
                                + * + * string demotion_event_type = 1; + * + * @return The bytes for demotionEventType. + */ + public com.google.protobuf.ByteString getDemotionEventTypeBytes() { + java.lang.Object ref = demotionEventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + demotionEventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +       * Specifies the event type used for demoting recommendation result.
                                +       * Currently supported values:
                                +       *
                                +       * * `view-item`: Item viewed.
                                +       * * `media-play`: Start/resume watching a video, playing a song, etc.
                                +       * * `media-complete`: Finished or stopped midway through a video, song,
                                +       * etc.
                                +       *
                                +       * If unset, watch history demotion will not be applied. Content freshness
                                +       * demotion will still be applied.
                                +       * 
                                + * + * string demotion_event_type = 1; + * + * @param value The demotionEventType to set. + * @return This builder for chaining. + */ + public Builder setDemotionEventType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + demotionEventType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +       * Specifies the event type used for demoting recommendation result.
                                +       * Currently supported values:
                                +       *
                                +       * * `view-item`: Item viewed.
                                +       * * `media-play`: Start/resume watching a video, playing a song, etc.
                                +       * * `media-complete`: Finished or stopped midway through a video, song,
                                +       * etc.
                                +       *
                                +       * If unset, watch history demotion will not be applied. Content freshness
                                +       * demotion will still be applied.
                                +       * 
                                + * + * string demotion_event_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearDemotionEventType() { + demotionEventType_ = getDefaultInstance().getDemotionEventType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                +       * Specifies the event type used for demoting recommendation result.
                                +       * Currently supported values:
                                +       *
                                +       * * `view-item`: Item viewed.
                                +       * * `media-play`: Start/resume watching a video, playing a song, etc.
                                +       * * `media-complete`: Finished or stopped midway through a video, song,
                                +       * etc.
                                +       *
                                +       * If unset, watch history demotion will not be applied. Content freshness
                                +       * demotion will still be applied.
                                +       * 
                                + * + * string demotion_event_type = 1; + * + * @param value The bytes for demotionEventType to set. + * @return This builder for chaining. + */ + public Builder setDemotionEventTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + demotionEventType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int contentFreshnessCutoffDays_; + /** + * + * + *
                                +       * Specifies the content freshness used for recommendation result.
                                +       * Contents will be demoted if contents were published for more than content
                                +       * freshness cutoff days.
                                +       * 
                                + * + * int32 content_freshness_cutoff_days = 4; + * + * @return The contentFreshnessCutoffDays. + */ + @java.lang.Override + public int getContentFreshnessCutoffDays() { + return contentFreshnessCutoffDays_; + } + /** + * + * + *
                                +       * Specifies the content freshness used for recommendation result.
                                +       * Contents will be demoted if contents were published for more than content
                                +       * freshness cutoff days.
                                +       * 
                                + * + * int32 content_freshness_cutoff_days = 4; + * + * @param value The contentFreshnessCutoffDays to set. + * @return This builder for chaining. + */ + public Builder setContentFreshnessCutoffDays(int value) { + + contentFreshnessCutoffDays_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                +       * Specifies the content freshness used for recommendation result.
                                +       * Contents will be demoted if contents were published for more than content
                                +       * freshness cutoff days.
                                +       * 
                                + * + * int32 content_freshness_cutoff_days = 4; + * + * @return This builder for chaining. + */ + public Builder clearContentFreshnessCutoffDays() { + bitField0_ = (bitField0_ & ~0x00000008); + contentFreshnessCutoffDays_ = 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.discoveryengine.v1alpha.ServingConfig.MediaConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig) + private static final com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MediaConfig 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.discoveryengine.v1alpha.ServingConfig.MediaConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GenericConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +     * Specifies the expected behavior of content search.
                                +     * Only valid for content-search enabled data store.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + * + * @return Whether the contentSearchSpec field is set. + */ + boolean hasContentSearchSpec(); + /** + * + * + *
                                +     * Specifies the expected behavior of content search.
                                +     * Only valid for content-search enabled data store.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + * + * @return The contentSearchSpec. + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec getContentSearchSpec(); + /** + * + * + *
                                +     * Specifies the expected behavior of content search.
                                +     * Only valid for content-search enabled data store.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + */ + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpecOrBuilder + getContentSearchSpecOrBuilder(); + } + /** + * + * + *
                                +   * Specifies the configurations needed for Generic Discovery.Currently we
                                +   * support:
                                +   *
                                +   * * `content_search_spec`: configuration for generic content search.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig} + */ + public static final class GenericConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig) + GenericConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use GenericConfig.newBuilder() to construct. + private GenericConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenericConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenericConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_GenericConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_GenericConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig.class, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig.Builder.class); + } + + private int bitField0_; + public static final int CONTENT_SEARCH_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + contentSearchSpec_; + /** + * + * + *
                                +     * Specifies the expected behavior of content search.
                                +     * Only valid for content-search enabled data store.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + * + * @return Whether the contentSearchSpec field is set. + */ + @java.lang.Override + public boolean hasContentSearchSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +     * Specifies the expected behavior of content search.
                                +     * Only valid for content-search enabled data store.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + * + * @return The contentSearchSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + getContentSearchSpec() { + return contentSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + .getDefaultInstance() + : contentSearchSpec_; + } + /** + * + * + *
                                +     * Specifies the expected behavior of content search.
                                +     * Only valid for content-search enabled data store.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpecOrBuilder + getContentSearchSpecOrBuilder() { + return contentSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + .getDefaultInstance() + : contentSearchSpec_; + } + + 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, getContentSearchSpec()); + } + 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, getContentSearchSpec()); + } + 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.discoveryengine.v1alpha.ServingConfig.GenericConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig other = + (com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig) obj; + + if (hasContentSearchSpec() != other.hasContentSearchSpec()) return false; + if (hasContentSearchSpec()) { + if (!getContentSearchSpec().equals(other.getContentSearchSpec())) 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 (hasContentSearchSpec()) { + hash = (37 * hash) + CONTENT_SEARCH_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getContentSearchSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig 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.discoveryengine.v1alpha.ServingConfig.GenericConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig 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.discoveryengine.v1alpha.ServingConfig.GenericConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig 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.discoveryengine.v1alpha.ServingConfig.GenericConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig + 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.discoveryengine.v1alpha.ServingConfig.GenericConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig 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.discoveryengine.v1alpha.ServingConfig.GenericConfig 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; + } + /** + * + * + *
                                +     * Specifies the configurations needed for Generic Discovery.Currently we
                                +     * support:
                                +     *
                                +     * * `content_search_spec`: configuration for generic content search.
                                +     * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig) + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_GenericConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_GenericConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig.class, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContentSearchSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contentSearchSpec_ = null; + if (contentSearchSpecBuilder_ != null) { + contentSearchSpecBuilder_.dispose(); + contentSearchSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_GenericConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig build() { + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig result = + new com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contentSearchSpec_ = + contentSearchSpecBuilder_ == null + ? contentSearchSpec_ + : contentSearchSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1alpha.ServingConfig.GenericConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig + .getDefaultInstance()) return this; + if (other.hasContentSearchSpec()) { + mergeContentSearchSpec(other.getContentSearchSpec()); + } + 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( + getContentSearchSpecFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + contentSearchSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpecOrBuilder> + contentSearchSpecBuilder_; + /** + * + * + *
                                +       * Specifies the expected behavior of content search.
                                +       * Only valid for content-search enabled data store.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + * + * @return Whether the contentSearchSpec field is set. + */ + public boolean hasContentSearchSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +       * Specifies the expected behavior of content search.
                                +       * Only valid for content-search enabled data store.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + * + * @return The contentSearchSpec. + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + getContentSearchSpec() { + if (contentSearchSpecBuilder_ == null) { + return contentSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + .getDefaultInstance() + : contentSearchSpec_; + } else { + return contentSearchSpecBuilder_.getMessage(); + } + } + /** + * + * + *
                                +       * Specifies the expected behavior of content search.
                                +       * Only valid for content-search enabled data store.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + */ + public Builder setContentSearchSpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec value) { + if (contentSearchSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contentSearchSpec_ = value; + } else { + contentSearchSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +       * Specifies the expected behavior of content search.
                                +       * Only valid for content-search enabled data store.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + */ + public Builder setContentSearchSpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.Builder + builderForValue) { + if (contentSearchSpecBuilder_ == null) { + contentSearchSpec_ = builderForValue.build(); + } else { + contentSearchSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +       * Specifies the expected behavior of content search.
                                +       * Only valid for content-search enabled data store.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + */ + public Builder mergeContentSearchSpec( + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec value) { + if (contentSearchSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && contentSearchSpec_ != null + && contentSearchSpec_ + != com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + .getDefaultInstance()) { + getContentSearchSpecBuilder().mergeFrom(value); + } else { + contentSearchSpec_ = value; + } + } else { + contentSearchSpecBuilder_.mergeFrom(value); + } + if (contentSearchSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
                                +       * Specifies the expected behavior of content search.
                                +       * Only valid for content-search enabled data store.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + */ + public Builder clearContentSearchSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + contentSearchSpec_ = null; + if (contentSearchSpecBuilder_ != null) { + contentSearchSpecBuilder_.dispose(); + contentSearchSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +       * Specifies the expected behavior of content search.
                                +       * Only valid for content-search enabled data store.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.Builder + getContentSearchSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getContentSearchSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +       * Specifies the expected behavior of content search.
                                +       * Only valid for content-search enabled data store.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + */ + public com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpecOrBuilder + getContentSearchSpecOrBuilder() { + if (contentSearchSpecBuilder_ != null) { + return contentSearchSpecBuilder_.getMessageOrBuilder(); + } else { + return contentSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec + .getDefaultInstance() + : contentSearchSpec_; + } + } + /** + * + * + *
                                +       * Specifies the expected behavior of content search.
                                +       * Only valid for content-search enabled data store.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec content_search_spec = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpecOrBuilder> + getContentSearchSpecFieldBuilder() { + if (contentSearchSpecBuilder_ == null) { + contentSearchSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec, + com.google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.SearchRequest + .ContentSearchSpecOrBuilder>( + getContentSearchSpec(), getParentForChildren(), isClean()); + contentSearchSpec_ = null; + } + return contentSearchSpecBuilder_; + } + + @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.discoveryengine.v1alpha.ServingConfig.GenericConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig) + private static final com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenericConfig 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.discoveryengine.v1alpha.ServingConfig.GenericConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int verticalConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object verticalConfig_; + + public enum VerticalConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MEDIA_CONFIG(7), + GENERIC_CONFIG(10), + VERTICALCONFIG_NOT_SET(0); + private final int value; + + private VerticalConfigCase(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 VerticalConfigCase valueOf(int value) { + return forNumber(value); + } + + public static VerticalConfigCase forNumber(int value) { + switch (value) { + case 7: + return MEDIA_CONFIG; + case 10: + return GENERIC_CONFIG; + case 0: + return VERTICALCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public VerticalConfigCase getVerticalConfigCase() { + return VerticalConfigCase.forNumber(verticalConfigCase_); + } + + public static final int MEDIA_CONFIG_FIELD_NUMBER = 7; + /** + * + * + *
                                +   * The MediaConfig of the serving configuration.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + * + * @return Whether the mediaConfig field is set. + */ + @java.lang.Override + public boolean hasMediaConfig() { + return verticalConfigCase_ == 7; + } + /** + * + * + *
                                +   * The MediaConfig of the serving configuration.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + * + * @return The mediaConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig getMediaConfig() { + if (verticalConfigCase_ == 7) { + return (com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig) verticalConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig.getDefaultInstance(); + } + /** + * + * + *
                                +   * The MediaConfig of the serving configuration.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfigOrBuilder + getMediaConfigOrBuilder() { + if (verticalConfigCase_ == 7) { + return (com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig) verticalConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig.getDefaultInstance(); + } + + public static final int GENERIC_CONFIG_FIELD_NUMBER = 10; + /** + * + * + *
                                +   * The GenericConfig of the serving configuration.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + * + * @return Whether the genericConfig field is set. + */ + @java.lang.Override + public boolean hasGenericConfig() { + return verticalConfigCase_ == 10; + } + /** + * + * + *
                                +   * The GenericConfig of the serving configuration.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + * + * @return The genericConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig getGenericConfig() { + if (verticalConfigCase_ == 10) { + return (com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig) verticalConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig + .getDefaultInstance(); + } + /** + * + * + *
                                +   * The GenericConfig of the serving configuration.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfigOrBuilder + getGenericConfigOrBuilder() { + if (verticalConfigCase_ == 10) { + return (com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig) verticalConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig + .getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                +   * Immutable. Fully qualified name
                                +   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                +   * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                +   * Immutable. Fully qualified name
                                +   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                +   * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
                                +   * Required. The human readable serving config display name. Used in Discovery
                                +   * UI.
                                +   *
                                +   * This field must be a UTF-8 encoded string with a length limit of 128
                                +   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
                                +   * 
                                + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
                                +   * Required. The human readable serving config display name. Used in Discovery
                                +   * UI.
                                +   *
                                +   * This field must be a UTF-8 encoded string with a length limit of 128
                                +   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
                                +   * 
                                + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 SOLUTION_TYPE_FIELD_NUMBER = 3; + private int solutionType_ = 0; + /** + * + * + *
                                +   * Required. Immutable. Specifies the solution type that a serving config can
                                +   * be associated with.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SolutionType solution_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for solutionType. + */ + @java.lang.Override + public int getSolutionTypeValue() { + return solutionType_; + } + /** + * + * + *
                                +   * Required. Immutable. Specifies the solution type that a serving config can
                                +   * be associated with.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SolutionType solution_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The solutionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SolutionType getSolutionType() { + com.google.cloud.discoveryengine.v1alpha.SolutionType result = + com.google.cloud.discoveryengine.v1alpha.SolutionType.forNumber(solutionType_); + return result == null + ? com.google.cloud.discoveryengine.v1alpha.SolutionType.UNRECOGNIZED + : result; + } + + public static final int MODEL_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelId_ = ""; + /** + * + * + *
                                +   * The id of the model to use at serving time.
                                +   * Currently only RecommendationModels are supported.
                                +   * Can be changed but only to a compatible model (e.g.
                                +   * others-you-may-like CTR to others-you-may-like CVR).
                                +   *
                                +   * Required when
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +   * 
                                + * + * string model_id = 4; + * + * @return The modelId. + */ + @java.lang.Override + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + 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(); + modelId_ = s; + return s; + } + } + /** + * + * + *
                                +   * The id of the model to use at serving time.
                                +   * Currently only RecommendationModels are supported.
                                +   * Can be changed but only to a compatible model (e.g.
                                +   * others-you-may-like CTR to others-you-may-like CVR).
                                +   *
                                +   * Required when
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +   * 
                                + * + * string model_id = 4; + * + * @return The bytes for modelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIVERSITY_LEVEL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object diversityLevel_ = ""; + /** + * + * + *
                                +   * How much diversity to use in recommendation model results e.g.
                                +   * `medium-diversity` or `high-diversity`. Currently supported values:
                                +   *
                                +   * * `no-diversity`
                                +   * * `low-diversity`
                                +   * * `medium-diversity`
                                +   * * `high-diversity`
                                +   * * `auto-diversity`
                                +   *
                                +   * If not specified, we choose default based on recommendation model
                                +   * type. Default value: `no-diversity`.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +   * 
                                + * + * string diversity_level = 5; + * + * @return The diversityLevel. + */ + @java.lang.Override + public java.lang.String getDiversityLevel() { + java.lang.Object ref = diversityLevel_; + 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(); + diversityLevel_ = s; + return s; + } + } + /** + * + * + *
                                +   * How much diversity to use in recommendation model results e.g.
                                +   * `medium-diversity` or `high-diversity`. Currently supported values:
                                +   *
                                +   * * `no-diversity`
                                +   * * `low-diversity`
                                +   * * `medium-diversity`
                                +   * * `high-diversity`
                                +   * * `auto-diversity`
                                +   *
                                +   * If not specified, we choose default based on recommendation model
                                +   * type. Default value: `no-diversity`.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +   * 
                                + * + * string diversity_level = 5; + * + * @return The bytes for diversityLevel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDiversityLevelBytes() { + java.lang.Object ref = diversityLevel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diversityLevel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMBEDDING_CONFIG_FIELD_NUMBER = 20; + private com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig embeddingConfig_; + /** + * + * + *
                                +   * Bring your own embedding config. The config is used for search semantic
                                +   * retrieval. The retrieval is based on the dot product of
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * and the document embeddings that are provided by this EmbeddingConfig. If
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * is provided, it overrides this
                                +   * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + * + * @return Whether the embeddingConfig field is set. + */ + @java.lang.Override + public boolean hasEmbeddingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * Bring your own embedding config. The config is used for search semantic
                                +   * retrieval. The retrieval is based on the dot product of
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * and the document embeddings that are provided by this EmbeddingConfig. If
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * is provided, it overrides this
                                +   * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + * + * @return The embeddingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig getEmbeddingConfig() { + return embeddingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.getDefaultInstance() + : embeddingConfig_; + } + /** + * + * + *
                                +   * Bring your own embedding config. The config is used for search semantic
                                +   * retrieval. The retrieval is based on the dot product of
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * and the document embeddings that are provided by this EmbeddingConfig. If
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * is provided, it overrides this
                                +   * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.EmbeddingConfigOrBuilder + getEmbeddingConfigOrBuilder() { + return embeddingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.getDefaultInstance() + : embeddingConfig_; + } + + public static final int RANKING_EXPRESSION_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private volatile java.lang.Object rankingExpression_ = ""; + /** + * + * + *
                                +   * The ranking expression controls the customized ranking on retrieval
                                +   * documents. To leverage this, document embedding is required. The ranking
                                +   * expression setting in ServingConfig applies to all search requests served
                                +   * by the serving config. However, if
                                +   * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1alpha.SearchRequest.ranking_expression]
                                +   * is specified, it overrides the ServingConfig ranking expression.
                                +   *
                                +   * The ranking expression is a single function or multiple functions that are
                                +   * joined by "+".
                                +   *   * ranking_expression = function, { " + ", function };
                                +   * Supported functions:
                                +   *   * double * relevance_score
                                +   *   * double * dotProduct(embedding_field_path)
                                +   * Function variables:
                                +   *   relevance_score: pre-defined keywords, used for measure relevance between
                                +   *   query and document.
                                +   *   embedding_field_path: the document embedding field
                                +   *   used with query embedding vector.
                                +   *   dotProduct: embedding function between embedding_field_path and query
                                +   *   embedding vector.
                                +   *
                                +   *  Example ranking expression:
                                +   *    If document has an embedding field doc_embedding, the ranking expression
                                +   *    could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding).
                                +   * 
                                + * + * string ranking_expression = 21; + * + * @return The rankingExpression. + */ + @java.lang.Override + public java.lang.String getRankingExpression() { + java.lang.Object ref = rankingExpression_; + 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(); + rankingExpression_ = s; + return s; + } + } + /** + * + * + *
                                +   * The ranking expression controls the customized ranking on retrieval
                                +   * documents. To leverage this, document embedding is required. The ranking
                                +   * expression setting in ServingConfig applies to all search requests served
                                +   * by the serving config. However, if
                                +   * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1alpha.SearchRequest.ranking_expression]
                                +   * is specified, it overrides the ServingConfig ranking expression.
                                +   *
                                +   * The ranking expression is a single function or multiple functions that are
                                +   * joined by "+".
                                +   *   * ranking_expression = function, { " + ", function };
                                +   * Supported functions:
                                +   *   * double * relevance_score
                                +   *   * double * dotProduct(embedding_field_path)
                                +   * Function variables:
                                +   *   relevance_score: pre-defined keywords, used for measure relevance between
                                +   *   query and document.
                                +   *   embedding_field_path: the document embedding field
                                +   *   used with query embedding vector.
                                +   *   dotProduct: embedding function between embedding_field_path and query
                                +   *   embedding vector.
                                +   *
                                +   *  Example ranking expression:
                                +   *    If document has an embedding field doc_embedding, the ranking expression
                                +   *    could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding).
                                +   * 
                                + * + * string ranking_expression = 21; + * + * @return The bytes for rankingExpression. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRankingExpressionBytes() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rankingExpression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GUIDED_SEARCH_SPEC_FIELD_NUMBER = 22; + private com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guidedSearchSpec_; + /** + * + * + *
                                +   * Guided search configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + * + * @return Whether the guidedSearchSpec field is set. + */ + @java.lang.Override + public boolean hasGuidedSearchSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +   * Guided search configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + * + * @return The guidedSearchSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec getGuidedSearchSpec() { + return guidedSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.getDefaultInstance() + : guidedSearchSpec_; + } + /** + * + * + *
                                +   * Guided search configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpecOrBuilder + getGuidedSearchSpecOrBuilder() { + return guidedSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.getDefaultInstance() + : guidedSearchSpec_; + } + + public static final int CUSTOM_FINE_TUNING_SPEC_FIELD_NUMBER = 24; + private com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec customFineTuningSpec_; + /** + * + * + *
                                +   * Custom fine tuning configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + * + * @return Whether the customFineTuningSpec field is set. + */ + @java.lang.Override + public boolean hasCustomFineTuningSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                                +   * Custom fine tuning configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + * + * @return The customFineTuningSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec getCustomFineTuningSpec() { + return customFineTuningSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.getDefaultInstance() + : customFineTuningSpec_; + } + /** + * + * + *
                                +   * Custom fine tuning configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpecOrBuilder + getCustomFineTuningSpecOrBuilder() { + return customFineTuningSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.getDefaultInstance() + : customFineTuningSpec_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
                                +   * Output only. ServingConfig created timestamp.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                +   * Output only. ServingConfig created timestamp.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
                                +   * Output only. ServingConfig created timestamp.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
                                +   * Output only. ServingConfig updated timestamp.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
                                +   * Output only. ServingConfig updated timestamp.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
                                +   * Output only. ServingConfig updated timestamp.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int FILTER_CONTROL_IDS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList filterControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
                                +   * Filter controls to use in serving path.
                                +   * All triggered filter controls will be applied.
                                +   * Filter controls must be in the same data store as the serving config.
                                +   * Maximum of 20 filter controls.
                                +   * 
                                + * + * repeated string filter_control_ids = 11; + * + * @return A list containing the filterControlIds. + */ + public com.google.protobuf.ProtocolStringList getFilterControlIdsList() { + return filterControlIds_; + } + /** + * + * + *
                                +   * Filter controls to use in serving path.
                                +   * All triggered filter controls will be applied.
                                +   * Filter controls must be in the same data store as the serving config.
                                +   * Maximum of 20 filter controls.
                                +   * 
                                + * + * repeated string filter_control_ids = 11; + * + * @return The count of filterControlIds. + */ + public int getFilterControlIdsCount() { + return filterControlIds_.size(); + } + /** + * + * + *
                                +   * Filter controls to use in serving path.
                                +   * All triggered filter controls will be applied.
                                +   * Filter controls must be in the same data store as the serving config.
                                +   * Maximum of 20 filter controls.
                                +   * 
                                + * + * repeated string filter_control_ids = 11; + * + * @param index The index of the element to return. + * @return The filterControlIds at the given index. + */ + public java.lang.String getFilterControlIds(int index) { + return filterControlIds_.get(index); + } + /** + * + * + *
                                +   * Filter controls to use in serving path.
                                +   * All triggered filter controls will be applied.
                                +   * Filter controls must be in the same data store as the serving config.
                                +   * Maximum of 20 filter controls.
                                +   * 
                                + * + * repeated string filter_control_ids = 11; + * + * @param index The index of the value to return. + * @return The bytes of the filterControlIds at the given index. + */ + public com.google.protobuf.ByteString getFilterControlIdsBytes(int index) { + return filterControlIds_.getByteString(index); + } + + public static final int BOOST_CONTROL_IDS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList boostControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
                                +   * Boost controls to use in serving path.
                                +   * All triggered boost controls will be applied.
                                +   * Boost controls must be in the same data store as the serving config.
                                +   * Maximum of 20 boost controls.
                                +   * 
                                + * + * repeated string boost_control_ids = 12; + * + * @return A list containing the boostControlIds. + */ + public com.google.protobuf.ProtocolStringList getBoostControlIdsList() { + return boostControlIds_; + } + /** + * + * + *
                                +   * Boost controls to use in serving path.
                                +   * All triggered boost controls will be applied.
                                +   * Boost controls must be in the same data store as the serving config.
                                +   * Maximum of 20 boost controls.
                                +   * 
                                + * + * repeated string boost_control_ids = 12; + * + * @return The count of boostControlIds. + */ + public int getBoostControlIdsCount() { + return boostControlIds_.size(); + } + /** + * + * + *
                                +   * Boost controls to use in serving path.
                                +   * All triggered boost controls will be applied.
                                +   * Boost controls must be in the same data store as the serving config.
                                +   * Maximum of 20 boost controls.
                                +   * 
                                + * + * repeated string boost_control_ids = 12; + * + * @param index The index of the element to return. + * @return The boostControlIds at the given index. + */ + public java.lang.String getBoostControlIds(int index) { + return boostControlIds_.get(index); + } + /** + * + * + *
                                +   * Boost controls to use in serving path.
                                +   * All triggered boost controls will be applied.
                                +   * Boost controls must be in the same data store as the serving config.
                                +   * Maximum of 20 boost controls.
                                +   * 
                                + * + * repeated string boost_control_ids = 12; + * + * @param index The index of the value to return. + * @return The bytes of the boostControlIds at the given index. + */ + public com.google.protobuf.ByteString getBoostControlIdsBytes(int index) { + return boostControlIds_.getByteString(index); + } + + public static final int REDIRECT_CONTROL_IDS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList redirectControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
                                +   * IDs of the redirect controls. Only the first triggered redirect
                                +   * action is applied, even if multiple apply. Maximum number of
                                +   * specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @return A list containing the redirectControlIds. + */ + public com.google.protobuf.ProtocolStringList getRedirectControlIdsList() { + return redirectControlIds_; + } + /** + * + * + *
                                +   * IDs of the redirect controls. Only the first triggered redirect
                                +   * action is applied, even if multiple apply. Maximum number of
                                +   * specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @return The count of redirectControlIds. + */ + public int getRedirectControlIdsCount() { + return redirectControlIds_.size(); + } + /** + * + * + *
                                +   * IDs of the redirect controls. Only the first triggered redirect
                                +   * action is applied, even if multiple apply. Maximum number of
                                +   * specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @param index The index of the element to return. + * @return The redirectControlIds at the given index. + */ + public java.lang.String getRedirectControlIds(int index) { + return redirectControlIds_.get(index); + } + /** + * + * + *
                                +   * IDs of the redirect controls. Only the first triggered redirect
                                +   * action is applied, even if multiple apply. Maximum number of
                                +   * specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @param index The index of the value to return. + * @return The bytes of the redirectControlIds at the given index. + */ + public com.google.protobuf.ByteString getRedirectControlIdsBytes(int index) { + return redirectControlIds_.getByteString(index); + } + + public static final int SYNONYMS_CONTROL_IDS_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList synonymsControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
                                +   * Condition synonyms specifications. If multiple synonyms conditions
                                +   * match, all matching synonyms controls in the list will execute.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @return A list containing the synonymsControlIds. + */ + public com.google.protobuf.ProtocolStringList getSynonymsControlIdsList() { + return synonymsControlIds_; + } + /** + * + * + *
                                +   * Condition synonyms specifications. If multiple synonyms conditions
                                +   * match, all matching synonyms controls in the list will execute.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @return The count of synonymsControlIds. + */ + public int getSynonymsControlIdsCount() { + return synonymsControlIds_.size(); + } + /** + * + * + *
                                +   * Condition synonyms specifications. If multiple synonyms conditions
                                +   * match, all matching synonyms controls in the list will execute.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @param index The index of the element to return. + * @return The synonymsControlIds at the given index. + */ + public java.lang.String getSynonymsControlIds(int index) { + return synonymsControlIds_.get(index); + } + /** + * + * + *
                                +   * Condition synonyms specifications. If multiple synonyms conditions
                                +   * match, all matching synonyms controls in the list will execute.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @param index The index of the value to return. + * @return The bytes of the synonymsControlIds at the given index. + */ + public com.google.protobuf.ByteString getSynonymsControlIdsBytes(int index) { + return synonymsControlIds_.getByteString(index); + } + + public static final int ONEWAY_SYNONYMS_CONTROL_IDS_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList onewaySynonymsControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
                                +   * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +   * conditions match, all matching oneway synonyms controls in the list
                                +   * will execute. Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @return A list containing the onewaySynonymsControlIds. + */ + public com.google.protobuf.ProtocolStringList getOnewaySynonymsControlIdsList() { + return onewaySynonymsControlIds_; + } + /** + * + * + *
                                +   * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +   * conditions match, all matching oneway synonyms controls in the list
                                +   * will execute. Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @return The count of onewaySynonymsControlIds. + */ + public int getOnewaySynonymsControlIdsCount() { + return onewaySynonymsControlIds_.size(); + } + /** + * + * + *
                                +   * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +   * conditions match, all matching oneway synonyms controls in the list
                                +   * will execute. Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @param index The index of the element to return. + * @return The onewaySynonymsControlIds at the given index. + */ + public java.lang.String getOnewaySynonymsControlIds(int index) { + return onewaySynonymsControlIds_.get(index); + } + /** + * + * + *
                                +   * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +   * conditions match, all matching oneway synonyms controls in the list
                                +   * will execute. Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @param index The index of the value to return. + * @return The bytes of the onewaySynonymsControlIds at the given index. + */ + public com.google.protobuf.ByteString getOnewaySynonymsControlIdsBytes(int index) { + return onewaySynonymsControlIds_.getByteString(index); + } + + public static final int DISSOCIATE_CONTROL_IDS_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList dissociateControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
                                +   * Condition do not associate specifications. If multiple do not
                                +   * associate conditions match, all matching do not associate controls in
                                +   * the list will execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @return A list containing the dissociateControlIds. + */ + public com.google.protobuf.ProtocolStringList getDissociateControlIdsList() { + return dissociateControlIds_; + } + /** + * + * + *
                                +   * Condition do not associate specifications. If multiple do not
                                +   * associate conditions match, all matching do not associate controls in
                                +   * the list will execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @return The count of dissociateControlIds. + */ + public int getDissociateControlIdsCount() { + return dissociateControlIds_.size(); + } + /** + * + * + *
                                +   * Condition do not associate specifications. If multiple do not
                                +   * associate conditions match, all matching do not associate controls in
                                +   * the list will execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @param index The index of the element to return. + * @return The dissociateControlIds at the given index. + */ + public java.lang.String getDissociateControlIds(int index) { + return dissociateControlIds_.get(index); + } + /** + * + * + *
                                +   * Condition do not associate specifications. If multiple do not
                                +   * associate conditions match, all matching do not associate controls in
                                +   * the list will execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @param index The index of the value to return. + * @return The bytes of the dissociateControlIds at the given index. + */ + public com.google.protobuf.ByteString getDissociateControlIdsBytes(int index) { + return dissociateControlIds_.getByteString(index); + } + + public static final int REPLACEMENT_CONTROL_IDS_FIELD_NUMBER = 18; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList replacementControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
                                +   * Condition replacement specifications.
                                +   * Applied according to the order in the list.
                                +   * A previously replaced term can not be re-replaced.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @return A list containing the replacementControlIds. + */ + public com.google.protobuf.ProtocolStringList getReplacementControlIdsList() { + return replacementControlIds_; + } + /** + * + * + *
                                +   * Condition replacement specifications.
                                +   * Applied according to the order in the list.
                                +   * A previously replaced term can not be re-replaced.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @return The count of replacementControlIds. + */ + public int getReplacementControlIdsCount() { + return replacementControlIds_.size(); + } + /** + * + * + *
                                +   * Condition replacement specifications.
                                +   * Applied according to the order in the list.
                                +   * A previously replaced term can not be re-replaced.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @param index The index of the element to return. + * @return The replacementControlIds at the given index. + */ + public java.lang.String getReplacementControlIds(int index) { + return replacementControlIds_.get(index); + } + /** + * + * + *
                                +   * Condition replacement specifications.
                                +   * Applied according to the order in the list.
                                +   * A previously replaced term can not be re-replaced.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @param index The index of the value to return. + * @return The bytes of the replacementControlIds at the given index. + */ + public com.google.protobuf.ByteString getReplacementControlIdsBytes(int index) { + return replacementControlIds_.getByteString(index); + } + + public static final int IGNORE_CONTROL_IDS_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList ignoreControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
                                +   * Condition ignore specifications. If multiple ignore
                                +   * conditions match, all matching ignore controls in the list will
                                +   * execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @return A list containing the ignoreControlIds. + */ + public com.google.protobuf.ProtocolStringList getIgnoreControlIdsList() { + return ignoreControlIds_; + } + /** + * + * + *
                                +   * Condition ignore specifications. If multiple ignore
                                +   * conditions match, all matching ignore controls in the list will
                                +   * execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @return The count of ignoreControlIds. + */ + public int getIgnoreControlIdsCount() { + return ignoreControlIds_.size(); + } + /** + * + * + *
                                +   * Condition ignore specifications. If multiple ignore
                                +   * conditions match, all matching ignore controls in the list will
                                +   * execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @param index The index of the element to return. + * @return The ignoreControlIds at the given index. + */ + public java.lang.String getIgnoreControlIds(int index) { + return ignoreControlIds_.get(index); + } + /** + * + * + *
                                +   * Condition ignore specifications. If multiple ignore
                                +   * conditions match, all matching ignore controls in the list will
                                +   * execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @param index The index of the value to return. + * @return The bytes of the ignoreControlIds at the given index. + */ + public com.google.protobuf.ByteString getIgnoreControlIdsBytes(int index) { + return ignoreControlIds_.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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (solutionType_ + != com.google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, solutionType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, modelId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diversityLevel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, diversityLevel_); + } + if (verticalConfigCase_ == 7) { + output.writeMessage( + 7, (com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig) verticalConfig_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(8, getCreateTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(9, getUpdateTime()); + } + if (verticalConfigCase_ == 10) { + output.writeMessage( + 10, + (com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig) verticalConfig_); + } + for (int i = 0; i < filterControlIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, filterControlIds_.getRaw(i)); + } + for (int i = 0; i < boostControlIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, boostControlIds_.getRaw(i)); + } + for (int i = 0; i < redirectControlIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, redirectControlIds_.getRaw(i)); + } + for (int i = 0; i < synonymsControlIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, synonymsControlIds_.getRaw(i)); + } + for (int i = 0; i < onewaySynonymsControlIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 16, onewaySynonymsControlIds_.getRaw(i)); + } + for (int i = 0; i < dissociateControlIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 17, dissociateControlIds_.getRaw(i)); + } + for (int i = 0; i < replacementControlIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 18, replacementControlIds_.getRaw(i)); + } + for (int i = 0; i < ignoreControlIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, ignoreControlIds_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(20, getEmbeddingConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rankingExpression_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 21, rankingExpression_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(22, getGuidedSearchSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(24, getCustomFineTuningSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (solutionType_ + != com.google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, solutionType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, modelId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diversityLevel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, diversityLevel_); + } + if (verticalConfigCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig) verticalConfig_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); + } + if (verticalConfigCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, + (com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig) + verticalConfig_); + } + { + int dataSize = 0; + for (int i = 0; i < filterControlIds_.size(); i++) { + dataSize += computeStringSizeNoTag(filterControlIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getFilterControlIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < boostControlIds_.size(); i++) { + dataSize += computeStringSizeNoTag(boostControlIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getBoostControlIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < redirectControlIds_.size(); i++) { + dataSize += computeStringSizeNoTag(redirectControlIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getRedirectControlIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < synonymsControlIds_.size(); i++) { + dataSize += computeStringSizeNoTag(synonymsControlIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getSynonymsControlIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < onewaySynonymsControlIds_.size(); i++) { + dataSize += computeStringSizeNoTag(onewaySynonymsControlIds_.getRaw(i)); + } + size += dataSize; + size += 2 * getOnewaySynonymsControlIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < dissociateControlIds_.size(); i++) { + dataSize += computeStringSizeNoTag(dissociateControlIds_.getRaw(i)); + } + size += dataSize; + size += 2 * getDissociateControlIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < replacementControlIds_.size(); i++) { + dataSize += computeStringSizeNoTag(replacementControlIds_.getRaw(i)); + } + size += dataSize; + size += 2 * getReplacementControlIdsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < ignoreControlIds_.size(); i++) { + dataSize += computeStringSizeNoTag(ignoreControlIds_.getRaw(i)); + } + size += dataSize; + size += 2 * getIgnoreControlIdsList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getEmbeddingConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rankingExpression_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, rankingExpression_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getGuidedSearchSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(24, getCustomFineTuningSpec()); + } + 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.discoveryengine.v1alpha.ServingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.ServingConfig other = + (com.google.cloud.discoveryengine.v1alpha.ServingConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (solutionType_ != other.solutionType_) return false; + if (!getModelId().equals(other.getModelId())) return false; + if (!getDiversityLevel().equals(other.getDiversityLevel())) return false; + if (hasEmbeddingConfig() != other.hasEmbeddingConfig()) return false; + if (hasEmbeddingConfig()) { + if (!getEmbeddingConfig().equals(other.getEmbeddingConfig())) return false; + } + if (!getRankingExpression().equals(other.getRankingExpression())) return false; + if (hasGuidedSearchSpec() != other.hasGuidedSearchSpec()) return false; + if (hasGuidedSearchSpec()) { + if (!getGuidedSearchSpec().equals(other.getGuidedSearchSpec())) return false; + } + if (hasCustomFineTuningSpec() != other.hasCustomFineTuningSpec()) return false; + if (hasCustomFineTuningSpec()) { + if (!getCustomFineTuningSpec().equals(other.getCustomFineTuningSpec())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getFilterControlIdsList().equals(other.getFilterControlIdsList())) return false; + if (!getBoostControlIdsList().equals(other.getBoostControlIdsList())) return false; + if (!getRedirectControlIdsList().equals(other.getRedirectControlIdsList())) return false; + if (!getSynonymsControlIdsList().equals(other.getSynonymsControlIdsList())) return false; + if (!getOnewaySynonymsControlIdsList().equals(other.getOnewaySynonymsControlIdsList())) + return false; + if (!getDissociateControlIdsList().equals(other.getDissociateControlIdsList())) return false; + if (!getReplacementControlIdsList().equals(other.getReplacementControlIdsList())) return false; + if (!getIgnoreControlIdsList().equals(other.getIgnoreControlIdsList())) return false; + if (!getVerticalConfigCase().equals(other.getVerticalConfigCase())) return false; + switch (verticalConfigCase_) { + case 7: + if (!getMediaConfig().equals(other.getMediaConfig())) return false; + break; + case 10: + if (!getGenericConfig().equals(other.getGenericConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + SOLUTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + solutionType_; + hash = (37 * hash) + MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelId().hashCode(); + hash = (37 * hash) + DIVERSITY_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getDiversityLevel().hashCode(); + if (hasEmbeddingConfig()) { + hash = (37 * hash) + EMBEDDING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEmbeddingConfig().hashCode(); + } + hash = (37 * hash) + RANKING_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getRankingExpression().hashCode(); + if (hasGuidedSearchSpec()) { + hash = (37 * hash) + GUIDED_SEARCH_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getGuidedSearchSpec().hashCode(); + } + if (hasCustomFineTuningSpec()) { + hash = (37 * hash) + CUSTOM_FINE_TUNING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getCustomFineTuningSpec().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (getFilterControlIdsCount() > 0) { + hash = (37 * hash) + FILTER_CONTROL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getFilterControlIdsList().hashCode(); + } + if (getBoostControlIdsCount() > 0) { + hash = (37 * hash) + BOOST_CONTROL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getBoostControlIdsList().hashCode(); + } + if (getRedirectControlIdsCount() > 0) { + hash = (37 * hash) + REDIRECT_CONTROL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getRedirectControlIdsList().hashCode(); + } + if (getSynonymsControlIdsCount() > 0) { + hash = (37 * hash) + SYNONYMS_CONTROL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getSynonymsControlIdsList().hashCode(); + } + if (getOnewaySynonymsControlIdsCount() > 0) { + hash = (37 * hash) + ONEWAY_SYNONYMS_CONTROL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getOnewaySynonymsControlIdsList().hashCode(); + } + if (getDissociateControlIdsCount() > 0) { + hash = (37 * hash) + DISSOCIATE_CONTROL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getDissociateControlIdsList().hashCode(); + } + if (getReplacementControlIdsCount() > 0) { + hash = (37 * hash) + REPLACEMENT_CONTROL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getReplacementControlIdsList().hashCode(); + } + if (getIgnoreControlIdsCount() > 0) { + hash = (37 * hash) + IGNORE_CONTROL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getIgnoreControlIdsList().hashCode(); + } + switch (verticalConfigCase_) { + case 7: + hash = (37 * hash) + MEDIA_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMediaConfig().hashCode(); + break; + case 10: + hash = (37 * hash) + GENERIC_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGenericConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig 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.discoveryengine.v1alpha.ServingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig 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.discoveryengine.v1alpha.ServingConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig 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.discoveryengine.v1alpha.ServingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig 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.discoveryengine.v1alpha.ServingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig 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.discoveryengine.v1alpha.ServingConfig 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; + } + /** + * + * + *
                                +   * Configures metadata that is used to generate serving time results (e.g.
                                +   * search results or recommendation predictions).
                                +   * The ServingConfig is passed in the search and predict request and generates
                                +   * results.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.ServingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.ServingConfig) + com.google.cloud.discoveryengine.v1alpha.ServingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.class, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.ServingConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEmbeddingConfigFieldBuilder(); + getGuidedSearchSpecFieldBuilder(); + getCustomFineTuningSpecFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mediaConfigBuilder_ != null) { + mediaConfigBuilder_.clear(); + } + if (genericConfigBuilder_ != null) { + genericConfigBuilder_.clear(); + } + name_ = ""; + displayName_ = ""; + solutionType_ = 0; + modelId_ = ""; + diversityLevel_ = ""; + embeddingConfig_ = null; + if (embeddingConfigBuilder_ != null) { + embeddingConfigBuilder_.dispose(); + embeddingConfigBuilder_ = null; + } + rankingExpression_ = ""; + guidedSearchSpec_ = null; + if (guidedSearchSpecBuilder_ != null) { + guidedSearchSpecBuilder_.dispose(); + guidedSearchSpecBuilder_ = null; + } + customFineTuningSpec_ = null; + if (customFineTuningSpecBuilder_ != null) { + customFineTuningSpecBuilder_.dispose(); + customFineTuningSpecBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + filterControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + boostControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + redirectControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + synonymsControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + onewaySynonymsControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dissociateControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + replacementControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ignoreControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + verticalConfigCase_ = 0; + verticalConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig build() { + com.google.cloud.discoveryengine.v1alpha.ServingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig buildPartial() { + com.google.cloud.discoveryengine.v1alpha.ServingConfig result = + new com.google.cloud.discoveryengine.v1alpha.ServingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1alpha.ServingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.solutionType_ = solutionType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.modelId_ = modelId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.diversityLevel_ = diversityLevel_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.embeddingConfig_ = + embeddingConfigBuilder_ == null ? embeddingConfig_ : embeddingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.rankingExpression_ = rankingExpression_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.guidedSearchSpec_ = + guidedSearchSpecBuilder_ == null ? guidedSearchSpec_ : guidedSearchSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.customFineTuningSpec_ = + customFineTuningSpecBuilder_ == null + ? customFineTuningSpec_ + : customFineTuningSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + filterControlIds_.makeImmutable(); + result.filterControlIds_ = filterControlIds_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + boostControlIds_.makeImmutable(); + result.boostControlIds_ = boostControlIds_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + redirectControlIds_.makeImmutable(); + result.redirectControlIds_ = redirectControlIds_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + synonymsControlIds_.makeImmutable(); + result.synonymsControlIds_ = synonymsControlIds_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + onewaySynonymsControlIds_.makeImmutable(); + result.onewaySynonymsControlIds_ = onewaySynonymsControlIds_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + dissociateControlIds_.makeImmutable(); + result.dissociateControlIds_ = dissociateControlIds_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + replacementControlIds_.makeImmutable(); + result.replacementControlIds_ = replacementControlIds_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + ignoreControlIds_.makeImmutable(); + result.ignoreControlIds_ = ignoreControlIds_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1alpha.ServingConfig result) { + result.verticalConfigCase_ = verticalConfigCase_; + result.verticalConfig_ = this.verticalConfig_; + if (verticalConfigCase_ == 7 && mediaConfigBuilder_ != null) { + result.verticalConfig_ = mediaConfigBuilder_.build(); + } + if (verticalConfigCase_ == 10 && genericConfigBuilder_ != null) { + result.verticalConfig_ = genericConfigBuilder_.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.discoveryengine.v1alpha.ServingConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.ServingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.ServingConfig other) { + if (other == com.google.cloud.discoveryengine.v1alpha.ServingConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.solutionType_ != 0) { + setSolutionTypeValue(other.getSolutionTypeValue()); + } + if (!other.getModelId().isEmpty()) { + modelId_ = other.modelId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getDiversityLevel().isEmpty()) { + diversityLevel_ = other.diversityLevel_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasEmbeddingConfig()) { + mergeEmbeddingConfig(other.getEmbeddingConfig()); + } + if (!other.getRankingExpression().isEmpty()) { + rankingExpression_ = other.rankingExpression_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasGuidedSearchSpec()) { + mergeGuidedSearchSpec(other.getGuidedSearchSpec()); + } + if (other.hasCustomFineTuningSpec()) { + mergeCustomFineTuningSpec(other.getCustomFineTuningSpec()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.filterControlIds_.isEmpty()) { + if (filterControlIds_.isEmpty()) { + filterControlIds_ = other.filterControlIds_; + bitField0_ |= 0x00002000; + } else { + ensureFilterControlIdsIsMutable(); + filterControlIds_.addAll(other.filterControlIds_); + } + onChanged(); + } + if (!other.boostControlIds_.isEmpty()) { + if (boostControlIds_.isEmpty()) { + boostControlIds_ = other.boostControlIds_; + bitField0_ |= 0x00004000; + } else { + ensureBoostControlIdsIsMutable(); + boostControlIds_.addAll(other.boostControlIds_); + } + onChanged(); + } + if (!other.redirectControlIds_.isEmpty()) { + if (redirectControlIds_.isEmpty()) { + redirectControlIds_ = other.redirectControlIds_; + bitField0_ |= 0x00008000; + } else { + ensureRedirectControlIdsIsMutable(); + redirectControlIds_.addAll(other.redirectControlIds_); + } + onChanged(); + } + if (!other.synonymsControlIds_.isEmpty()) { + if (synonymsControlIds_.isEmpty()) { + synonymsControlIds_ = other.synonymsControlIds_; + bitField0_ |= 0x00010000; + } else { + ensureSynonymsControlIdsIsMutable(); + synonymsControlIds_.addAll(other.synonymsControlIds_); + } + onChanged(); + } + if (!other.onewaySynonymsControlIds_.isEmpty()) { + if (onewaySynonymsControlIds_.isEmpty()) { + onewaySynonymsControlIds_ = other.onewaySynonymsControlIds_; + bitField0_ |= 0x00020000; + } else { + ensureOnewaySynonymsControlIdsIsMutable(); + onewaySynonymsControlIds_.addAll(other.onewaySynonymsControlIds_); + } + onChanged(); + } + if (!other.dissociateControlIds_.isEmpty()) { + if (dissociateControlIds_.isEmpty()) { + dissociateControlIds_ = other.dissociateControlIds_; + bitField0_ |= 0x00040000; + } else { + ensureDissociateControlIdsIsMutable(); + dissociateControlIds_.addAll(other.dissociateControlIds_); + } + onChanged(); + } + if (!other.replacementControlIds_.isEmpty()) { + if (replacementControlIds_.isEmpty()) { + replacementControlIds_ = other.replacementControlIds_; + bitField0_ |= 0x00080000; + } else { + ensureReplacementControlIdsIsMutable(); + replacementControlIds_.addAll(other.replacementControlIds_); + } + onChanged(); + } + if (!other.ignoreControlIds_.isEmpty()) { + if (ignoreControlIds_.isEmpty()) { + ignoreControlIds_ = other.ignoreControlIds_; + bitField0_ |= 0x00100000; + } else { + ensureIgnoreControlIdsIsMutable(); + ignoreControlIds_.addAll(other.ignoreControlIds_); + } + onChanged(); + } + switch (other.getVerticalConfigCase()) { + case MEDIA_CONFIG: + { + mergeMediaConfig(other.getMediaConfig()); + break; + } + case GENERIC_CONFIG: + { + mergeGenericConfig(other.getGenericConfig()); + break; + } + case VERTICALCONFIG_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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 24: + { + solutionType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 24 + case 34: + { + modelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + diversityLevel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 58: + { + input.readMessage(getMediaConfigFieldBuilder().getBuilder(), extensionRegistry); + verticalConfigCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 66 + case 74: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 74 + case 82: + { + input.readMessage(getGenericConfigFieldBuilder().getBuilder(), extensionRegistry); + verticalConfigCase_ = 10; + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFilterControlIdsIsMutable(); + filterControlIds_.add(s); + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureBoostControlIdsIsMutable(); + boostControlIds_.add(s); + break; + } // case 98 + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRedirectControlIdsIsMutable(); + redirectControlIds_.add(s); + break; + } // case 114 + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSynonymsControlIdsIsMutable(); + synonymsControlIds_.add(s); + break; + } // case 122 + case 130: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureOnewaySynonymsControlIdsIsMutable(); + onewaySynonymsControlIds_.add(s); + break; + } // case 130 + case 138: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDissociateControlIdsIsMutable(); + dissociateControlIds_.add(s); + break; + } // case 138 + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureReplacementControlIdsIsMutable(); + replacementControlIds_.add(s); + break; + } // case 146 + case 154: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIgnoreControlIdsIsMutable(); + ignoreControlIds_.add(s); + break; + } // case 154 + case 162: + { + input.readMessage(getEmbeddingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 162 + case 170: + { + rankingExpression_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 170 + case 178: + { + input.readMessage( + getGuidedSearchSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 178 + case 194: + { + input.readMessage( + getCustomFineTuningSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 194 + 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 verticalConfigCase_ = 0; + private java.lang.Object verticalConfig_; + + public VerticalConfigCase getVerticalConfigCase() { + return VerticalConfigCase.forNumber(verticalConfigCase_); + } + + public Builder clearVerticalConfig() { + verticalConfigCase_ = 0; + verticalConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfigOrBuilder> + mediaConfigBuilder_; + /** + * + * + *
                                +     * The MediaConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + * + * + * @return Whether the mediaConfig field is set. + */ + @java.lang.Override + public boolean hasMediaConfig() { + return verticalConfigCase_ == 7; + } + /** + * + * + *
                                +     * The MediaConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + * + * + * @return The mediaConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig getMediaConfig() { + if (mediaConfigBuilder_ == null) { + if (verticalConfigCase_ == 7) { + return (com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig) + verticalConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig + .getDefaultInstance(); + } else { + if (verticalConfigCase_ == 7) { + return mediaConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig + .getDefaultInstance(); + } + } + /** + * + * + *
                                +     * The MediaConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + * + */ + public Builder setMediaConfig( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig value) { + if (mediaConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + verticalConfig_ = value; + onChanged(); + } else { + mediaConfigBuilder_.setMessage(value); + } + verticalConfigCase_ = 7; + return this; + } + /** + * + * + *
                                +     * The MediaConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + * + */ + public Builder setMediaConfig( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig.Builder + builderForValue) { + if (mediaConfigBuilder_ == null) { + verticalConfig_ = builderForValue.build(); + onChanged(); + } else { + mediaConfigBuilder_.setMessage(builderForValue.build()); + } + verticalConfigCase_ = 7; + return this; + } + /** + * + * + *
                                +     * The MediaConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + * + */ + public Builder mergeMediaConfig( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig value) { + if (mediaConfigBuilder_ == null) { + if (verticalConfigCase_ == 7 + && verticalConfig_ + != com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig + .getDefaultInstance()) { + verticalConfig_ = + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig.newBuilder( + (com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig) + verticalConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + verticalConfig_ = value; + } + onChanged(); + } else { + if (verticalConfigCase_ == 7) { + mediaConfigBuilder_.mergeFrom(value); + } else { + mediaConfigBuilder_.setMessage(value); + } + } + verticalConfigCase_ = 7; + return this; + } + /** + * + * + *
                                +     * The MediaConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + * + */ + public Builder clearMediaConfig() { + if (mediaConfigBuilder_ == null) { + if (verticalConfigCase_ == 7) { + verticalConfigCase_ = 0; + verticalConfig_ = null; + onChanged(); + } + } else { + if (verticalConfigCase_ == 7) { + verticalConfigCase_ = 0; + verticalConfig_ = null; + } + mediaConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +     * The MediaConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig.Builder + getMediaConfigBuilder() { + return getMediaConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * The MediaConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfigOrBuilder + getMediaConfigOrBuilder() { + if ((verticalConfigCase_ == 7) && (mediaConfigBuilder_ != null)) { + return mediaConfigBuilder_.getMessageOrBuilder(); + } else { + if (verticalConfigCase_ == 7) { + return (com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig) + verticalConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig + .getDefaultInstance(); + } + } + /** + * + * + *
                                +     * The MediaConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfigOrBuilder> + getMediaConfigFieldBuilder() { + if (mediaConfigBuilder_ == null) { + if (!(verticalConfigCase_ == 7)) { + verticalConfig_ = + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig + .getDefaultInstance(); + } + mediaConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig) + verticalConfig_, + getParentForChildren(), + isClean()); + verticalConfig_ = null; + } + verticalConfigCase_ = 7; + onChanged(); + return mediaConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfigOrBuilder> + genericConfigBuilder_; + /** + * + * + *
                                +     * The GenericConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + * + * @return Whether the genericConfig field is set. + */ + @java.lang.Override + public boolean hasGenericConfig() { + return verticalConfigCase_ == 10; + } + /** + * + * + *
                                +     * The GenericConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + * + * @return The genericConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig getGenericConfig() { + if (genericConfigBuilder_ == null) { + if (verticalConfigCase_ == 10) { + return (com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig) + verticalConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig + .getDefaultInstance(); + } else { + if (verticalConfigCase_ == 10) { + return genericConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig + .getDefaultInstance(); + } + } + /** + * + * + *
                                +     * The GenericConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + */ + public Builder setGenericConfig( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig value) { + if (genericConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + verticalConfig_ = value; + onChanged(); + } else { + genericConfigBuilder_.setMessage(value); + } + verticalConfigCase_ = 10; + return this; + } + /** + * + * + *
                                +     * The GenericConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + */ + public Builder setGenericConfig( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig.Builder + builderForValue) { + if (genericConfigBuilder_ == null) { + verticalConfig_ = builderForValue.build(); + onChanged(); + } else { + genericConfigBuilder_.setMessage(builderForValue.build()); + } + verticalConfigCase_ = 10; + return this; + } + /** + * + * + *
                                +     * The GenericConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + */ + public Builder mergeGenericConfig( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig value) { + if (genericConfigBuilder_ == null) { + if (verticalConfigCase_ == 10 + && verticalConfig_ + != com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig + .getDefaultInstance()) { + verticalConfig_ = + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig.newBuilder( + (com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig) + verticalConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + verticalConfig_ = value; + } + onChanged(); + } else { + if (verticalConfigCase_ == 10) { + genericConfigBuilder_.mergeFrom(value); + } else { + genericConfigBuilder_.setMessage(value); + } + } + verticalConfigCase_ = 10; + return this; + } + /** + * + * + *
                                +     * The GenericConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + */ + public Builder clearGenericConfig() { + if (genericConfigBuilder_ == null) { + if (verticalConfigCase_ == 10) { + verticalConfigCase_ = 0; + verticalConfig_ = null; + onChanged(); + } + } else { + if (verticalConfigCase_ == 10) { + verticalConfigCase_ = 0; + verticalConfig_ = null; + } + genericConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +     * The GenericConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig.Builder + getGenericConfigBuilder() { + return getGenericConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * The GenericConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfigOrBuilder + getGenericConfigOrBuilder() { + if ((verticalConfigCase_ == 10) && (genericConfigBuilder_ != null)) { + return genericConfigBuilder_.getMessageOrBuilder(); + } else { + if (verticalConfigCase_ == 10) { + return (com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig) + verticalConfig_; + } + return com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig + .getDefaultInstance(); + } + } + /** + * + * + *
                                +     * The GenericConfig of the serving configuration.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfigOrBuilder> + getGenericConfigFieldBuilder() { + if (genericConfigBuilder_ == null) { + if (!(verticalConfigCase_ == 10)) { + verticalConfig_ = + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig + .getDefaultInstance(); + } + genericConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig) + verticalConfig_, + getParentForChildren(), + isClean()); + verticalConfig_ = null; + } + verticalConfigCase_ = 10; + onChanged(); + return genericConfigBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
                                +     * Immutable. Fully qualified name
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                +     * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Immutable. Fully qualified name
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                +     * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Immutable. Fully qualified name
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                +     * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Immutable. Fully qualified name
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                +     * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Immutable. Fully qualified name
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                +     * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
                                +     * Required. The human readable serving config display name. Used in Discovery
                                +     * UI.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 128
                                +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
                                +     * 
                                + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
                                +     * Required. The human readable serving config display name. Used in Discovery
                                +     * UI.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 128
                                +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
                                +     * 
                                + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
                                +     * Required. The human readable serving config display name. Used in Discovery
                                +     * UI.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 128
                                +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
                                +     * 
                                + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The human readable serving config display name. Used in Discovery
                                +     * UI.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 128
                                +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
                                +     * 
                                + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The human readable serving config display name. Used in Discovery
                                +     * UI.
                                +     *
                                +     * This field must be a UTF-8 encoded string with a length limit of 128
                                +     * characters. Otherwise, an INVALID_ARGUMENT error is returned.
                                +     * 
                                + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int solutionType_ = 0; + /** + * + * + *
                                +     * Required. Immutable. Specifies the solution type that a serving config can
                                +     * be associated with.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SolutionType solution_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for solutionType. + */ + @java.lang.Override + public int getSolutionTypeValue() { + return solutionType_; + } + /** + * + * + *
                                +     * Required. Immutable. Specifies the solution type that a serving config can
                                +     * be associated with.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SolutionType solution_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for solutionType to set. + * @return This builder for chaining. + */ + public Builder setSolutionTypeValue(int value) { + solutionType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. Immutable. Specifies the solution type that a serving config can
                                +     * be associated with.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SolutionType solution_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The solutionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SolutionType getSolutionType() { + com.google.cloud.discoveryengine.v1alpha.SolutionType result = + com.google.cloud.discoveryengine.v1alpha.SolutionType.forNumber(solutionType_); + return result == null + ? com.google.cloud.discoveryengine.v1alpha.SolutionType.UNRECOGNIZED + : result; + } + /** + * + * + *
                                +     * Required. Immutable. Specifies the solution type that a serving config can
                                +     * be associated with.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SolutionType solution_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The solutionType to set. + * @return This builder for chaining. + */ + public Builder setSolutionType(com.google.cloud.discoveryengine.v1alpha.SolutionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + solutionType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. Immutable. Specifies the solution type that a serving config can
                                +     * be associated with.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SolutionType solution_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearSolutionType() { + bitField0_ = (bitField0_ & ~0x00000010); + solutionType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object modelId_ = ""; + /** + * + * + *
                                +     * The id of the model to use at serving time.
                                +     * Currently only RecommendationModels are supported.
                                +     * Can be changed but only to a compatible model (e.g.
                                +     * others-you-may-like CTR to others-you-may-like CVR).
                                +     *
                                +     * Required when
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +     * 
                                + * + * string model_id = 4; + * + * @return The modelId. + */ + public java.lang.String getModelId() { + java.lang.Object ref = modelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * The id of the model to use at serving time.
                                +     * Currently only RecommendationModels are supported.
                                +     * Can be changed but only to a compatible model (e.g.
                                +     * others-you-may-like CTR to others-you-may-like CVR).
                                +     *
                                +     * Required when
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +     * 
                                + * + * string model_id = 4; + * + * @return The bytes for modelId. + */ + public com.google.protobuf.ByteString getModelIdBytes() { + java.lang.Object ref = modelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * The id of the model to use at serving time.
                                +     * Currently only RecommendationModels are supported.
                                +     * Can be changed but only to a compatible model (e.g.
                                +     * others-you-may-like CTR to others-you-may-like CVR).
                                +     *
                                +     * Required when
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +     * 
                                + * + * string model_id = 4; + * + * @param value The modelId to set. + * @return This builder for chaining. + */ + public Builder setModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                                +     * The id of the model to use at serving time.
                                +     * Currently only RecommendationModels are supported.
                                +     * Can be changed but only to a compatible model (e.g.
                                +     * others-you-may-like CTR to others-you-may-like CVR).
                                +     *
                                +     * Required when
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +     * 
                                + * + * string model_id = 4; + * + * @return This builder for chaining. + */ + public Builder clearModelId() { + modelId_ = getDefaultInstance().getModelId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
                                +     * The id of the model to use at serving time.
                                +     * Currently only RecommendationModels are supported.
                                +     * Can be changed but only to a compatible model (e.g.
                                +     * others-you-may-like CTR to others-you-may-like CVR).
                                +     *
                                +     * Required when
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +     * 
                                + * + * string model_id = 4; + * + * @param value The bytes for modelId to set. + * @return This builder for chaining. + */ + public Builder setModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object diversityLevel_ = ""; + /** + * + * + *
                                +     * How much diversity to use in recommendation model results e.g.
                                +     * `medium-diversity` or `high-diversity`. Currently supported values:
                                +     *
                                +     * * `no-diversity`
                                +     * * `low-diversity`
                                +     * * `medium-diversity`
                                +     * * `high-diversity`
                                +     * * `auto-diversity`
                                +     *
                                +     * If not specified, we choose default based on recommendation model
                                +     * type. Default value: `no-diversity`.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +     * 
                                + * + * string diversity_level = 5; + * + * @return The diversityLevel. + */ + public java.lang.String getDiversityLevel() { + java.lang.Object ref = diversityLevel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + diversityLevel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * How much diversity to use in recommendation model results e.g.
                                +     * `medium-diversity` or `high-diversity`. Currently supported values:
                                +     *
                                +     * * `no-diversity`
                                +     * * `low-diversity`
                                +     * * `medium-diversity`
                                +     * * `high-diversity`
                                +     * * `auto-diversity`
                                +     *
                                +     * If not specified, we choose default based on recommendation model
                                +     * type. Default value: `no-diversity`.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +     * 
                                + * + * string diversity_level = 5; + * + * @return The bytes for diversityLevel. + */ + public com.google.protobuf.ByteString getDiversityLevelBytes() { + java.lang.Object ref = diversityLevel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + diversityLevel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * How much diversity to use in recommendation model results e.g.
                                +     * `medium-diversity` or `high-diversity`. Currently supported values:
                                +     *
                                +     * * `no-diversity`
                                +     * * `low-diversity`
                                +     * * `medium-diversity`
                                +     * * `high-diversity`
                                +     * * `auto-diversity`
                                +     *
                                +     * If not specified, we choose default based on recommendation model
                                +     * type. Default value: `no-diversity`.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +     * 
                                + * + * string diversity_level = 5; + * + * @param value The diversityLevel to set. + * @return This builder for chaining. + */ + public Builder setDiversityLevel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + diversityLevel_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
                                +     * How much diversity to use in recommendation model results e.g.
                                +     * `medium-diversity` or `high-diversity`. Currently supported values:
                                +     *
                                +     * * `no-diversity`
                                +     * * `low-diversity`
                                +     * * `medium-diversity`
                                +     * * `high-diversity`
                                +     * * `auto-diversity`
                                +     *
                                +     * If not specified, we choose default based on recommendation model
                                +     * type. Default value: `no-diversity`.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +     * 
                                + * + * string diversity_level = 5; + * + * @return This builder for chaining. + */ + public Builder clearDiversityLevel() { + diversityLevel_ = getDefaultInstance().getDiversityLevel(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
                                +     * How much diversity to use in recommendation model results e.g.
                                +     * `medium-diversity` or `high-diversity`. Currently supported values:
                                +     *
                                +     * * `no-diversity`
                                +     * * `low-diversity`
                                +     * * `medium-diversity`
                                +     * * `high-diversity`
                                +     * * `auto-diversity`
                                +     *
                                +     * If not specified, we choose default based on recommendation model
                                +     * type. Default value: `no-diversity`.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +     * 
                                + * + * string diversity_level = 5; + * + * @param value The bytes for diversityLevel to set. + * @return This builder for chaining. + */ + public Builder setDiversityLevelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + diversityLevel_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig embeddingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig, + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfigOrBuilder> + embeddingConfigBuilder_; + /** + * + * + *
                                +     * Bring your own embedding config. The config is used for search semantic
                                +     * retrieval. The retrieval is based on the dot product of
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embeddings that are provided by this EmbeddingConfig. If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * is provided, it overrides this
                                +     * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + * + * @return Whether the embeddingConfig field is set. + */ + public boolean hasEmbeddingConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
                                +     * Bring your own embedding config. The config is used for search semantic
                                +     * retrieval. The retrieval is based on the dot product of
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embeddings that are provided by this EmbeddingConfig. If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * is provided, it overrides this
                                +     * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + * + * @return The embeddingConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig getEmbeddingConfig() { + if (embeddingConfigBuilder_ == null) { + return embeddingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.getDefaultInstance() + : embeddingConfig_; + } else { + return embeddingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Bring your own embedding config. The config is used for search semantic
                                +     * retrieval. The retrieval is based on the dot product of
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embeddings that are provided by this EmbeddingConfig. If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * is provided, it overrides this
                                +     * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + */ + public Builder setEmbeddingConfig( + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig value) { + if (embeddingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + embeddingConfig_ = value; + } else { + embeddingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Bring your own embedding config. The config is used for search semantic
                                +     * retrieval. The retrieval is based on the dot product of
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embeddings that are provided by this EmbeddingConfig. If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * is provided, it overrides this
                                +     * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + */ + public Builder setEmbeddingConfig( + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.Builder builderForValue) { + if (embeddingConfigBuilder_ == null) { + embeddingConfig_ = builderForValue.build(); + } else { + embeddingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Bring your own embedding config. The config is used for search semantic
                                +     * retrieval. The retrieval is based on the dot product of
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embeddings that are provided by this EmbeddingConfig. If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * is provided, it overrides this
                                +     * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + */ + public Builder mergeEmbeddingConfig( + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig value) { + if (embeddingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && embeddingConfig_ != null + && embeddingConfig_ + != com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.getDefaultInstance()) { + getEmbeddingConfigBuilder().mergeFrom(value); + } else { + embeddingConfig_ = value; + } + } else { + embeddingConfigBuilder_.mergeFrom(value); + } + if (embeddingConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Bring your own embedding config. The config is used for search semantic
                                +     * retrieval. The retrieval is based on the dot product of
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embeddings that are provided by this EmbeddingConfig. If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * is provided, it overrides this
                                +     * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + */ + public Builder clearEmbeddingConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + embeddingConfig_ = null; + if (embeddingConfigBuilder_ != null) { + embeddingConfigBuilder_.dispose(); + embeddingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Bring your own embedding config. The config is used for search semantic
                                +     * retrieval. The retrieval is based on the dot product of
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embeddings that are provided by this EmbeddingConfig. If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * is provided, it overrides this
                                +     * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + */ + public com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.Builder + getEmbeddingConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getEmbeddingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Bring your own embedding config. The config is used for search semantic
                                +     * retrieval. The retrieval is based on the dot product of
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embeddings that are provided by this EmbeddingConfig. If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * is provided, it overrides this
                                +     * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + */ + public com.google.cloud.discoveryengine.v1alpha.EmbeddingConfigOrBuilder + getEmbeddingConfigOrBuilder() { + if (embeddingConfigBuilder_ != null) { + return embeddingConfigBuilder_.getMessageOrBuilder(); + } else { + return embeddingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.getDefaultInstance() + : embeddingConfig_; + } + } + /** + * + * + *
                                +     * Bring your own embedding config. The config is used for search semantic
                                +     * retrieval. The retrieval is based on the dot product of
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * and the document embeddings that are provided by this EmbeddingConfig. If
                                +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +     * is provided, it overrides this
                                +     * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig, + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfigOrBuilder> + getEmbeddingConfigFieldBuilder() { + if (embeddingConfigBuilder_ == null) { + embeddingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig, + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfigOrBuilder>( + getEmbeddingConfig(), getParentForChildren(), isClean()); + embeddingConfig_ = null; + } + return embeddingConfigBuilder_; + } + + private java.lang.Object rankingExpression_ = ""; + /** + * + * + *
                                +     * The ranking expression controls the customized ranking on retrieval
                                +     * documents. To leverage this, document embedding is required. The ranking
                                +     * expression setting in ServingConfig applies to all search requests served
                                +     * by the serving config. However, if
                                +     * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1alpha.SearchRequest.ranking_expression]
                                +     * is specified, it overrides the ServingConfig ranking expression.
                                +     *
                                +     * The ranking expression is a single function or multiple functions that are
                                +     * joined by "+".
                                +     *   * ranking_expression = function, { " + ", function };
                                +     * Supported functions:
                                +     *   * double * relevance_score
                                +     *   * double * dotProduct(embedding_field_path)
                                +     * Function variables:
                                +     *   relevance_score: pre-defined keywords, used for measure relevance between
                                +     *   query and document.
                                +     *   embedding_field_path: the document embedding field
                                +     *   used with query embedding vector.
                                +     *   dotProduct: embedding function between embedding_field_path and query
                                +     *   embedding vector.
                                +     *
                                +     *  Example ranking expression:
                                +     *    If document has an embedding field doc_embedding, the ranking expression
                                +     *    could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding).
                                +     * 
                                + * + * string ranking_expression = 21; + * + * @return The rankingExpression. + */ + public java.lang.String getRankingExpression() { + java.lang.Object ref = rankingExpression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rankingExpression_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * The ranking expression controls the customized ranking on retrieval
                                +     * documents. To leverage this, document embedding is required. The ranking
                                +     * expression setting in ServingConfig applies to all search requests served
                                +     * by the serving config. However, if
                                +     * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1alpha.SearchRequest.ranking_expression]
                                +     * is specified, it overrides the ServingConfig ranking expression.
                                +     *
                                +     * The ranking expression is a single function or multiple functions that are
                                +     * joined by "+".
                                +     *   * ranking_expression = function, { " + ", function };
                                +     * Supported functions:
                                +     *   * double * relevance_score
                                +     *   * double * dotProduct(embedding_field_path)
                                +     * Function variables:
                                +     *   relevance_score: pre-defined keywords, used for measure relevance between
                                +     *   query and document.
                                +     *   embedding_field_path: the document embedding field
                                +     *   used with query embedding vector.
                                +     *   dotProduct: embedding function between embedding_field_path and query
                                +     *   embedding vector.
                                +     *
                                +     *  Example ranking expression:
                                +     *    If document has an embedding field doc_embedding, the ranking expression
                                +     *    could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding).
                                +     * 
                                + * + * string ranking_expression = 21; + * + * @return The bytes for rankingExpression. + */ + public com.google.protobuf.ByteString getRankingExpressionBytes() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rankingExpression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * The ranking expression controls the customized ranking on retrieval
                                +     * documents. To leverage this, document embedding is required. The ranking
                                +     * expression setting in ServingConfig applies to all search requests served
                                +     * by the serving config. However, if
                                +     * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1alpha.SearchRequest.ranking_expression]
                                +     * is specified, it overrides the ServingConfig ranking expression.
                                +     *
                                +     * The ranking expression is a single function or multiple functions that are
                                +     * joined by "+".
                                +     *   * ranking_expression = function, { " + ", function };
                                +     * Supported functions:
                                +     *   * double * relevance_score
                                +     *   * double * dotProduct(embedding_field_path)
                                +     * Function variables:
                                +     *   relevance_score: pre-defined keywords, used for measure relevance between
                                +     *   query and document.
                                +     *   embedding_field_path: the document embedding field
                                +     *   used with query embedding vector.
                                +     *   dotProduct: embedding function between embedding_field_path and query
                                +     *   embedding vector.
                                +     *
                                +     *  Example ranking expression:
                                +     *    If document has an embedding field doc_embedding, the ranking expression
                                +     *    could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding).
                                +     * 
                                + * + * string ranking_expression = 21; + * + * @param value The rankingExpression to set. + * @return This builder for chaining. + */ + public Builder setRankingExpression(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rankingExpression_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                +     * The ranking expression controls the customized ranking on retrieval
                                +     * documents. To leverage this, document embedding is required. The ranking
                                +     * expression setting in ServingConfig applies to all search requests served
                                +     * by the serving config. However, if
                                +     * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1alpha.SearchRequest.ranking_expression]
                                +     * is specified, it overrides the ServingConfig ranking expression.
                                +     *
                                +     * The ranking expression is a single function or multiple functions that are
                                +     * joined by "+".
                                +     *   * ranking_expression = function, { " + ", function };
                                +     * Supported functions:
                                +     *   * double * relevance_score
                                +     *   * double * dotProduct(embedding_field_path)
                                +     * Function variables:
                                +     *   relevance_score: pre-defined keywords, used for measure relevance between
                                +     *   query and document.
                                +     *   embedding_field_path: the document embedding field
                                +     *   used with query embedding vector.
                                +     *   dotProduct: embedding function between embedding_field_path and query
                                +     *   embedding vector.
                                +     *
                                +     *  Example ranking expression:
                                +     *    If document has an embedding field doc_embedding, the ranking expression
                                +     *    could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding).
                                +     * 
                                + * + * string ranking_expression = 21; + * + * @return This builder for chaining. + */ + public Builder clearRankingExpression() { + rankingExpression_ = getDefaultInstance().getRankingExpression(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
                                +     * The ranking expression controls the customized ranking on retrieval
                                +     * documents. To leverage this, document embedding is required. The ranking
                                +     * expression setting in ServingConfig applies to all search requests served
                                +     * by the serving config. However, if
                                +     * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1alpha.SearchRequest.ranking_expression]
                                +     * is specified, it overrides the ServingConfig ranking expression.
                                +     *
                                +     * The ranking expression is a single function or multiple functions that are
                                +     * joined by "+".
                                +     *   * ranking_expression = function, { " + ", function };
                                +     * Supported functions:
                                +     *   * double * relevance_score
                                +     *   * double * dotProduct(embedding_field_path)
                                +     * Function variables:
                                +     *   relevance_score: pre-defined keywords, used for measure relevance between
                                +     *   query and document.
                                +     *   embedding_field_path: the document embedding field
                                +     *   used with query embedding vector.
                                +     *   dotProduct: embedding function between embedding_field_path and query
                                +     *   embedding vector.
                                +     *
                                +     *  Example ranking expression:
                                +     *    If document has an embedding field doc_embedding, the ranking expression
                                +     *    could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding).
                                +     * 
                                + * + * string ranking_expression = 21; + * + * @param value The bytes for rankingExpression to set. + * @return This builder for chaining. + */ + public Builder setRankingExpressionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rankingExpression_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guidedSearchSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec, + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpecOrBuilder> + guidedSearchSpecBuilder_; + /** + * + * + *
                                +     * Guided search configs.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + * + * @return Whether the guidedSearchSpec field is set. + */ + public boolean hasGuidedSearchSpec() { + return ((bitField0_ & 0x00000200) != 0); + } + /** + * + * + *
                                +     * Guided search configs.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + * + * @return The guidedSearchSpec. + */ + public com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec getGuidedSearchSpec() { + if (guidedSearchSpecBuilder_ == null) { + return guidedSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.getDefaultInstance() + : guidedSearchSpec_; + } else { + return guidedSearchSpecBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Guided search configs.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + */ + public Builder setGuidedSearchSpec( + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec value) { + if (guidedSearchSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + guidedSearchSpec_ = value; + } else { + guidedSearchSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Guided search configs.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + */ + public Builder setGuidedSearchSpec( + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.Builder builderForValue) { + if (guidedSearchSpecBuilder_ == null) { + guidedSearchSpec_ = builderForValue.build(); + } else { + guidedSearchSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Guided search configs.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + */ + public Builder mergeGuidedSearchSpec( + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec value) { + if (guidedSearchSpecBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && guidedSearchSpec_ != null + && guidedSearchSpec_ + != com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.getDefaultInstance()) { + getGuidedSearchSpecBuilder().mergeFrom(value); + } else { + guidedSearchSpec_ = value; + } + } else { + guidedSearchSpecBuilder_.mergeFrom(value); + } + if (guidedSearchSpec_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Guided search configs.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + */ + public Builder clearGuidedSearchSpec() { + bitField0_ = (bitField0_ & ~0x00000200); + guidedSearchSpec_ = null; + if (guidedSearchSpecBuilder_ != null) { + guidedSearchSpecBuilder_.dispose(); + guidedSearchSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Guided search configs.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + */ + public com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.Builder + getGuidedSearchSpecBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getGuidedSearchSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Guided search configs.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + */ + public com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpecOrBuilder + getGuidedSearchSpecOrBuilder() { + if (guidedSearchSpecBuilder_ != null) { + return guidedSearchSpecBuilder_.getMessageOrBuilder(); + } else { + return guidedSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.getDefaultInstance() + : guidedSearchSpec_; + } + } + /** + * + * + *
                                +     * Guided search configs.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec, + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpecOrBuilder> + getGuidedSearchSpecFieldBuilder() { + if (guidedSearchSpecBuilder_ == null) { + guidedSearchSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec, + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpecOrBuilder>( + getGuidedSearchSpec(), getParentForChildren(), isClean()); + guidedSearchSpec_ = null; + } + return guidedSearchSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec customFineTuningSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec, + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpecOrBuilder> + customFineTuningSpecBuilder_; + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + * + * @return Whether the customFineTuningSpec field is set. + */ + public boolean hasCustomFineTuningSpec() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + * + * @return The customFineTuningSpec. + */ + public com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec getCustomFineTuningSpec() { + if (customFineTuningSpecBuilder_ == null) { + return customFineTuningSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.getDefaultInstance() + : customFineTuningSpec_; + } else { + return customFineTuningSpecBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + */ + public Builder setCustomFineTuningSpec( + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec value) { + if (customFineTuningSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customFineTuningSpec_ = value; + } else { + customFineTuningSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + */ + public Builder setCustomFineTuningSpec( + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.Builder builderForValue) { + if (customFineTuningSpecBuilder_ == null) { + customFineTuningSpec_ = builderForValue.build(); + } else { + customFineTuningSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + */ + public Builder mergeCustomFineTuningSpec( + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec value) { + if (customFineTuningSpecBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && customFineTuningSpec_ != null + && customFineTuningSpec_ + != com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec + .getDefaultInstance()) { + getCustomFineTuningSpecBuilder().mergeFrom(value); + } else { + customFineTuningSpec_ = value; + } + } else { + customFineTuningSpecBuilder_.mergeFrom(value); + } + if (customFineTuningSpec_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + */ + public Builder clearCustomFineTuningSpec() { + bitField0_ = (bitField0_ & ~0x00000400); + customFineTuningSpec_ = null; + if (customFineTuningSpecBuilder_ != null) { + customFineTuningSpecBuilder_.dispose(); + customFineTuningSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + */ + public com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.Builder + getCustomFineTuningSpecBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getCustomFineTuningSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + */ + public com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpecOrBuilder + getCustomFineTuningSpecOrBuilder() { + if (customFineTuningSpecBuilder_ != null) { + return customFineTuningSpecBuilder_.getMessageOrBuilder(); + } else { + return customFineTuningSpec_ == null + ? com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.getDefaultInstance() + : customFineTuningSpec_; + } + } + /** + * + * + *
                                +     * Custom fine tuning configs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec, + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpecOrBuilder> + getCustomFineTuningSpecFieldBuilder() { + if (customFineTuningSpecBuilder_ == null) { + customFineTuningSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec, + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec.Builder, + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpecOrBuilder>( + getCustomFineTuningSpec(), getParentForChildren(), isClean()); + customFineTuningSpec_ = null; + } + return customFineTuningSpecBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
                                +     * Output only. ServingConfig created timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
                                +     * Output only. ServingConfig created timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Output only. ServingConfig created timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. ServingConfig created timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. ServingConfig created timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Output only. ServingConfig created timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000800); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. ServingConfig created timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Output only. ServingConfig created timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
                                +     * Output only. ServingConfig created timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
                                +     * Output only. ServingConfig updated timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * + * + *
                                +     * Output only. ServingConfig updated timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Output only. ServingConfig updated timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. ServingConfig updated timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. ServingConfig updated timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Output only. ServingConfig updated timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00001000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. ServingConfig updated timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Output only. ServingConfig updated timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
                                +     * Output only. ServingConfig updated timestamp.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList filterControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureFilterControlIdsIsMutable() { + if (!filterControlIds_.isModifiable()) { + filterControlIds_ = new com.google.protobuf.LazyStringArrayList(filterControlIds_); + } + bitField0_ |= 0x00002000; + } + /** + * + * + *
                                +     * Filter controls to use in serving path.
                                +     * All triggered filter controls will be applied.
                                +     * Filter controls must be in the same data store as the serving config.
                                +     * Maximum of 20 filter controls.
                                +     * 
                                + * + * repeated string filter_control_ids = 11; + * + * @return A list containing the filterControlIds. + */ + public com.google.protobuf.ProtocolStringList getFilterControlIdsList() { + filterControlIds_.makeImmutable(); + return filterControlIds_; + } + /** + * + * + *
                                +     * Filter controls to use in serving path.
                                +     * All triggered filter controls will be applied.
                                +     * Filter controls must be in the same data store as the serving config.
                                +     * Maximum of 20 filter controls.
                                +     * 
                                + * + * repeated string filter_control_ids = 11; + * + * @return The count of filterControlIds. + */ + public int getFilterControlIdsCount() { + return filterControlIds_.size(); + } + /** + * + * + *
                                +     * Filter controls to use in serving path.
                                +     * All triggered filter controls will be applied.
                                +     * Filter controls must be in the same data store as the serving config.
                                +     * Maximum of 20 filter controls.
                                +     * 
                                + * + * repeated string filter_control_ids = 11; + * + * @param index The index of the element to return. + * @return The filterControlIds at the given index. + */ + public java.lang.String getFilterControlIds(int index) { + return filterControlIds_.get(index); + } + /** + * + * + *
                                +     * Filter controls to use in serving path.
                                +     * All triggered filter controls will be applied.
                                +     * Filter controls must be in the same data store as the serving config.
                                +     * Maximum of 20 filter controls.
                                +     * 
                                + * + * repeated string filter_control_ids = 11; + * + * @param index The index of the value to return. + * @return The bytes of the filterControlIds at the given index. + */ + public com.google.protobuf.ByteString getFilterControlIdsBytes(int index) { + return filterControlIds_.getByteString(index); + } + /** + * + * + *
                                +     * Filter controls to use in serving path.
                                +     * All triggered filter controls will be applied.
                                +     * Filter controls must be in the same data store as the serving config.
                                +     * Maximum of 20 filter controls.
                                +     * 
                                + * + * repeated string filter_control_ids = 11; + * + * @param index The index to set the value at. + * @param value The filterControlIds to set. + * @return This builder for chaining. + */ + public Builder setFilterControlIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterControlIdsIsMutable(); + filterControlIds_.set(index, value); + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Filter controls to use in serving path.
                                +     * All triggered filter controls will be applied.
                                +     * Filter controls must be in the same data store as the serving config.
                                +     * Maximum of 20 filter controls.
                                +     * 
                                + * + * repeated string filter_control_ids = 11; + * + * @param value The filterControlIds to add. + * @return This builder for chaining. + */ + public Builder addFilterControlIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterControlIdsIsMutable(); + filterControlIds_.add(value); + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Filter controls to use in serving path.
                                +     * All triggered filter controls will be applied.
                                +     * Filter controls must be in the same data store as the serving config.
                                +     * Maximum of 20 filter controls.
                                +     * 
                                + * + * repeated string filter_control_ids = 11; + * + * @param values The filterControlIds to add. + * @return This builder for chaining. + */ + public Builder addAllFilterControlIds(java.lang.Iterable values) { + ensureFilterControlIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filterControlIds_); + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Filter controls to use in serving path.
                                +     * All triggered filter controls will be applied.
                                +     * Filter controls must be in the same data store as the serving config.
                                +     * Maximum of 20 filter controls.
                                +     * 
                                + * + * repeated string filter_control_ids = 11; + * + * @return This builder for chaining. + */ + public Builder clearFilterControlIds() { + filterControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + ; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Filter controls to use in serving path.
                                +     * All triggered filter controls will be applied.
                                +     * Filter controls must be in the same data store as the serving config.
                                +     * Maximum of 20 filter controls.
                                +     * 
                                + * + * repeated string filter_control_ids = 11; + * + * @param value The bytes of the filterControlIds to add. + * @return This builder for chaining. + */ + public Builder addFilterControlIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureFilterControlIdsIsMutable(); + filterControlIds_.add(value); + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList boostControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureBoostControlIdsIsMutable() { + if (!boostControlIds_.isModifiable()) { + boostControlIds_ = new com.google.protobuf.LazyStringArrayList(boostControlIds_); + } + bitField0_ |= 0x00004000; + } + /** + * + * + *
                                +     * Boost controls to use in serving path.
                                +     * All triggered boost controls will be applied.
                                +     * Boost controls must be in the same data store as the serving config.
                                +     * Maximum of 20 boost controls.
                                +     * 
                                + * + * repeated string boost_control_ids = 12; + * + * @return A list containing the boostControlIds. + */ + public com.google.protobuf.ProtocolStringList getBoostControlIdsList() { + boostControlIds_.makeImmutable(); + return boostControlIds_; + } + /** + * + * + *
                                +     * Boost controls to use in serving path.
                                +     * All triggered boost controls will be applied.
                                +     * Boost controls must be in the same data store as the serving config.
                                +     * Maximum of 20 boost controls.
                                +     * 
                                + * + * repeated string boost_control_ids = 12; + * + * @return The count of boostControlIds. + */ + public int getBoostControlIdsCount() { + return boostControlIds_.size(); + } + /** + * + * + *
                                +     * Boost controls to use in serving path.
                                +     * All triggered boost controls will be applied.
                                +     * Boost controls must be in the same data store as the serving config.
                                +     * Maximum of 20 boost controls.
                                +     * 
                                + * + * repeated string boost_control_ids = 12; + * + * @param index The index of the element to return. + * @return The boostControlIds at the given index. + */ + public java.lang.String getBoostControlIds(int index) { + return boostControlIds_.get(index); + } + /** + * + * + *
                                +     * Boost controls to use in serving path.
                                +     * All triggered boost controls will be applied.
                                +     * Boost controls must be in the same data store as the serving config.
                                +     * Maximum of 20 boost controls.
                                +     * 
                                + * + * repeated string boost_control_ids = 12; + * + * @param index The index of the value to return. + * @return The bytes of the boostControlIds at the given index. + */ + public com.google.protobuf.ByteString getBoostControlIdsBytes(int index) { + return boostControlIds_.getByteString(index); + } + /** + * + * + *
                                +     * Boost controls to use in serving path.
                                +     * All triggered boost controls will be applied.
                                +     * Boost controls must be in the same data store as the serving config.
                                +     * Maximum of 20 boost controls.
                                +     * 
                                + * + * repeated string boost_control_ids = 12; + * + * @param index The index to set the value at. + * @param value The boostControlIds to set. + * @return This builder for chaining. + */ + public Builder setBoostControlIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoostControlIdsIsMutable(); + boostControlIds_.set(index, value); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Boost controls to use in serving path.
                                +     * All triggered boost controls will be applied.
                                +     * Boost controls must be in the same data store as the serving config.
                                +     * Maximum of 20 boost controls.
                                +     * 
                                + * + * repeated string boost_control_ids = 12; + * + * @param value The boostControlIds to add. + * @return This builder for chaining. + */ + public Builder addBoostControlIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBoostControlIdsIsMutable(); + boostControlIds_.add(value); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Boost controls to use in serving path.
                                +     * All triggered boost controls will be applied.
                                +     * Boost controls must be in the same data store as the serving config.
                                +     * Maximum of 20 boost controls.
                                +     * 
                                + * + * repeated string boost_control_ids = 12; + * + * @param values The boostControlIds to add. + * @return This builder for chaining. + */ + public Builder addAllBoostControlIds(java.lang.Iterable values) { + ensureBoostControlIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, boostControlIds_); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Boost controls to use in serving path.
                                +     * All triggered boost controls will be applied.
                                +     * Boost controls must be in the same data store as the serving config.
                                +     * Maximum of 20 boost controls.
                                +     * 
                                + * + * repeated string boost_control_ids = 12; + * + * @return This builder for chaining. + */ + public Builder clearBoostControlIds() { + boostControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + ; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Boost controls to use in serving path.
                                +     * All triggered boost controls will be applied.
                                +     * Boost controls must be in the same data store as the serving config.
                                +     * Maximum of 20 boost controls.
                                +     * 
                                + * + * repeated string boost_control_ids = 12; + * + * @param value The bytes of the boostControlIds to add. + * @return This builder for chaining. + */ + public Builder addBoostControlIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBoostControlIdsIsMutable(); + boostControlIds_.add(value); + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList redirectControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRedirectControlIdsIsMutable() { + if (!redirectControlIds_.isModifiable()) { + redirectControlIds_ = new com.google.protobuf.LazyStringArrayList(redirectControlIds_); + } + bitField0_ |= 0x00008000; + } + /** + * + * + *
                                +     * IDs of the redirect controls. Only the first triggered redirect
                                +     * action is applied, even if multiple apply. Maximum number of
                                +     * specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @return A list containing the redirectControlIds. + */ + public com.google.protobuf.ProtocolStringList getRedirectControlIdsList() { + redirectControlIds_.makeImmutable(); + return redirectControlIds_; + } + /** + * + * + *
                                +     * IDs of the redirect controls. Only the first triggered redirect
                                +     * action is applied, even if multiple apply. Maximum number of
                                +     * specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @return The count of redirectControlIds. + */ + public int getRedirectControlIdsCount() { + return redirectControlIds_.size(); + } + /** + * + * + *
                                +     * IDs of the redirect controls. Only the first triggered redirect
                                +     * action is applied, even if multiple apply. Maximum number of
                                +     * specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @param index The index of the element to return. + * @return The redirectControlIds at the given index. + */ + public java.lang.String getRedirectControlIds(int index) { + return redirectControlIds_.get(index); + } + /** + * + * + *
                                +     * IDs of the redirect controls. Only the first triggered redirect
                                +     * action is applied, even if multiple apply. Maximum number of
                                +     * specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @param index The index of the value to return. + * @return The bytes of the redirectControlIds at the given index. + */ + public com.google.protobuf.ByteString getRedirectControlIdsBytes(int index) { + return redirectControlIds_.getByteString(index); + } + /** + * + * + *
                                +     * IDs of the redirect controls. Only the first triggered redirect
                                +     * action is applied, even if multiple apply. Maximum number of
                                +     * specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @param index The index to set the value at. + * @param value The redirectControlIds to set. + * @return This builder for chaining. + */ + public Builder setRedirectControlIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRedirectControlIdsIsMutable(); + redirectControlIds_.set(index, value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * IDs of the redirect controls. Only the first triggered redirect
                                +     * action is applied, even if multiple apply. Maximum number of
                                +     * specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @param value The redirectControlIds to add. + * @return This builder for chaining. + */ + public Builder addRedirectControlIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRedirectControlIdsIsMutable(); + redirectControlIds_.add(value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * IDs of the redirect controls. Only the first triggered redirect
                                +     * action is applied, even if multiple apply. Maximum number of
                                +     * specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @param values The redirectControlIds to add. + * @return This builder for chaining. + */ + public Builder addAllRedirectControlIds(java.lang.Iterable values) { + ensureRedirectControlIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, redirectControlIds_); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * IDs of the redirect controls. Only the first triggered redirect
                                +     * action is applied, even if multiple apply. Maximum number of
                                +     * specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @return This builder for chaining. + */ + public Builder clearRedirectControlIds() { + redirectControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000); + ; + onChanged(); + return this; + } + /** + * + * + *
                                +     * IDs of the redirect controls. Only the first triggered redirect
                                +     * action is applied, even if multiple apply. Maximum number of
                                +     * specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @param value The bytes of the redirectControlIds to add. + * @return This builder for chaining. + */ + public Builder addRedirectControlIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRedirectControlIdsIsMutable(); + redirectControlIds_.add(value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList synonymsControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSynonymsControlIdsIsMutable() { + if (!synonymsControlIds_.isModifiable()) { + synonymsControlIds_ = new com.google.protobuf.LazyStringArrayList(synonymsControlIds_); + } + bitField0_ |= 0x00010000; + } + /** + * + * + *
                                +     * Condition synonyms specifications. If multiple synonyms conditions
                                +     * match, all matching synonyms controls in the list will execute.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @return A list containing the synonymsControlIds. + */ + public com.google.protobuf.ProtocolStringList getSynonymsControlIdsList() { + synonymsControlIds_.makeImmutable(); + return synonymsControlIds_; + } + /** + * + * + *
                                +     * Condition synonyms specifications. If multiple synonyms conditions
                                +     * match, all matching synonyms controls in the list will execute.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @return The count of synonymsControlIds. + */ + public int getSynonymsControlIdsCount() { + return synonymsControlIds_.size(); + } + /** + * + * + *
                                +     * Condition synonyms specifications. If multiple synonyms conditions
                                +     * match, all matching synonyms controls in the list will execute.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @param index The index of the element to return. + * @return The synonymsControlIds at the given index. + */ + public java.lang.String getSynonymsControlIds(int index) { + return synonymsControlIds_.get(index); + } + /** + * + * + *
                                +     * Condition synonyms specifications. If multiple synonyms conditions
                                +     * match, all matching synonyms controls in the list will execute.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @param index The index of the value to return. + * @return The bytes of the synonymsControlIds at the given index. + */ + public com.google.protobuf.ByteString getSynonymsControlIdsBytes(int index) { + return synonymsControlIds_.getByteString(index); + } + /** + * + * + *
                                +     * Condition synonyms specifications. If multiple synonyms conditions
                                +     * match, all matching synonyms controls in the list will execute.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @param index The index to set the value at. + * @param value The synonymsControlIds to set. + * @return This builder for chaining. + */ + public Builder setSynonymsControlIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSynonymsControlIdsIsMutable(); + synonymsControlIds_.set(index, value); + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition synonyms specifications. If multiple synonyms conditions
                                +     * match, all matching synonyms controls in the list will execute.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @param value The synonymsControlIds to add. + * @return This builder for chaining. + */ + public Builder addSynonymsControlIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSynonymsControlIdsIsMutable(); + synonymsControlIds_.add(value); + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition synonyms specifications. If multiple synonyms conditions
                                +     * match, all matching synonyms controls in the list will execute.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @param values The synonymsControlIds to add. + * @return This builder for chaining. + */ + public Builder addAllSynonymsControlIds(java.lang.Iterable values) { + ensureSynonymsControlIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, synonymsControlIds_); + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition synonyms specifications. If multiple synonyms conditions
                                +     * match, all matching synonyms controls in the list will execute.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @return This builder for chaining. + */ + public Builder clearSynonymsControlIds() { + synonymsControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + ; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition synonyms specifications. If multiple synonyms conditions
                                +     * match, all matching synonyms controls in the list will execute.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @param value The bytes of the synonymsControlIds to add. + * @return This builder for chaining. + */ + public Builder addSynonymsControlIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSynonymsControlIdsIsMutable(); + synonymsControlIds_.add(value); + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList onewaySynonymsControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureOnewaySynonymsControlIdsIsMutable() { + if (!onewaySynonymsControlIds_.isModifiable()) { + onewaySynonymsControlIds_ = + new com.google.protobuf.LazyStringArrayList(onewaySynonymsControlIds_); + } + bitField0_ |= 0x00020000; + } + /** + * + * + *
                                +     * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +     * conditions match, all matching oneway synonyms controls in the list
                                +     * will execute. Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @return A list containing the onewaySynonymsControlIds. + */ + public com.google.protobuf.ProtocolStringList getOnewaySynonymsControlIdsList() { + onewaySynonymsControlIds_.makeImmutable(); + return onewaySynonymsControlIds_; + } + /** + * + * + *
                                +     * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +     * conditions match, all matching oneway synonyms controls in the list
                                +     * will execute. Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @return The count of onewaySynonymsControlIds. + */ + public int getOnewaySynonymsControlIdsCount() { + return onewaySynonymsControlIds_.size(); + } + /** + * + * + *
                                +     * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +     * conditions match, all matching oneway synonyms controls in the list
                                +     * will execute. Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @param index The index of the element to return. + * @return The onewaySynonymsControlIds at the given index. + */ + public java.lang.String getOnewaySynonymsControlIds(int index) { + return onewaySynonymsControlIds_.get(index); + } + /** + * + * + *
                                +     * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +     * conditions match, all matching oneway synonyms controls in the list
                                +     * will execute. Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @param index The index of the value to return. + * @return The bytes of the onewaySynonymsControlIds at the given index. + */ + public com.google.protobuf.ByteString getOnewaySynonymsControlIdsBytes(int index) { + return onewaySynonymsControlIds_.getByteString(index); + } + /** + * + * + *
                                +     * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +     * conditions match, all matching oneway synonyms controls in the list
                                +     * will execute. Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @param index The index to set the value at. + * @param value The onewaySynonymsControlIds to set. + * @return This builder for chaining. + */ + public Builder setOnewaySynonymsControlIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOnewaySynonymsControlIdsIsMutable(); + onewaySynonymsControlIds_.set(index, value); + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +     * conditions match, all matching oneway synonyms controls in the list
                                +     * will execute. Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @param value The onewaySynonymsControlIds to add. + * @return This builder for chaining. + */ + public Builder addOnewaySynonymsControlIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOnewaySynonymsControlIdsIsMutable(); + onewaySynonymsControlIds_.add(value); + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +     * conditions match, all matching oneway synonyms controls in the list
                                +     * will execute. Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @param values The onewaySynonymsControlIds to add. + * @return This builder for chaining. + */ + public Builder addAllOnewaySynonymsControlIds(java.lang.Iterable values) { + ensureOnewaySynonymsControlIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, onewaySynonymsControlIds_); + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +     * conditions match, all matching oneway synonyms controls in the list
                                +     * will execute. Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @return This builder for chaining. + */ + public Builder clearOnewaySynonymsControlIds() { + onewaySynonymsControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); + ; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +     * conditions match, all matching oneway synonyms controls in the list
                                +     * will execute. Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @param value The bytes of the onewaySynonymsControlIds to add. + * @return This builder for chaining. + */ + public Builder addOnewaySynonymsControlIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOnewaySynonymsControlIdsIsMutable(); + onewaySynonymsControlIds_.add(value); + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList dissociateControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDissociateControlIdsIsMutable() { + if (!dissociateControlIds_.isModifiable()) { + dissociateControlIds_ = new com.google.protobuf.LazyStringArrayList(dissociateControlIds_); + } + bitField0_ |= 0x00040000; + } + /** + * + * + *
                                +     * Condition do not associate specifications. If multiple do not
                                +     * associate conditions match, all matching do not associate controls in
                                +     * the list will execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @return A list containing the dissociateControlIds. + */ + public com.google.protobuf.ProtocolStringList getDissociateControlIdsList() { + dissociateControlIds_.makeImmutable(); + return dissociateControlIds_; + } + /** + * + * + *
                                +     * Condition do not associate specifications. If multiple do not
                                +     * associate conditions match, all matching do not associate controls in
                                +     * the list will execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @return The count of dissociateControlIds. + */ + public int getDissociateControlIdsCount() { + return dissociateControlIds_.size(); + } + /** + * + * + *
                                +     * Condition do not associate specifications. If multiple do not
                                +     * associate conditions match, all matching do not associate controls in
                                +     * the list will execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @param index The index of the element to return. + * @return The dissociateControlIds at the given index. + */ + public java.lang.String getDissociateControlIds(int index) { + return dissociateControlIds_.get(index); + } + /** + * + * + *
                                +     * Condition do not associate specifications. If multiple do not
                                +     * associate conditions match, all matching do not associate controls in
                                +     * the list will execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @param index The index of the value to return. + * @return The bytes of the dissociateControlIds at the given index. + */ + public com.google.protobuf.ByteString getDissociateControlIdsBytes(int index) { + return dissociateControlIds_.getByteString(index); + } + /** + * + * + *
                                +     * Condition do not associate specifications. If multiple do not
                                +     * associate conditions match, all matching do not associate controls in
                                +     * the list will execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @param index The index to set the value at. + * @param value The dissociateControlIds to set. + * @return This builder for chaining. + */ + public Builder setDissociateControlIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDissociateControlIdsIsMutable(); + dissociateControlIds_.set(index, value); + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition do not associate specifications. If multiple do not
                                +     * associate conditions match, all matching do not associate controls in
                                +     * the list will execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @param value The dissociateControlIds to add. + * @return This builder for chaining. + */ + public Builder addDissociateControlIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDissociateControlIdsIsMutable(); + dissociateControlIds_.add(value); + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition do not associate specifications. If multiple do not
                                +     * associate conditions match, all matching do not associate controls in
                                +     * the list will execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @param values The dissociateControlIds to add. + * @return This builder for chaining. + */ + public Builder addAllDissociateControlIds(java.lang.Iterable values) { + ensureDissociateControlIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dissociateControlIds_); + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition do not associate specifications. If multiple do not
                                +     * associate conditions match, all matching do not associate controls in
                                +     * the list will execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @return This builder for chaining. + */ + public Builder clearDissociateControlIds() { + dissociateControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00040000); + ; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition do not associate specifications. If multiple do not
                                +     * associate conditions match, all matching do not associate controls in
                                +     * the list will execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @param value The bytes of the dissociateControlIds to add. + * @return This builder for chaining. + */ + public Builder addDissociateControlIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDissociateControlIdsIsMutable(); + dissociateControlIds_.add(value); + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList replacementControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureReplacementControlIdsIsMutable() { + if (!replacementControlIds_.isModifiable()) { + replacementControlIds_ = + new com.google.protobuf.LazyStringArrayList(replacementControlIds_); + } + bitField0_ |= 0x00080000; + } + /** + * + * + *
                                +     * Condition replacement specifications.
                                +     * Applied according to the order in the list.
                                +     * A previously replaced term can not be re-replaced.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @return A list containing the replacementControlIds. + */ + public com.google.protobuf.ProtocolStringList getReplacementControlIdsList() { + replacementControlIds_.makeImmutable(); + return replacementControlIds_; + } + /** + * + * + *
                                +     * Condition replacement specifications.
                                +     * Applied according to the order in the list.
                                +     * A previously replaced term can not be re-replaced.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @return The count of replacementControlIds. + */ + public int getReplacementControlIdsCount() { + return replacementControlIds_.size(); + } + /** + * + * + *
                                +     * Condition replacement specifications.
                                +     * Applied according to the order in the list.
                                +     * A previously replaced term can not be re-replaced.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @param index The index of the element to return. + * @return The replacementControlIds at the given index. + */ + public java.lang.String getReplacementControlIds(int index) { + return replacementControlIds_.get(index); + } + /** + * + * + *
                                +     * Condition replacement specifications.
                                +     * Applied according to the order in the list.
                                +     * A previously replaced term can not be re-replaced.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @param index The index of the value to return. + * @return The bytes of the replacementControlIds at the given index. + */ + public com.google.protobuf.ByteString getReplacementControlIdsBytes(int index) { + return replacementControlIds_.getByteString(index); + } + /** + * + * + *
                                +     * Condition replacement specifications.
                                +     * Applied according to the order in the list.
                                +     * A previously replaced term can not be re-replaced.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @param index The index to set the value at. + * @param value The replacementControlIds to set. + * @return This builder for chaining. + */ + public Builder setReplacementControlIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReplacementControlIdsIsMutable(); + replacementControlIds_.set(index, value); + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition replacement specifications.
                                +     * Applied according to the order in the list.
                                +     * A previously replaced term can not be re-replaced.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @param value The replacementControlIds to add. + * @return This builder for chaining. + */ + public Builder addReplacementControlIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReplacementControlIdsIsMutable(); + replacementControlIds_.add(value); + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition replacement specifications.
                                +     * Applied according to the order in the list.
                                +     * A previously replaced term can not be re-replaced.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @param values The replacementControlIds to add. + * @return This builder for chaining. + */ + public Builder addAllReplacementControlIds(java.lang.Iterable values) { + ensureReplacementControlIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replacementControlIds_); + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition replacement specifications.
                                +     * Applied according to the order in the list.
                                +     * A previously replaced term can not be re-replaced.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @return This builder for chaining. + */ + public Builder clearReplacementControlIds() { + replacementControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + ; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition replacement specifications.
                                +     * Applied according to the order in the list.
                                +     * A previously replaced term can not be re-replaced.
                                +     * Maximum number of specifications is 100.
                                +     *
                                +     * Can only be set if
                                +     * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +     * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @param value The bytes of the replacementControlIds to add. + * @return This builder for chaining. + */ + public Builder addReplacementControlIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureReplacementControlIdsIsMutable(); + replacementControlIds_.add(value); + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList ignoreControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIgnoreControlIdsIsMutable() { + if (!ignoreControlIds_.isModifiable()) { + ignoreControlIds_ = new com.google.protobuf.LazyStringArrayList(ignoreControlIds_); + } + bitField0_ |= 0x00100000; + } + /** + * + * + *
                                +     * Condition ignore specifications. If multiple ignore
                                +     * conditions match, all matching ignore controls in the list will
                                +     * execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @return A list containing the ignoreControlIds. + */ + public com.google.protobuf.ProtocolStringList getIgnoreControlIdsList() { + ignoreControlIds_.makeImmutable(); + return ignoreControlIds_; + } + /** + * + * + *
                                +     * Condition ignore specifications. If multiple ignore
                                +     * conditions match, all matching ignore controls in the list will
                                +     * execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @return The count of ignoreControlIds. + */ + public int getIgnoreControlIdsCount() { + return ignoreControlIds_.size(); + } + /** + * + * + *
                                +     * Condition ignore specifications. If multiple ignore
                                +     * conditions match, all matching ignore controls in the list will
                                +     * execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @param index The index of the element to return. + * @return The ignoreControlIds at the given index. + */ + public java.lang.String getIgnoreControlIds(int index) { + return ignoreControlIds_.get(index); + } + /** + * + * + *
                                +     * Condition ignore specifications. If multiple ignore
                                +     * conditions match, all matching ignore controls in the list will
                                +     * execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @param index The index of the value to return. + * @return The bytes of the ignoreControlIds at the given index. + */ + public com.google.protobuf.ByteString getIgnoreControlIdsBytes(int index) { + return ignoreControlIds_.getByteString(index); + } + /** + * + * + *
                                +     * Condition ignore specifications. If multiple ignore
                                +     * conditions match, all matching ignore controls in the list will
                                +     * execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @param index The index to set the value at. + * @param value The ignoreControlIds to set. + * @return This builder for chaining. + */ + public Builder setIgnoreControlIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIgnoreControlIdsIsMutable(); + ignoreControlIds_.set(index, value); + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition ignore specifications. If multiple ignore
                                +     * conditions match, all matching ignore controls in the list will
                                +     * execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @param value The ignoreControlIds to add. + * @return This builder for chaining. + */ + public Builder addIgnoreControlIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIgnoreControlIdsIsMutable(); + ignoreControlIds_.add(value); + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition ignore specifications. If multiple ignore
                                +     * conditions match, all matching ignore controls in the list will
                                +     * execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @param values The ignoreControlIds to add. + * @return This builder for chaining. + */ + public Builder addAllIgnoreControlIds(java.lang.Iterable values) { + ensureIgnoreControlIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ignoreControlIds_); + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition ignore specifications. If multiple ignore
                                +     * conditions match, all matching ignore controls in the list will
                                +     * execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreControlIds() { + ignoreControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + ; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Condition ignore specifications. If multiple ignore
                                +     * conditions match, all matching ignore controls in the list will
                                +     * execute.
                                +     * Order does not matter.
                                +     * Maximum number of specifications is 100.
                                +     * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @param value The bytes of the ignoreControlIds to add. + * @return This builder for chaining. + */ + public Builder addIgnoreControlIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIgnoreControlIdsIsMutable(); + ignoreControlIds_.add(value); + bitField0_ |= 0x00100000; + 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.discoveryengine.v1alpha.ServingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.ServingConfig) + private static final com.google.cloud.discoveryengine.v1alpha.ServingConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.ServingConfig(); + } + + public static com.google.cloud.discoveryengine.v1alpha.ServingConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServingConfig 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.discoveryengine.v1alpha.ServingConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigOrBuilder.java new file mode 100644 index 000000000000..238620d67509 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigOrBuilder.java @@ -0,0 +1,1140 @@ +/* + * 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/discoveryengine/v1alpha/serving_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface ServingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.ServingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * The MediaConfig of the serving configuration.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + * + * @return Whether the mediaConfig field is set. + */ + boolean hasMediaConfig(); + /** + * + * + *
                                +   * The MediaConfig of the serving configuration.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + * + * @return The mediaConfig. + */ + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig getMediaConfig(); + /** + * + * + *
                                +   * The MediaConfig of the serving configuration.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfig media_config = 7; + */ + com.google.cloud.discoveryengine.v1alpha.ServingConfig.MediaConfigOrBuilder + getMediaConfigOrBuilder(); + + /** + * + * + *
                                +   * The GenericConfig of the serving configuration.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + * + * @return Whether the genericConfig field is set. + */ + boolean hasGenericConfig(); + /** + * + * + *
                                +   * The GenericConfig of the serving configuration.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + * + * @return The genericConfig. + */ + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig getGenericConfig(); + /** + * + * + *
                                +   * The GenericConfig of the serving configuration.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfig generic_config = 10; + * + */ + com.google.cloud.discoveryengine.v1alpha.ServingConfig.GenericConfigOrBuilder + getGenericConfigOrBuilder(); + + /** + * + * + *
                                +   * Immutable. Fully qualified name
                                +   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                +   * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                +   * Immutable. Fully qualified name
                                +   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                +   * 
                                + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                +   * Required. The human readable serving config display name. Used in Discovery
                                +   * UI.
                                +   *
                                +   * This field must be a UTF-8 encoded string with a length limit of 128
                                +   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
                                +   * 
                                + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
                                +   * Required. The human readable serving config display name. Used in Discovery
                                +   * UI.
                                +   *
                                +   * This field must be a UTF-8 encoded string with a length limit of 128
                                +   * characters. Otherwise, an INVALID_ARGUMENT error is returned.
                                +   * 
                                + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                                +   * Required. Immutable. Specifies the solution type that a serving config can
                                +   * be associated with.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SolutionType solution_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for solutionType. + */ + int getSolutionTypeValue(); + /** + * + * + *
                                +   * Required. Immutable. Specifies the solution type that a serving config can
                                +   * be associated with.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SolutionType solution_type = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The solutionType. + */ + com.google.cloud.discoveryengine.v1alpha.SolutionType getSolutionType(); + + /** + * + * + *
                                +   * The id of the model to use at serving time.
                                +   * Currently only RecommendationModels are supported.
                                +   * Can be changed but only to a compatible model (e.g.
                                +   * others-you-may-like CTR to others-you-may-like CVR).
                                +   *
                                +   * Required when
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +   * 
                                + * + * string model_id = 4; + * + * @return The modelId. + */ + java.lang.String getModelId(); + /** + * + * + *
                                +   * The id of the model to use at serving time.
                                +   * Currently only RecommendationModels are supported.
                                +   * Can be changed but only to a compatible model (e.g.
                                +   * others-you-may-like CTR to others-you-may-like CVR).
                                +   *
                                +   * Required when
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +   * 
                                + * + * string model_id = 4; + * + * @return The bytes for modelId. + */ + com.google.protobuf.ByteString getModelIdBytes(); + + /** + * + * + *
                                +   * How much diversity to use in recommendation model results e.g.
                                +   * `medium-diversity` or `high-diversity`. Currently supported values:
                                +   *
                                +   * * `no-diversity`
                                +   * * `low-diversity`
                                +   * * `medium-diversity`
                                +   * * `high-diversity`
                                +   * * `auto-diversity`
                                +   *
                                +   * If not specified, we choose default based on recommendation model
                                +   * type. Default value: `no-diversity`.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +   * 
                                + * + * string diversity_level = 5; + * + * @return The diversityLevel. + */ + java.lang.String getDiversityLevel(); + /** + * + * + *
                                +   * How much diversity to use in recommendation model results e.g.
                                +   * `medium-diversity` or `high-diversity`. Currently supported values:
                                +   *
                                +   * * `no-diversity`
                                +   * * `low-diversity`
                                +   * * `medium-diversity`
                                +   * * `high-diversity`
                                +   * * `auto-diversity`
                                +   *
                                +   * If not specified, we choose default based on recommendation model
                                +   * type. Default value: `no-diversity`.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                                +   * 
                                + * + * string diversity_level = 5; + * + * @return The bytes for diversityLevel. + */ + com.google.protobuf.ByteString getDiversityLevelBytes(); + + /** + * + * + *
                                +   * Bring your own embedding config. The config is used for search semantic
                                +   * retrieval. The retrieval is based on the dot product of
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * and the document embeddings that are provided by this EmbeddingConfig. If
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * is provided, it overrides this
                                +   * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + * + * @return Whether the embeddingConfig field is set. + */ + boolean hasEmbeddingConfig(); + /** + * + * + *
                                +   * Bring your own embedding config. The config is used for search semantic
                                +   * retrieval. The retrieval is based on the dot product of
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * and the document embeddings that are provided by this EmbeddingConfig. If
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * is provided, it overrides this
                                +   * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + * + * @return The embeddingConfig. + */ + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfig getEmbeddingConfig(); + /** + * + * + *
                                +   * Bring your own embedding config. The config is used for search semantic
                                +   * retrieval. The retrieval is based on the dot product of
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * and the document embeddings that are provided by this EmbeddingConfig. If
                                +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
                                +   * is provided, it overrides this
                                +   * [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config].
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.EmbeddingConfig embedding_config = 20; + */ + com.google.cloud.discoveryengine.v1alpha.EmbeddingConfigOrBuilder getEmbeddingConfigOrBuilder(); + + /** + * + * + *
                                +   * The ranking expression controls the customized ranking on retrieval
                                +   * documents. To leverage this, document embedding is required. The ranking
                                +   * expression setting in ServingConfig applies to all search requests served
                                +   * by the serving config. However, if
                                +   * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1alpha.SearchRequest.ranking_expression]
                                +   * is specified, it overrides the ServingConfig ranking expression.
                                +   *
                                +   * The ranking expression is a single function or multiple functions that are
                                +   * joined by "+".
                                +   *   * ranking_expression = function, { " + ", function };
                                +   * Supported functions:
                                +   *   * double * relevance_score
                                +   *   * double * dotProduct(embedding_field_path)
                                +   * Function variables:
                                +   *   relevance_score: pre-defined keywords, used for measure relevance between
                                +   *   query and document.
                                +   *   embedding_field_path: the document embedding field
                                +   *   used with query embedding vector.
                                +   *   dotProduct: embedding function between embedding_field_path and query
                                +   *   embedding vector.
                                +   *
                                +   *  Example ranking expression:
                                +   *    If document has an embedding field doc_embedding, the ranking expression
                                +   *    could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding).
                                +   * 
                                + * + * string ranking_expression = 21; + * + * @return The rankingExpression. + */ + java.lang.String getRankingExpression(); + /** + * + * + *
                                +   * The ranking expression controls the customized ranking on retrieval
                                +   * documents. To leverage this, document embedding is required. The ranking
                                +   * expression setting in ServingConfig applies to all search requests served
                                +   * by the serving config. However, if
                                +   * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1alpha.SearchRequest.ranking_expression]
                                +   * is specified, it overrides the ServingConfig ranking expression.
                                +   *
                                +   * The ranking expression is a single function or multiple functions that are
                                +   * joined by "+".
                                +   *   * ranking_expression = function, { " + ", function };
                                +   * Supported functions:
                                +   *   * double * relevance_score
                                +   *   * double * dotProduct(embedding_field_path)
                                +   * Function variables:
                                +   *   relevance_score: pre-defined keywords, used for measure relevance between
                                +   *   query and document.
                                +   *   embedding_field_path: the document embedding field
                                +   *   used with query embedding vector.
                                +   *   dotProduct: embedding function between embedding_field_path and query
                                +   *   embedding vector.
                                +   *
                                +   *  Example ranking expression:
                                +   *    If document has an embedding field doc_embedding, the ranking expression
                                +   *    could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding).
                                +   * 
                                + * + * string ranking_expression = 21; + * + * @return The bytes for rankingExpression. + */ + com.google.protobuf.ByteString getRankingExpressionBytes(); + + /** + * + * + *
                                +   * Guided search configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + * + * @return Whether the guidedSearchSpec field is set. + */ + boolean hasGuidedSearchSpec(); + /** + * + * + *
                                +   * Guided search configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + * + * @return The guidedSearchSpec. + */ + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpec getGuidedSearchSpec(); + /** + * + * + *
                                +   * Guided search configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.GuidedSearchSpec guided_search_spec = 22; + */ + com.google.cloud.discoveryengine.v1alpha.GuidedSearchSpecOrBuilder getGuidedSearchSpecOrBuilder(); + + /** + * + * + *
                                +   * Custom fine tuning configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + * + * @return Whether the customFineTuningSpec field is set. + */ + boolean hasCustomFineTuningSpec(); + /** + * + * + *
                                +   * Custom fine tuning configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + * + * @return The customFineTuningSpec. + */ + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec getCustomFineTuningSpec(); + /** + * + * + *
                                +   * Custom fine tuning configs.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec custom_fine_tuning_spec = 24; + * + */ + com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpecOrBuilder + getCustomFineTuningSpecOrBuilder(); + + /** + * + * + *
                                +   * Output only. ServingConfig created timestamp.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
                                +   * Output only. ServingConfig created timestamp.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
                                +   * Output only. ServingConfig created timestamp.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                +   * Output only. ServingConfig updated timestamp.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
                                +   * Output only. ServingConfig updated timestamp.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
                                +   * Output only. ServingConfig updated timestamp.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
                                +   * Filter controls to use in serving path.
                                +   * All triggered filter controls will be applied.
                                +   * Filter controls must be in the same data store as the serving config.
                                +   * Maximum of 20 filter controls.
                                +   * 
                                + * + * repeated string filter_control_ids = 11; + * + * @return A list containing the filterControlIds. + */ + java.util.List getFilterControlIdsList(); + /** + * + * + *
                                +   * Filter controls to use in serving path.
                                +   * All triggered filter controls will be applied.
                                +   * Filter controls must be in the same data store as the serving config.
                                +   * Maximum of 20 filter controls.
                                +   * 
                                + * + * repeated string filter_control_ids = 11; + * + * @return The count of filterControlIds. + */ + int getFilterControlIdsCount(); + /** + * + * + *
                                +   * Filter controls to use in serving path.
                                +   * All triggered filter controls will be applied.
                                +   * Filter controls must be in the same data store as the serving config.
                                +   * Maximum of 20 filter controls.
                                +   * 
                                + * + * repeated string filter_control_ids = 11; + * + * @param index The index of the element to return. + * @return The filterControlIds at the given index. + */ + java.lang.String getFilterControlIds(int index); + /** + * + * + *
                                +   * Filter controls to use in serving path.
                                +   * All triggered filter controls will be applied.
                                +   * Filter controls must be in the same data store as the serving config.
                                +   * Maximum of 20 filter controls.
                                +   * 
                                + * + * repeated string filter_control_ids = 11; + * + * @param index The index of the value to return. + * @return The bytes of the filterControlIds at the given index. + */ + com.google.protobuf.ByteString getFilterControlIdsBytes(int index); + + /** + * + * + *
                                +   * Boost controls to use in serving path.
                                +   * All triggered boost controls will be applied.
                                +   * Boost controls must be in the same data store as the serving config.
                                +   * Maximum of 20 boost controls.
                                +   * 
                                + * + * repeated string boost_control_ids = 12; + * + * @return A list containing the boostControlIds. + */ + java.util.List getBoostControlIdsList(); + /** + * + * + *
                                +   * Boost controls to use in serving path.
                                +   * All triggered boost controls will be applied.
                                +   * Boost controls must be in the same data store as the serving config.
                                +   * Maximum of 20 boost controls.
                                +   * 
                                + * + * repeated string boost_control_ids = 12; + * + * @return The count of boostControlIds. + */ + int getBoostControlIdsCount(); + /** + * + * + *
                                +   * Boost controls to use in serving path.
                                +   * All triggered boost controls will be applied.
                                +   * Boost controls must be in the same data store as the serving config.
                                +   * Maximum of 20 boost controls.
                                +   * 
                                + * + * repeated string boost_control_ids = 12; + * + * @param index The index of the element to return. + * @return The boostControlIds at the given index. + */ + java.lang.String getBoostControlIds(int index); + /** + * + * + *
                                +   * Boost controls to use in serving path.
                                +   * All triggered boost controls will be applied.
                                +   * Boost controls must be in the same data store as the serving config.
                                +   * Maximum of 20 boost controls.
                                +   * 
                                + * + * repeated string boost_control_ids = 12; + * + * @param index The index of the value to return. + * @return The bytes of the boostControlIds at the given index. + */ + com.google.protobuf.ByteString getBoostControlIdsBytes(int index); + + /** + * + * + *
                                +   * IDs of the redirect controls. Only the first triggered redirect
                                +   * action is applied, even if multiple apply. Maximum number of
                                +   * specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @return A list containing the redirectControlIds. + */ + java.util.List getRedirectControlIdsList(); + /** + * + * + *
                                +   * IDs of the redirect controls. Only the first triggered redirect
                                +   * action is applied, even if multiple apply. Maximum number of
                                +   * specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @return The count of redirectControlIds. + */ + int getRedirectControlIdsCount(); + /** + * + * + *
                                +   * IDs of the redirect controls. Only the first triggered redirect
                                +   * action is applied, even if multiple apply. Maximum number of
                                +   * specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @param index The index of the element to return. + * @return The redirectControlIds at the given index. + */ + java.lang.String getRedirectControlIds(int index); + /** + * + * + *
                                +   * IDs of the redirect controls. Only the first triggered redirect
                                +   * action is applied, even if multiple apply. Maximum number of
                                +   * specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string redirect_control_ids = 14; + * + * @param index The index of the value to return. + * @return The bytes of the redirectControlIds at the given index. + */ + com.google.protobuf.ByteString getRedirectControlIdsBytes(int index); + + /** + * + * + *
                                +   * Condition synonyms specifications. If multiple synonyms conditions
                                +   * match, all matching synonyms controls in the list will execute.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @return A list containing the synonymsControlIds. + */ + java.util.List getSynonymsControlIdsList(); + /** + * + * + *
                                +   * Condition synonyms specifications. If multiple synonyms conditions
                                +   * match, all matching synonyms controls in the list will execute.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @return The count of synonymsControlIds. + */ + int getSynonymsControlIdsCount(); + /** + * + * + *
                                +   * Condition synonyms specifications. If multiple synonyms conditions
                                +   * match, all matching synonyms controls in the list will execute.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @param index The index of the element to return. + * @return The synonymsControlIds at the given index. + */ + java.lang.String getSynonymsControlIds(int index); + /** + * + * + *
                                +   * Condition synonyms specifications. If multiple synonyms conditions
                                +   * match, all matching synonyms controls in the list will execute.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string synonyms_control_ids = 15; + * + * @param index The index of the value to return. + * @return The bytes of the synonymsControlIds at the given index. + */ + com.google.protobuf.ByteString getSynonymsControlIdsBytes(int index); + + /** + * + * + *
                                +   * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +   * conditions match, all matching oneway synonyms controls in the list
                                +   * will execute. Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @return A list containing the onewaySynonymsControlIds. + */ + java.util.List getOnewaySynonymsControlIdsList(); + /** + * + * + *
                                +   * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +   * conditions match, all matching oneway synonyms controls in the list
                                +   * will execute. Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @return The count of onewaySynonymsControlIds. + */ + int getOnewaySynonymsControlIdsCount(); + /** + * + * + *
                                +   * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +   * conditions match, all matching oneway synonyms controls in the list
                                +   * will execute. Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @param index The index of the element to return. + * @return The onewaySynonymsControlIds at the given index. + */ + java.lang.String getOnewaySynonymsControlIds(int index); + /** + * + * + *
                                +   * Condition oneway synonyms specifications. If multiple oneway synonyms
                                +   * conditions match, all matching oneway synonyms controls in the list
                                +   * will execute. Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string oneway_synonyms_control_ids = 16; + * + * @param index The index of the value to return. + * @return The bytes of the onewaySynonymsControlIds at the given index. + */ + com.google.protobuf.ByteString getOnewaySynonymsControlIdsBytes(int index); + + /** + * + * + *
                                +   * Condition do not associate specifications. If multiple do not
                                +   * associate conditions match, all matching do not associate controls in
                                +   * the list will execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @return A list containing the dissociateControlIds. + */ + java.util.List getDissociateControlIdsList(); + /** + * + * + *
                                +   * Condition do not associate specifications. If multiple do not
                                +   * associate conditions match, all matching do not associate controls in
                                +   * the list will execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @return The count of dissociateControlIds. + */ + int getDissociateControlIdsCount(); + /** + * + * + *
                                +   * Condition do not associate specifications. If multiple do not
                                +   * associate conditions match, all matching do not associate controls in
                                +   * the list will execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @param index The index of the element to return. + * @return The dissociateControlIds at the given index. + */ + java.lang.String getDissociateControlIds(int index); + /** + * + * + *
                                +   * Condition do not associate specifications. If multiple do not
                                +   * associate conditions match, all matching do not associate controls in
                                +   * the list will execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string dissociate_control_ids = 17; + * + * @param index The index of the value to return. + * @return The bytes of the dissociateControlIds at the given index. + */ + com.google.protobuf.ByteString getDissociateControlIdsBytes(int index); + + /** + * + * + *
                                +   * Condition replacement specifications.
                                +   * Applied according to the order in the list.
                                +   * A previously replaced term can not be re-replaced.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @return A list containing the replacementControlIds. + */ + java.util.List getReplacementControlIdsList(); + /** + * + * + *
                                +   * Condition replacement specifications.
                                +   * Applied according to the order in the list.
                                +   * A previously replaced term can not be re-replaced.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @return The count of replacementControlIds. + */ + int getReplacementControlIdsCount(); + /** + * + * + *
                                +   * Condition replacement specifications.
                                +   * Applied according to the order in the list.
                                +   * A previously replaced term can not be re-replaced.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @param index The index of the element to return. + * @return The replacementControlIds at the given index. + */ + java.lang.String getReplacementControlIds(int index); + /** + * + * + *
                                +   * Condition replacement specifications.
                                +   * Applied according to the order in the list.
                                +   * A previously replaced term can not be re-replaced.
                                +   * Maximum number of specifications is 100.
                                +   *
                                +   * Can only be set if
                                +   * [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is
                                +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH].
                                +   * 
                                + * + * repeated string replacement_control_ids = 18; + * + * @param index The index of the value to return. + * @return The bytes of the replacementControlIds at the given index. + */ + com.google.protobuf.ByteString getReplacementControlIdsBytes(int index); + + /** + * + * + *
                                +   * Condition ignore specifications. If multiple ignore
                                +   * conditions match, all matching ignore controls in the list will
                                +   * execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @return A list containing the ignoreControlIds. + */ + java.util.List getIgnoreControlIdsList(); + /** + * + * + *
                                +   * Condition ignore specifications. If multiple ignore
                                +   * conditions match, all matching ignore controls in the list will
                                +   * execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @return The count of ignoreControlIds. + */ + int getIgnoreControlIdsCount(); + /** + * + * + *
                                +   * Condition ignore specifications. If multiple ignore
                                +   * conditions match, all matching ignore controls in the list will
                                +   * execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @param index The index of the element to return. + * @return The ignoreControlIds at the given index. + */ + java.lang.String getIgnoreControlIds(int index); + /** + * + * + *
                                +   * Condition ignore specifications. If multiple ignore
                                +   * conditions match, all matching ignore controls in the list will
                                +   * execute.
                                +   * Order does not matter.
                                +   * Maximum number of specifications is 100.
                                +   * 
                                + * + * repeated string ignore_control_ids = 19; + * + * @param index The index of the value to return. + * @return The bytes of the ignoreControlIds at the given index. + */ + com.google.protobuf.ByteString getIgnoreControlIdsBytes(int index); + + com.google.cloud.discoveryengine.v1alpha.ServingConfig.VerticalConfigCase getVerticalConfigCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigProto.java new file mode 100644 index 000000000000..2a10b41b87d5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigProto.java @@ -0,0 +1,189 @@ +/* + * 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/discoveryengine/v1alpha/serving_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public final class ServingConfigProto { + private ServingConfigProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_MediaConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_MediaConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_GenericConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_GenericConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n9google/cloud/discoveryengine/v1alpha/s" + + "erving_config.proto\022$google.cloud.discov" + + "eryengine.v1alpha\032\037google/api/field_beha" + + "vior.proto\032\031google/api/resource.proto\0321g" + + "oogle/cloud/discoveryengine/v1alpha/comm" + + "on.proto\0329google/cloud/discoveryengine/v" + + "1alpha/search_service.proto\032\037google/prot" + + "obuf/timestamp.proto\"\306\r\n\rServingConfig\022W" + + "\n\014media_config\030\007 \001(\0132?.google.cloud.disc" + + "overyengine.v1alpha.ServingConfig.MediaC" + + "onfigH\000\022[\n\016generic_config\030\n \001(\0132A.google" + + ".cloud.discoveryengine.v1alpha.ServingCo" + + "nfig.GenericConfigH\000\022\021\n\004name\030\001 \001(\tB\003\340A\005\022" + + "\031\n\014display_name\030\002 \001(\tB\003\340A\002\022Q\n\rsolution_t" + + "ype\030\003 \001(\01622.google.cloud.discoveryengine" + + ".v1alpha.SolutionTypeB\006\340A\002\340A\005\022\020\n\010model_i" + + "d\030\004 \001(\t\022\027\n\017diversity_level\030\005 \001(\t\022O\n\020embe" + + "dding_config\030\024 \001(\01325.google.cloud.discov" + + "eryengine.v1alpha.EmbeddingConfig\022\032\n\022ran" + + "king_expression\030\025 \001(\t\022R\n\022guided_search_s" + + "pec\030\026 \001(\01326.google.cloud.discoveryengine" + + ".v1alpha.GuidedSearchSpec\022[\n\027custom_fine" + + "_tuning_spec\030\030 \001(\0132:.google.cloud.discov" + + "eryengine.v1alpha.CustomFineTuningSpec\0224" + + "\n\013create_time\030\010 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022\032\n\022filter_con" + + "trol_ids\030\013 \003(\t\022\031\n\021boost_control_ids\030\014 \003(" + + "\t\022\034\n\024redirect_control_ids\030\016 \003(\t\022\034\n\024synon" + + "yms_control_ids\030\017 \003(\t\022#\n\033oneway_synonyms" + + "_control_ids\030\020 \003(\t\022\036\n\026dissociate_control" + + "_ids\030\021 \003(\t\022\037\n\027replacement_control_ids\030\022 " + + "\003(\t\022\032\n\022ignore_control_ids\030\023 \003(\t\032\310\001\n\013Medi" + + "aConfig\022.\n$content_watched_percentage_th" + + "reshold\030\002 \001(\002H\000\022+\n!content_watched_secon" + + "ds_threshold\030\005 \001(\002H\000\022\033\n\023demotion_event_t" + + "ype\030\001 \001(\t\022%\n\035content_freshness_cutoff_da" + + "ys\030\004 \001(\005B\030\n\026demote_content_watched\032s\n\rGe" + + "nericConfig\022b\n\023content_search_spec\030\001 \001(\013" + + "2E.google.cloud.discoveryengine.v1alpha." + + "SearchRequest.ContentSearchSpec:\200\003\352A\374\002\n," + + "discoveryengine.googleapis.com/ServingCo" + + "nfig\022_projects/{project}/locations/{loca" + + "tion}/dataStores/{data_store}/servingCon" + + "figs/{serving_config}\022xprojects/{project" + + "}/locations/{location}/collections/{coll" + + "ection}/dataStores/{data_store}/servingC" + + "onfigs/{serving_config}\022qprojects/{proje" + + "ct}/locations/{location}/collections/{co" + + "llection}/engines/{engine}/servingConfig" + + "s/{serving_config}B\021\n\017vertical_configB\236\002" + + "\n(com.google.cloud.discoveryengine.v1alp" + + "haB\022ServingConfigProtoP\001ZRcloud.google.c" + + "om/go/discoveryengine/apiv1alpha/discove" + + "ryenginepb;discoveryenginepb\242\002\017DISCOVERY" + + "ENGINE\252\002$Google.Cloud.DiscoveryEngine.V1" + + "Alpha\312\002$Google\\Cloud\\DiscoveryEngine\\V1a" + + "lpha\352\002\'Google::Cloud::DiscoveryEngine::V" + + "1alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.CommonProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_descriptor, + new java.lang.String[] { + "MediaConfig", + "GenericConfig", + "Name", + "DisplayName", + "SolutionType", + "ModelId", + "DiversityLevel", + "EmbeddingConfig", + "RankingExpression", + "GuidedSearchSpec", + "CustomFineTuningSpec", + "CreateTime", + "UpdateTime", + "FilterControlIds", + "BoostControlIds", + "RedirectControlIds", + "SynonymsControlIds", + "OnewaySynonymsControlIds", + "DissociateControlIds", + "ReplacementControlIds", + "IgnoreControlIds", + "VerticalConfig", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_MediaConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_MediaConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_MediaConfig_descriptor, + new java.lang.String[] { + "ContentWatchedPercentageThreshold", + "ContentWatchedSecondsThreshold", + "DemotionEventType", + "ContentFreshnessCutoffDays", + "DemoteContentWatched", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_GenericConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_GenericConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ServingConfig_GenericConfig_descriptor, + new java.lang.String[] { + "ContentSearchSpec", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.CommonProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.SearchServiceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceProto.java new file mode 100644 index 000000000000..fb01369cd5f8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/ServingConfigServiceProto.java @@ -0,0 +1,184 @@ +/* + * 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/discoveryengine/v1alpha/serving_config_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public final class ServingConfigServiceProto { + private ServingConfigServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_UpdateServingConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_UpdateServingConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_GetServingConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_GetServingConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nAgoogle/cloud/discoveryengine/v1alpha/s" + + "erving_config_service.proto\022$google.clou" + + "d.discoveryengine.v1alpha\032\034google/api/an" + + "notations.proto\032\027google/api/client.proto" + + "\032\037google/api/field_behavior.proto\032\031googl" + + "e/api/resource.proto\0329google/cloud/disco" + + "veryengine/v1alpha/serving_config.proto\032" + + " google/protobuf/field_mask.proto\"\237\001\n\032Up" + + "dateServingConfigRequest\022P\n\016serving_conf" + + "ig\030\001 \001(\01323.google.cloud.discoveryengine." + + "v1alpha.ServingConfigB\003\340A\002\022/\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMask\"]\n\027G" + + "etServingConfigRequest\022B\n\004name\030\001 \001(\tB4\340A" + + "\002\372A.\n,discoveryengine.googleapis.com/Ser" + + "vingConfig\"\222\001\n\031ListServingConfigsRequest" + + "\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022,discoveryengin" + + "e.googleapis.com/ServingConfig\022\026\n\tpage_s" + + "ize\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"" + + "\203\001\n\032ListServingConfigsResponse\022L\n\017servin" + + "g_configs\030\001 \003(\01323.google.cloud.discovery" + + "engine.v1alpha.ServingConfig\022\027\n\017next_pag" + + "e_token\030\002 \001(\t2\221\013\n\024ServingConfigService\022\377" + + "\003\n\023UpdateServingConfig\022@.google.cloud.di" + + "scoveryengine.v1alpha.UpdateServingConfi" + + "gRequest\0323.google.cloud.discoveryengine." + + "v1alpha.ServingConfig\"\360\002\332A\032serving_confi" + + "g,update_mask\202\323\344\223\002\314\0022S/v1alpha/{serving_" + + "config.name=projects/*/locations/*/dataS" + + "tores/*/servingConfigs/*}:\016serving_confi" + + "gZs2a/v1alpha/{serving_config.name=proje" + + "cts/*/locations/*/collections/*/dataStor" + + "es/*/servingConfigs/*}:\016serving_configZp" + + "2^/v1alpha/{serving_config.name=projects" + + "/*/locations/*/collections/*/engines/*/s" + + "ervingConfigs/*}:\016serving_config\022\206\003\n\020Get" + + "ServingConfig\022=.google.cloud.discoveryen" + + "gine.v1alpha.GetServingConfigRequest\0323.g" + + "oogle.cloud.discoveryengine.v1alpha.Serv" + + "ingConfig\"\375\001\332A\004name\202\323\344\223\002\357\001\022D/v1alpha/{na" + + "me=projects/*/locations/*/dataStores/*/s" + + "ervingConfigs/*}ZT\022R/v1alpha/{name=proje" + + "cts/*/locations/*/collections/*/dataStor" + + "es/*/servingConfigs/*}ZQ\022O/v1alpha/{name" + + "=projects/*/locations/*/collections/*/en" + + "gines/*/servingConfigs/*}\022\231\003\n\022ListServin" + + "gConfigs\022?.google.cloud.discoveryengine." + + "v1alpha.ListServingConfigsRequest\032@.goog" + + "le.cloud.discoveryengine.v1alpha.ListSer" + + "vingConfigsResponse\"\377\001\332A\006parent\202\323\344\223\002\357\001\022D" + + "/v1alpha/{parent=projects/*/locations/*/" + + "dataStores/*}/servingConfigsZT\022R/v1alpha" + + "/{parent=projects/*/locations/*/collecti" + + "ons/*/dataStores/*}/servingConfigsZQ\022O/v" + + "1alpha/{parent=projects/*/locations/*/co" + + "llections/*/engines/*}/servingConfigs\032R\312" + + "A\036discoveryengine.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB\245\002\n(com.google.cloud.discoveryengine.v" + + "1alphaB\031ServingConfigServiceProtoP\001ZRclo" + + "ud.google.com/go/discoveryengine/apiv1al" + + "pha/discoveryenginepb;discoveryenginepb\242" + + "\002\017DISCOVERYENGINE\252\002$Google.Cloud.Discove" + + "ryEngine.V1Alpha\312\002$Google\\Cloud\\Discover" + + "yEngine\\V1alpha\352\002\'Google::Cloud::Discove" + + "ryEngine::V1alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1alpha.ServingConfigProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateServingConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1alpha_UpdateServingConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_UpdateServingConfigRequest_descriptor, + new java.lang.String[] { + "ServingConfig", "UpdateMask", + }); + internal_static_google_cloud_discoveryengine_v1alpha_GetServingConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_discoveryengine_v1alpha_GetServingConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_GetServingConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1alpha_ListServingConfigsResponse_descriptor, + new java.lang.String[] { + "ServingConfigs", "NextPageToken", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1alpha.ServingConfigProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineProto.java index fc806388cd3e..b540834fa1d3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteSearchEngineProto.java @@ -68,7 +68,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ation}/dataStores/{data_store}/siteSearc" + "hEngine\022iprojects/{project}/locations/{l" + "ocation}/collections/{collection}/dataSt" - + "ores/{data_store}/siteSearchEngine\"\363\010\n\nT" + + "ores/{data_store}/siteSearchEngine\"\221\t\n\nT" + "argetSite\022\021\n\004name\030\001 \001(\tB\003\340A\003\022$\n\024provided" + "_uri_pattern\030\002 \001(\tB\006\340A\002\340A\004\022C\n\004type\030\003 \001(\016" + "25.google.cloud.discoveryengine.v1alpha." @@ -82,37 +82,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "time\030\005 \001(\0132\032.google.protobuf.TimestampB\003" + "\340A\003\022[\n\016failure_reason\030\t \001(\0132>.google.clo" + "ud.discoveryengine.v1alpha.TargetSite.Fa" - + "ilureReasonB\003\340A\003\032\220\001\n\rFailureReason\022d\n\rqu" + + "ilureReasonB\003\340A\003\032\256\001\n\rFailureReason\022d\n\rqu" + "ota_failure\030\001 \001(\0132K.google.cloud.discove" + "ryengine.v1alpha.TargetSite.FailureReaso" - + "n.QuotaFailureH\000\032\016\n\014QuotaFailureB\t\n\007fail" - + "ure\"6\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007INC" - + "LUDE\020\001\022\013\n\007EXCLUDE\020\002\"g\n\016IndexingStatus\022\037\n" - + "\033INDEXING_STATUS_UNSPECIFIED\020\000\022\013\n\007PENDIN" - + "G\020\001\022\n\n\006FAILED\020\002\022\r\n\tSUCCEEDED\020\003\022\014\n\010DELETI" - + "NG\020\004:\241\002\352A\235\002\n)discoveryengine.googleapis." - + "com/TargetSite\022jprojects/{project}/locat" - + "ions/{location}/dataStores/{data_store}/" - + "siteSearchEngine/targetSites/{target_sit" - + "e}\022\203\001projects/{project}/locations/{locat" - + "ion}/collections/{collection}/dataStores" - + "/{data_store}/siteSearchEngine/targetSit" - + "es/{target_site}\"\250\002\n\024SiteVerificationInf" - + "o\022q\n\027site_verification_state\030\001 \001(\0162P.goo" - + "gle.cloud.discoveryengine.v1alpha.SiteVe" - + "rificationInfo.SiteVerificationState\022/\n\013" - + "verify_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp\"l\n\025SiteVerificationState\022\'\n#SITE_V" - + "ERIFICATION_STATE_UNSPECIFIED\020\000\022\014\n\010VERIF" - + "IED\020\001\022\016\n\nUNVERIFIED\020\002\022\014\n\010EXEMPTED\020\003B\241\002\n(" - + "com.google.cloud.discoveryengine.v1alpha" - + "B\025SiteSearchEngineProtoP\001ZRcloud.google." - + "com/go/discoveryengine/apiv1alpha/discov" - + "eryenginepb;discoveryenginepb\242\002\017DISCOVER" - + "YENGINE\252\002$Google.Cloud.DiscoveryEngine.V" - + "1Alpha\312\002$Google\\Cloud\\DiscoveryEngine\\V1" - + "alpha\352\002\'Google::Cloud::DiscoveryEngine::" - + "V1alphab\006proto3" + + "n.QuotaFailureH\000\032,\n\014QuotaFailure\022\034\n\024tota" + + "l_required_quota\030\001 \001(\003B\t\n\007failure\"6\n\004Typ" + + "e\022\024\n\020TYPE_UNSPECIFIED\020\000\022\013\n\007INCLUDE\020\001\022\013\n\007" + + "EXCLUDE\020\002\"g\n\016IndexingStatus\022\037\n\033INDEXING_" + + "STATUS_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\n\n\006FAI" + + "LED\020\002\022\r\n\tSUCCEEDED\020\003\022\014\n\010DELETING\020\004:\241\002\352A\235" + + "\002\n)discoveryengine.googleapis.com/Target" + + "Site\022jprojects/{project}/locations/{loca" + + "tion}/dataStores/{data_store}/siteSearch" + + "Engine/targetSites/{target_site}\022\203\001proje" + + "cts/{project}/locations/{location}/colle" + + "ctions/{collection}/dataStores/{data_sto" + + "re}/siteSearchEngine/targetSites/{target" + + "_site}\"\250\002\n\024SiteVerificationInfo\022q\n\027site_" + + "verification_state\030\001 \001(\0162P.google.cloud." + + "discoveryengine.v1alpha.SiteVerification" + + "Info.SiteVerificationState\022/\n\013verify_tim" + + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\"l\n\025S" + + "iteVerificationState\022\'\n#SITE_VERIFICATIO" + + "N_STATE_UNSPECIFIED\020\000\022\014\n\010VERIFIED\020\001\022\016\n\nU" + + "NVERIFIED\020\002\022\014\n\010EXEMPTED\020\003B\241\002\n(com.google" + + ".cloud.discoveryengine.v1alphaB\025SiteSear" + + "chEngineProtoP\001ZRcloud.google.com/go/dis" + + "coveryengine/apiv1alpha/discoveryenginep" + + "b;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002$" + + "Google.Cloud.DiscoveryEngine.V1Alpha\312\002$G" + + "oogle\\Cloud\\DiscoveryEngine\\V1alpha\352\002\'Go" + + "ogle::Cloud::DiscoveryEngine::V1alphab\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -163,7 +164,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1alpha_TargetSite_FailureReason_QuotaFailure_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1alpha_TargetSite_FailureReason_QuotaFailure_descriptor, - new java.lang.String[] {}); + new java.lang.String[] { + "TotalRequiredQuota", + }); internal_static_google_cloud_discoveryengine_v1alpha_SiteVerificationInfo_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_discoveryengine_v1alpha_SiteVerificationInfo_fieldAccessorTable = diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteVerificationInfo.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteVerificationInfo.java index a6e984349469..28beecfa62be 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteVerificationInfo.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SiteVerificationInfo.java @@ -108,7 +108,7 @@ public enum SiteVerificationState implements com.google.protobuf.ProtocolMessage * * *
                                -     * Site exempt from verification, e.g. a public website that opens to all.
                                +     * Site exempt from verification, e.g., a public website that opens to all.
                                      * 
                                * * EXEMPTED = 3; @@ -151,7 +151,7 @@ public enum SiteVerificationState implements com.google.protobuf.ProtocolMessage * * *
                                -     * Site exempt from verification, e.g. a public website that opens to all.
                                +     * Site exempt from verification, e.g., a public website that opens to all.
                                      * 
                                * * EXEMPTED = 3; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SuggestionDenyListEntry.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SuggestionDenyListEntry.java new file mode 100644 index 000000000000..3632727e2868 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SuggestionDenyListEntry.java @@ -0,0 +1,988 @@ +/* + * 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/discoveryengine/v1alpha/completion.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Suggestion deny list entry identifying the phrase to block from suggestions
                                + * and the applied operation for the phrase.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry} + */ +public final class SuggestionDenyListEntry extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry) + SuggestionDenyListEntryOrBuilder { + private static final long serialVersionUID = 0L; + // Use SuggestionDenyListEntry.newBuilder() to construct. + private SuggestionDenyListEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SuggestionDenyListEntry() { + blockPhrase_ = ""; + matchOperator_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SuggestionDenyListEntry(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CompletionProto + .internal_static_google_cloud_discoveryengine_v1alpha_SuggestionDenyListEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CompletionProto + .internal_static_google_cloud_discoveryengine_v1alpha_SuggestionDenyListEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.class, + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.Builder.class); + } + + /** + * + * + *
                                +   * Operator for matching with the generated suggestions.
                                +   * 
                                + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator} + */ + public enum MatchOperator implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                +     * Default value. Should not be used
                                +     * 
                                + * + * MATCH_OPERATOR_UNSPECIFIED = 0; + */ + MATCH_OPERATOR_UNSPECIFIED(0), + /** + * + * + *
                                +     * If the suggestion is an exact match to the block_phrase, then block it.
                                +     * 
                                + * + * EXACT_MATCH = 1; + */ + EXACT_MATCH(1), + /** + * + * + *
                                +     * If the suggestion contains the block_phrase, then block it.
                                +     * 
                                + * + * CONTAINS = 2; + */ + CONTAINS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                +     * Default value. Should not be used
                                +     * 
                                + * + * MATCH_OPERATOR_UNSPECIFIED = 0; + */ + public static final int MATCH_OPERATOR_UNSPECIFIED_VALUE = 0; + /** + * + * + *
                                +     * If the suggestion is an exact match to the block_phrase, then block it.
                                +     * 
                                + * + * EXACT_MATCH = 1; + */ + public static final int EXACT_MATCH_VALUE = 1; + /** + * + * + *
                                +     * If the suggestion contains the block_phrase, then block it.
                                +     * 
                                + * + * CONTAINS = 2; + */ + public static final int CONTAINS_VALUE = 2; + + 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 MatchOperator 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 MatchOperator forNumber(int value) { + switch (value) { + case 0: + return MATCH_OPERATOR_UNSPECIFIED; + case 1: + return EXACT_MATCH; + case 2: + return CONTAINS; + 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 MatchOperator findValueByNumber(int number) { + return MatchOperator.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.discoveryengine.v1alpha.SuggestionDenyListEntry.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MatchOperator[] VALUES = values(); + + public static MatchOperator 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 MatchOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator) + } + + public static final int BLOCK_PHRASE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object blockPhrase_ = ""; + /** + * + * + *
                                +   * Required. Phrase to block from suggestions served. Can be maximum 125
                                +   * characters.
                                +   * 
                                + * + * string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The blockPhrase. + */ + @java.lang.Override + public java.lang.String getBlockPhrase() { + java.lang.Object ref = blockPhrase_; + 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(); + blockPhrase_ = s; + return s; + } + } + /** + * + * + *
                                +   * Required. Phrase to block from suggestions served. Can be maximum 125
                                +   * characters.
                                +   * 
                                + * + * string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for blockPhrase. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBlockPhraseBytes() { + java.lang.Object ref = blockPhrase_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + blockPhrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATCH_OPERATOR_FIELD_NUMBER = 2; + private int matchOperator_ = 0; + /** + * + * + *
                                +   * Required. The match operator to apply for this phrase. Whether to block the
                                +   * exact phrase, or block any suggestions containing this phrase.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchOperator. + */ + @java.lang.Override + public int getMatchOperatorValue() { + return matchOperator_; + } + /** + * + * + *
                                +   * Required. The match operator to apply for this phrase. Whether to block the
                                +   * exact phrase, or block any suggestions containing this phrase.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchOperator. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator + getMatchOperator() { + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator result = + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator.forNumber( + matchOperator_); + return result == null + ? com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator + .UNRECOGNIZED + : result; + } + + 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(blockPhrase_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, blockPhrase_); + } + if (matchOperator_ + != com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator + .MATCH_OPERATOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, matchOperator_); + } + 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(blockPhrase_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, blockPhrase_); + } + if (matchOperator_ + != com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator + .MATCH_OPERATOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, matchOperator_); + } + 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.discoveryengine.v1alpha.SuggestionDenyListEntry)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry other = + (com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry) obj; + + if (!getBlockPhrase().equals(other.getBlockPhrase())) return false; + if (matchOperator_ != other.matchOperator_) 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) + BLOCK_PHRASE_FIELD_NUMBER; + hash = (53 * hash) + getBlockPhrase().hashCode(); + hash = (37 * hash) + MATCH_OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + matchOperator_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry 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.discoveryengine.v1alpha.SuggestionDenyListEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry 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.discoveryengine.v1alpha.SuggestionDenyListEntry parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry 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.discoveryengine.v1alpha.SuggestionDenyListEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry 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.discoveryengine.v1alpha.SuggestionDenyListEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry 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.discoveryengine.v1alpha.SuggestionDenyListEntry 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; + } + /** + * + * + *
                                +   * Suggestion deny list entry identifying the phrase to block from suggestions
                                +   * and the applied operation for the phrase.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry) + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.CompletionProto + .internal_static_google_cloud_discoveryengine_v1alpha_SuggestionDenyListEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.CompletionProto + .internal_static_google_cloud_discoveryengine_v1alpha_SuggestionDenyListEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.class, + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + blockPhrase_ = ""; + matchOperator_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.CompletionProto + .internal_static_google_cloud_discoveryengine_v1alpha_SuggestionDenyListEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry build() { + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry buildPartial() { + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry result = + new com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.blockPhrase_ = blockPhrase_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.matchOperator_ = matchOperator_; + } + } + + @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.discoveryengine.v1alpha.SuggestionDenyListEntry) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.getDefaultInstance()) + return this; + if (!other.getBlockPhrase().isEmpty()) { + blockPhrase_ = other.blockPhrase_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.matchOperator_ != 0) { + setMatchOperatorValue(other.getMatchOperatorValue()); + } + 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: + { + blockPhrase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + matchOperator_ = input.readEnum(); + 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 java.lang.Object blockPhrase_ = ""; + /** + * + * + *
                                +     * Required. Phrase to block from suggestions served. Can be maximum 125
                                +     * characters.
                                +     * 
                                + * + * string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The blockPhrase. + */ + public java.lang.String getBlockPhrase() { + java.lang.Object ref = blockPhrase_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + blockPhrase_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Required. Phrase to block from suggestions served. Can be maximum 125
                                +     * characters.
                                +     * 
                                + * + * string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for blockPhrase. + */ + public com.google.protobuf.ByteString getBlockPhraseBytes() { + java.lang.Object ref = blockPhrase_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + blockPhrase_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Required. Phrase to block from suggestions served. Can be maximum 125
                                +     * characters.
                                +     * 
                                + * + * string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The blockPhrase to set. + * @return This builder for chaining. + */ + public Builder setBlockPhrase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + blockPhrase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. Phrase to block from suggestions served. Can be maximum 125
                                +     * characters.
                                +     * 
                                + * + * string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBlockPhrase() { + blockPhrase_ = getDefaultInstance().getBlockPhrase(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. Phrase to block from suggestions served. Can be maximum 125
                                +     * characters.
                                +     * 
                                + * + * string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for blockPhrase to set. + * @return This builder for chaining. + */ + public Builder setBlockPhraseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + blockPhrase_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int matchOperator_ = 0; + /** + * + * + *
                                +     * Required. The match operator to apply for this phrase. Whether to block the
                                +     * exact phrase, or block any suggestions containing this phrase.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchOperator. + */ + @java.lang.Override + public int getMatchOperatorValue() { + return matchOperator_; + } + /** + * + * + *
                                +     * Required. The match operator to apply for this phrase. Whether to block the
                                +     * exact phrase, or block any suggestions containing this phrase.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for matchOperator to set. + * @return This builder for chaining. + */ + public Builder setMatchOperatorValue(int value) { + matchOperator_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The match operator to apply for this phrase. Whether to block the
                                +     * exact phrase, or block any suggestions containing this phrase.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchOperator. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator + getMatchOperator() { + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator result = + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator.forNumber( + matchOperator_); + return result == null + ? com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator + .UNRECOGNIZED + : result; + } + /** + * + * + *
                                +     * Required. The match operator to apply for this phrase. Whether to block the
                                +     * exact phrase, or block any suggestions containing this phrase.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The matchOperator to set. + * @return This builder for chaining. + */ + public Builder setMatchOperator( + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + matchOperator_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The match operator to apply for this phrase. Whether to block the
                                +     * exact phrase, or block any suggestions containing this phrase.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMatchOperator() { + bitField0_ = (bitField0_ & ~0x00000002); + matchOperator_ = 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.discoveryengine.v1alpha.SuggestionDenyListEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry) + private static final com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry(); + } + + public static com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestionDenyListEntry 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.discoveryengine.v1alpha.SuggestionDenyListEntry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SuggestionDenyListEntryOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SuggestionDenyListEntryOrBuilder.java new file mode 100644 index 000000000000..8faea754d666 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/SuggestionDenyListEntryOrBuilder.java @@ -0,0 +1,84 @@ +/* + * 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/discoveryengine/v1alpha/completion.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface SuggestionDenyListEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Required. Phrase to block from suggestions served. Can be maximum 125
                                +   * characters.
                                +   * 
                                + * + * string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The blockPhrase. + */ + java.lang.String getBlockPhrase(); + /** + * + * + *
                                +   * Required. Phrase to block from suggestions served. Can be maximum 125
                                +   * characters.
                                +   * 
                                + * + * string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for blockPhrase. + */ + com.google.protobuf.ByteString getBlockPhraseBytes(); + + /** + * + * + *
                                +   * Required. The match operator to apply for this phrase. Whether to block the
                                +   * exact phrase, or block any suggestions containing this phrase.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchOperator. + */ + int getMatchOperatorValue(); + /** + * + * + *
                                +   * Required. The match operator to apply for this phrase. Whether to block the
                                +   * exact phrase, or block any suggestions containing this phrase.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchOperator. + */ + com.google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator getMatchOperator(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TargetSite.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TargetSite.java index 77365e224f8f..3ddb6ac9e3e6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TargetSite.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TargetSite.java @@ -534,8 +534,29 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public interface QuotaFailureOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.TargetSite.FailureReason.QuotaFailure) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +       * This number is an estimation on how much total quota this project needs
                                +       * to successfully complete indexing.
                                +       * 
                                + * + * int64 total_required_quota = 1; + * + * @return The totalRequiredQuota. + */ + long getTotalRequiredQuota(); + } /** + * + * + *
                                +     * Failed due to insufficient quota.
                                +     * 
                                + * * Protobuf type {@code * google.cloud.discoveryengine.v1alpha.TargetSite.FailureReason.QuotaFailure} */ @@ -574,6 +595,25 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .Builder.class); } + public static final int TOTAL_REQUIRED_QUOTA_FIELD_NUMBER = 1; + private long totalRequiredQuota_ = 0L; + /** + * + * + *
                                +       * This number is an estimation on how much total quota this project needs
                                +       * to successfully complete indexing.
                                +       * 
                                + * + * int64 total_required_quota = 1; + * + * @return The totalRequiredQuota. + */ + @java.lang.Override + public long getTotalRequiredQuota() { + return totalRequiredQuota_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -588,6 +628,9 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (totalRequiredQuota_ != 0L) { + output.writeInt64(1, totalRequiredQuota_); + } getUnknownFields().writeTo(output); } @@ -597,6 +640,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (totalRequiredQuota_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, totalRequiredQuota_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -615,6 +661,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.discoveryengine.v1alpha.TargetSite.FailureReason.QuotaFailure other = (com.google.cloud.discoveryengine.v1alpha.TargetSite.FailureReason.QuotaFailure) obj; + if (getTotalRequiredQuota() != other.getTotalRequiredQuota()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -626,6 +673,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOTAL_REQUIRED_QUOTA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalRequiredQuota()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -738,6 +787,12 @@ protected Builder newBuilderForType( return builder; } /** + * + * + *
                                +       * Failed due to insufficient quota.
                                +       * 
                                + * * Protobuf type {@code * google.cloud.discoveryengine.v1alpha.TargetSite.FailureReason.QuotaFailure} */ @@ -774,6 +829,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; + totalRequiredQuota_ = 0L; return this; } @@ -807,10 +864,21 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.discoveryengine.v1alpha.TargetSite.FailureReason.QuotaFailure result = new com.google.cloud.discoveryengine.v1alpha.TargetSite.FailureReason.QuotaFailure( this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.TargetSite.FailureReason.QuotaFailure result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalRequiredQuota_ = totalRequiredQuota_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -865,6 +933,9 @@ public Builder mergeFrom( if (other == com.google.cloud.discoveryengine.v1alpha.TargetSite.FailureReason.QuotaFailure .getDefaultInstance()) return this; + if (other.getTotalRequiredQuota() != 0L) { + setTotalRequiredQuota(other.getTotalRequiredQuota()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -891,6 +962,12 @@ public Builder mergeFrom( case 0: done = true; break; + case 8: + { + totalRequiredQuota_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -908,6 +985,64 @@ public Builder mergeFrom( return this; } + private int bitField0_; + + private long totalRequiredQuota_; + /** + * + * + *
                                +         * This number is an estimation on how much total quota this project needs
                                +         * to successfully complete indexing.
                                +         * 
                                + * + * int64 total_required_quota = 1; + * + * @return The totalRequiredQuota. + */ + @java.lang.Override + public long getTotalRequiredQuota() { + return totalRequiredQuota_; + } + /** + * + * + *
                                +         * This number is an estimation on how much total quota this project needs
                                +         * to successfully complete indexing.
                                +         * 
                                + * + * int64 total_required_quota = 1; + * + * @param value The totalRequiredQuota to set. + * @return This builder for chaining. + */ + public Builder setTotalRequiredQuota(long value) { + + totalRequiredQuota_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +         * This number is an estimation on how much total quota this project needs
                                +         * to successfully complete indexing.
                                +         * 
                                + * + * int64 total_required_quota = 1; + * + * @return This builder for chaining. + */ + public Builder clearTotalRequiredQuota() { + bitField0_ = (bitField0_ & ~0x00000001); + totalRequiredQuota_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1930,7 +2065,7 @@ public com.google.protobuf.ByteString getProvidedUriPatternBytes() { * * *
                                -   * The type of the target site, e.g. whether the site is to be included or
                                +   * The type of the target site, e.g., whether the site is to be included or
                                    * excluded.
                                    * 
                                * @@ -1946,7 +2081,7 @@ public int getTypeValue() { * * *
                                -   * The type of the target site, e.g. whether the site is to be included or
                                +   * The type of the target site, e.g., whether the site is to be included or
                                    * excluded.
                                    * 
                                * @@ -3063,7 +3198,7 @@ public Builder setProvidedUriPatternBytes(com.google.protobuf.ByteString value) * * *
                                -     * The type of the target site, e.g. whether the site is to be included or
                                +     * The type of the target site, e.g., whether the site is to be included or
                                      * excluded.
                                      * 
                                * @@ -3079,7 +3214,7 @@ public int getTypeValue() { * * *
                                -     * The type of the target site, e.g. whether the site is to be included or
                                +     * The type of the target site, e.g., whether the site is to be included or
                                      * excluded.
                                      * 
                                * @@ -3098,7 +3233,7 @@ public Builder setTypeValue(int value) { * * *
                                -     * The type of the target site, e.g. whether the site is to be included or
                                +     * The type of the target site, e.g., whether the site is to be included or
                                      * excluded.
                                      * 
                                * @@ -3118,7 +3253,7 @@ public com.google.cloud.discoveryengine.v1alpha.TargetSite.Type getType() { * * *
                                -     * The type of the target site, e.g. whether the site is to be included or
                                +     * The type of the target site, e.g., whether the site is to be included or
                                      * excluded.
                                      * 
                                * @@ -3140,7 +3275,7 @@ public Builder setType(com.google.cloud.discoveryengine.v1alpha.TargetSite.Type * * *
                                -     * The type of the target site, e.g. whether the site is to be included or
                                +     * The type of the target site, e.g., whether the site is to be included or
                                      * excluded.
                                      * 
                                * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TargetSiteOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TargetSiteOrBuilder.java index 42f3b94d0cd3..855783b4d1e5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TargetSiteOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TargetSiteOrBuilder.java @@ -88,7 +88,7 @@ public interface TargetSiteOrBuilder * * *
                                -   * The type of the target site, e.g. whether the site is to be included or
                                +   * The type of the target site, e.g., whether the site is to be included or
                                    * excluded.
                                    * 
                                * @@ -101,7 +101,7 @@ public interface TargetSiteOrBuilder * * *
                                -   * The type of the target site, e.g. whether the site is to be included or
                                +   * The type of the target site, e.g., whether the site is to be included or
                                    * excluded.
                                    * 
                                * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TrainCustomModelRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TrainCustomModelRequest.java index b1ebfd39fbf1..6581ad5d9828 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TrainCustomModelRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TrainCustomModelRequest.java @@ -75,12 +75,13 @@ public interface GcsTrainingInputOrBuilder * * *
                                -     * The gcs corpus data which could be associated in train data.
                                -     * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +     * The Cloud Storage corpus data which could be associated in train data.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                      * A newline delimited jsonl/ndjson file.
                                -     *  * For search-tuning model, each line should have the _id, title
                                -     *  and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                -     *  "relevant text"}
                                +     *
                                +     * For search-tuning model, each line should have the _id, title
                                +     * and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                +     * "relevant text"}
                                      * 
                                * * string corpus_data_path = 1; @@ -92,12 +93,13 @@ public interface GcsTrainingInputOrBuilder * * *
                                -     * The gcs corpus data which could be associated in train data.
                                -     * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +     * The Cloud Storage corpus data which could be associated in train data.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                      * A newline delimited jsonl/ndjson file.
                                -     *  * For search-tuning model, each line should have the _id, title
                                -     *  and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                -     *  "relevant text"}
                                +     *
                                +     * For search-tuning model, each line should have the _id, title
                                +     * and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                +     * "relevant text"}
                                      * 
                                * * string corpus_data_path = 1; @@ -111,10 +113,11 @@ public interface GcsTrainingInputOrBuilder * *
                                      * The gcs query data which could be associated in train data.
                                -     * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                      * A newline delimited jsonl/ndjson file.
                                -     *  * For search-tuning model, each line should have the _id
                                -     *  and text. Example: {"_id": "query1",  "text": "example query"}
                                +     *
                                +     * For search-tuning model, each line should have the _id
                                +     * and text. Example: {"_id": "query1",  "text": "example query"}
                                      * 
                                * * string query_data_path = 2; @@ -127,10 +130,11 @@ public interface GcsTrainingInputOrBuilder * *
                                      * The gcs query data which could be associated in train data.
                                -     * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                      * A newline delimited jsonl/ndjson file.
                                -     *  * For search-tuning model, each line should have the _id
                                -     *  and text. Example: {"_id": "query1",  "text": "example query"}
                                +     *
                                +     * For search-tuning model, each line should have the _id
                                +     * and text. Example: {"_id": "query1",  "text": "example query"}
                                      * 
                                * * string query_data_path = 2; @@ -143,14 +147,16 @@ public interface GcsTrainingInputOrBuilder * * *
                                -     * Gcs training data path whose format should be
                                -     * gs://<bucket_to_data>/<tsv_file_name>. The file should be in tsv format.
                                -     * Each line should have the doc_id and query_id and score (number).
                                -     *  * For search-tuning model, it should have the query-id corpus-id
                                -     *  score as tsv file header. The score should be a number in [0, inf+). The
                                -     *  larger the number is, the more relevant the pair is. Example:
                                -     *  query-id\tcorpus-id\tscore
                                -     *  query1\tdoc1\t1
                                +     * Cloud Storage training data path whose format should be
                                +     * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +     * format. Each line should have the doc_id and query_id and score (number).
                                +     *
                                +     * For search-tuning model, it should have the query-id corpus-id
                                +     * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +     * The larger the number is, the more relevant the pair is. Example:
                                +     *
                                +     * * `query-id\tcorpus-id\tscore`
                                +     * * `query1\tdoc1\t1`
                                      * 
                                * * string train_data_path = 3; @@ -162,14 +168,16 @@ public interface GcsTrainingInputOrBuilder * * *
                                -     * Gcs training data path whose format should be
                                -     * gs://<bucket_to_data>/<tsv_file_name>. The file should be in tsv format.
                                -     * Each line should have the doc_id and query_id and score (number).
                                -     *  * For search-tuning model, it should have the query-id corpus-id
                                -     *  score as tsv file header. The score should be a number in [0, inf+). The
                                -     *  larger the number is, the more relevant the pair is. Example:
                                -     *  query-id\tcorpus-id\tscore
                                -     *  query1\tdoc1\t1
                                +     * Cloud Storage training data path whose format should be
                                +     * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +     * format. Each line should have the doc_id and query_id and score (number).
                                +     *
                                +     * For search-tuning model, it should have the query-id corpus-id
                                +     * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +     * The larger the number is, the more relevant the pair is. Example:
                                +     *
                                +     * * `query-id\tcorpus-id\tscore`
                                +     * * `query1\tdoc1\t1`
                                      * 
                                * * string train_data_path = 3; @@ -182,8 +190,8 @@ public interface GcsTrainingInputOrBuilder * * *
                                -     * Gcs test data. Same format as train_data_path. If not provided, a
                                -     * random 80/20 train/test split will be performed on train_data_path.
                                +     * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +     * a random 80/20 train/test split will be performed on train_data_path.
                                      * 
                                * * string test_data_path = 4; @@ -195,8 +203,8 @@ public interface GcsTrainingInputOrBuilder * * *
                                -     * Gcs test data. Same format as train_data_path. If not provided, a
                                -     * random 80/20 train/test split will be performed on train_data_path.
                                +     * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +     * a random 80/20 train/test split will be performed on train_data_path.
                                      * 
                                * * string test_data_path = 4; @@ -209,7 +217,7 @@ public interface GcsTrainingInputOrBuilder * * *
                                -   * Gcs training data input.
                                +   * Cloud Storage training data input.
                                    * 
                                * * Protobuf type {@code @@ -263,12 +271,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                -     * The gcs corpus data which could be associated in train data.
                                -     * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +     * The Cloud Storage corpus data which could be associated in train data.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                      * A newline delimited jsonl/ndjson file.
                                -     *  * For search-tuning model, each line should have the _id, title
                                -     *  and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                -     *  "relevant text"}
                                +     *
                                +     * For search-tuning model, each line should have the _id, title
                                +     * and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                +     * "relevant text"}
                                      * 
                                * * string corpus_data_path = 1; @@ -291,12 +300,13 @@ public java.lang.String getCorpusDataPath() { * * *
                                -     * The gcs corpus data which could be associated in train data.
                                -     * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +     * The Cloud Storage corpus data which could be associated in train data.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                      * A newline delimited jsonl/ndjson file.
                                -     *  * For search-tuning model, each line should have the _id, title
                                -     *  and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                -     *  "relevant text"}
                                +     *
                                +     * For search-tuning model, each line should have the _id, title
                                +     * and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                +     * "relevant text"}
                                      * 
                                * * string corpus_data_path = 1; @@ -325,10 +335,11 @@ public com.google.protobuf.ByteString getCorpusDataPathBytes() { * *
                                      * The gcs query data which could be associated in train data.
                                -     * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                      * A newline delimited jsonl/ndjson file.
                                -     *  * For search-tuning model, each line should have the _id
                                -     *  and text. Example: {"_id": "query1",  "text": "example query"}
                                +     *
                                +     * For search-tuning model, each line should have the _id
                                +     * and text. Example: {"_id": "query1",  "text": "example query"}
                                      * 
                                * * string query_data_path = 2; @@ -352,10 +363,11 @@ public java.lang.String getQueryDataPath() { * *
                                      * The gcs query data which could be associated in train data.
                                -     * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                      * A newline delimited jsonl/ndjson file.
                                -     *  * For search-tuning model, each line should have the _id
                                -     *  and text. Example: {"_id": "query1",  "text": "example query"}
                                +     *
                                +     * For search-tuning model, each line should have the _id
                                +     * and text. Example: {"_id": "query1",  "text": "example query"}
                                      * 
                                * * string query_data_path = 2; @@ -383,14 +395,16 @@ public com.google.protobuf.ByteString getQueryDataPathBytes() { * * *
                                -     * Gcs training data path whose format should be
                                -     * gs://<bucket_to_data>/<tsv_file_name>. The file should be in tsv format.
                                -     * Each line should have the doc_id and query_id and score (number).
                                -     *  * For search-tuning model, it should have the query-id corpus-id
                                -     *  score as tsv file header. The score should be a number in [0, inf+). The
                                -     *  larger the number is, the more relevant the pair is. Example:
                                -     *  query-id\tcorpus-id\tscore
                                -     *  query1\tdoc1\t1
                                +     * Cloud Storage training data path whose format should be
                                +     * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +     * format. Each line should have the doc_id and query_id and score (number).
                                +     *
                                +     * For search-tuning model, it should have the query-id corpus-id
                                +     * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +     * The larger the number is, the more relevant the pair is. Example:
                                +     *
                                +     * * `query-id\tcorpus-id\tscore`
                                +     * * `query1\tdoc1\t1`
                                      * 
                                * * string train_data_path = 3; @@ -413,14 +427,16 @@ public java.lang.String getTrainDataPath() { * * *
                                -     * Gcs training data path whose format should be
                                -     * gs://<bucket_to_data>/<tsv_file_name>. The file should be in tsv format.
                                -     * Each line should have the doc_id and query_id and score (number).
                                -     *  * For search-tuning model, it should have the query-id corpus-id
                                -     *  score as tsv file header. The score should be a number in [0, inf+). The
                                -     *  larger the number is, the more relevant the pair is. Example:
                                -     *  query-id\tcorpus-id\tscore
                                -     *  query1\tdoc1\t1
                                +     * Cloud Storage training data path whose format should be
                                +     * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +     * format. Each line should have the doc_id and query_id and score (number).
                                +     *
                                +     * For search-tuning model, it should have the query-id corpus-id
                                +     * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +     * The larger the number is, the more relevant the pair is. Example:
                                +     *
                                +     * * `query-id\tcorpus-id\tscore`
                                +     * * `query1\tdoc1\t1`
                                      * 
                                * * string train_data_path = 3; @@ -448,8 +464,8 @@ public com.google.protobuf.ByteString getTrainDataPathBytes() { * * *
                                -     * Gcs test data. Same format as train_data_path. If not provided, a
                                -     * random 80/20 train/test split will be performed on train_data_path.
                                +     * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +     * a random 80/20 train/test split will be performed on train_data_path.
                                      * 
                                * * string test_data_path = 4; @@ -472,8 +488,8 @@ public java.lang.String getTestDataPath() { * * *
                                -     * Gcs test data. Same format as train_data_path. If not provided, a
                                -     * random 80/20 train/test split will be performed on train_data_path.
                                +     * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +     * a random 80/20 train/test split will be performed on train_data_path.
                                      * 
                                * * string test_data_path = 4; @@ -694,7 +710,7 @@ protected Builder newBuilderForType( * * *
                                -     * Gcs training data input.
                                +     * Cloud Storage training data input.
                                      * 
                                * * Protobuf type {@code @@ -944,12 +960,13 @@ public Builder mergeFrom( * * *
                                -       * The gcs corpus data which could be associated in train data.
                                -       * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +       * The Cloud Storage corpus data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                        * A newline delimited jsonl/ndjson file.
                                -       *  * For search-tuning model, each line should have the _id, title
                                -       *  and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                -       *  "relevant text"}
                                +       *
                                +       * For search-tuning model, each line should have the _id, title
                                +       * and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                +       * "relevant text"}
                                        * 
                                * * string corpus_data_path = 1; @@ -971,12 +988,13 @@ public java.lang.String getCorpusDataPath() { * * *
                                -       * The gcs corpus data which could be associated in train data.
                                -       * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +       * The Cloud Storage corpus data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                        * A newline delimited jsonl/ndjson file.
                                -       *  * For search-tuning model, each line should have the _id, title
                                -       *  and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                -       *  "relevant text"}
                                +       *
                                +       * For search-tuning model, each line should have the _id, title
                                +       * and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                +       * "relevant text"}
                                        * 
                                * * string corpus_data_path = 1; @@ -998,12 +1016,13 @@ public com.google.protobuf.ByteString getCorpusDataPathBytes() { * * *
                                -       * The gcs corpus data which could be associated in train data.
                                -       * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +       * The Cloud Storage corpus data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                        * A newline delimited jsonl/ndjson file.
                                -       *  * For search-tuning model, each line should have the _id, title
                                -       *  and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                -       *  "relevant text"}
                                +       *
                                +       * For search-tuning model, each line should have the _id, title
                                +       * and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                +       * "relevant text"}
                                        * 
                                * * string corpus_data_path = 1; @@ -1024,12 +1043,13 @@ public Builder setCorpusDataPath(java.lang.String value) { * * *
                                -       * The gcs corpus data which could be associated in train data.
                                -       * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +       * The Cloud Storage corpus data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                        * A newline delimited jsonl/ndjson file.
                                -       *  * For search-tuning model, each line should have the _id, title
                                -       *  and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                -       *  "relevant text"}
                                +       *
                                +       * For search-tuning model, each line should have the _id, title
                                +       * and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                +       * "relevant text"}
                                        * 
                                * * string corpus_data_path = 1; @@ -1046,12 +1066,13 @@ public Builder clearCorpusDataPath() { * * *
                                -       * The gcs corpus data which could be associated in train data.
                                -       * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +       * The Cloud Storage corpus data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                        * A newline delimited jsonl/ndjson file.
                                -       *  * For search-tuning model, each line should have the _id, title
                                -       *  and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                -       *  "relevant text"}
                                +       *
                                +       * For search-tuning model, each line should have the _id, title
                                +       * and text. Example: {"_id": "doc1", title: "relevant doc", "text":
                                +       * "relevant text"}
                                        * 
                                * * string corpus_data_path = 1; @@ -1076,10 +1097,11 @@ public Builder setCorpusDataPathBytes(com.google.protobuf.ByteString value) { * *
                                        * The gcs query data which could be associated in train data.
                                -       * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                        * A newline delimited jsonl/ndjson file.
                                -       *  * For search-tuning model, each line should have the _id
                                -       *  and text. Example: {"_id": "query1",  "text": "example query"}
                                +       *
                                +       * For search-tuning model, each line should have the _id
                                +       * and text. Example: {"_id": "query1",  "text": "example query"}
                                        * 
                                * * string query_data_path = 2; @@ -1102,10 +1124,11 @@ public java.lang.String getQueryDataPath() { * *
                                        * The gcs query data which could be associated in train data.
                                -       * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                        * A newline delimited jsonl/ndjson file.
                                -       *  * For search-tuning model, each line should have the _id
                                -       *  and text. Example: {"_id": "query1",  "text": "example query"}
                                +       *
                                +       * For search-tuning model, each line should have the _id
                                +       * and text. Example: {"_id": "query1",  "text": "example query"}
                                        * 
                                * * string query_data_path = 2; @@ -1128,10 +1151,11 @@ public com.google.protobuf.ByteString getQueryDataPathBytes() { * *
                                        * The gcs query data which could be associated in train data.
                                -       * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                        * A newline delimited jsonl/ndjson file.
                                -       *  * For search-tuning model, each line should have the _id
                                -       *  and text. Example: {"_id": "query1",  "text": "example query"}
                                +       *
                                +       * For search-tuning model, each line should have the _id
                                +       * and text. Example: {"_id": "query1",  "text": "example query"}
                                        * 
                                * * string query_data_path = 2; @@ -1153,10 +1177,11 @@ public Builder setQueryDataPath(java.lang.String value) { * *
                                        * The gcs query data which could be associated in train data.
                                -       * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                        * A newline delimited jsonl/ndjson file.
                                -       *  * For search-tuning model, each line should have the _id
                                -       *  and text. Example: {"_id": "query1",  "text": "example query"}
                                +       *
                                +       * For search-tuning model, each line should have the _id
                                +       * and text. Example: {"_id": "query1",  "text": "example query"}
                                        * 
                                * * string query_data_path = 2; @@ -1174,10 +1199,11 @@ public Builder clearQueryDataPath() { * *
                                        * The gcs query data which could be associated in train data.
                                -       * The data path format is gs://<bucket_to_data>/<jsonl_file_name>.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                        * A newline delimited jsonl/ndjson file.
                                -       *  * For search-tuning model, each line should have the _id
                                -       *  and text. Example: {"_id": "query1",  "text": "example query"}
                                +       *
                                +       * For search-tuning model, each line should have the _id
                                +       * and text. Example: {"_id": "query1",  "text": "example query"}
                                        * 
                                * * string query_data_path = 2; @@ -1201,14 +1227,16 @@ public Builder setQueryDataPathBytes(com.google.protobuf.ByteString value) { * * *
                                -       * Gcs training data path whose format should be
                                -       * gs://<bucket_to_data>/<tsv_file_name>. The file should be in tsv format.
                                -       * Each line should have the doc_id and query_id and score (number).
                                -       *  * For search-tuning model, it should have the query-id corpus-id
                                -       *  score as tsv file header. The score should be a number in [0, inf+). The
                                -       *  larger the number is, the more relevant the pair is. Example:
                                -       *  query-id\tcorpus-id\tscore
                                -       *  query1\tdoc1\t1
                                +       * Cloud Storage training data path whose format should be
                                +       * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +       * format. Each line should have the doc_id and query_id and score (number).
                                +       *
                                +       * For search-tuning model, it should have the query-id corpus-id
                                +       * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +       * The larger the number is, the more relevant the pair is. Example:
                                +       *
                                +       * * `query-id\tcorpus-id\tscore`
                                +       * * `query1\tdoc1\t1`
                                        * 
                                * * string train_data_path = 3; @@ -1230,14 +1258,16 @@ public java.lang.String getTrainDataPath() { * * *
                                -       * Gcs training data path whose format should be
                                -       * gs://<bucket_to_data>/<tsv_file_name>. The file should be in tsv format.
                                -       * Each line should have the doc_id and query_id and score (number).
                                -       *  * For search-tuning model, it should have the query-id corpus-id
                                -       *  score as tsv file header. The score should be a number in [0, inf+). The
                                -       *  larger the number is, the more relevant the pair is. Example:
                                -       *  query-id\tcorpus-id\tscore
                                -       *  query1\tdoc1\t1
                                +       * Cloud Storage training data path whose format should be
                                +       * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +       * format. Each line should have the doc_id and query_id and score (number).
                                +       *
                                +       * For search-tuning model, it should have the query-id corpus-id
                                +       * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +       * The larger the number is, the more relevant the pair is. Example:
                                +       *
                                +       * * `query-id\tcorpus-id\tscore`
                                +       * * `query1\tdoc1\t1`
                                        * 
                                * * string train_data_path = 3; @@ -1259,14 +1289,16 @@ public com.google.protobuf.ByteString getTrainDataPathBytes() { * * *
                                -       * Gcs training data path whose format should be
                                -       * gs://<bucket_to_data>/<tsv_file_name>. The file should be in tsv format.
                                -       * Each line should have the doc_id and query_id and score (number).
                                -       *  * For search-tuning model, it should have the query-id corpus-id
                                -       *  score as tsv file header. The score should be a number in [0, inf+). The
                                -       *  larger the number is, the more relevant the pair is. Example:
                                -       *  query-id\tcorpus-id\tscore
                                -       *  query1\tdoc1\t1
                                +       * Cloud Storage training data path whose format should be
                                +       * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +       * format. Each line should have the doc_id and query_id and score (number).
                                +       *
                                +       * For search-tuning model, it should have the query-id corpus-id
                                +       * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +       * The larger the number is, the more relevant the pair is. Example:
                                +       *
                                +       * * `query-id\tcorpus-id\tscore`
                                +       * * `query1\tdoc1\t1`
                                        * 
                                * * string train_data_path = 3; @@ -1287,14 +1319,16 @@ public Builder setTrainDataPath(java.lang.String value) { * * *
                                -       * Gcs training data path whose format should be
                                -       * gs://<bucket_to_data>/<tsv_file_name>. The file should be in tsv format.
                                -       * Each line should have the doc_id and query_id and score (number).
                                -       *  * For search-tuning model, it should have the query-id corpus-id
                                -       *  score as tsv file header. The score should be a number in [0, inf+). The
                                -       *  larger the number is, the more relevant the pair is. Example:
                                -       *  query-id\tcorpus-id\tscore
                                -       *  query1\tdoc1\t1
                                +       * Cloud Storage training data path whose format should be
                                +       * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +       * format. Each line should have the doc_id and query_id and score (number).
                                +       *
                                +       * For search-tuning model, it should have the query-id corpus-id
                                +       * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +       * The larger the number is, the more relevant the pair is. Example:
                                +       *
                                +       * * `query-id\tcorpus-id\tscore`
                                +       * * `query1\tdoc1\t1`
                                        * 
                                * * string train_data_path = 3; @@ -1311,14 +1345,16 @@ public Builder clearTrainDataPath() { * * *
                                -       * Gcs training data path whose format should be
                                -       * gs://<bucket_to_data>/<tsv_file_name>. The file should be in tsv format.
                                -       * Each line should have the doc_id and query_id and score (number).
                                -       *  * For search-tuning model, it should have the query-id corpus-id
                                -       *  score as tsv file header. The score should be a number in [0, inf+). The
                                -       *  larger the number is, the more relevant the pair is. Example:
                                -       *  query-id\tcorpus-id\tscore
                                -       *  query1\tdoc1\t1
                                +       * Cloud Storage training data path whose format should be
                                +       * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +       * format. Each line should have the doc_id and query_id and score (number).
                                +       *
                                +       * For search-tuning model, it should have the query-id corpus-id
                                +       * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +       * The larger the number is, the more relevant the pair is. Example:
                                +       *
                                +       * * `query-id\tcorpus-id\tscore`
                                +       * * `query1\tdoc1\t1`
                                        * 
                                * * string train_data_path = 3; @@ -1342,8 +1378,8 @@ public Builder setTrainDataPathBytes(com.google.protobuf.ByteString value) { * * *
                                -       * Gcs test data. Same format as train_data_path. If not provided, a
                                -       * random 80/20 train/test split will be performed on train_data_path.
                                +       * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +       * a random 80/20 train/test split will be performed on train_data_path.
                                        * 
                                * * string test_data_path = 4; @@ -1365,8 +1401,8 @@ public java.lang.String getTestDataPath() { * * *
                                -       * Gcs test data. Same format as train_data_path. If not provided, a
                                -       * random 80/20 train/test split will be performed on train_data_path.
                                +       * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +       * a random 80/20 train/test split will be performed on train_data_path.
                                        * 
                                * * string test_data_path = 4; @@ -1388,8 +1424,8 @@ public com.google.protobuf.ByteString getTestDataPathBytes() { * * *
                                -       * Gcs test data. Same format as train_data_path. If not provided, a
                                -       * random 80/20 train/test split will be performed on train_data_path.
                                +       * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +       * a random 80/20 train/test split will be performed on train_data_path.
                                        * 
                                * * string test_data_path = 4; @@ -1410,8 +1446,8 @@ public Builder setTestDataPath(java.lang.String value) { * * *
                                -       * Gcs test data. Same format as train_data_path. If not provided, a
                                -       * random 80/20 train/test split will be performed on train_data_path.
                                +       * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +       * a random 80/20 train/test split will be performed on train_data_path.
                                        * 
                                * * string test_data_path = 4; @@ -1428,8 +1464,8 @@ public Builder clearTestDataPath() { * * *
                                -       * Gcs test data. Same format as train_data_path. If not provided, a
                                -       * random 80/20 train/test split will be performed on train_data_path.
                                +       * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +       * a random 80/20 train/test split will be performed on train_data_path.
                                        * 
                                * * string test_data_path = 4; @@ -1569,7 +1605,7 @@ public TrainingInputCase getTrainingInputCase() { * * *
                                -   * Gcs training input.
                                +   * Cloud Storage training input.
                                    * 
                                * * @@ -1586,7 +1622,7 @@ public boolean hasGcsTrainingInput() { * * *
                                -   * Gcs training input.
                                +   * Cloud Storage training input.
                                    * 
                                * * @@ -1609,7 +1645,7 @@ public boolean hasGcsTrainingInput() { * * *
                                -   * Gcs training input.
                                +   * Cloud Storage training input.
                                    * 
                                * * @@ -2299,7 +2335,7 @@ public Builder clearTrainingInput() { * * *
                                -     * Gcs training input.
                                +     * Cloud Storage training input.
                                      * 
                                * * @@ -2316,7 +2352,7 @@ public boolean hasGcsTrainingInput() { * * *
                                -     * Gcs training input.
                                +     * Cloud Storage training input.
                                      * 
                                * * @@ -2347,7 +2383,7 @@ public boolean hasGcsTrainingInput() { * * *
                                -     * Gcs training input.
                                +     * Cloud Storage training input.
                                      * 
                                * * @@ -2372,7 +2408,7 @@ public Builder setGcsTrainingInput( * * *
                                -     * Gcs training input.
                                +     * Cloud Storage training input.
                                      * 
                                * * @@ -2395,7 +2431,7 @@ public Builder setGcsTrainingInput( * * *
                                -     * Gcs training input.
                                +     * Cloud Storage training input.
                                      * 
                                * * @@ -2435,7 +2471,7 @@ public Builder mergeGcsTrainingInput( * * *
                                -     * Gcs training input.
                                +     * Cloud Storage training input.
                                      * 
                                * * @@ -2462,7 +2498,7 @@ public Builder clearGcsTrainingInput() { * * *
                                -     * Gcs training input.
                                +     * Cloud Storage training input.
                                      * 
                                * * @@ -2477,7 +2513,7 @@ public Builder clearGcsTrainingInput() { * * *
                                -     * Gcs training input.
                                +     * Cloud Storage training input.
                                      * 
                                * * @@ -2503,7 +2539,7 @@ public Builder clearGcsTrainingInput() { * * *
                                -     * Gcs training input.
                                +     * Cloud Storage training input.
                                      * 
                                * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TrainCustomModelRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TrainCustomModelRequestOrBuilder.java index f81842630d9b..6c3a6baf3101 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TrainCustomModelRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/TrainCustomModelRequestOrBuilder.java @@ -28,7 +28,7 @@ public interface TrainCustomModelRequestOrBuilder * * *
                                -   * Gcs training input.
                                +   * Cloud Storage training input.
                                    * 
                                * * @@ -42,7 +42,7 @@ public interface TrainCustomModelRequestOrBuilder * * *
                                -   * Gcs training input.
                                +   * Cloud Storage training input.
                                    * 
                                * * @@ -57,7 +57,7 @@ public interface TrainCustomModelRequestOrBuilder * * *
                                -   * Gcs training input.
                                +   * Cloud Storage training input.
                                    * 
                                * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateAclConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateAclConfigRequest.java new file mode 100644 index 000000000000..86ccd64371fc --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateAclConfigRequest.java @@ -0,0 +1,683 @@ +/* + * 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/discoveryengine/v1alpha/acl_config_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Request message for UpdateAclConfig method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest} + */ +public final class UpdateAclConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest) + UpdateAclConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateAclConfigRequest.newBuilder() to construct. + private UpdateAclConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAclConfigRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAclConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateAclConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateAclConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest.class, + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int ACL_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.AclConfig aclConfig_; + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclConfig field is set. + */ + @java.lang.Override + public boolean hasAclConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.AclConfig getAclConfig() { + return aclConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.AclConfig.getDefaultInstance() + : aclConfig_; + } + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.AclConfigOrBuilder getAclConfigOrBuilder() { + return aclConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.AclConfig.getDefaultInstance() + : aclConfig_; + } + + 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, getAclConfig()); + } + 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, getAclConfig()); + } + 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.discoveryengine.v1alpha.UpdateAclConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest other = + (com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest) obj; + + if (hasAclConfig() != other.hasAclConfig()) return false; + if (hasAclConfig()) { + if (!getAclConfig().equals(other.getAclConfig())) 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 (hasAclConfig()) { + hash = (37 * hash) + ACL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAclConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest 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.discoveryengine.v1alpha.UpdateAclConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest 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.discoveryengine.v1alpha.UpdateAclConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest 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.discoveryengine.v1alpha.UpdateAclConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest 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.discoveryengine.v1alpha.UpdateAclConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest 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.discoveryengine.v1alpha.UpdateAclConfigRequest 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 UpdateAclConfig method.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest) + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateAclConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateAclConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest.class, + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAclConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + aclConfig_ = null; + if (aclConfigBuilder_ != null) { + aclConfigBuilder_.dispose(); + aclConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateAclConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest build() { + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest result = + new com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.aclConfig_ = aclConfigBuilder_ == null ? aclConfig_ : aclConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1alpha.UpdateAclConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest.getDefaultInstance()) + return this; + if (other.hasAclConfig()) { + mergeAclConfig(other.getAclConfig()); + } + 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(getAclConfigFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.discoveryengine.v1alpha.AclConfig aclConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.AclConfig, + com.google.cloud.discoveryengine.v1alpha.AclConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.AclConfigOrBuilder> + aclConfigBuilder_; + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclConfig field is set. + */ + public boolean hasAclConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.AclConfig getAclConfig() { + if (aclConfigBuilder_ == null) { + return aclConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.AclConfig.getDefaultInstance() + : aclConfig_; + } else { + return aclConfigBuilder_.getMessage(); + } + } + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclConfig(com.google.cloud.discoveryengine.v1alpha.AclConfig value) { + if (aclConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclConfig_ = value; + } else { + aclConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclConfig( + com.google.cloud.discoveryengine.v1alpha.AclConfig.Builder builderForValue) { + if (aclConfigBuilder_ == null) { + aclConfig_ = builderForValue.build(); + } else { + aclConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAclConfig(com.google.cloud.discoveryengine.v1alpha.AclConfig value) { + if (aclConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && aclConfig_ != null + && aclConfig_ + != com.google.cloud.discoveryengine.v1alpha.AclConfig.getDefaultInstance()) { + getAclConfigBuilder().mergeFrom(value); + } else { + aclConfig_ = value; + } + } else { + aclConfigBuilder_.mergeFrom(value); + } + if (aclConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAclConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + aclConfig_ = null; + if (aclConfigBuilder_ != null) { + aclConfigBuilder_.dispose(); + aclConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.AclConfig.Builder getAclConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAclConfigFieldBuilder().getBuilder(); + } + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.AclConfigOrBuilder getAclConfigOrBuilder() { + if (aclConfigBuilder_ != null) { + return aclConfigBuilder_.getMessageOrBuilder(); + } else { + return aclConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.AclConfig.getDefaultInstance() + : aclConfig_; + } + } + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.AclConfig, + com.google.cloud.discoveryengine.v1alpha.AclConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.AclConfigOrBuilder> + getAclConfigFieldBuilder() { + if (aclConfigBuilder_ == null) { + aclConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.AclConfig, + com.google.cloud.discoveryengine.v1alpha.AclConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.AclConfigOrBuilder>( + getAclConfig(), getParentForChildren(), isClean()); + aclConfig_ = null; + } + return aclConfigBuilder_; + } + + @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.discoveryengine.v1alpha.UpdateAclConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest) + private static final com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAclConfigRequest 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.discoveryengine.v1alpha.UpdateAclConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateAclConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateAclConfigRequestOrBuilder.java new file mode 100644 index 000000000000..44cb453513e5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateAclConfigRequestOrBuilder.java @@ -0,0 +1,49 @@ +/* + * 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/discoveryengine/v1alpha/acl_config_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface UpdateAclConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclConfig field is set. + */ + boolean hasAclConfig(); + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclConfig. + */ + com.google.cloud.discoveryengine.v1alpha.AclConfig getAclConfig(); + /** + * + * .google.cloud.discoveryengine.v1alpha.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.AclConfigOrBuilder getAclConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequest.java index 5e22de9aba71..c9b277623d15 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequest.java @@ -128,7 +128,7 @@ public com.google.cloud.discoveryengine.v1alpha.ConversationOrBuilder getConvers * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * @@ -149,7 +149,7 @@ public boolean hasUpdateMask() { * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * @@ -170,7 +170,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * @@ -806,7 +806,7 @@ public com.google.cloud.discoveryengine.v1alpha.Conversation.Builder getConversa * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * @@ -826,7 +826,7 @@ public boolean hasUpdateMask() { * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * @@ -852,7 +852,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * @@ -880,7 +880,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * @@ -905,7 +905,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * @@ -938,7 +938,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * @@ -963,7 +963,7 @@ public Builder clearUpdateMask() { * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * @@ -983,7 +983,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * @@ -1007,7 +1007,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequestOrBuilder.java index 44a043737922..364d4809d629 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateConversationRequestOrBuilder.java @@ -73,7 +73,7 @@ public interface UpdateConversationRequestOrBuilder * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * @@ -91,7 +91,7 @@ public interface UpdateConversationRequestOrBuilder * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * @@ -109,7 +109,7 @@ public interface UpdateConversationRequestOrBuilder * [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to * update. The following are NOT supported: * - * * [conversation.name][] + * * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] * * If not set or empty, all supported fields are updated. * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentProcessingConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentProcessingConfigRequest.java new file mode 100644 index 000000000000..60754cbb87df --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentProcessingConfigRequest.java @@ -0,0 +1,1253 @@ +/* + * 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/discoveryengine/v1alpha/data_store_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Request for
                                + * [DataStoreService.UpdateDocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DataStoreService.UpdateDocumentProcessingConfig]
                                + * method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest} + */ +public final class UpdateDocumentProcessingConfigRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest) + UpdateDocumentProcessingConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDocumentProcessingConfigRequest.newBuilder() to construct. + private UpdateDocumentProcessingConfigRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDocumentProcessingConfigRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDocumentProcessingConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DataStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentProcessingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DataStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentProcessingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest.class, + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest.Builder + .class); + } + + private int bitField0_; + public static final int DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + documentProcessingConfig_; + /** + * + * + *
                                +   * Required. The
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update.
                                +   *
                                +   * If the caller does not have permission to update the
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +   * then a PERMISSION_DENIED error is returned.
                                +   *
                                +   * If the
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update does not exist, a NOT_FOUND error is returned.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the documentProcessingConfig field is set. + */ + @java.lang.Override + public boolean hasDocumentProcessingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * Required. The
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update.
                                +   *
                                +   * If the caller does not have permission to update the
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +   * then a PERMISSION_DENIED error is returned.
                                +   *
                                +   * If the
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update does not exist, a NOT_FOUND error is returned.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The documentProcessingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + getDocumentProcessingConfig() { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } + /** + * + * + *
                                +   * Required. The
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update.
                                +   *
                                +   * If the caller does not have permission to update the
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +   * then a PERMISSION_DENIED error is returned.
                                +   *
                                +   * If the
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update does not exist, a NOT_FOUND error is returned.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigOrBuilder + getDocumentProcessingConfigOrBuilder() { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
                                +   * Indicates which fields in the provided
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update. The following are the only supported fields:
                                +   *
                                +   * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +   *
                                +   * If not set, all supported fields are updated.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +   * Indicates which fields in the provided
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update. The following are the only supported fields:
                                +   *
                                +   * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +   *
                                +   * If not set, all supported fields are updated.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
                                +   * Indicates which fields in the provided
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update. The following are the only supported fields:
                                +   *
                                +   * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +   *
                                +   * If not set, all supported fields are updated.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getDocumentProcessingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getDocumentProcessingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest other = + (com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest) obj; + + if (hasDocumentProcessingConfig() != other.hasDocumentProcessingConfig()) return false; + if (hasDocumentProcessingConfig()) { + if (!getDocumentProcessingConfig().equals(other.getDocumentProcessingConfig())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasDocumentProcessingConfig()) { + hash = (37 * hash) + DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDocumentProcessingConfig().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + 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.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + 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.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + 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.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + 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.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + 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.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest 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 for
                                +   * [DataStoreService.UpdateDocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DataStoreService.UpdateDocumentProcessingConfig]
                                +   * method.
                                +   * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest) + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.DataStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentProcessingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.DataStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentProcessingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest.class, + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDocumentProcessingConfigFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + documentProcessingConfig_ = null; + if (documentProcessingConfigBuilder_ != null) { + documentProcessingConfigBuilder_.dispose(); + documentProcessingConfigBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.DataStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateDocumentProcessingConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest build() { + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + buildPartial() { + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest result = + new com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.documentProcessingConfig_ = + documentProcessingConfigBuilder_ == null + ? documentProcessingConfig_ + : documentProcessingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + .getDefaultInstance()) return this; + if (other.hasDocumentProcessingConfig()) { + mergeDocumentProcessingConfig(other.getDocumentProcessingConfig()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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( + getDocumentProcessingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + documentProcessingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigOrBuilder> + documentProcessingConfigBuilder_; + /** + * + * + *
                                +     * Required. The
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update.
                                +     *
                                +     * If the caller does not have permission to update the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +     * then a PERMISSION_DENIED error is returned.
                                +     *
                                +     * If the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update does not exist, a NOT_FOUND error is returned.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the documentProcessingConfig field is set. + */ + public boolean hasDocumentProcessingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +     * Required. The
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update.
                                +     *
                                +     * If the caller does not have permission to update the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +     * then a PERMISSION_DENIED error is returned.
                                +     *
                                +     * If the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update does not exist, a NOT_FOUND error is returned.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The documentProcessingConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + getDocumentProcessingConfig() { + if (documentProcessingConfigBuilder_ == null) { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } else { + return documentProcessingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Required. The
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update.
                                +     *
                                +     * If the caller does not have permission to update the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +     * then a PERMISSION_DENIED error is returned.
                                +     *
                                +     * If the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update does not exist, a NOT_FOUND error is returned.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig value) { + if (documentProcessingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + documentProcessingConfig_ = value; + } else { + documentProcessingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update.
                                +     *
                                +     * If the caller does not have permission to update the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +     * then a PERMISSION_DENIED error is returned.
                                +     *
                                +     * If the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update does not exist, a NOT_FOUND error is returned.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.Builder builderForValue) { + if (documentProcessingConfigBuilder_ == null) { + documentProcessingConfig_ = builderForValue.build(); + } else { + documentProcessingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update.
                                +     *
                                +     * If the caller does not have permission to update the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +     * then a PERMISSION_DENIED error is returned.
                                +     *
                                +     * If the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update does not exist, a NOT_FOUND error is returned.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig value) { + if (documentProcessingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && documentProcessingConfig_ != null + && documentProcessingConfig_ + != com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig + .getDefaultInstance()) { + getDocumentProcessingConfigBuilder().mergeFrom(value); + } else { + documentProcessingConfig_ = value; + } + } else { + documentProcessingConfigBuilder_.mergeFrom(value); + } + if (documentProcessingConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Required. The
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update.
                                +     *
                                +     * If the caller does not have permission to update the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +     * then a PERMISSION_DENIED error is returned.
                                +     *
                                +     * If the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update does not exist, a NOT_FOUND error is returned.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDocumentProcessingConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + documentProcessingConfig_ = null; + if (documentProcessingConfigBuilder_ != null) { + documentProcessingConfigBuilder_.dispose(); + documentProcessingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update.
                                +     *
                                +     * If the caller does not have permission to update the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +     * then a PERMISSION_DENIED error is returned.
                                +     *
                                +     * If the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update does not exist, a NOT_FOUND error is returned.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.Builder + getDocumentProcessingConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDocumentProcessingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Required. The
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update.
                                +     *
                                +     * If the caller does not have permission to update the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +     * then a PERMISSION_DENIED error is returned.
                                +     *
                                +     * If the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update does not exist, a NOT_FOUND error is returned.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigOrBuilder + getDocumentProcessingConfigOrBuilder() { + if (documentProcessingConfigBuilder_ != null) { + return documentProcessingConfigBuilder_.getMessageOrBuilder(); + } else { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } + } + /** + * + * + *
                                +     * Required. The
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update.
                                +     *
                                +     * If the caller does not have permission to update the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +     * then a PERMISSION_DENIED error is returned.
                                +     *
                                +     * If the
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update does not exist, a NOT_FOUND error is returned.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigOrBuilder> + getDocumentProcessingConfigFieldBuilder() { + if (documentProcessingConfigBuilder_ == null) { + documentProcessingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigOrBuilder>( + getDocumentProcessingConfig(), getParentForChildren(), isClean()); + documentProcessingConfig_ = null; + } + return documentProcessingConfigBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update. The following are the only supported fields:
                                +     *
                                +     * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update. The following are the only supported fields:
                                +     *
                                +     * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update. The following are the only supported fields:
                                +     *
                                +     * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update. The following are the only supported fields:
                                +     *
                                +     * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update. The following are the only supported fields:
                                +     *
                                +     * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update. The following are the only supported fields:
                                +     *
                                +     * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update. The following are the only supported fields:
                                +     *
                                +     * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update. The following are the only supported fields:
                                +     *
                                +     * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +     * to update. The following are the only supported fields:
                                +     *
                                +     * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest) + private static final com.google.cloud.discoveryengine.v1alpha + .UpdateDocumentProcessingConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDocumentProcessingConfigRequest 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.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentProcessingConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentProcessingConfigRequestOrBuilder.java new file mode 100644 index 000000000000..a1ddea6fd0b4 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentProcessingConfigRequestOrBuilder.java @@ -0,0 +1,151 @@ +/* + * 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/discoveryengine/v1alpha/data_store_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface UpdateDocumentProcessingConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Required. The
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update.
                                +   *
                                +   * If the caller does not have permission to update the
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +   * then a PERMISSION_DENIED error is returned.
                                +   *
                                +   * If the
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update does not exist, a NOT_FOUND error is returned.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the documentProcessingConfig field is set. + */ + boolean hasDocumentProcessingConfig(); + /** + * + * + *
                                +   * Required. The
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update.
                                +   *
                                +   * If the caller does not have permission to update the
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +   * then a PERMISSION_DENIED error is returned.
                                +   *
                                +   * If the
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update does not exist, a NOT_FOUND error is returned.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The documentProcessingConfig. + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig getDocumentProcessingConfig(); + /** + * + * + *
                                +   * Required. The
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update.
                                +   *
                                +   * If the caller does not have permission to update the
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig],
                                +   * then a PERMISSION_DENIED error is returned.
                                +   *
                                +   * If the
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update does not exist, a NOT_FOUND error is returned.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig document_processing_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigOrBuilder + getDocumentProcessingConfigOrBuilder(); + + /** + * + * + *
                                +   * Indicates which fields in the provided
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update. The following are the only supported fields:
                                +   *
                                +   * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +   *
                                +   * If not set, all supported fields are updated.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
                                +   * Indicates which fields in the provided
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update. The following are the only supported fields:
                                +   *
                                +   * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +   *
                                +   * If not set, all supported fields are updated.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
                                +   * Indicates which fields in the provided
                                +   * [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]
                                +   * to update. The following are the only supported fields:
                                +   *
                                +   * * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config]
                                +   *
                                +   * If not set, all supported fields are updated.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequest.java index 5d91d4025811..19658d495927 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequest.java @@ -168,6 +168,55 @@ public boolean getAllowMissing() { return allowMissing_; } + public static final int UPDATE_MASK_FIELD_NUMBER = 3; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
                                +   * Indicates which fields in the provided imported 'document' to update. If
                                +   * not set, will by default update all fields.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +   * Indicates which fields in the provided imported 'document' to update. If
                                +   * not set, will by default update all fields.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
                                +   * Indicates which fields in the provided imported 'document' to update. If
                                +   * not set, will by default update all fields.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -188,6 +237,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (allowMissing_ != false) { output.writeBool(2, allowMissing_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateMask()); + } getUnknownFields().writeTo(output); } @@ -203,6 +255,9 @@ public int getSerializedSize() { if (allowMissing_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowMissing_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -224,6 +279,10 @@ public boolean equals(final java.lang.Object obj) { if (!getDocument().equals(other.getDocument())) return false; } if (getAllowMissing() != other.getAllowMissing()) return false; + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,6 +300,10 @@ public int hashCode() { } hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -385,6 +448,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getDocumentFieldBuilder(); + getUpdateMaskFieldBuilder(); } } @@ -398,6 +462,11 @@ public Builder clear() { documentBuilder_ = null; } allowMissing_ = false; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } return this; } @@ -444,6 +513,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.allowMissing_ = allowMissing_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -500,6 +573,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1alpha.UpdateDocument if (other.getAllowMissing() != false) { setAllowMissing(other.getAllowMissing()); } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -538,6 +614,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 26: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -905,6 +987,200 @@ public Builder clearAllowMissing() { return this; } + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
                                +     * Indicates which fields in the provided imported 'document' to update. If
                                +     * not set, will by default update all fields.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                                +     * Indicates which fields in the provided imported 'document' to update. If
                                +     * not set, will by default update all fields.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Indicates which fields in the provided imported 'document' to update. If
                                +     * not set, will by default update all fields.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Indicates which fields in the provided imported 'document' to update. If
                                +     * not set, will by default update all fields.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Indicates which fields in the provided imported 'document' to update. If
                                +     * not set, will by default update all fields.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Indicates which fields in the provided imported 'document' to update. If
                                +     * not set, will by default update all fields.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000004); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Indicates which fields in the provided imported 'document' to update. If
                                +     * not set, will by default update all fields.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Indicates which fields in the provided imported 'document' to update. If
                                +     * not set, will by default update all fields.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
                                +     * Indicates which fields in the provided imported 'document' to update. If
                                +     * not set, will by default update all fields.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequestOrBuilder.java index 9f22e15e4e37..643e05fd166d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateDocumentRequestOrBuilder.java @@ -107,4 +107,42 @@ public interface UpdateDocumentRequestOrBuilder * @return The allowMissing. */ boolean getAllowMissing(); + + /** + * + * + *
                                +   * Indicates which fields in the provided imported 'document' to update. If
                                +   * not set, will by default update all fields.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
                                +   * Indicates which fields in the provided imported 'document' to update. If
                                +   * not set, will by default update all fields.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
                                +   * Indicates which fields in the provided imported 'document' to update. If
                                +   * not set, will by default update all fields.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 3; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateServingConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateServingConfigRequest.java new file mode 100644 index 000000000000..36b1933c8542 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateServingConfigRequest.java @@ -0,0 +1,1100 @@ +/* + * 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/discoveryengine/v1alpha/serving_config_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +/** + * + * + *
                                + * Request for UpdateServingConfig method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest} + */ +public final class UpdateServingConfigRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest) + UpdateServingConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateServingConfigRequest.newBuilder() to construct. + private UpdateServingConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateServingConfigRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateServingConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateServingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateServingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest.class, + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int SERVING_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1alpha.ServingConfig servingConfig_; + /** + * + * + *
                                +   * Required. The ServingConfig to update.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the servingConfig field is set. + */ + @java.lang.Override + public boolean hasServingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * Required. The ServingConfig to update.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The servingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfig getServingConfig() { + return servingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.ServingConfig.getDefaultInstance() + : servingConfig_; + } + /** + * + * + *
                                +   * Required. The ServingConfig to update.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.ServingConfigOrBuilder + getServingConfigOrBuilder() { + return servingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.ServingConfig.getDefaultInstance() + : servingConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
                                +   * Indicates which fields in the provided
                                +   * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +   * update. The following are NOT supported:
                                +   *
                                +   * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +   *
                                +   * If not set, all supported fields are updated.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +   * Indicates which fields in the provided
                                +   * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +   * update. The following are NOT supported:
                                +   *
                                +   * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +   *
                                +   * If not set, all supported fields are updated.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
                                +   * Indicates which fields in the provided
                                +   * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +   * update. The following are NOT supported:
                                +   *
                                +   * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +   *
                                +   * If not set, all supported fields are updated.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getServingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getServingConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.discoveryengine.v1alpha.UpdateServingConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest other = + (com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest) obj; + + if (hasServingConfig() != other.hasServingConfig()) return false; + if (hasServingConfig()) { + if (!getServingConfig().equals(other.getServingConfig())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasServingConfig()) { + hash = (37 * hash) + SERVING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServingConfig().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest 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.discoveryengine.v1alpha.UpdateServingConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest 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.discoveryengine.v1alpha.UpdateServingConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest 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.discoveryengine.v1alpha.UpdateServingConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest + 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.discoveryengine.v1alpha.UpdateServingConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest 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.discoveryengine.v1alpha.UpdateServingConfigRequest 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 for UpdateServingConfig method.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest) + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateServingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateServingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest.class, + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getServingConfigFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + servingConfig_ = null; + if (servingConfigBuilder_ != null) { + servingConfigBuilder_.dispose(); + servingConfigBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1alpha_UpdateServingConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest build() { + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest result = + new com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.servingConfig_ = + servingConfigBuilder_ == null ? servingConfig_ : servingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1alpha.UpdateServingConfigRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest + .getDefaultInstance()) return this; + if (other.hasServingConfig()) { + mergeServingConfig(other.getServingConfig()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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(getServingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.discoveryengine.v1alpha.ServingConfig servingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ServingConfig, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ServingConfigOrBuilder> + servingConfigBuilder_; + /** + * + * + *
                                +     * Required. The ServingConfig to update.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the servingConfig field is set. + */ + public boolean hasServingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +     * Required. The ServingConfig to update.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The servingConfig. + */ + public com.google.cloud.discoveryengine.v1alpha.ServingConfig getServingConfig() { + if (servingConfigBuilder_ == null) { + return servingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.ServingConfig.getDefaultInstance() + : servingConfig_; + } else { + return servingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Required. The ServingConfig to update.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setServingConfig(com.google.cloud.discoveryengine.v1alpha.ServingConfig value) { + if (servingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + servingConfig_ = value; + } else { + servingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The ServingConfig to update.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setServingConfig( + com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder builderForValue) { + if (servingConfigBuilder_ == null) { + servingConfig_ = builderForValue.build(); + } else { + servingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The ServingConfig to update.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeServingConfig( + com.google.cloud.discoveryengine.v1alpha.ServingConfig value) { + if (servingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && servingConfig_ != null + && servingConfig_ + != com.google.cloud.discoveryengine.v1alpha.ServingConfig.getDefaultInstance()) { + getServingConfigBuilder().mergeFrom(value); + } else { + servingConfig_ = value; + } + } else { + servingConfigBuilder_.mergeFrom(value); + } + if (servingConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Required. The ServingConfig to update.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearServingConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + servingConfig_ = null; + if (servingConfigBuilder_ != null) { + servingConfigBuilder_.dispose(); + servingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The ServingConfig to update.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder + getServingConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getServingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Required. The ServingConfig to update.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1alpha.ServingConfigOrBuilder + getServingConfigOrBuilder() { + if (servingConfigBuilder_ != null) { + return servingConfigBuilder_.getMessageOrBuilder(); + } else { + return servingConfig_ == null + ? com.google.cloud.discoveryengine.v1alpha.ServingConfig.getDefaultInstance() + : servingConfig_; + } + } + /** + * + * + *
                                +     * Required. The ServingConfig to update.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ServingConfig, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ServingConfigOrBuilder> + getServingConfigFieldBuilder() { + if (servingConfigBuilder_ == null) { + servingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1alpha.ServingConfig, + com.google.cloud.discoveryengine.v1alpha.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1alpha.ServingConfigOrBuilder>( + getServingConfig(), getParentForChildren(), isClean()); + servingConfig_ = null; + } + return servingConfigBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +     * update. The following are NOT supported:
                                +     *
                                +     * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +     * update. The following are NOT supported:
                                +     *
                                +     * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +     * update. The following are NOT supported:
                                +     *
                                +     * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +     * update. The following are NOT supported:
                                +     *
                                +     * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +     * update. The following are NOT supported:
                                +     *
                                +     * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +     * update. The following are NOT supported:
                                +     *
                                +     * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +     * update. The following are NOT supported:
                                +     *
                                +     * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +     * update. The following are NOT supported:
                                +     *
                                +     * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
                                +     * Indicates which fields in the provided
                                +     * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +     * update. The following are NOT supported:
                                +     *
                                +     * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +     *
                                +     * If not set, all supported fields are updated.
                                +     * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.discoveryengine.v1alpha.UpdateServingConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest) + private static final com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateServingConfigRequest 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.discoveryengine.v1alpha.UpdateServingConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateServingConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateServingConfigRequestOrBuilder.java new file mode 100644 index 000000000000..ae6b1100aab2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UpdateServingConfigRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * 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/discoveryengine/v1alpha/serving_config_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1alpha; + +public interface UpdateServingConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Required. The ServingConfig to update.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the servingConfig field is set. + */ + boolean hasServingConfig(); + /** + * + * + *
                                +   * Required. The ServingConfig to update.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The servingConfig. + */ + com.google.cloud.discoveryengine.v1alpha.ServingConfig getServingConfig(); + /** + * + * + *
                                +   * Required. The ServingConfig to update.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1alpha.ServingConfig serving_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1alpha.ServingConfigOrBuilder getServingConfigOrBuilder(); + + /** + * + * + *
                                +   * Indicates which fields in the provided
                                +   * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +   * update. The following are NOT supported:
                                +   *
                                +   * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +   *
                                +   * If not set, all supported fields are updated.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
                                +   * Indicates which fields in the provided
                                +   * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +   * update. The following are NOT supported:
                                +   *
                                +   * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +   *
                                +   * If not set, all supported fields are updated.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
                                +   * Indicates which fields in the provided
                                +   * [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to
                                +   * update. The following are NOT supported:
                                +   *
                                +   * * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name]
                                +   *
                                +   * If not set, all supported fields are updated.
                                +   * 
                                + * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEvent.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEvent.java index 04a601bba833..edfce7d209d4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEvent.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEvent.java @@ -619,9 +619,10 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { * conforming to https://google.aip.dev/160#filtering. * * Similarly, for `view-item-list` events that are generated from a - * [RecommendationService.RecommendRequest][], this field may be populated - * directly from [RecommendationService.RecommendRequest.filter][] conforming - * to https://google.aip.dev/160#filtering. + * [RecommendRequest][google.cloud.discoveryengine.v1alpha.RecommendRequest], + * this field may be populated directly from + * [RecommendRequest.filter][google.cloud.discoveryengine.v1alpha.RecommendRequest.filter] + * conforming to https://google.aip.dev/160#filtering. * * The value must be a UTF-8 encoded string with a length limit of 1,000 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. @@ -657,9 +658,10 @@ public java.lang.String getFilter() { * conforming to https://google.aip.dev/160#filtering. * * Similarly, for `view-item-list` events that are generated from a - * [RecommendationService.RecommendRequest][], this field may be populated - * directly from [RecommendationService.RecommendRequest.filter][] conforming - * to https://google.aip.dev/160#filtering. + * [RecommendRequest][google.cloud.discoveryengine.v1alpha.RecommendRequest], + * this field may be populated directly from + * [RecommendRequest.filter][google.cloud.discoveryengine.v1alpha.RecommendRequest.filter] + * conforming to https://google.aip.dev/160#filtering. * * The value must be a UTF-8 encoded string with a length limit of 1,000 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. @@ -3852,9 +3854,10 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) { * conforming to https://google.aip.dev/160#filtering. * * Similarly, for `view-item-list` events that are generated from a - * [RecommendationService.RecommendRequest][], this field may be populated - * directly from [RecommendationService.RecommendRequest.filter][] conforming - * to https://google.aip.dev/160#filtering. + * [RecommendRequest][google.cloud.discoveryengine.v1alpha.RecommendRequest], + * this field may be populated directly from + * [RecommendRequest.filter][google.cloud.discoveryengine.v1alpha.RecommendRequest.filter] + * conforming to https://google.aip.dev/160#filtering. * * The value must be a UTF-8 encoded string with a length limit of 1,000 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. @@ -3889,9 +3892,10 @@ public java.lang.String getFilter() { * conforming to https://google.aip.dev/160#filtering. * * Similarly, for `view-item-list` events that are generated from a - * [RecommendationService.RecommendRequest][], this field may be populated - * directly from [RecommendationService.RecommendRequest.filter][] conforming - * to https://google.aip.dev/160#filtering. + * [RecommendRequest][google.cloud.discoveryengine.v1alpha.RecommendRequest], + * this field may be populated directly from + * [RecommendRequest.filter][google.cloud.discoveryengine.v1alpha.RecommendRequest.filter] + * conforming to https://google.aip.dev/160#filtering. * * The value must be a UTF-8 encoded string with a length limit of 1,000 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. @@ -3926,9 +3930,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * conforming to https://google.aip.dev/160#filtering. * * Similarly, for `view-item-list` events that are generated from a - * [RecommendationService.RecommendRequest][], this field may be populated - * directly from [RecommendationService.RecommendRequest.filter][] conforming - * to https://google.aip.dev/160#filtering. + * [RecommendRequest][google.cloud.discoveryengine.v1alpha.RecommendRequest], + * this field may be populated directly from + * [RecommendRequest.filter][google.cloud.discoveryengine.v1alpha.RecommendRequest.filter] + * conforming to https://google.aip.dev/160#filtering. * * The value must be a UTF-8 encoded string with a length limit of 1,000 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. @@ -3962,9 +3967,10 @@ public Builder setFilter(java.lang.String value) { * conforming to https://google.aip.dev/160#filtering. * * Similarly, for `view-item-list` events that are generated from a - * [RecommendationService.RecommendRequest][], this field may be populated - * directly from [RecommendationService.RecommendRequest.filter][] conforming - * to https://google.aip.dev/160#filtering. + * [RecommendRequest][google.cloud.discoveryengine.v1alpha.RecommendRequest], + * this field may be populated directly from + * [RecommendRequest.filter][google.cloud.discoveryengine.v1alpha.RecommendRequest.filter] + * conforming to https://google.aip.dev/160#filtering. * * The value must be a UTF-8 encoded string with a length limit of 1,000 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. @@ -3994,9 +4000,10 @@ public Builder clearFilter() { * conforming to https://google.aip.dev/160#filtering. * * Similarly, for `view-item-list` events that are generated from a - * [RecommendationService.RecommendRequest][], this field may be populated - * directly from [RecommendationService.RecommendRequest.filter][] conforming - * to https://google.aip.dev/160#filtering. + * [RecommendRequest][google.cloud.discoveryengine.v1alpha.RecommendRequest], + * this field may be populated directly from + * [RecommendRequest.filter][google.cloud.discoveryengine.v1alpha.RecommendRequest.filter] + * conforming to https://google.aip.dev/160#filtering. * * The value must be a UTF-8 encoded string with a length limit of 1,000 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventOrBuilder.java index 43aeea38e6ac..9fb0dfe7ebb3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/java/com/google/cloud/discoveryengine/v1alpha/UserEventOrBuilder.java @@ -405,9 +405,10 @@ public interface UserEventOrBuilder * conforming to https://google.aip.dev/160#filtering. * * Similarly, for `view-item-list` events that are generated from a - * [RecommendationService.RecommendRequest][], this field may be populated - * directly from [RecommendationService.RecommendRequest.filter][] conforming - * to https://google.aip.dev/160#filtering. + * [RecommendRequest][google.cloud.discoveryengine.v1alpha.RecommendRequest], + * this field may be populated directly from + * [RecommendRequest.filter][google.cloud.discoveryengine.v1alpha.RecommendRequest.filter] + * conforming to https://google.aip.dev/160#filtering. * * The value must be a UTF-8 encoded string with a length limit of 1,000 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. @@ -432,9 +433,10 @@ public interface UserEventOrBuilder * conforming to https://google.aip.dev/160#filtering. * * Similarly, for `view-item-list` events that are generated from a - * [RecommendationService.RecommendRequest][], this field may be populated - * directly from [RecommendationService.RecommendRequest.filter][] conforming - * to https://google.aip.dev/160#filtering. + * [RecommendRequest][google.cloud.discoveryengine.v1alpha.RecommendRequest], + * this field may be populated directly from + * [RecommendRequest.filter][google.cloud.discoveryengine.v1alpha.RecommendRequest.filter] + * conforming to https://google.aip.dev/160#filtering. * * The value must be a UTF-8 encoded string with a length limit of 1,000 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/acl_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/acl_config.proto new file mode 100644 index 000000000000..5ba44d60bd4d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/acl_config.proto @@ -0,0 +1,49 @@ +// Copyright 2022 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/common.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "AclConfigProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Access Control Configuration. +message AclConfig { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/AclConfig" + pattern: "projects/{project}/locations/{location}/aclConfig" + }; + + // Immutable. The full resource name of the acl configuration. + // Format: + // `projects/{project}/locations/{location}/aclConfig`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Identity provider config. + IdpConfig idp_config = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/acl_config_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/acl_config_service.proto new file mode 100644 index 000000000000..ddf9a7bbe81c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/acl_config_service.proto @@ -0,0 +1,79 @@ +// Copyright 2022 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/acl_config.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "AclConfigServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for managing Acl Configuration. +service AclConfigService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Default Acl Configuration for use in a location of a customer's project. + // Updates will only reflect to new data stores. Existing data stores will + // still use the old value. + rpc UpdateAclConfig(UpdateAclConfigRequest) returns (AclConfig) { + option (google.api.http) = { + patch: "/v1alpha/{acl_config.name=projects/*/locations/*/aclConfig}" + body: "acl_config" + }; + } + + // Gets the [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig]. + rpc GetAclConfig(GetAclConfigRequest) returns (AclConfig) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/aclConfig}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message for GetAclConfigRequest method. +message GetAclConfigRequest { + // Required. Resource name of + // [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], such as + // `projects/*/locations/*/aclConfig`. + // + // If the caller does not have permission to access the + // [AclConfig][google.cloud.discoveryengine.v1alpha.AclConfig], regardless of + // whether or not it exists, a PERMISSION_DENIED error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/AclConfig" + } + ]; +} + +// Request message for UpdateAclConfig method. +message UpdateAclConfigRequest { + AclConfig acl_config = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/chunk.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/chunk.proto new file mode 100644 index 000000000000..0d3578d26452 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/chunk.proto @@ -0,0 +1,72 @@ +// Copyright 2022 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "ChunkProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Chunk captures all raw metadata information of items to be recommended or +// searched in the chunk mode. +message Chunk { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/Chunk" + pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}" + pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}" + }; + + // Document metadata contains the information of the document of the current + // chunk. + message DocumentMetadata { + // Uri of the document. + string uri = 1; + + // Title of the document. + string title = 2; + } + + // The full resource name of the chunk. + // Format: + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1; + + // Unique chunk id of the current chunk. + string id = 2; + + // Content is a string from a document (parsed content). + string content = 3; + + // Metadata of the document from the current chunk. + DocumentMetadata document_metadata = 5; + + // Output only. This field is OUTPUT_ONLY. + // It contains derived data that are not in the original input document. + google.protobuf.Struct derived_struct_data = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/chunk_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/chunk_service.proto new file mode 100644 index 000000000000..27068b112995 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/chunk_service.proto @@ -0,0 +1,137 @@ +// Copyright 2022 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/chunk.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "ChunkServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for displaying processed +// [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] information of the +// customer's unstructured data. +service ChunkService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Gets a [Document][google.cloud.discoveryengine.v1alpha.Document]. + rpc GetChunk(GetChunkRequest) returns (Chunk) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*/chunks/*}" + additional_bindings { + get: "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*/chunks/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Gets a list of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s. + rpc ListChunks(ListChunksRequest) returns (ListChunksResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*/dataStores/*/branches/*/documents/*}/chunks" + additional_bindings { + get: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}/chunks" + } + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request message for +// [ChunkService.GetChunk][google.cloud.discoveryengine.v1alpha.ChunkService.GetChunk] +// method. +message GetChunkRequest { + // Required. Full resource name of + // [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], such as + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`. + // + // If the caller does not have permission to access the + // [Chunk][google.cloud.discoveryengine.v1alpha.Chunk], regardless of whether + // or not it exists, a `PERMISSION_DENIED` error is returned. + // + // If the requested [Chunk][google.cloud.discoveryengine.v1alpha.Chunk] does + // not exist, a `NOT_FOUND` error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Chunk" + } + ]; +} + +// Request message for +// [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks] +// method. +message ListChunksRequest { + // Required. The parent document resource name, such as + // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. + // + // If the caller does not have permission to list + // [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s under this document, + // regardless of whether or not this document exists, a `PERMISSION_DENIED` + // error is returned. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Document" + } + ]; + + // Maximum number of [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s to + // return. If unspecified, defaults to 100. The maximum allowed value is 1000. + // Values above 1000 will be coerced to 1000. + // + // If this field is negative, an `INVALID_ARGUMENT` error is returned. + int32 page_size = 2; + + // A page token + // [ListChunksResponse.next_page_token][google.cloud.discoveryengine.v1alpha.ListChunksResponse.next_page_token], + // received from a previous + // [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks] + // must match the call that provided the page token. Otherwise, an + // `INVALID_ARGUMENT` error is returned. + string page_token = 3; +} + +// Response message for +// [ChunkService.ListChunks][google.cloud.discoveryengine.v1alpha.ChunkService.ListChunks] +// method. +message ListChunksResponse { + // The [Chunk][google.cloud.discoveryengine.v1alpha.Chunk]s. + repeated Chunk chunks = 1; + + // A token that can be sent as + // [ListChunksRequest.page_token][google.cloud.discoveryengine.v1alpha.ListChunksRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/common.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/common.proto index 3fb016429ea1..c096c9c48980 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/common.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/common.proto @@ -36,10 +36,8 @@ option (google.api.resource_definition) = { pattern: "projects/{project}/locations/{location}/collections/{collection}" }; option (google.api.resource_definition) = { - type: "discoveryengine.googleapis.com/ServingConfig" - pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}" - pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}" - pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}" + type: "discoveryengine.googleapis.com/Location" + pattern: "projects/{project}/locations/{location}" }; // The industry vertical associated with the @@ -178,8 +176,83 @@ message UserInfo { string user_agent = 2; } +// Defines embedding config, used for bring your own embeddings feature. +message EmbeddingConfig { + // Full field path in the schema mapped as embedding field. + string field_path = 1; +} + // Double list. message DoubleList { // Double values. repeated double values = 1; } + +// Defines guided search spec. +message GuidedSearchSpec { + // Whether or not to enable and include refinement attributes in gudied search + // result. + bool enable_refinement_attributes = 1; + + // Whether or not to enable and include related questions in search response. + bool enable_related_questions = 2; + + // Max number of related questions to be returned. The valid range is [1, 5]. + // If enable_related_questions is true, the default value is 3. + int32 max_related_questions = 3; +} + +// Defines custom fine tuning spec. +message CustomFineTuningSpec { + // Whether or not to enable and include custom fine tuned search adaptor + // model. + bool enable_search_adaptor = 1; +} + +// Identity Provider Config. +message IdpConfig { + // Third party IDP Config. + message ExternalIdpConfig { + // Workforce pool name. + // Example: "locations/global/workforcePools/pool_id" + string workforce_pool_name = 1; + } + + // Identity Provider Type. + enum IdpType { + // Default value. ACL search not enabled. + IDP_TYPE_UNSPECIFIED = 0; + + // Google 1P provider. + GSUITE = 1; + + // Third party provider. + THIRD_PARTY = 2; + } + + // Identity provider type configured. + IdpType idp_type = 1; + + // External Identity provider config. + ExternalIdpConfig external_idp_config = 2; +} + +// Principal identifier of a user or a group. +message Principal { + // Union field principal. Principal can be a user or a group. + oneof principal { + // User identifier. + // For Google Workspace user account, user_id should be the google workspace + // user email. + // For non-google identity provider user account, user_id is the mapped user + // identifier configured during the workforcepool config. + string user_id = 1; + + // Group identifier. + // For Google Workspace user account, group_id should be the google + // workspace group email. + // For non-google identity provider user account, group_id is the mapped + // group identifier configured during the workforcepool config. + string group_id = 2; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/completion.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/completion.proto new file mode 100644 index 000000000000..300deddf6ab2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/completion.proto @@ -0,0 +1,52 @@ +// Copyright 2022 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "CompletionProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Suggestion deny list entry identifying the phrase to block from suggestions +// and the applied operation for the phrase. +message SuggestionDenyListEntry { + // Operator for matching with the generated suggestions. + enum MatchOperator { + // Default value. Should not be used + MATCH_OPERATOR_UNSPECIFIED = 0; + + // If the suggestion is an exact match to the block_phrase, then block it. + EXACT_MATCH = 1; + + // If the suggestion contains the block_phrase, then block it. + CONTAINS = 2; + } + + // Required. Phrase to block from suggestions served. Can be maximum 125 + // characters. + string block_phrase = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The match operator to apply for this phrase. Whether to block the + // exact phrase, or block any suggestions containing this phrase. + MatchOperator match_operator = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/completion_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/completion_service.proto index d035688e3bc6..dc6ef20b085c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/completion_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/completion_service.proto @@ -20,6 +20,9 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/import_config.proto"; +import "google/cloud/discoveryengine/v1alpha/purge_config.proto"; +import "google/longrunning/operations.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; @@ -45,6 +48,44 @@ service CompletionService { } }; } + + // Imports all + // [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry] + // for a DataStore. + rpc ImportSuggestionDenyListEntries(ImportSuggestionDenyListEntriesRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntries:import" + body: "*" + additional_bindings { + post: "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/suggestionDenyListEntries:import" + body: "*" + } + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse" + metadata_type: "google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata" + }; + } + + // Permanently deletes all + // [SuggestionDenyListEntry][google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry] + // for a DataStore. + rpc PurgeSuggestionDenyListEntries(PurgeSuggestionDenyListEntriesRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntries:purge" + body: "*" + additional_bindings { + post: "/v1alpha/{parent=projects/*/locations/*/dataStores/**}/suggestionDenyListEntries:purge" + body: "*" + } + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse" + metadata_type: "google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata" + }; + } } // Request message for @@ -65,8 +106,9 @@ message CompleteQueryRequest { // 128 characters. string query = 2 [(google.api.field_behavior) = REQUIRED]; - // Selects data model of query suggestions for serving. Currently supported - // values: + // Specifies the autocomplete data model. This overrides any model specified + // in the Configuration > Autocomplete section of the Cloud console. Currently + // supported values: // // * `document` - Using suggestions generated from user-imported documents. // * `search-history` - Using suggestions generated from the past history of diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto index 675682eb775f..0879bb58b245 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/conversational_search_service.proto @@ -223,6 +223,11 @@ message ConverseConversationRequest { // operators, see // [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) string filter = 9; + + // Boost specification to boost certain documents in search results which may + // affect the converse response. For more information on boosting, see + // [Boosting](https://cloud.google.com/retail/docs/boosting#boost) + SearchRequest.BoostSpec boost_spec = 10; } // Response message for @@ -266,7 +271,7 @@ message UpdateConversationRequest { // [Conversation][google.cloud.discoveryengine.v1alpha.Conversation] to // update. The following are NOT supported: // - // * [conversation.name][] + // * [Conversation.name][google.cloud.discoveryengine.v1alpha.Conversation.name] // // If not set or empty, all supported fields are updated. google.protobuf.FieldMask update_mask = 2; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/data_store.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/data_store.proto index e7809cb1f3b2..e24d08ea117e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/data_store.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/data_store.proto @@ -19,6 +19,8 @@ package google.cloud.discoveryengine.v1alpha; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1alpha/common.proto"; +import "google/cloud/discoveryengine/v1alpha/document_processing_config.proto"; +import "google/cloud/discoveryengine/v1alpha/schema.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; @@ -95,4 +97,46 @@ message DataStore { // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] was created at. google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Data store level identity provider config. + IdpConfig idp_config = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. Whether data in the + // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] has ACL + // information. If set to `true`, the source data must have ACL. ACL will be + // ingested when data is ingested by + // [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments] + // methods. + // + // When ACL is enabled for the + // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], + // [Document][google.cloud.discoveryengine.v1alpha.Document] can't be accessed + // by calling + // [DocumentService.GetDocument][google.cloud.discoveryengine.v1alpha.DocumentService.GetDocument] + // or + // [DocumentService.ListDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.ListDocuments]. + // + // Currently ACL is only supported in `GENERIC` industry vertical with + // non-`PUBLIC_WEBSITE` content config. + bool acl_enabled = 24 [(google.api.field_behavior) = IMMUTABLE]; + + // Configuration for Document understanding and enrichment. + DocumentProcessingConfig document_processing_config = 27; + + // The start schema to use for this + // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] when + // provisioning it. If unset, a default vertical specialized schema will be + // used. + // + // This field is only used by [CreateDataStore][] API, and will be ignored if + // used in other APIs. This field will be omitted from all API responses + // including [CreateDataStore][] API. To retrieve a schema of a + // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], use + // [SchemaService.GetSchema][google.cloud.discoveryengine.v1alpha.SchemaService.GetSchema] + // API instead. + // + // The provided schema will be validated against certain rules on schema. + // Learn more from [this + // doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). + Schema starting_schema = 28; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/data_store_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/data_store_service.proto index 2e8967ab2ffe..e7f4acad9006 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/data_store_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/data_store_service.proto @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1alpha/data_store.proto"; +import "google/cloud/discoveryengine/v1alpha/document_processing_config.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; @@ -117,6 +118,41 @@ service DataStoreService { }; option (google.api.method_signature) = "data_store,update_mask"; } + + // Gets a + // [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + rpc GetDocumentProcessingConfig(GetDocumentProcessingConfigRequest) + returns (DocumentProcessingConfig) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/dataStores/*/documentProcessingConfig}" + additional_bindings { + get: "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Updates the + // [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + // [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig] + // is a singleon resource of + // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. It's empty + // when [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is + // created. The first call to this method will set up + // [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig]. + rpc UpdateDocumentProcessingConfig(UpdateDocumentProcessingConfigRequest) + returns (DocumentProcessingConfig) { + option (google.api.http) = { + patch: "/v1alpha/{document_processing_config.name=projects/*/locations/*/dataStores/*/documentProcessingConfig}" + body: "document_processing_config" + additional_bindings { + patch: "/v1alpha/{document_processing_config.name=projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig}" + body: "document_processing_config" + } + }; + option (google.api.method_signature) = + "document_processing_config,update_mask"; + } } // Request for @@ -198,7 +234,8 @@ message ListDataStoresRequest { // Required. The parent branch resource name, such as // `projects/{project}/locations/{location}/collections/{collection_id}`. // - // If the caller does not have permission to list [DataStores][]s under this + // If the caller does not have permission to list + // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]s under this // location, regardless of whether or not this data store exists, a // PERMISSION_DENIED error is returned. string parent = 1 [ @@ -305,3 +342,45 @@ message DeleteDataStoreMetadata { // finish time. google.protobuf.Timestamp update_time = 2; } + +// Request for +// [DataStoreService.GetDocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DataStoreService.GetDocumentProcessingConfig] +// method. +message GetDocumentProcessingConfigRequest { + // Required. Full DocumentProcessingConfig resource name. Format: + // `projects/{project_number}/locations/{location_id}/collections/{collection_id}/dataStores/{data_store_id}/documentProcessingConfig` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DocumentProcessingConfig" + } + ]; +} + +// Request for +// [DataStoreService.UpdateDocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DataStoreService.UpdateDocumentProcessingConfig] +// method. +message UpdateDocumentProcessingConfigRequest { + // Required. The + // [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig] + // to update. + // + // If the caller does not have permission to update the + // [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig], + // then a PERMISSION_DENIED error is returned. + // + // If the + // [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig] + // to update does not exist, a NOT_FOUND error is returned. + DocumentProcessingConfig document_processing_config = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Indicates which fields in the provided + // [DocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig] + // to update. The following are the only supported fields: + // + // * [DocumentProcessingConfig.ocr_config][google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig.ocr_config] + // + // If not set, all supported fields are updated. + google.protobuf.FieldMask update_mask = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document.proto index 463c36ceeb4a..88fd88868243 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document.proto @@ -18,7 +18,9 @@ package google.cloud.discoveryengine.v1alpha; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/common.proto"; import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; @@ -69,6 +71,76 @@ message Document { string mime_type = 1; } + // ACL Information of the Document. + message AclInfo { + // AclRestriction to model complex inheritance restrictions. + // + // Example: Modeling a "Both Permit" inheritance, where to access a + // child document, user needs to have access to parent document. + // + // Document Hierarchy - Space_S --> Page_P. + // + // Readers: + // Space_S: group_1, user_1 + // Page_P: group_2, group_3, user_2 + // + // Space_S ACL Restriction - + // { + // "acl_info": { + // "readers": [ + // { + // "principals": [ + // { + // "group_id": "group_1" + // }, + // { + // "user_id": "user_1" + // } + // ] + // } + // ] + // } + // } + // + // Page_P ACL Restriction. + // { + // "acl_info": { + // "readers": [ + // { + // "principals": [ + // { + // "group_id": "group_2" + // }, + // { + // "group_id": "group_3" + // }, + // { + // "user_id": "user_2" + // } + // ], + // }, + // { + // "principals": [ + // { + // "group_id": "group_1" + // }, + // { + // "user_id": "user_1" + // } + // ], + // } + // ] + // } + // } + message AccessRestriction { + // List of principals. + repeated Principal principals = 1; + } + + // Readers of the document. + repeated AccessRestriction readers = 1; + } + // Data representation. One of // [struct_data][google.cloud.discoveryengine.v1alpha.Document.struct_data] or // [json_data][google.cloud.discoveryengine.v1alpha.Document.json_data] should @@ -118,4 +190,15 @@ message Document { // It contains derived data that are not in the original input document. google.protobuf.Struct derived_struct_data = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Access control information for the document. + AclInfo acl_info = 11; + + // Output only. The last time the document was indexed. If this field is set, + // the document could be returned in search results. + // + // This field is OUTPUT_ONLY. If this field is not populated, it means the + // document has never been indexed. + google.protobuf.Timestamp index_time = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document_processing_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document_processing_config.proto new file mode 100644 index 000000000000..bea6d7735b4e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document_processing_config.proto @@ -0,0 +1,127 @@ +// Copyright 2022 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "DocumentProcessingConfigProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// A singleton resource of +// [DataStore][google.cloud.discoveryengine.v1alpha.DataStore]. It's empty when +// [DataStore][google.cloud.discoveryengine.v1alpha.DataStore] is created, which +// defaults to digital parser. The first call to +// [DataStoreService.UpdateDocumentProcessingConfig][google.cloud.discoveryengine.v1alpha.DataStoreService.UpdateDocumentProcessingConfig] +// method will initialize the config. +message DocumentProcessingConfig { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/DocumentProcessingConfig" + pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig" + pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig" + }; + + // Configuration for chunking config. + message ChunkingConfig { + // Configuration for the layout based chunking. + message LayoutBasedChunkingConfig { + // The token size limit for each chunk. + // + // Supported values: 100-500 (inclusive). + // Default value: 500. + int32 chunk_size = 1; + + // Whether to include appending different levels of headings to chunks + // from the middle of the document to prevent context loss. + // + // Default value: False. + bool include_ancestor_headings = 2; + } + + // Additional configs that defines the behavior of the chunking. + oneof chunk_mode { + // Configuration for the layout based chunking. + LayoutBasedChunkingConfig layout_based_chunking_config = 1; + } + } + + // Related configurations applied to a specific type of document parser. + message ParsingConfig { + // The digital parsing configurations for documents. + message DigitalParsingConfig {} + + // The OCR parsing configurations for documents. + message OcrParsingConfig { + // Apply additional enhanced OCR processing to a list of document + // elements. + // + // Supported values: + // * `table`: advanced table parsing model. + repeated string enhanced_document_elements = 1; + + // If true, will use native text instead of OCR text on pages containing + // native text. + bool use_native_text = 2; + } + + // The layout parsing configurations for documents. + message LayoutParsingConfig {} + + // Configs for document processing types. + oneof type_dedicated_config { + // Configurations applied to digital parser. + DigitalParsingConfig digital_parsing_config = 1; + + // Configurations applied to OCR parser. Currently it only applies to + // PDFs. + OcrParsingConfig ocr_parsing_config = 2; + + // Configurations applied to layout parser. + LayoutParsingConfig layout_parsing_config = 3; + } + } + + // The full resource name of the Document Processing Config. + // Format: + // `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. + string name = 1; + + // Whether chunking mode is enabled. + ChunkingConfig chunking_config = 3; + + // Configurations for default Document parser. + // If not specified, we will configure it as default DigitalParsingConfig, and + // the default parsing config will be applied to all file types for Document + // parsing. + ParsingConfig default_parsing_config = 4; + + // Map from file type to override the default parsing configuration based on + // the file type. Supported keys: + // * `pdf`: Override parsing config for PDF files, either digital parsing, ocr + // parsing or layout parsing is supported. + // * `html`: Override parsing config for HTML files, only digital parsing and + // or layout parsing are supported. + // * `docx`: Override parsing config for DOCX files, only digital parsing and + // or layout parsing are supported. + map parsing_config_overrides = 5; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document_service.proto index 84dfae08727d..c4d18d23ffd4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/document_service.proto @@ -25,6 +25,7 @@ import "google/cloud/discoveryengine/v1alpha/import_config.proto"; import "google/cloud/discoveryengine/v1alpha/purge_config.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; @@ -88,6 +89,7 @@ service DocumentService { body: "document" } }; + option (google.api.method_signature) = "document,update_mask"; } // Deletes a [Document][google.cloud.discoveryengine.v1alpha.Document]. @@ -293,6 +295,10 @@ message UpdateDocumentRequest { // new [Document][google.cloud.discoveryengine.v1alpha.Document] will be // created. bool allow_missing = 2; + + // Indicates which fields in the provided imported 'document' to update. If + // not set, will by default update all fields. + google.protobuf.FieldMask update_mask = 3; } // Request message for diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/engine.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/engine.proto index 0c96b0c3fd5a..8149286f306c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/engine.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/engine.proto @@ -82,7 +82,7 @@ message Engine { TRAINING = 2; } - // Required. The type of engine e.g. `recommended-for-you`. + // Required. The type of engine. e.g., `recommended-for-you`. // // This field together with // [optimization_objective][Engine.optimization_objective] describe engine @@ -92,7 +92,7 @@ message Engine { // `more-like-this`, `most-popular-items`. string type = 1 [(google.api.field_behavior) = REQUIRED]; - // The optimization objective e.g. `cvr`. + // The optimization objective. e.g., `cvr`. // // This field together with // [optimization_objective][google.cloud.discoveryengine.v1alpha.Engine.MediaRecommendationEngineConfig.type] @@ -155,6 +155,11 @@ message Engine { // database](https://www.iana.org/time-zones), e.g., America/New_York, // Europe/Paris. string time_zone = 3 [(google.api.field_behavior) = REQUIRED]; + + // Agent location for Agent creation, supported values: global/us/eu. + // If not provided, us Engine will create Agent using us-central-1 by + // default; eu Engine will create Agent using eu-west-1 by default. + string location = 4; } // The configurationt generate the Dialogflow agent that is associated to @@ -181,16 +186,16 @@ message Engine { // or // [EngineService.ListEngines][google.cloud.discoveryengine.v1alpha.EngineService.ListEngines] // API after engine creation. Please use - // [chat_engine_metadata.dialogflow_agent][] for actual agent - // association after Engine is created. + // [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1alpha.Engine.ChatEngineMetadata.dialogflow_agent] + // for actual agent association after Engine is created. string dialogflow_agent_to_link = 2; } // Common configurations for an Engine. message CommonConfig { - // The name of the company, business or entity that is associated with the - // engine. Setting this may help improve LLM related features. - string company_name = 1; + // Immutable. The name of the company, business or entity that is associated + // with the engine. Setting this may help improve LLM related features. + string company_name = 1 [(google.api.field_behavior) = IMMUTABLE]; } // Additional information of a recommendation engine. @@ -352,7 +357,7 @@ message Engine { // Note that when used in // [CreateEngineRequest][google.cloud.discoveryengine.v1alpha.CreateEngineRequest], // one DataStore id must be provided as the system will use it for necessary - // intializations. + // initializations. repeated string data_store_ids = 5; // Required. The solutions of the engine. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/engine_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/engine_service.proto index 106381debf7a..3d634f6f215f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/engine_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/engine_service.proto @@ -94,7 +94,7 @@ service EngineService { } // Pauses the training of an existing engine. Only applicable if - // [solution_type][] is + // [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. rpc PauseEngine(PauseEngineRequest) returns (Engine) { option (google.api.http) = { @@ -115,7 +115,8 @@ service EngineService { option (google.api.method_signature) = "name"; } - // Tunes an existing engine. Only applicable if [solution_type][] is + // Tunes an existing engine. Only applicable if + // [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. rpc TuneEngine(TuneEngineRequest) returns (google.longrunning.Operation) { option (google.api.http) = { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto new file mode 100644 index 000000000000..56f1f260bfcf --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/estimate_billing_service.proto @@ -0,0 +1,130 @@ +// Copyright 2022 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/import_config.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "EstimateBillingServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for managing billing estimations resources. +service EstimateBillingService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Estimates the data size to be used by a customer. + rpc EstimateDataSize(EstimateDataSizeRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1alpha/{location=projects/*/locations/*}:estimateDataSize" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse" + metadata_type: "google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata" + }; + } +} + +// Request message for +// [EstimateBillingService.EstimateDataSize][google.cloud.discoveryengine.v1alpha.EstimateBillingService.EstimateDataSize] +// method +message EstimateDataSizeRequest { + // Data source is a set of website patterns that we crawl to get + // the total number of websites. + message WebsiteDataSource { + // URI patterns that we use to crawl. + message EstimatorUriPattern { + // User provided URI pattern. For example, `foo.com/bar/*`. + string provided_uri_pattern = 1; + + // Whether we infer the generated URI or use the exact provided one. + bool exact_match = 2; + + // Whether the pattern is exclusive or not. If set to true, the pattern is + // considered exclusive. If unset or set to false, the pattern is + // considered inclusive by default. + bool exclusive = 3; + } + + // Required. The URI patterns to estimate the data sizes. At most 10 + // patterns are allowed, otherwise an INVALID_ARGUMENT error is thrown. + repeated EstimatorUriPattern estimator_uri_patterns = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // Data source contains files either in Cloud Storage or BigQuery. + message FileDataSource { + // Which source contains the files to be used. + oneof source { + // Cloud Storage location for the input content. + GcsSource gcs_source = 1; + + // BigQuery input source. + BigQuerySource bigquery_source = 2; + } + } + + // Data source for which we are estimating its size. + oneof data_source { + // Website data. + WebsiteDataSource website_data_source = 2; + + // Structured or unstructured data. + FileDataSource file_data_source = 3; + } + + // Required. Full resource name of the location, such as + // `projects/{project}/locations/{location}`. + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; +} + +// Response of the EstimateDataSize request. If the long running +// operation was successful, then this message is returned by the +// google.longrunning.Operations.response field if the operation was successful. +message EstimateDataSizeResponse { + // Data size in terms of bytes. + int64 data_size_bytes = 1; + + // Total number of documents. + int64 document_count = 2; +} + +// Metadata related to the progress of the EstimateDataSize operation. This is +// returned by the google.longrunning.Operation.metadata field. +message EstimateDataSizeMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/import_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/import_config.proto index 8902565bad38..f6c45aecf186 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/import_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/import_config.proto @@ -18,6 +18,7 @@ package google.cloud.discoveryengine.v1alpha; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/completion.proto"; import "google/cloud/discoveryengine/v1alpha/document.proto"; import "google/cloud/discoveryengine/v1alpha/user_event.proto"; import "google/protobuf/timestamp.proto"; @@ -341,3 +342,66 @@ message ImportDocumentsResponse { // Echoes the destination for the complete errors in the request if set. ImportErrorConfig error_config = 2; } + +// Request message for +// [CompletionService.ImportSuggestionDenyListEntries][google.cloud.discoveryengine.v1alpha.CompletionService.ImportSuggestionDenyListEntries] +// method. +message ImportSuggestionDenyListEntriesRequest { + // The inline source for SuggestionDenyListEntry. + message InlineSource { + // Required. A list of all denylist entries to import. Max of 1000 items. + repeated SuggestionDenyListEntry entries = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // The source of the updated SuggestionDenyList. + oneof source { + // The Inline source for the input content for suggestion deny list entries. + InlineSource inline_source = 2; + + // Cloud Storage location for the input content. + // + // Only 1 file can be specified that contains all entries to import. + // Supported values `gcs_source.schema` for autocomplete suggestion deny + // list entry imports: + // + // * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry] + // per line. + GcsSource gcs_source = 3; + } + + // Required. The parent data store resource name for which to import denylist + // entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; +} + +// Response message for +// [CompletionService.ImportSuggestionDenyListEntries][google.cloud.discoveryengine.v1alpha.CompletionService.ImportSuggestionDenyListEntries] +// method. +message ImportSuggestionDenyListEntriesResponse { + // A sample of errors encountered while processing the request. + repeated google.rpc.Status error_samples = 1; + + // Count of deny list entries successfully imported. + int64 imported_entries_count = 2; + + // Count of deny list entries that failed to be imported. + int64 failed_entries_count = 3; +} + +// Metadata related to the progress of the ImportSuggestionDenyListEntries +// operation. This is returned by the google.longrunning.Operation.metadata +// field. +message ImportSuggestionDenyListEntriesMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/purge_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/purge_config.proto index ae6158bf2a7d..79537f98627e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/purge_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/purge_config.proto @@ -18,7 +18,9 @@ package google.cloud.discoveryengine.v1alpha; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/import_config.proto"; import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; @@ -102,10 +104,31 @@ message PurgeUserEventsMetadata { int64 failure_count = 4; } +// Configuration of destination for Purge related errors. +message PurgeErrorConfig { + // Required. Errors destination. + oneof destination { + // Cloud Storage prefix for purge errors. This must be an empty, + // existing Cloud Storage directory. Purge errors are written to + // sharded files in this directory, one per line, as a JSON-encoded + // `google.rpc.Status` message. + string gcs_prefix = 1; + } +} + // Request message for // [DocumentService.PurgeDocuments][google.cloud.discoveryengine.v1alpha.DocumentService.PurgeDocuments] // method. message PurgeDocumentsRequest { + // The desired input source for the purging documents based on document ids. + oneof source { + // Cloud Storage location for the input content. + // Supported `data_schema`: + // * `document_id`: One valid + // [Document.id][google.cloud.discoveryengine.v1alpha.Document.id] per line. + GcsSource gcs_source = 5; + } + // Required. The parent resource name, such as // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. string parent = 1 [ @@ -120,6 +143,9 @@ message PurgeDocumentsRequest { // `*` (all items). string filter = 2 [(google.api.field_behavior) = REQUIRED]; + // The desired location of errors incurred during the purge. + PurgeErrorConfig error_config = 7; + // Actually performs the purge. If `force` is set to false, return the // expected purge count without deleting any documents. bool force = 3; @@ -156,4 +182,44 @@ message PurgeDocumentsMetadata { // Count of entries that encountered errors while processing. int64 failure_count = 4; + + // Count of entries that were ignored as entries were not found. + int64 ignored_count = 5; +} + +// Request message for +// [CompletionService.PurgeSuggestionDenyListEntries][google.cloud.discoveryengine.v1alpha.CompletionService.PurgeSuggestionDenyListEntries] +// method. +message PurgeSuggestionDenyListEntriesRequest { + // Required. The parent data store resource name for which to import denylist + // entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; +} + +// Response message for +// [CompletionService.PurgeSuggestionDenyListEntries][google.cloud.discoveryengine.v1alpha.CompletionService.PurgeSuggestionDenyListEntries] +// method. +message PurgeSuggestionDenyListEntriesResponse { + // Number of suggestion deny list entries purged. + int64 purge_count = 1; + + // A sample of errors encountered while processing the request. + repeated google.rpc.Status error_samples = 2; +} + +// Metadata related to the progress of the PurgeSuggestionDenyListEntries +// operation. This is returned by the google.longrunning.Operation.metadata +// field. +message PurgeSuggestionDenyListEntriesMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/recommendation_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/recommendation_service.proto index bb53f14f8aa3..4a368ee9a687 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/recommendation_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/recommendation_service.proto @@ -68,7 +68,9 @@ message RecommendRequest { // config. For example, for Engine // `projects/*/locations/global/collections/*/engines/my-engine`, you can use // `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine` - // for your [Recommend][] requests. + // for your + // [RecommendationService.Recommend][google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend] + // requests. string serving_config = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/schema.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/schema.proto index 1c073962aa4d..b90debc2a21c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/schema.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/schema.proto @@ -86,6 +86,9 @@ message FieldConfig { // Field value type is Geolocation. GEOLOCATION = 6; + + // Field value type is Datetime. + DATETIME = 7; } // The setting of Indexable options in schema. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_service.proto index 881504d25e4e..920a6ed82fdf 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_service.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/chunk.proto"; import "google/cloud/discoveryengine/v1alpha/common.proto"; import "google/cloud/discoveryengine/v1alpha/document.proto"; import "google/protobuf/struct.proto"; @@ -69,6 +70,19 @@ message SearchRequest { } } + // A struct to define data stores to filter on in a search call. + message DataStoreSpec { + // Required. Full resource name of + // [DataStore][google.cloud.discoveryengine.v1alpha.DataStore], such as + // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + string data_store = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + } + // A facet specification to perform faceted search. message FacetSpec { // Specifies how a facet is computed. @@ -212,9 +226,8 @@ message SearchRequest { // Examples: // // * To boost documents with document ID "doc_1" or "doc_2", and - // color - // "Red" or "Blue": - // * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + // color "Red" or "Blue": + // `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` string condition = 1; // Strength of the condition boost, which should be in [-1, 1]. Negative @@ -330,8 +343,16 @@ message SearchRequest { // Specification of the model. message ModelSpec { - // The string format of the model version. - // e.g. stable, preview, etc. + // The model version used to generate the summary. + // + // Supported values are: + // + // * `stable`: string. Default value when no value is specified. Uses a + // generally available, fine-tuned version of the text-bison@001 + // model. + // * `preview`: string. (Public preview) Uses a fine-tuned version of + // the text-bison@002 model. This model works only for summaries in + // English. string version = 1; } @@ -339,7 +360,7 @@ message SearchRequest { // of results returned is less than `summaryResultCount`, the summary is // generated from all of the results. // - // At most five results can be used to generate a summary. + // At most 10 results can be used to generate a summary. int32 summary_result_count = 1; // Specifies whether to include citations in the summary. The default @@ -414,7 +435,7 @@ message SearchRequest { // `max_extractive_answer_count`, return all of the answers. Otherwise, // return the `max_extractive_answer_count`. // - // At most one answer is returned for each + // At most five answers are returned for each // [SearchResult][google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult]. int32 max_extractive_answer_count = 1; @@ -455,6 +476,24 @@ message SearchRequest { int32 num_next_segments = 5; } + // Specifies the search result mode. If unspecified, the + // search result mode is based on + // [DataStore.DocumentProcessingConfig.chunking_config][]: + // * If [DataStore.DocumentProcessingConfig.chunking_config][] is specified, + // it defaults to `CHUNKS`. + // * Otherwise, it defaults to `DOCUMENTS`. + enum SearchResultMode { + // Default value. + SEARCH_RESULT_MODE_UNSPECIFIED = 0; + + // Returns documents in the search result. + DOCUMENTS = 1; + + // Returns chunks in the search result. Only available if the + // [DataStore.DocumentProcessingConfig.chunking_config][] is specified. + CHUNKS = 2; + } + // If `snippetSpec` is not specified, snippets are not included in the // search response. SnippetSpec snippet_spec = 1; @@ -466,6 +505,14 @@ message SearchRequest { // If there is no extractive_content_spec provided, there will be no // extractive answer in the search response. ExtractiveContentSpec extractive_content_spec = 3; + + // Specifies the search result mode. If unspecified, the + // search result mode is based on + // [DataStore.DocumentProcessingConfig.chunking_config][]: + // * If [DataStore.DocumentProcessingConfig.chunking_config][] is specified, + // it defaults to `CHUNKS`. + // * Otherwise, it defaults to `DOCUMENTS`. + SearchResultMode search_result_mode = 4; } // The specification that uses customized query embedding vector to do @@ -540,6 +587,9 @@ message SearchRequest { // If this field is negative, an `INVALID_ARGUMENT` is returned. int32 offset = 6; + // A list of data store specs to apply on a search call. + repeated DataStoreSpec data_store_specs = 32; + // The filter syntax consists of an expression language for constructing a // predicate from one or more fields of the documents being filtered. Filter // expression is case-sensitive. @@ -645,12 +695,13 @@ message SearchRequest { // Uses the provided embedding to do additional semantic document retrieval. // The retrieval is based on the dot product of - // [SearchRequest.embedding_spec.embedding_vectors.vector][] and the document - // embedding that is provided in - // [SearchRequest.embedding_spec.embedding_vectors.field_path][]. + // [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector] + // and the document embedding that is provided in + // [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]. // - // If [SearchRequest.embedding_spec.embedding_vectors.field_path][] is not - // provided, it will use [ServingConfig.embedding_config.field_paths][]. + // If + // [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path] + // is not provided, it will use [ServingConfig.EmbeddingConfig.field_path][]. EmbeddingSpec embedding_spec = 23; // The ranking expression controls the customized ranking on retrieval @@ -697,6 +748,9 @@ message SearchRequest { // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) // for more details. map user_labels = 22; + + // Custom fine tuning configs. + CustomFineTuningSpec custom_fine_tuning_spec = 34; } // Response message for @@ -713,6 +767,12 @@ message SearchResponse { // marked as retrievable are populated. Document document = 2; + // The chunk data in the search response if the + // [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.search_result_mode] + // is set to + // [CHUNKS][google.cloud.discoveryengine.v1alpha.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. + Chunk chunk = 18; + // Google provided available scores. map model_scores = 4; } @@ -822,7 +882,7 @@ message SearchResponse { } ]; - // GCS or HTTP uri for the document. + // Cloud Storage or HTTP uri for the document. string uri = 3; } @@ -887,6 +947,7 @@ message SearchResponse { // confidence scores. SafetyAttributes safety_attributes = 3; + // Summary with metadata information. SummaryWithMetadata summary_with_metadata = 4; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto index 97f1d82c7c5f..334edae3e387 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/search_tuning_service.proto @@ -58,41 +58,45 @@ service SearchTuningService { // [SearchTuningService.TrainCustomModel][google.cloud.discoveryengine.v1alpha.SearchTuningService.TrainCustomModel] // method. message TrainCustomModelRequest { - // Gcs training data input. + // Cloud Storage training data input. message GcsTrainingInput { - // The gcs corpus data which could be associated in train data. - // The data path format is gs:///. + // The Cloud Storage corpus data which could be associated in train data. + // The data path format is `gs:///`. // A newline delimited jsonl/ndjson file. - // * For search-tuning model, each line should have the _id, title - // and text. Example: {"_id": "doc1", title: "relevant doc", "text": - // "relevant text"} + // + // For search-tuning model, each line should have the _id, title + // and text. Example: {"_id": "doc1", title: "relevant doc", "text": + // "relevant text"} string corpus_data_path = 1; // The gcs query data which could be associated in train data. - // The data path format is gs:///. + // The data path format is `gs:///`. // A newline delimited jsonl/ndjson file. - // * For search-tuning model, each line should have the _id - // and text. Example: {"_id": "query1", "text": "example query"} + // + // For search-tuning model, each line should have the _id + // and text. Example: {"_id": "query1", "text": "example query"} string query_data_path = 2; - // Gcs training data path whose format should be - // gs:///. The file should be in tsv format. - // Each line should have the doc_id and query_id and score (number). - // * For search-tuning model, it should have the query-id corpus-id - // score as tsv file header. The score should be a number in [0, inf+). The - // larger the number is, the more relevant the pair is. Example: - // query-id\tcorpus-id\tscore - // query1\tdoc1\t1 + // Cloud Storage training data path whose format should be + // `gs:///`. The file should be in tsv + // format. Each line should have the doc_id and query_id and score (number). + // + // For search-tuning model, it should have the query-id corpus-id + // score as tsv file header. The score should be a number in `[0, inf+)`. + // The larger the number is, the more relevant the pair is. Example: + // + // * `query-id\tcorpus-id\tscore` + // * `query1\tdoc1\t1` string train_data_path = 3; - // Gcs test data. Same format as train_data_path. If not provided, a - // random 80/20 train/test split will be performed on train_data_path. + // Cloud Storage test data. Same format as train_data_path. If not provided, + // a random 80/20 train/test split will be performed on train_data_path. string test_data_path = 4; } // Model training input. oneof training_input { - // Gcs training input. + // Cloud Storage training input. GcsTrainingInput gcs_training_input = 2; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/serving_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/serving_config.proto new file mode 100644 index 000000000000..e6419f8165bb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/serving_config.proto @@ -0,0 +1,271 @@ +// Copyright 2022 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/common.proto"; +import "google/cloud/discoveryengine/v1alpha/search_service.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "ServingConfigProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Configures metadata that is used to generate serving time results (e.g. +// search results or recommendation predictions). +// The ServingConfig is passed in the search and predict request and generates +// results. +message ServingConfig { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/ServingConfig" + pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}" + pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}" + pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}" + }; + + // Specifies the configurations needed for Media Discovery. Currently we + // support: + // + // * `demote_content_watched`: Threshold for watched content demotion. + // Customers can specify if using watched content demotion or use viewed + // detail page. Using the content watched demotion, customers need to specify + // the watched minutes or percentage exceeds the threshold, the content will + // be demoted in the recommendation result. + // * `promote_fresh_content`: cutoff days for fresh content promotion. + // Customers can specify if using content freshness promotion. If the content + // was published within the cutoff days, the content will be promoted in the + // recommendation result. + // Can only be set if + // [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is + // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. + message MediaConfig { + // Specify the threshold for demoting watched content, the threshold can be + // either percentage or minutes value. + // This must be set for `media-complete` event type. + oneof demote_content_watched { + // Specifies the content watched percentage threshold for demotion. + // Threshold value must be between [0, 1.0] inclusive. + float content_watched_percentage_threshold = 2; + + // Specifies the content watched minutes threshold for demotion. + float content_watched_seconds_threshold = 5; + } + + // Specifies the event type used for demoting recommendation result. + // Currently supported values: + // + // * `view-item`: Item viewed. + // * `media-play`: Start/resume watching a video, playing a song, etc. + // * `media-complete`: Finished or stopped midway through a video, song, + // etc. + // + // If unset, watch history demotion will not be applied. Content freshness + // demotion will still be applied. + string demotion_event_type = 1; + + // Specifies the content freshness used for recommendation result. + // Contents will be demoted if contents were published for more than content + // freshness cutoff days. + int32 content_freshness_cutoff_days = 4; + } + + // Specifies the configurations needed for Generic Discovery.Currently we + // support: + // + // * `content_search_spec`: configuration for generic content search. + message GenericConfig { + // Specifies the expected behavior of content search. + // Only valid for content-search enabled data store. + SearchRequest.ContentSearchSpec content_search_spec = 1; + } + + // Industry vertical specific config. + oneof vertical_config { + // The MediaConfig of the serving configuration. + MediaConfig media_config = 7; + + // The GenericConfig of the serving configuration. + GenericConfig generic_config = 10; + } + + // Immutable. Fully qualified name + // `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}` + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Required. The human readable serving config display name. Used in Discovery + // UI. + // + // This field must be a UTF-8 encoded string with a length limit of 128 + // characters. Otherwise, an INVALID_ARGUMENT error is returned. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Immutable. Specifies the solution type that a serving config can + // be associated with. + SolutionType solution_type = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // The id of the model to use at serving time. + // Currently only RecommendationModels are supported. + // Can be changed but only to a compatible model (e.g. + // others-you-may-like CTR to others-you-may-like CVR). + // + // Required when + // [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is + // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. + string model_id = 4; + + // How much diversity to use in recommendation model results e.g. + // `medium-diversity` or `high-diversity`. Currently supported values: + // + // * `no-diversity` + // * `low-diversity` + // * `medium-diversity` + // * `high-diversity` + // * `auto-diversity` + // + // If not specified, we choose default based on recommendation model + // type. Default value: `no-diversity`. + // + // Can only be set if + // [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is + // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. + string diversity_level = 5; + + // Bring your own embedding config. The config is used for search semantic + // retrieval. The retrieval is based on the dot product of + // [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector] + // and the document embeddings that are provided by this EmbeddingConfig. If + // [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1alpha.SearchRequest.EmbeddingSpec.EmbeddingVector.vector] + // is provided, it overrides this + // [ServingConfig.embedding_config][google.cloud.discoveryengine.v1alpha.ServingConfig.embedding_config]. + EmbeddingConfig embedding_config = 20; + + // The ranking expression controls the customized ranking on retrieval + // documents. To leverage this, document embedding is required. The ranking + // expression setting in ServingConfig applies to all search requests served + // by the serving config. However, if + // [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1alpha.SearchRequest.ranking_expression] + // is specified, it overrides the ServingConfig ranking expression. + // + // The ranking expression is a single function or multiple functions that are + // joined by "+". + // * ranking_expression = function, { " + ", function }; + // Supported functions: + // * double * relevance_score + // * double * dotProduct(embedding_field_path) + // Function variables: + // relevance_score: pre-defined keywords, used for measure relevance between + // query and document. + // embedding_field_path: the document embedding field + // used with query embedding vector. + // dotProduct: embedding function between embedding_field_path and query + // embedding vector. + // + // Example ranking expression: + // If document has an embedding field doc_embedding, the ranking expression + // could be 0.5 * relevance_score + 0.3 * dotProduct(doc_embedding). + string ranking_expression = 21; + + // Guided search configs. + GuidedSearchSpec guided_search_spec = 22; + + // Custom fine tuning configs. + CustomFineTuningSpec custom_fine_tuning_spec = 24; + + // Output only. ServingConfig created timestamp. + google.protobuf.Timestamp create_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. ServingConfig updated timestamp. + google.protobuf.Timestamp update_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Filter controls to use in serving path. + // All triggered filter controls will be applied. + // Filter controls must be in the same data store as the serving config. + // Maximum of 20 filter controls. + repeated string filter_control_ids = 11; + + // Boost controls to use in serving path. + // All triggered boost controls will be applied. + // Boost controls must be in the same data store as the serving config. + // Maximum of 20 boost controls. + repeated string boost_control_ids = 12; + + // IDs of the redirect controls. Only the first triggered redirect + // action is applied, even if multiple apply. Maximum number of + // specifications is 100. + // + // Can only be set if + // [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is + // [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH]. + repeated string redirect_control_ids = 14; + + // Condition synonyms specifications. If multiple synonyms conditions + // match, all matching synonyms controls in the list will execute. + // Maximum number of specifications is 100. + // + // Can only be set if + // [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is + // [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH]. + repeated string synonyms_control_ids = 15; + + // Condition oneway synonyms specifications. If multiple oneway synonyms + // conditions match, all matching oneway synonyms controls in the list + // will execute. Maximum number of specifications is 100. + // + // Can only be set if + // [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is + // [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH]. + repeated string oneway_synonyms_control_ids = 16; + + // Condition do not associate specifications. If multiple do not + // associate conditions match, all matching do not associate controls in + // the list will execute. + // Order does not matter. + // Maximum number of specifications is 100. + // + // Can only be set if + // [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is + // [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH]. + repeated string dissociate_control_ids = 17; + + // Condition replacement specifications. + // Applied according to the order in the list. + // A previously replaced term can not be re-replaced. + // Maximum number of specifications is 100. + // + // Can only be set if + // [SolutionType][google.cloud.discoveryengine.v1alpha.SolutionType] is + // [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1alpha.SolutionType.SOLUTION_TYPE_SEARCH]. + repeated string replacement_control_ids = 18; + + // Condition ignore specifications. If multiple ignore + // conditions match, all matching ignore controls in the list will + // execute. + // Order does not matter. + // Maximum number of specifications is 100. + repeated string ignore_control_ids = 19; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/serving_config_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/serving_config_service.proto new file mode 100644 index 000000000000..22fd94fd5311 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/serving_config_service.proto @@ -0,0 +1,147 @@ +// Copyright 2022 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1alpha; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1alpha/serving_config.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Alpha"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1alpha/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "ServingConfigServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1alpha"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1alpha"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1alpha"; + +// Service for operations related to [ServingConfig][]. +service ServingConfigService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Updates a ServingConfig. + // + // Returns a NOT_FOUND error if the ServingConfig does not exist. + rpc UpdateServingConfig(UpdateServingConfigRequest) returns (ServingConfig) { + option (google.api.http) = { + patch: "/v1alpha/{serving_config.name=projects/*/locations/*/dataStores/*/servingConfigs/*}" + body: "serving_config" + additional_bindings { + patch: "/v1alpha/{serving_config.name=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}" + body: "serving_config" + } + additional_bindings { + patch: "/v1alpha/{serving_config.name=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}" + body: "serving_config" + } + }; + option (google.api.method_signature) = "serving_config,update_mask"; + } + + // Gets a ServingConfig. + // + // Returns a NotFound error if the ServingConfig does not exist. + rpc GetServingConfig(GetServingConfigRequest) returns (ServingConfig) { + option (google.api.http) = { + get: "/v1alpha/{name=projects/*/locations/*/dataStores/*/servingConfigs/*}" + additional_bindings { + get: "/v1alpha/{name=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}" + } + additional_bindings { + get: "/v1alpha/{name=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Lists all ServingConfigs linked to this dataStore. + rpc ListServingConfigs(ListServingConfigsRequest) + returns (ListServingConfigsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=projects/*/locations/*/dataStores/*}/servingConfigs" + additional_bindings { + get: "/v1alpha/{parent=projects/*/locations/*/collections/*/dataStores/*}/servingConfigs" + } + additional_bindings { + get: "/v1alpha/{parent=projects/*/locations/*/collections/*/engines/*}/servingConfigs" + } + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request for UpdateServingConfig method. +message UpdateServingConfigRequest { + // Required. The ServingConfig to update. + ServingConfig serving_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Indicates which fields in the provided + // [ServingConfig][google.cloud.discoveryengine.v1alpha.ServingConfig] to + // update. The following are NOT supported: + // + // * [ServingConfig.name][google.cloud.discoveryengine.v1alpha.ServingConfig.name] + // + // If not set, all supported fields are updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request for GetServingConfig method. +message GetServingConfigRequest { + // Required. The resource name of the ServingConfig to get. Format: + // `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/ServingConfig" + } + ]; +} + +// Request for ListServingConfigs method. +message ListServingConfigsRequest { + // Required. Full resource name of the parent resource. Format: + // `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "discoveryengine.googleapis.com/ServingConfig" + } + ]; + + // Optional. Maximum number of results to return. If unspecified, defaults + // to 100. If a value greater than 100 is provided, at most 100 results are + // returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListServingConfigs` call. + // Provide this to retrieve the subsequent page. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for ListServingConfigs method. +message ListServingConfigsResponse { + // All the ServingConfigs for a given dataStore. + repeated ServingConfig serving_configs = 1; + + // Pagination token, if not returned indicates the last page. + string next_page_token = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/site_search_engine.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/site_search_engine.proto index 73e18d6ec0a0..cc51a271124f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/site_search_engine.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/site_search_engine.proto @@ -53,8 +53,14 @@ message TargetSite { // Site search indexing failure reasons. message FailureReason { - message QuotaFailure {} + // Failed due to insufficient quota. + message QuotaFailure { + // This number is an estimation on how much total quota this project needs + // to successfully complete indexing. + int64 total_required_quota = 1; + } + // Failure reason. oneof failure { // Failed due to insufficient quota. QuotaFailure quota_failure = 1; @@ -108,7 +114,7 @@ message TargetSite { (google.api.field_behavior) = INPUT_ONLY ]; - // The type of the target site, e.g. whether the site is to be included or + // The type of the target site, e.g., whether the site is to be included or // excluded. Type type = 3; @@ -152,7 +158,7 @@ message SiteVerificationInfo { // Site ownership pending verification or verification failed. UNVERIFIED = 2; - // Site exempt from verification, e.g. a public website that opens to all. + // Site exempt from verification, e.g., a public website that opens to all. EXEMPTED = 3; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto index 73c4d7c7497a..41076a6a155a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/site_search_engine_service.proto @@ -275,7 +275,9 @@ message CreateTargetSiteMetadata { google.protobuf.Timestamp update_time = 2; } -// Request message for [SiteSearchEngineService.s][] method. +// Request message for +// [SiteSearchEngineService.BatchCreateTargetSites][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.BatchCreateTargetSites] +// method. message BatchCreateTargetSitesRequest { // Required. The parent resource shared by all TargetSites being created. // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. @@ -430,8 +432,9 @@ message ListTargetSitesResponse { } // Metadata related to the progress of the -// [SiteSearchEngineService.BatchCreateTargetSite][] operation. This will be -// returned by the google.longrunning.Operation.metadata field. +// [SiteSearchEngineService.BatchCreateTargetSites][google.cloud.discoveryengine.v1alpha.SiteSearchEngineService.BatchCreateTargetSites] +// operation. This will be returned by the google.longrunning.Operation.metadata +// field. message BatchCreateTargetSiteMetadata { // Operation create time. google.protobuf.Timestamp create_time = 1; @@ -546,7 +549,7 @@ message RecrawlUrisResponse { // Details about why a particular URI failed to be crawled. Each FailureInfo // contains one FailureReason per CorpusType. message FailureInfo { - // Details about why crawling failed for a particular CorpusType, e.g. + // Details about why crawling failed for a particular CorpusType, e.g., // DESKTOP and MOBILE crawling may fail for different reasons. message FailureReason { // CorpusType for the failed crawling operation. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/user_event.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/user_event.proto index 7ba96f7e27d2..3c3622aa180f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/user_event.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/src/main/proto/google/cloud/discoveryengine/v1alpha/user_event.proto @@ -146,9 +146,10 @@ message UserEvent { // conforming to https://google.aip.dev/160#filtering. // // Similarly, for `view-item-list` events that are generated from a - // [RecommendationService.RecommendRequest][], this field may be populated - // directly from [RecommendationService.RecommendRequest.filter][] conforming - // to https://google.aip.dev/160#filtering. + // [RecommendRequest][google.cloud.discoveryengine.v1alpha.RecommendRequest], + // this field may be populated directly from + // [RecommendRequest.filter][google.cloud.discoveryengine.v1alpha.RecommendRequest.filter] + // conforming to https://google.aip.dev/160#filtering. // // The value must be a UTF-8 encoded string with a length limit of 1,000 // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java index 1aaf60146c05..a49ca3c58f91 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java @@ -83,7 +83,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\0328google/cloud/discoveryengine/v1beta/s" + "earch_service.proto\032\033google/protobuf/emp" + "ty.proto\032 google/protobuf/field_mask.pro" - + "to\"\337\004\n\033ConverseConversationRequest\022A\n\004na" + + "to\"\261\005\n\033ConverseConversationRequest\022A\n\004na" + "me\030\001 \001(\tB3\340A\002\372A-\n+discoveryengine.google" + "apis.com/Conversation\022B\n\005query\030\002 \001(\0132..g" + "oogle.cloud.discoveryengine.v1beta.TextI" @@ -97,109 +97,111 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "y\022f\n\014summary_spec\030\010 \001(\0132P.google.cloud.d" + "iscoveryengine.v1beta.SearchRequest.Cont" + "entSearchSpec.SummarySpec\022\016\n\006filter\030\t \001(" - + "\t\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"\227\002\n\034ConverseConversationRes" - + "ponse\0229\n\005reply\030\001 \001(\0132*.google.cloud.disc" - + "overyengine.v1beta.Reply\022G\n\014conversation" - + "\030\002 \001(\01321.google.cloud.discoveryengine.v1" - + "beta.Conversation\022\031\n\021related_questions\030\006" - + " \003(\t\022X\n\016search_results\030\003 \003(\0132@.google.cl" - + "oud.discoveryengine.v1beta.SearchRespons" - + "e.SearchResult\"\253\001\n\031CreateConversationReq" - + "uest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(discoverye" - + "ngine.googleapis.com/DataStore\022L\n\014conver" - + "sation\030\002 \001(\01321.google.cloud.discoveryeng" - + "ine.v1beta.ConversationB\003\340A\002\"\232\001\n\031UpdateC" - + "onversationRequest\022L\n\014conversation\030\001 \001(\013" - + "21.google.cloud.discoveryengine.v1beta.C" - + "onversationB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032." - + "google.protobuf.FieldMask\"^\n\031DeleteConve" - + "rsationRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+di" - + "scoveryengine.googleapis.com/Conversatio" - + "n\"[\n\026GetConversationRequest\022A\n\004name\030\001 \001(" - + "\tB3\340A\002\372A-\n+discoveryengine.googleapis.co" - + "m/Conversation\"\245\001\n\030ListConversationsRequ" - + "est\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(discoveryen" - + "gine.googleapis.com/DataStore\022\021\n\tpage_si" - + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004" - + " \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\031ListConversati" - + "onsResponse\022H\n\rconversations\030\001 \003(\01321.goo" - + "gle.cloud.discoveryengine.v1beta.Convers" - + "ation\022\027\n\017next_page_token\030\002 \001(\t2\321\024\n\033Conve" - + "rsationalSearchService\022\277\003\n\024ConverseConve" - + "rsation\022@.google.cloud.discoveryengine.v" - + "1beta.ConverseConversationRequest\032A.goog" - + "le.cloud.discoveryengine.v1beta.Converse" - + "ConversationResponse\"\241\002\332A\nname,query\202\323\344\223" - + "\002\215\002\"K/v1beta/{name=projects/*/locations/" - + "*/dataStores/*/conversations/*}:converse" - + ":\001*Z^\"Y/v1beta/{name=projects/*/location" + + "\t\022P\n\nboost_spec\030\n \001(\0132<.google.cloud.dis" + + "coveryengine.v1beta.SearchRequest.BoostS" + + "pec\0321\n\017UserLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"\227\002\n\034ConverseConversationR" + + "esponse\0229\n\005reply\030\001 \001(\0132*.google.cloud.di" + + "scoveryengine.v1beta.Reply\022G\n\014conversati" + + "on\030\002 \001(\01321.google.cloud.discoveryengine." + + "v1beta.Conversation\022\031\n\021related_questions" + + "\030\006 \003(\t\022X\n\016search_results\030\003 \003(\0132@.google." + + "cloud.discoveryengine.v1beta.SearchRespo" + + "nse.SearchResult\"\253\001\n\031CreateConversationR" + + "equest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(discover" + + "yengine.googleapis.com/DataStore\022L\n\014conv" + + "ersation\030\002 \001(\01321.google.cloud.discoverye" + + "ngine.v1beta.ConversationB\003\340A\002\"\232\001\n\031Updat" + + "eConversationRequest\022L\n\014conversation\030\001 \001" + + "(\01321.google.cloud.discoveryengine.v1beta" + + ".ConversationB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMask\"^\n\031DeleteCon" + + "versationRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+" + + "discoveryengine.googleapis.com/Conversat" + + "ion\"[\n\026GetConversationRequest\022A\n\004name\030\001 " + + "\001(\tB3\340A\002\372A-\n+discoveryengine.googleapis." + + "com/Conversation\"\245\001\n\030ListConversationsRe" + + "quest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(discovery" + + "engine.googleapis.com/DataStore\022\021\n\tpage_" + + "size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter" + + "\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"~\n\031ListConversa" + + "tionsResponse\022H\n\rconversations\030\001 \003(\01321.g" + + "oogle.cloud.discoveryengine.v1beta.Conve" + + "rsation\022\027\n\017next_page_token\030\002 \001(\t2\321\024\n\033Con" + + "versationalSearchService\022\277\003\n\024ConverseCon" + + "versation\022@.google.cloud.discoveryengine" + + ".v1beta.ConverseConversationRequest\032A.go" + + "ogle.cloud.discoveryengine.v1beta.Conver" + + "seConversationResponse\"\241\002\332A\nname,query\202\323" + + "\344\223\002\215\002\"K/v1beta/{name=projects/*/location" + + "s/*/dataStores/*/conversations/*}:conver" + + "se:\001*Z^\"Y/v1beta/{name=projects/*/locati" + + "ons/*/collections/*/dataStores/*/convers" + + "ations/*}:converse:\001*Z[\"V/v1beta/{name=p" + + "rojects/*/locations/*/collections/*/engi" + + "nes/*/conversations/*}:converse:\001*\022\272\003\n\022C" + + "reateConversation\022>.google.cloud.discove" + + "ryengine.v1beta.CreateConversationReques" + + "t\0321.google.cloud.discoveryengine.v1beta." + + "Conversation\"\260\002\332A\023parent,conversation\202\323\344" + + "\223\002\223\002\"B/v1beta/{parent=projects/*/locatio" + + "ns/*/dataStores/*}/conversations:\014conver" + + "sationZ`\"P/v1beta/{parent=projects/*/loc" + + "ations/*/collections/*/dataStores/*}/con" + + "versations:\014conversationZ]\"M/v1beta/{par" + + "ent=projects/*/locations/*/collections/*" + + "/engines/*}/conversations:\014conversation\022" + + "\346\002\n\022DeleteConversation\022>.google.cloud.di" + + "scoveryengine.v1beta.DeleteConversationR" + + "equest\032\026.google.protobuf.Empty\"\367\001\332A\004name" + + "\202\323\344\223\002\351\001*B/v1beta/{name=projects/*/locati" + + "ons/*/dataStores/*/conversations/*}ZR*P/" + + "v1beta/{name=projects/*/locations/*/coll" + + "ections/*/dataStores/*/conversations/*}Z" + + "O*M/v1beta/{name=projects/*/locations/*/" + + "collections/*/engines/*/conversations/*}" + + "\022\346\003\n\022UpdateConversation\022>.google.cloud.d" + + "iscoveryengine.v1beta.UpdateConversation" + + "Request\0321.google.cloud.discoveryengine.v" + + "1beta.Conversation\"\334\002\332A\030conversation,upd" + + "ate_mask\202\323\344\223\002\272\0022O/v1beta/{conversation.n" + + "ame=projects/*/locations/*/dataStores/*/" + + "conversations/*}:\014conversationZm2]/v1bet" + + "a/{conversation.name=projects/*/location" + "s/*/collections/*/dataStores/*/conversat" - + "ions/*}:converse:\001*Z[\"V/v1beta/{name=pro" - + "jects/*/locations/*/collections/*/engine" - + "s/*/conversations/*}:converse:\001*\022\272\003\n\022Cre" - + "ateConversation\022>.google.cloud.discovery" - + "engine.v1beta.CreateConversationRequest\032" - + "1.google.cloud.discoveryengine.v1beta.Co" - + "nversation\"\260\002\332A\023parent,conversation\202\323\344\223\002" - + "\223\002\"B/v1beta/{parent=projects/*/locations" - + "/*/dataStores/*}/conversations:\014conversa" - + "tionZ`\"P/v1beta/{parent=projects/*/locat" - + "ions/*/collections/*/dataStores/*}/conve" - + "rsations:\014conversationZ]\"M/v1beta/{paren" - + "t=projects/*/locations/*/collections/*/e" - + "ngines/*}/conversations:\014conversation\022\346\002" - + "\n\022DeleteConversation\022>.google.cloud.disc" - + "overyengine.v1beta.DeleteConversationReq" - + "uest\032\026.google.protobuf.Empty\"\367\001\332A\004name\202\323" - + "\344\223\002\351\001*B/v1beta/{name=projects/*/location" - + "s/*/dataStores/*/conversations/*}ZR*P/v1" - + "beta/{name=projects/*/locations/*/collec" - + "tions/*/dataStores/*/conversations/*}ZO*" - + "M/v1beta/{name=projects/*/locations/*/co" - + "llections/*/engines/*/conversations/*}\022\346" - + "\003\n\022UpdateConversation\022>.google.cloud.dis" - + "coveryengine.v1beta.UpdateConversationRe" - + "quest\0321.google.cloud.discoveryengine.v1b" - + "eta.Conversation\"\334\002\332A\030conversation,updat" - + "e_mask\202\323\344\223\002\272\0022O/v1beta/{conversation.nam" - + "e=projects/*/locations/*/dataStores/*/co" - + "nversations/*}:\014conversationZm2]/v1beta/" - + "{conversation.name=projects/*/locations/" - + "*/collections/*/dataStores/*/conversatio" - + "ns/*}:\014conversationZj2Z/v1beta/{conversa" - + "tion.name=projects/*/locations/*/collect" - + "ions/*/engines/*/conversations/*}:\014conve" - + "rsation\022\373\002\n\017GetConversation\022;.google.clo" - + "ud.discoveryengine.v1beta.GetConversatio" - + "nRequest\0321.google.cloud.discoveryengine." - + "v1beta.Conversation\"\367\001\332A\004name\202\323\344\223\002\351\001\022B/v" - + "1beta/{name=projects/*/locations/*/dataS" - + "tores/*/conversations/*}ZR\022P/v1beta/{nam" - + "e=projects/*/locations/*/collections/*/d" - + "ataStores/*/conversations/*}ZO\022M/v1beta/" - + "{name=projects/*/locations/*/collections" - + "/*/engines/*/conversations/*}\022\216\003\n\021ListCo" - + "nversations\022=.google.cloud.discoveryengi" - + "ne.v1beta.ListConversationsRequest\032>.goo" - + "gle.cloud.discoveryengine.v1beta.ListCon" - + "versationsResponse\"\371\001\332A\006parent\202\323\344\223\002\351\001\022B/" - + "v1beta/{parent=projects/*/locations/*/da" - + "taStores/*}/conversationsZR\022P/v1beta/{pa" - + "rent=projects/*/locations/*/collections/" - + "*/dataStores/*}/conversationsZO\022M/v1beta" - + "/{parent=projects/*/locations/*/collecti" - + "ons/*/engines/*}/conversations\032R\312A\036disco" - + "veryengine.googleapis.com\322A.https://www." - + "googleapis.com/auth/cloud-platformB\247\002\n\'c" - + "om.google.cloud.discoveryengine.v1betaB " - + "ConversationalSearchServiceProtoP\001ZQclou" - + "d.google.com/go/discoveryengine/apiv1bet" - + "a/discoveryenginepb;discoveryenginepb\242\002\017" - + "DISCOVERYENGINE\252\002#Google.Cloud.Discovery" - + "Engine.V1Beta\312\002#Google\\Cloud\\DiscoveryEn" - + "gine\\V1beta\352\002&Google::Cloud::DiscoveryEn" - + "gine::V1betab\006proto3" + + "ions/*}:\014conversationZj2Z/v1beta/{conver" + + "sation.name=projects/*/locations/*/colle" + + "ctions/*/engines/*/conversations/*}:\014con" + + "versation\022\373\002\n\017GetConversation\022;.google.c" + + "loud.discoveryengine.v1beta.GetConversat" + + "ionRequest\0321.google.cloud.discoveryengin" + + "e.v1beta.Conversation\"\367\001\332A\004name\202\323\344\223\002\351\001\022B" + + "/v1beta/{name=projects/*/locations/*/dat" + + "aStores/*/conversations/*}ZR\022P/v1beta/{n" + + "ame=projects/*/locations/*/collections/*" + + "/dataStores/*/conversations/*}ZO\022M/v1bet" + + "a/{name=projects/*/locations/*/collectio" + + "ns/*/engines/*/conversations/*}\022\216\003\n\021List" + + "Conversations\022=.google.cloud.discoveryen" + + "gine.v1beta.ListConversationsRequest\032>.g" + + "oogle.cloud.discoveryengine.v1beta.ListC" + + "onversationsResponse\"\371\001\332A\006parent\202\323\344\223\002\351\001\022" + + "B/v1beta/{parent=projects/*/locations/*/" + + "dataStores/*}/conversationsZR\022P/v1beta/{" + + "parent=projects/*/locations/*/collection" + + "s/*/dataStores/*}/conversationsZO\022M/v1be" + + "ta/{parent=projects/*/locations/*/collec" + + "tions/*/engines/*}/conversations\032R\312A\036dis" + + "coveryengine.googleapis.com\322A.https://ww" + + "w.googleapis.com/auth/cloud-platformB\247\002\n" + + "\'com.google.cloud.discoveryengine.v1beta" + + "B ConversationalSearchServiceProtoP\001ZQcl" + + "oud.google.com/go/discoveryengine/apiv1b" + + "eta/discoveryenginepb;discoveryenginepb\242" + + "\002\017DISCOVERYENGINE\252\002#Google.Cloud.Discove" + + "ryEngine.V1Beta\312\002#Google\\Cloud\\Discovery" + + "Engine\\V1beta\352\002&Google::Cloud::Discovery" + + "Engine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -228,6 +230,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserLabels", "SummarySpec", "Filter", + "BoostSpec", }); internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_UserLabelsEntry_descriptor = internal_static_google_cloud_discoveryengine_v1beta_ConverseConversationRequest_descriptor diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequest.java index 51ae2ffb7683..96d697b5e88c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequest.java @@ -639,6 +639,63 @@ public com.google.protobuf.ByteString getFilterBytes() { } } + public static final int BOOST_SPEC_FIELD_NUMBER = 10; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boostSpec_; + /** + * + * + *
                                +   * Boost specification to boost certain documents in search results which may
                                +   * affect the converse response. For more information on boosting, see
                                +   * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * + * @return Whether the boostSpec field is set. + */ + @java.lang.Override + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                +   * Boost specification to boost certain documents in search results which may
                                +   * affect the converse response. For more information on boosting, see
                                +   * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * + * @return The boostSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec() { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + /** + * + * + *
                                +   * Boost specification to boost certain documents in search results which may
                                +   * affect the converse response. For more information on boosting, see
                                +   * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -676,6 +733,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, filter_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getBoostSpec()); + } getUnknownFields().writeTo(output); } @@ -716,6 +776,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, filter_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getBoostSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -749,6 +812,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSummarySpec().equals(other.getSummarySpec())) return false; } if (!getFilter().equals(other.getFilter())) return false; + if (hasBoostSpec() != other.hasBoostSpec()) return false; + if (hasBoostSpec()) { + if (!getBoostSpec().equals(other.getBoostSpec())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -784,6 +851,10 @@ public int hashCode() { } hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); + if (hasBoostSpec()) { + hash = (37 * hash) + BOOST_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getBoostSpec().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -954,6 +1025,7 @@ private void maybeForceBuilderInitialization() { getQueryFieldBuilder(); getConversationFieldBuilder(); getSummarySpecFieldBuilder(); + getBoostSpecFieldBuilder(); } } @@ -981,6 +1053,11 @@ public Builder clear() { summarySpecBuilder_ = null; } filter_ = ""; + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } return this; } @@ -1051,6 +1128,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000080) != 0)) { result.filter_ = filter_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -1132,6 +1213,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; onChanged(); } + if (other.hasBoostSpec()) { + mergeBoostSpec(other.getBoostSpec()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1212,6 +1296,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 74 + case 82: + { + input.readMessage(getBoostSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2632,6 +2722,216 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boostSpec_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> + boostSpecBuilder_; + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * + * @return Whether the boostSpec field is set. + */ + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * + * @return The boostSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec() { + if (boostSpecBuilder_ == null) { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } else { + return boostSpecBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + */ + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boostSpec_ = value; + } else { + boostSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + */ + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder builderForValue) { + if (boostSpecBuilder_ == null) { + boostSpec_ = builderForValue.build(); + } else { + boostSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + */ + public Builder mergeBoostSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && boostSpec_ != null + && boostSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec + .getDefaultInstance()) { + getBoostSpecBuilder().mergeFrom(value); + } else { + boostSpec_ = value; + } + } else { + boostSpecBuilder_.mergeFrom(value); + } + if (boostSpec_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + */ + public Builder clearBoostSpec() { + bitField0_ = (bitField0_ & ~0x00000100); + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder + getBoostSpecBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getBoostSpecFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + if (boostSpecBuilder_ != null) { + return boostSpecBuilder_.getMessageOrBuilder(); + } else { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + } + /** + * + * + *
                                +     * Boost specification to boost certain documents in search results which may
                                +     * affect the converse response. For more information on boosting, see
                                +     * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> + getBoostSpecFieldBuilder() { + if (boostSpecBuilder_ == null) { + boostSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder>( + getBoostSpec(), getParentForChildren(), isClean()); + boostSpec_ = null; + } + return boostSpecBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequestOrBuilder.java index c40c378386d2..ef386d4f0e08 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConverseConversationRequestOrBuilder.java @@ -422,4 +422,45 @@ java.lang.String getUserLabelsOrDefault( * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
                                +   * Boost specification to boost certain documents in search results which may
                                +   * affect the converse response. For more information on boosting, see
                                +   * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * + * @return Whether the boostSpec field is set. + */ + boolean hasBoostSpec(); + /** + * + * + *
                                +   * Boost specification to boost certain documents in search results which may
                                +   * affect the converse response. For more information on boosting, see
                                +   * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * + * @return The boostSpec. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec(); + /** + * + * + *
                                +   * Boost specification to boost certain documents in search results which may
                                +   * affect the converse response. For more information on boosting, see
                                +   * [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStore.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStore.java index 4204d46c49ac..179212ac2dc6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStore.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStore.java @@ -692,6 +692,157 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } + public static final int DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER = 27; + private com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + documentProcessingConfig_; + /** + * + * + *
                                +   * Configuration for Document understanding and enrichment.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return Whether the documentProcessingConfig field is set. + */ + @java.lang.Override + public boolean hasDocumentProcessingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +   * Configuration for Document understanding and enrichment.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return The documentProcessingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + getDocumentProcessingConfig() { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } + /** + * + * + *
                                +   * Configuration for Document understanding and enrichment.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder + getDocumentProcessingConfigOrBuilder() { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } + + public static final int STARTING_SCHEMA_FIELD_NUMBER = 28; + private com.google.cloud.discoveryengine.v1beta.Schema startingSchema_; + /** + * + * + *
                                +   * The start schema to use for this
                                +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +   * provisioning it. If unset, a default vertical specialized schema will be
                                +   * used.
                                +   *
                                +   * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +   * used in other APIs. This field will be omitted from all API responses
                                +   * including [CreateDataStore][] API. To retrieve a schema of a
                                +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +   * API instead.
                                +   *
                                +   * The provided schema will be validated against certain rules on schema.
                                +   * Learn more from [this
                                +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * @return Whether the startingSchema field is set. + */ + @java.lang.Override + public boolean hasStartingSchema() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                                +   * The start schema to use for this
                                +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +   * provisioning it. If unset, a default vertical specialized schema will be
                                +   * used.
                                +   *
                                +   * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +   * used in other APIs. This field will be omitted from all API responses
                                +   * including [CreateDataStore][] API. To retrieve a schema of a
                                +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +   * API instead.
                                +   *
                                +   * The provided schema will be validated against certain rules on schema.
                                +   * Learn more from [this
                                +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * @return The startingSchema. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Schema getStartingSchema() { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() + : startingSchema_; + } + /** + * + * + *
                                +   * The start schema to use for this
                                +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +   * provisioning it. If unset, a default vertical specialized schema will be
                                +   * used.
                                +   *
                                +   * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +   * used in other APIs. This field will be omitted from all API responses
                                +   * including [CreateDataStore][] API. To retrieve a schema of a
                                +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +   * API instead.
                                +   *
                                +   * The provided schema will be validated against certain rules on schema.
                                +   * Learn more from [this
                                +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getStartingSchemaOrBuilder() { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() + : startingSchema_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -737,6 +888,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSchemaId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, defaultSchemaId_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(27, getDocumentProcessingConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(28, getStartingSchema()); + } getUnknownFields().writeTo(output); } @@ -782,6 +939,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSchemaId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, defaultSchemaId_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 27, getDocumentProcessingConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getStartingSchema()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -808,6 +973,14 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } + if (hasDocumentProcessingConfig() != other.hasDocumentProcessingConfig()) return false; + if (hasDocumentProcessingConfig()) { + if (!getDocumentProcessingConfig().equals(other.getDocumentProcessingConfig())) return false; + } + if (hasStartingSchema() != other.hasStartingSchema()) return false; + if (hasStartingSchema()) { + if (!getStartingSchema().equals(other.getStartingSchema())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -837,6 +1010,14 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } + if (hasDocumentProcessingConfig()) { + hash = (37 * hash) + DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDocumentProcessingConfig().hashCode(); + } + if (hasStartingSchema()) { + hash = (37 * hash) + STARTING_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getStartingSchema().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -978,6 +1159,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCreateTimeFieldBuilder(); + getDocumentProcessingConfigFieldBuilder(); + getStartingSchemaFieldBuilder(); } } @@ -997,6 +1180,16 @@ public Builder clear() { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } + documentProcessingConfig_ = null; + if (documentProcessingConfigBuilder_ != null) { + documentProcessingConfigBuilder_.dispose(); + documentProcessingConfigBuilder_ = null; + } + startingSchema_ = null; + if (startingSchemaBuilder_ != null) { + startingSchemaBuilder_.dispose(); + startingSchemaBuilder_ = null; + } return this; } @@ -1063,6 +1256,18 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.DataStore res result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.documentProcessingConfig_ = + documentProcessingConfigBuilder_ == null + ? documentProcessingConfig_ + : documentProcessingConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.startingSchema_ = + startingSchemaBuilder_ == null ? startingSchema_ : startingSchemaBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -1146,6 +1351,12 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.DataStore other if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } + if (other.hasDocumentProcessingConfig()) { + mergeDocumentProcessingConfig(other.getDocumentProcessingConfig()); + } + if (other.hasStartingSchema()) { + mergeStartingSchema(other.getStartingSchema()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1227,6 +1438,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 58 + case 218: + { + input.readMessage( + getDocumentProcessingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 218 + case 226: + { + input.readMessage(getStartingSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 226 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2325,6 +2549,531 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } + private com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + documentProcessingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder> + documentProcessingConfigBuilder_; + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return Whether the documentProcessingConfig field is set. + */ + public boolean hasDocumentProcessingConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return The documentProcessingConfig. + */ + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + getDocumentProcessingConfig() { + if (documentProcessingConfigBuilder_ == null) { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } else { + return documentProcessingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + */ + public Builder setDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig value) { + if (documentProcessingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + documentProcessingConfig_ = value; + } else { + documentProcessingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + */ + public Builder setDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder builderForValue) { + if (documentProcessingConfigBuilder_ == null) { + documentProcessingConfig_ = builderForValue.build(); + } else { + documentProcessingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + */ + public Builder mergeDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig value) { + if (documentProcessingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && documentProcessingConfig_ != null + && documentProcessingConfig_ + != com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .getDefaultInstance()) { + getDocumentProcessingConfigBuilder().mergeFrom(value); + } else { + documentProcessingConfig_ = value; + } + } else { + documentProcessingConfigBuilder_.mergeFrom(value); + } + if (documentProcessingConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + */ + public Builder clearDocumentProcessingConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + documentProcessingConfig_ = null; + if (documentProcessingConfigBuilder_ != null) { + documentProcessingConfigBuilder_.dispose(); + documentProcessingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + */ + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder + getDocumentProcessingConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getDocumentProcessingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + */ + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder + getDocumentProcessingConfigOrBuilder() { + if (documentProcessingConfigBuilder_ != null) { + return documentProcessingConfigBuilder_.getMessageOrBuilder(); + } else { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } + } + /** + * + * + *
                                +     * Configuration for Document understanding and enrichment.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder> + getDocumentProcessingConfigFieldBuilder() { + if (documentProcessingConfigBuilder_ == null) { + documentProcessingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder>( + getDocumentProcessingConfig(), getParentForChildren(), isClean()); + documentProcessingConfig_ = null; + } + return documentProcessingConfigBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.Schema startingSchema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Schema, + com.google.cloud.discoveryengine.v1beta.Schema.Builder, + com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> + startingSchemaBuilder_; + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * @return Whether the startingSchema field is set. + */ + public boolean hasStartingSchema() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * @return The startingSchema. + */ + public com.google.cloud.discoveryengine.v1beta.Schema getStartingSchema() { + if (startingSchemaBuilder_ == null) { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() + : startingSchema_; + } else { + return startingSchemaBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + */ + public Builder setStartingSchema(com.google.cloud.discoveryengine.v1beta.Schema value) { + if (startingSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startingSchema_ = value; + } else { + startingSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + */ + public Builder setStartingSchema( + com.google.cloud.discoveryengine.v1beta.Schema.Builder builderForValue) { + if (startingSchemaBuilder_ == null) { + startingSchema_ = builderForValue.build(); + } else { + startingSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + */ + public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1beta.Schema value) { + if (startingSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && startingSchema_ != null + && startingSchema_ + != com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance()) { + getStartingSchemaBuilder().mergeFrom(value); + } else { + startingSchema_ = value; + } + } else { + startingSchemaBuilder_.mergeFrom(value); + } + if (startingSchema_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + */ + public Builder clearStartingSchema() { + bitField0_ = (bitField0_ & ~0x00000100); + startingSchema_ = null; + if (startingSchemaBuilder_ != null) { + startingSchemaBuilder_.dispose(); + startingSchemaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + */ + public com.google.cloud.discoveryengine.v1beta.Schema.Builder getStartingSchemaBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getStartingSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + */ + public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getStartingSchemaOrBuilder() { + if (startingSchemaBuilder_ != null) { + return startingSchemaBuilder_.getMessageOrBuilder(); + } else { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() + : startingSchema_; + } + } + /** + * + * + *
                                +     * The start schema to use for this
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +     * provisioning it. If unset, a default vertical specialized schema will be
                                +     * used.
                                +     *
                                +     * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +     * used in other APIs. This field will be omitted from all API responses
                                +     * including [CreateDataStore][] API. To retrieve a schema of a
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +     * API instead.
                                +     *
                                +     * The provided schema will be validated against certain rules on schema.
                                +     * Learn more from [this
                                +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Schema, + com.google.cloud.discoveryengine.v1beta.Schema.Builder, + com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> + getStartingSchemaFieldBuilder() { + if (startingSchemaBuilder_ == null) { + startingSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.Schema, + com.google.cloud.discoveryengine.v1beta.Schema.Builder, + com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder>( + getStartingSchema(), getParentForChildren(), isClean()); + startingSchema_ = null; + } + return startingSchemaBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreOrBuilder.java index 6764c91c8043..a8d42bdd7ad0 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreOrBuilder.java @@ -309,4 +309,123 @@ public interface DataStoreOrBuilder *
                                */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                +   * Configuration for Document understanding and enrichment.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return Whether the documentProcessingConfig field is set. + */ + boolean hasDocumentProcessingConfig(); + /** + * + * + *
                                +   * Configuration for Document understanding and enrichment.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return The documentProcessingConfig. + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig getDocumentProcessingConfig(); + /** + * + * + *
                                +   * Configuration for Document understanding and enrichment.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder + getDocumentProcessingConfigOrBuilder(); + + /** + * + * + *
                                +   * The start schema to use for this
                                +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +   * provisioning it. If unset, a default vertical specialized schema will be
                                +   * used.
                                +   *
                                +   * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +   * used in other APIs. This field will be omitted from all API responses
                                +   * including [CreateDataStore][] API. To retrieve a schema of a
                                +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +   * API instead.
                                +   *
                                +   * The provided schema will be validated against certain rules on schema.
                                +   * Learn more from [this
                                +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * @return Whether the startingSchema field is set. + */ + boolean hasStartingSchema(); + /** + * + * + *
                                +   * The start schema to use for this
                                +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +   * provisioning it. If unset, a default vertical specialized schema will be
                                +   * used.
                                +   *
                                +   * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +   * used in other APIs. This field will be omitted from all API responses
                                +   * including [CreateDataStore][] API. To retrieve a schema of a
                                +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +   * API instead.
                                +   *
                                +   * The provided schema will be validated against certain rules on schema.
                                +   * Learn more from [this
                                +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * @return The startingSchema. + */ + com.google.cloud.discoveryengine.v1beta.Schema getStartingSchema(); + /** + * + * + *
                                +   * The start schema to use for this
                                +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
                                +   * provisioning it. If unset, a default vertical specialized schema will be
                                +   * used.
                                +   *
                                +   * This field is only used by [CreateDataStore][] API, and will be ignored if
                                +   * used in other APIs. This field will be omitted from all API responses
                                +   * including [CreateDataStore][] API. To retrieve a schema of a
                                +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
                                +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
                                +   * API instead.
                                +   *
                                +   * The provided schema will be validated against certain rules on schema.
                                +   * Learn more from [this
                                +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + */ + com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getStartingSchemaOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreProto.java index 1624f4ec43a9..c875b8b50397 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreProto.java @@ -46,7 +46,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gine.v1beta\032\037google/api/field_behavior.p" + "roto\032\031google/api/resource.proto\0320google/" + "cloud/discoveryengine/v1beta/common.prot" - + "o\032\037google/protobuf/timestamp.proto\"\303\005\n\tD" + + "o\032Dgoogle/cloud/discoveryengine/v1beta/d" + + "ocument_processing_config.proto\0320google/" + + "cloud/discoveryengine/v1beta/schema.prot" + + "o\032\037google/protobuf/timestamp.proto\"\354\006\n\tD" + "ataStore\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014display_n" + "ame\030\002 \001(\tB\003\340A\002\022U\n\021industry_vertical\030\003 \001(" + "\01625.google.cloud.discoveryengine.v1beta." @@ -56,22 +59,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\001(\tB\003\340A\003\022Y\n\016content_config\030\006 \001(\0162<.googl" + "e.cloud.discoveryengine.v1beta.DataStore" + ".ContentConfigB\003\340A\005\0224\n\013create_time\030\004 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\"i\n\rCon" - + "tentConfig\022\036\n\032CONTENT_CONFIG_UNSPECIFIED" - + "\020\000\022\016\n\nNO_CONTENT\020\001\022\024\n\020CONTENT_REQUIRED\020\002" - + "\022\022\n\016PUBLIC_WEBSITE\020\003:\311\001\352A\305\001\n(discoveryen" - + "gine.googleapis.com/DataStore\022?projects/" - + "{project}/locations/{location}/dataStore" - + "s/{data_store}\022Xprojects/{project}/locat" - + "ions/{location}/collections/{collection}" - + "/dataStores/{data_store}B\225\002\n\'com.google." - + "cloud.discoveryengine.v1betaB\016DataStoreP" - + "rotoP\001ZQcloud.google.com/go/discoveryeng" - + "ine/apiv1beta/discoveryenginepb;discover" - + "yenginepb\242\002\017DISCOVERYENGINE\252\002#Google.Clo" - + "ud.DiscoveryEngine.V1Beta\312\002#Google\\Cloud" - + "\\DiscoveryEngine\\V1beta\352\002&Google::Cloud:" - + ":DiscoveryEngine::V1betab\006proto3" + + "2\032.google.protobuf.TimestampB\003\340A\003\022a\n\032doc" + + "ument_processing_config\030\033 \001(\0132=.google.c" + + "loud.discoveryengine.v1beta.DocumentProc" + + "essingConfig\022D\n\017starting_schema\030\034 \001(\0132+." + + "google.cloud.discoveryengine.v1beta.Sche" + + "ma\"i\n\rContentConfig\022\036\n\032CONTENT_CONFIG_UN" + + "SPECIFIED\020\000\022\016\n\nNO_CONTENT\020\001\022\024\n\020CONTENT_R" + + "EQUIRED\020\002\022\022\n\016PUBLIC_WEBSITE\020\003:\311\001\352A\305\001\n(di" + + "scoveryengine.googleapis.com/DataStore\022?" + + "projects/{project}/locations/{location}/" + + "dataStores/{data_store}\022Xprojects/{proje" + + "ct}/locations/{location}/collections/{co" + + "llection}/dataStores/{data_store}B\225\002\n\'co" + + "m.google.cloud.discoveryengine.v1betaB\016D" + + "ataStoreProtoP\001ZQcloud.google.com/go/dis" + + "coveryengine/apiv1beta/discoveryenginepb" + + ";discoveryenginepb\242\002\017DISCOVERYENGINE\252\002#G" + + "oogle.Cloud.DiscoveryEngine.V1Beta\312\002#Goo" + + "gle\\Cloud\\DiscoveryEngine\\V1beta\352\002&Googl" + + "e::Cloud::DiscoveryEngine::V1betab\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -80,6 +88,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.SchemaProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1beta_DataStore_descriptor = @@ -95,6 +105,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DefaultSchemaId", "ContentConfig", "CreateTime", + "DocumentProcessingConfig", + "StartingSchema", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -105,6 +117,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.SchemaProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java index b80fcfa52fe5..99127efadb96 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java @@ -1902,6 +1902,67 @@ public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { : derivedStructData_; } + public static final int INDEX_TIME_FIELD_NUMBER = 13; + private com.google.protobuf.Timestamp indexTime_; + /** + * + * + *
                                +   * Output only. The last time the document was indexed. If this field is set,
                                +   * the document could be returned in search results.
                                +   *
                                +   * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +   * document has never been indexed.
                                +   * 
                                + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexTime field is set. + */ + @java.lang.Override + public boolean hasIndexTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                                +   * Output only. The last time the document was indexed. If this field is set,
                                +   * the document could be returned in search results.
                                +   *
                                +   * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +   * document has never been indexed.
                                +   * 
                                + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getIndexTime() { + return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; + } + /** + * + * + *
                                +   * Output only. The last time the document was indexed. If this field is set,
                                +   * the document could be returned in search results.
                                +   *
                                +   * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +   * document has never been indexed.
                                +   * 
                                + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { + return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1940,6 +2001,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(10, getContent()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(13, getIndexTime()); + } getUnknownFields().writeTo(output); } @@ -1975,6 +2039,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getContent()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getIndexTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2003,6 +2070,10 @@ public boolean equals(final java.lang.Object obj) { if (hasDerivedStructData()) { if (!getDerivedStructData().equals(other.getDerivedStructData())) return false; } + if (hasIndexTime() != other.hasIndexTime()) return false; + if (hasIndexTime()) { + if (!getIndexTime().equals(other.getIndexTime())) return false; + } if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 4: @@ -2041,6 +2112,10 @@ public int hashCode() { hash = (37 * hash) + DERIVED_STRUCT_DATA_FIELD_NUMBER; hash = (53 * hash) + getDerivedStructData().hashCode(); } + if (hasIndexTime()) { + hash = (37 * hash) + INDEX_TIME_FIELD_NUMBER; + hash = (53 * hash) + getIndexTime().hashCode(); + } switch (dataCase_) { case 4: hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; @@ -2196,6 +2271,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getContentFieldBuilder(); getDerivedStructDataFieldBuilder(); + getIndexTimeFieldBuilder(); } } @@ -2220,6 +2296,11 @@ public Builder clear() { derivedStructDataBuilder_.dispose(); derivedStructDataBuilder_ = null; } + indexTime_ = null; + if (indexTimeBuilder_ != null) { + indexTimeBuilder_.dispose(); + indexTimeBuilder_ = null; + } dataCase_ = 0; data_ = null; return this; @@ -2283,6 +2364,10 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Document resu : derivedStructDataBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.indexTime_ = indexTimeBuilder_ == null ? indexTime_ : indexTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -2366,6 +2451,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Document other) if (other.hasDerivedStructData()) { mergeDerivedStructData(other.getDerivedStructData()); } + if (other.hasIndexTime()) { + mergeIndexTime(other.getIndexTime()); + } switch (other.getDataCase()) { case STRUCT_DATA: { @@ -2460,6 +2548,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 82 + case 106: + { + input.readMessage(getIndexTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3762,6 +3856,241 @@ public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { return derivedStructDataBuilder_; } + private com.google.protobuf.Timestamp indexTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + indexTimeBuilder_; + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexTime field is set. + */ + public boolean hasIndexTime() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexTime. + */ + public com.google.protobuf.Timestamp getIndexTime() { + if (indexTimeBuilder_ == null) { + return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; + } else { + return indexTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIndexTime(com.google.protobuf.Timestamp value) { + if (indexTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + indexTime_ = value; + } else { + indexTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (indexTimeBuilder_ == null) { + indexTime_ = builderForValue.build(); + } else { + indexTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { + if (indexTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && indexTime_ != null + && indexTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getIndexTimeBuilder().mergeFrom(value); + } else { + indexTime_ = value; + } + } else { + indexTimeBuilder_.mergeFrom(value); + } + if (indexTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearIndexTime() { + bitField0_ = (bitField0_ & ~0x00000100); + indexTime_ = null; + if (indexTimeBuilder_ != null) { + indexTimeBuilder_.dispose(); + indexTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getIndexTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { + if (indexTimeBuilder_ != null) { + return indexTimeBuilder_.getMessageOrBuilder(); + } else { + return indexTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : indexTime_; + } + } + /** + * + * + *
                                +     * Output only. The last time the document was indexed. If this field is set,
                                +     * the document could be returned in search results.
                                +     *
                                +     * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +     * document has never been indexed.
                                +     * 
                                + * + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getIndexTimeFieldBuilder() { + if (indexTimeBuilder_ == null) { + indexTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getIndexTime(), getParentForChildren(), isClean()); + indexTime_ = null; + } + return indexTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java index b78564ab2eb0..4f735526902f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java @@ -317,5 +317,55 @@ public interface DocumentOrBuilder */ com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder(); + /** + * + * + *
                                +   * Output only. The last time the document was indexed. If this field is set,
                                +   * the document could be returned in search results.
                                +   *
                                +   * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +   * document has never been indexed.
                                +   * 
                                + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexTime field is set. + */ + boolean hasIndexTime(); + /** + * + * + *
                                +   * Output only. The last time the document was indexed. If this field is set,
                                +   * the document could be returned in search results.
                                +   *
                                +   * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +   * document has never been indexed.
                                +   * 
                                + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexTime. + */ + com.google.protobuf.Timestamp getIndexTime(); + /** + * + * + *
                                +   * Output only. The last time the document was indexed. If this field is set,
                                +   * the document could be returned in search results.
                                +   *
                                +   * This field is OUTPUT_ONLY. If this field is not populated, it means the
                                +   * document has never been indexed.
                                +   * 
                                + * + * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder(); + com.google.cloud.discoveryengine.v1beta.Document.DataCase getDataCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfig.java new file mode 100644 index 000000000000..1b3e601c1a28 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfig.java @@ -0,0 +1,4539 @@ +/* + * 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/discoveryengine/v1beta/document_processing_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
                                + * A singleton resource of
                                + * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]. It's empty when
                                + * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is created, which
                                + * defaults to digital parser. The first call to
                                + * [DataStoreService.UpdateDocumentProcessingConfig][] method will initialize
                                + * the config.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DocumentProcessingConfig} + */ +public final class DocumentProcessingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig) + DocumentProcessingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DocumentProcessingConfig.newBuilder() to construct. + private DocumentProcessingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DocumentProcessingConfig() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DocumentProcessingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetParsingConfigOverrides(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder.class); + } + + public interface ParsingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +     * Configurations applied to digital parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + * + * @return Whether the digitalParsingConfig field is set. + */ + boolean hasDigitalParsingConfig(); + /** + * + * + *
                                +     * Configurations applied to digital parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + * + * @return The digitalParsingConfig. + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDigitalParsingConfig(); + /** + * + * + *
                                +     * Configurations applied to digital parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder + getDigitalParsingConfigOrBuilder(); + + /** + * + * + *
                                +     * Configurations applied to OCR parser. Currently it only applies to
                                +     * PDFs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + * + * @return Whether the ocrParsingConfig field is set. + */ + boolean hasOcrParsingConfig(); + /** + * + * + *
                                +     * Configurations applied to OCR parser. Currently it only applies to
                                +     * PDFs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + * + * @return The ocrParsingConfig. + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig + getOcrParsingConfig(); + /** + * + * + *
                                +     * Configurations applied to OCR parser. Currently it only applies to
                                +     * PDFs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder + getOcrParsingConfigOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .TypeDedicatedConfigCase + getTypeDedicatedConfigCase(); + } + /** + * + * + *
                                +   * Related configurations applied to a specific type of document parser.
                                +   * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig} + */ + public static final class ParsingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) + ParsingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParsingConfig.newBuilder() to construct. + private ParsingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParsingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ParsingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.Builder + .class); + } + + public interface DigitalParsingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
                                +     * The digital parsing configurations for documents.
                                +     * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig} + */ + public static final class DigitalParsingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + DigitalParsingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use DigitalParsingConfig.newBuilder() to construct. + private DigitalParsingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DigitalParsingConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DigitalParsingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + other = + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                                +       * The digital parsing configurations for documents.
                                +       * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + build() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + result = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig(this); + onBuilt(); + return result; + } + + @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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance()) return this; + 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; + 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; + } + + @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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig) + private static final com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfig.DigitalParsingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DigitalParsingConfig 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OcrParsingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @return A list containing the enhancedDocumentElements. + */ + java.util.List getEnhancedDocumentElementsList(); + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @return The count of enhancedDocumentElements. + */ + int getEnhancedDocumentElementsCount(); + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param index The index of the element to return. + * @return The enhancedDocumentElements at the given index. + */ + java.lang.String getEnhancedDocumentElements(int index); + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param index The index of the value to return. + * @return The bytes of the enhancedDocumentElements at the given index. + */ + com.google.protobuf.ByteString getEnhancedDocumentElementsBytes(int index); + + /** + * + * + *
                                +       * If true, will use native text instead of OCR text on pages containing
                                +       * native text.
                                +       * 
                                + * + * bool use_native_text = 2; + * + * @return The useNativeText. + */ + boolean getUseNativeText(); + } + /** + * + * + *
                                +     * The OCR parsing configurations for documents.
                                +     * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig} + */ + public static final class OcrParsingConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + OcrParsingConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use OcrParsingConfig.newBuilder() to construct. + private OcrParsingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private OcrParsingConfig() { + enhancedDocumentElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OcrParsingConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder.class); + } + + public static final int ENHANCED_DOCUMENT_ELEMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList enhancedDocumentElements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @return A list containing the enhancedDocumentElements. + */ + public com.google.protobuf.ProtocolStringList getEnhancedDocumentElementsList() { + return enhancedDocumentElements_; + } + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @return The count of enhancedDocumentElements. + */ + public int getEnhancedDocumentElementsCount() { + return enhancedDocumentElements_.size(); + } + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param index The index of the element to return. + * @return The enhancedDocumentElements at the given index. + */ + public java.lang.String getEnhancedDocumentElements(int index) { + return enhancedDocumentElements_.get(index); + } + /** + * + * + *
                                +       * Apply additional enhanced OCR processing to a list of document
                                +       * elements.
                                +       *
                                +       * Supported values:
                                +       * * `table`: advanced table parsing model.
                                +       * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param index The index of the value to return. + * @return The bytes of the enhancedDocumentElements at the given index. + */ + public com.google.protobuf.ByteString getEnhancedDocumentElementsBytes(int index) { + return enhancedDocumentElements_.getByteString(index); + } + + public static final int USE_NATIVE_TEXT_FIELD_NUMBER = 2; + private boolean useNativeText_ = false; + /** + * + * + *
                                +       * If true, will use native text instead of OCR text on pages containing
                                +       * native text.
                                +       * 
                                + * + * bool use_native_text = 2; + * + * @return The useNativeText. + */ + @java.lang.Override + public boolean getUseNativeText() { + return useNativeText_; + } + + 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 < enhancedDocumentElements_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, enhancedDocumentElements_.getRaw(i)); + } + if (useNativeText_ != false) { + output.writeBool(2, useNativeText_); + } + 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 < enhancedDocumentElements_.size(); i++) { + dataSize += computeStringSizeNoTag(enhancedDocumentElements_.getRaw(i)); + } + size += dataSize; + size += 1 * getEnhancedDocumentElementsList().size(); + } + if (useNativeText_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, useNativeText_); + } + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + other = + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + obj; + + if (!getEnhancedDocumentElementsList().equals(other.getEnhancedDocumentElementsList())) + return false; + if (getUseNativeText() != other.getUseNativeText()) 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 (getEnhancedDocumentElementsCount() > 0) { + hash = (37 * hash) + ENHANCED_DOCUMENT_ELEMENTS_FIELD_NUMBER; + hash = (53 * hash) + getEnhancedDocumentElementsList().hashCode(); + } + hash = (37 * hash) + USE_NATIVE_TEXT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseNativeText()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                                +       * The OCR parsing configurations for documents.
                                +       * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enhancedDocumentElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + useNativeText_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + build() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + result = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + enhancedDocumentElements_.makeImmutable(); + result.enhancedDocumentElements_ = enhancedDocumentElements_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.useNativeText_ = useNativeText_; + } + } + + @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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance()) return this; + if (!other.enhancedDocumentElements_.isEmpty()) { + if (enhancedDocumentElements_.isEmpty()) { + enhancedDocumentElements_ = other.enhancedDocumentElements_; + bitField0_ |= 0x00000001; + } else { + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.addAll(other.enhancedDocumentElements_); + } + onChanged(); + } + if (other.getUseNativeText() != false) { + setUseNativeText(other.getUseNativeText()); + } + 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(); + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.add(s); + break; + } // case 10 + case 16: + { + useNativeText_ = input.readBool(); + 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 com.google.protobuf.LazyStringArrayList enhancedDocumentElements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureEnhancedDocumentElementsIsMutable() { + if (!enhancedDocumentElements_.isModifiable()) { + enhancedDocumentElements_ = + new com.google.protobuf.LazyStringArrayList(enhancedDocumentElements_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @return A list containing the enhancedDocumentElements. + */ + public com.google.protobuf.ProtocolStringList getEnhancedDocumentElementsList() { + enhancedDocumentElements_.makeImmutable(); + return enhancedDocumentElements_; + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @return The count of enhancedDocumentElements. + */ + public int getEnhancedDocumentElementsCount() { + return enhancedDocumentElements_.size(); + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param index The index of the element to return. + * @return The enhancedDocumentElements at the given index. + */ + public java.lang.String getEnhancedDocumentElements(int index) { + return enhancedDocumentElements_.get(index); + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param index The index of the value to return. + * @return The bytes of the enhancedDocumentElements at the given index. + */ + public com.google.protobuf.ByteString getEnhancedDocumentElementsBytes(int index) { + return enhancedDocumentElements_.getByteString(index); + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param index The index to set the value at. + * @param value The enhancedDocumentElements to set. + * @return This builder for chaining. + */ + public Builder setEnhancedDocumentElements(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param value The enhancedDocumentElements to add. + * @return This builder for chaining. + */ + public Builder addEnhancedDocumentElements(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param values The enhancedDocumentElements to add. + * @return This builder for chaining. + */ + public Builder addAllEnhancedDocumentElements(java.lang.Iterable values) { + ensureEnhancedDocumentElementsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, enhancedDocumentElements_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnhancedDocumentElements() { + enhancedDocumentElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
                                +         * Apply additional enhanced OCR processing to a list of document
                                +         * elements.
                                +         *
                                +         * Supported values:
                                +         * * `table`: advanced table parsing model.
                                +         * 
                                + * + * repeated string enhanced_document_elements = 1; + * + * @param value The bytes of the enhancedDocumentElements to add. + * @return This builder for chaining. + */ + public Builder addEnhancedDocumentElementsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEnhancedDocumentElementsIsMutable(); + enhancedDocumentElements_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean useNativeText_; + /** + * + * + *
                                +         * If true, will use native text instead of OCR text on pages containing
                                +         * native text.
                                +         * 
                                + * + * bool use_native_text = 2; + * + * @return The useNativeText. + */ + @java.lang.Override + public boolean getUseNativeText() { + return useNativeText_; + } + /** + * + * + *
                                +         * If true, will use native text instead of OCR text on pages containing
                                +         * native text.
                                +         * 
                                + * + * bool use_native_text = 2; + * + * @param value The useNativeText to set. + * @return This builder for chaining. + */ + public Builder setUseNativeText(boolean value) { + + useNativeText_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +         * If true, will use native text instead of OCR text on pages containing
                                +         * native text.
                                +         * 
                                + * + * bool use_native_text = 2; + * + * @return This builder for chaining. + */ + public Builder clearUseNativeText() { + bitField0_ = (bitField0_ & ~0x00000002); + useNativeText_ = 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig) + private static final com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfig.OcrParsingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OcrParsingConfig 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int typeDedicatedConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object typeDedicatedConfig_; + + public enum TypeDedicatedConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DIGITAL_PARSING_CONFIG(1), + OCR_PARSING_CONFIG(2), + TYPEDEDICATEDCONFIG_NOT_SET(0); + private final int value; + + private TypeDedicatedConfigCase(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 TypeDedicatedConfigCase valueOf(int value) { + return forNumber(value); + } + + public static TypeDedicatedConfigCase forNumber(int value) { + switch (value) { + case 1: + return DIGITAL_PARSING_CONFIG; + case 2: + return OCR_PARSING_CONFIG; + case 0: + return TYPEDEDICATEDCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { + return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); + } + + public static final int DIGITAL_PARSING_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
                                +     * Configurations applied to digital parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + * + * @return Whether the digitalParsingConfig field is set. + */ + @java.lang.Override + public boolean hasDigitalParsingConfig() { + return typeDedicatedConfigCase_ == 1; + } + /** + * + * + *
                                +     * Configurations applied to digital parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + * + * @return The digitalParsingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDigitalParsingConfig() { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } + /** + * + * + *
                                +     * Configurations applied to digital parser.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder + getDigitalParsingConfigOrBuilder() { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } + + public static final int OCR_PARSING_CONFIG_FIELD_NUMBER = 2; + /** + * + * + *
                                +     * Configurations applied to OCR parser. Currently it only applies to
                                +     * PDFs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + * + * @return Whether the ocrParsingConfig field is set. + */ + @java.lang.Override + public boolean hasOcrParsingConfig() { + return typeDedicatedConfigCase_ == 2; + } + /** + * + * + *
                                +     * Configurations applied to OCR parser. Currently it only applies to
                                +     * PDFs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + * + * @return The ocrParsingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + getOcrParsingConfig() { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + /** + * + * + *
                                +     * Configurations applied to OCR parser. Currently it only applies to
                                +     * PDFs.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder + getOcrParsingConfigOrBuilder() { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.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 (typeDedicatedConfigCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + typeDedicatedConfig_); + } + if (typeDedicatedConfigCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeDedicatedConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + typeDedicatedConfig_); + } + if (typeDedicatedConfigCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_); + } + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig other = + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) obj; + + if (!getTypeDedicatedConfigCase().equals(other.getTypeDedicatedConfigCase())) return false; + switch (typeDedicatedConfigCase_) { + case 1: + if (!getDigitalParsingConfig().equals(other.getDigitalParsingConfig())) return false; + break; + case 2: + if (!getOcrParsingConfig().equals(other.getOcrParsingConfig())) 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 (typeDedicatedConfigCase_) { + case 1: + hash = (37 * hash) + DIGITAL_PARSING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDigitalParsingConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + OCR_PARSING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOcrParsingConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig 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; + } + /** + * + * + *
                                +     * Related configurations applied to a specific type of document parser.
                                +     * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (digitalParsingConfigBuilder_ != null) { + digitalParsingConfigBuilder_.clear(); + } + if (ocrParsingConfigBuilder_ != null) { + ocrParsingConfigBuilder_.clear(); + } + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + build() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig result = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig result) { + result.typeDedicatedConfigCase_ = typeDedicatedConfigCase_; + result.typeDedicatedConfig_ = this.typeDedicatedConfig_; + if (typeDedicatedConfigCase_ == 1 && digitalParsingConfigBuilder_ != null) { + result.typeDedicatedConfig_ = digitalParsingConfigBuilder_.build(); + } + if (typeDedicatedConfigCase_ == 2 && ocrParsingConfigBuilder_ != null) { + result.typeDedicatedConfig_ = ocrParsingConfigBuilder_.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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .getDefaultInstance()) return this; + switch (other.getTypeDedicatedConfigCase()) { + case DIGITAL_PARSING_CONFIG: + { + mergeDigitalParsingConfig(other.getDigitalParsingConfig()); + break; + } + case OCR_PARSING_CONFIG: + { + mergeOcrParsingConfig(other.getOcrParsingConfig()); + break; + } + case TYPEDEDICATEDCONFIG_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( + getDigitalParsingConfigFieldBuilder().getBuilder(), extensionRegistry); + typeDedicatedConfigCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + getOcrParsingConfigFieldBuilder().getBuilder(), extensionRegistry); + typeDedicatedConfigCase_ = 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 typeDedicatedConfigCase_ = 0; + private java.lang.Object typeDedicatedConfig_; + + public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { + return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); + } + + public Builder clearTypeDedicatedConfig() { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder> + digitalParsingConfigBuilder_; + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + * + * @return Whether the digitalParsingConfig field is set. + */ + @java.lang.Override + public boolean hasDigitalParsingConfig() { + return typeDedicatedConfigCase_ == 1; + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + * + * @return The digitalParsingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + getDigitalParsingConfig() { + if (digitalParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } else { + if (typeDedicatedConfigCase_ == 1) { + return digitalParsingConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + public Builder setDigitalParsingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + value) { + if (digitalParsingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeDedicatedConfig_ = value; + onChanged(); + } else { + digitalParsingConfigBuilder_.setMessage(value); + } + typeDedicatedConfigCase_ = 1; + return this; + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + public Builder setDigitalParsingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder + builderForValue) { + if (digitalParsingConfigBuilder_ == null) { + typeDedicatedConfig_ = builderForValue.build(); + onChanged(); + } else { + digitalParsingConfigBuilder_.setMessage(builderForValue.build()); + } + typeDedicatedConfigCase_ = 1; + return this; + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + public Builder mergeDigitalParsingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig + value) { + if (digitalParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1 + && typeDedicatedConfig_ + != com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance()) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.newBuilder( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfig.DigitalParsingConfig) + typeDedicatedConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + typeDedicatedConfig_ = value; + } + onChanged(); + } else { + if (typeDedicatedConfigCase_ == 1) { + digitalParsingConfigBuilder_.mergeFrom(value); + } else { + digitalParsingConfigBuilder_.setMessage(value); + } + } + typeDedicatedConfigCase_ = 1; + return this; + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + public Builder clearDigitalParsingConfig() { + if (digitalParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + } + } else { + if (typeDedicatedConfigCase_ == 1) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + } + digitalParsingConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder + getDigitalParsingConfigBuilder() { + return getDigitalParsingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder + getDigitalParsingConfigOrBuilder() { + if ((typeDedicatedConfigCase_ == 1) && (digitalParsingConfigBuilder_ != null)) { + return digitalParsingConfigBuilder_.getMessageOrBuilder(); + } else { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * Configurations applied to digital parser.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder> + getDigitalParsingConfigFieldBuilder() { + if (digitalParsingConfigBuilder_ == null) { + if (!(typeDedicatedConfigCase_ == 1)) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.getDefaultInstance(); + } + digitalParsingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .DigitalParsingConfig) + typeDedicatedConfig_, + getParentForChildren(), + isClean()); + typeDedicatedConfig_ = null; + } + typeDedicatedConfigCase_ = 1; + onChanged(); + return digitalParsingConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder> + ocrParsingConfigBuilder_; + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + * + * @return Whether the ocrParsingConfig field is set. + */ + @java.lang.Override + public boolean hasOcrParsingConfig() { + return typeDedicatedConfigCase_ == 2; + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + * + * @return The ocrParsingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + getOcrParsingConfig() { + if (ocrParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } else { + if (typeDedicatedConfigCase_ == 2) { + return ocrParsingConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + public Builder setOcrParsingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + value) { + if (ocrParsingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeDedicatedConfig_ = value; + onChanged(); + } else { + ocrParsingConfigBuilder_.setMessage(value); + } + typeDedicatedConfigCase_ = 2; + return this; + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + public Builder setOcrParsingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder + builderForValue) { + if (ocrParsingConfigBuilder_ == null) { + typeDedicatedConfig_ = builderForValue.build(); + onChanged(); + } else { + ocrParsingConfigBuilder_.setMessage(builderForValue.build()); + } + typeDedicatedConfigCase_ = 2; + return this; + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + public Builder mergeOcrParsingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig + value) { + if (ocrParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 2 + && typeDedicatedConfig_ + != com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance()) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.newBuilder( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfig.OcrParsingConfig) + typeDedicatedConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + typeDedicatedConfig_ = value; + } + onChanged(); + } else { + if (typeDedicatedConfigCase_ == 2) { + ocrParsingConfigBuilder_.mergeFrom(value); + } else { + ocrParsingConfigBuilder_.setMessage(value); + } + } + typeDedicatedConfigCase_ = 2; + return this; + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + public Builder clearOcrParsingConfig() { + if (ocrParsingConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 2) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + } + } else { + if (typeDedicatedConfigCase_ == 2) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + } + ocrParsingConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder + getOcrParsingConfigBuilder() { + return getOcrParsingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder + getOcrParsingConfigOrBuilder() { + if ((typeDedicatedConfigCase_ == 2) && (ocrParsingConfigBuilder_ != null)) { + return ocrParsingConfigBuilder_.getMessageOrBuilder(); + } else { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + } + /** + * + * + *
                                +       * Configurations applied to OCR parser. Currently it only applies to
                                +       * PDFs.
                                +       * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder> + getOcrParsingConfigFieldBuilder() { + if (ocrParsingConfigBuilder_ == null) { + if (!(typeDedicatedConfigCase_ == 2)) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.getDefaultInstance(); + } + ocrParsingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .OcrParsingConfig) + typeDedicatedConfig_, + getParentForChildren(), + isClean()); + typeDedicatedConfig_ = null; + } + typeDedicatedConfigCase_ = 2; + onChanged(); + return ocrParsingConfigBuilder_; + } + + @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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) + private static final com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParsingConfig 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.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                +   * The full resource name of the Document Processing Config.
                                +   * Format:
                                +   * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +   * 
                                + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                +   * The full resource name of the Document Processing Config.
                                +   * Format:
                                +   * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +   * 
                                + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_PARSING_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + defaultParsingConfig_; + /** + * + * + *
                                +   * Configurations for default Document parser.
                                +   * If not specified, we will configure it as default DigitalParsingConfig, and
                                +   * the default parsing config will be applied to all file types for Document
                                +   * parsing.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + * + * @return Whether the defaultParsingConfig field is set. + */ + @java.lang.Override + public boolean hasDefaultParsingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * Configurations for default Document parser.
                                +   * If not specified, we will configure it as default DigitalParsingConfig, and
                                +   * the default parsing config will be applied to all file types for Document
                                +   * parsing.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + * + * @return The defaultParsingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + getDefaultParsingConfig() { + return defaultParsingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .getDefaultInstance() + : defaultParsingConfig_; + } + /** + * + * + *
                                +   * Configurations for default Document parser.
                                +   * If not specified, we will configure it as default DigitalParsingConfig, and
                                +   * the default parsing config will be applied to all file types for Document
                                +   * parsing.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfigOrBuilder + getDefaultParsingConfigOrBuilder() { + return defaultParsingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .getDefaultInstance() + : defaultParsingConfig_; + } + + public static final int PARSING_CONFIG_OVERRIDES_FIELD_NUMBER = 5; + + private static final class ParsingConfigOverridesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfigOverridesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfig.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + parsingConfigOverrides_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + internalGetParsingConfigOverrides() { + if (parsingConfigOverrides_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ParsingConfigOverridesDefaultEntryHolder.defaultEntry); + } + return parsingConfigOverrides_; + } + + public int getParsingConfigOverridesCount() { + return internalGetParsingConfigOverrides().getMap().size(); + } + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public boolean containsParsingConfigOverrides(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetParsingConfigOverrides().getMap().containsKey(key); + } + /** Use {@link #getParsingConfigOverridesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + getParsingConfigOverrides() { + return getParsingConfigOverridesMap(); + } + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + getParsingConfigOverridesMap() { + return internalGetParsingConfigOverrides().getMap(); + } + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfig + getParsingConfigOverridesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + map = internalGetParsingConfigOverrides().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + getParsingConfigOverridesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + map = internalGetParsingConfigOverrides().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getDefaultParsingConfig()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, + internalGetParsingConfigOverrides(), + ParsingConfigOverridesDefaultEntryHolder.defaultEntry, + 5); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDefaultParsingConfig()); + } + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + entry : internalGetParsingConfigOverrides().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + parsingConfigOverrides__ = + ParsingConfigOverridesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, parsingConfigOverrides__); + } + 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.discoveryengine.v1beta.DocumentProcessingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig other = + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (hasDefaultParsingConfig() != other.hasDefaultParsingConfig()) return false; + if (hasDefaultParsingConfig()) { + if (!getDefaultParsingConfig().equals(other.getDefaultParsingConfig())) return false; + } + if (!internalGetParsingConfigOverrides().equals(other.internalGetParsingConfigOverrides())) + 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasDefaultParsingConfig()) { + hash = (37 * hash) + DEFAULT_PARSING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDefaultParsingConfig().hashCode(); + } + if (!internalGetParsingConfigOverrides().getMap().isEmpty()) { + hash = (37 * hash) + PARSING_CONFIG_OVERRIDES_FIELD_NUMBER; + hash = (53 * hash) + internalGetParsingConfigOverrides().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig 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.discoveryengine.v1beta.DocumentProcessingConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig 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.discoveryengine.v1beta.DocumentProcessingConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig 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.discoveryengine.v1beta.DocumentProcessingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig 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.discoveryengine.v1beta.DocumentProcessingConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig 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.discoveryengine.v1beta.DocumentProcessingConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                                +   * A singleton resource of
                                +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]. It's empty when
                                +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is created, which
                                +   * defaults to digital parser. The first call to
                                +   * [DataStoreService.UpdateDocumentProcessingConfig][] method will initialize
                                +   * the config.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DocumentProcessingConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig) + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetParsingConfigOverrides(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableParsingConfigOverrides(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDefaultParsingConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + defaultParsingConfig_ = null; + if (defaultParsingConfigBuilder_ != null) { + defaultParsingConfigBuilder_.dispose(); + defaultParsingConfigBuilder_ = null; + } + internalGetMutableParsingConfigOverrides().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig build() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig result = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultParsingConfig_ = + defaultParsingConfigBuilder_ == null + ? defaultParsingConfig_ + : defaultParsingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parsingConfigOverrides_ = + internalGetParsingConfigOverrides() + .build(ParsingConfigOverridesDefaultEntryHolder.defaultEntry); + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1beta.DocumentProcessingConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDefaultParsingConfig()) { + mergeDefaultParsingConfig(other.getDefaultParsingConfig()); + } + internalGetMutableParsingConfigOverrides() + .mergeFrom(other.internalGetParsingConfigOverrides()); + bitField0_ |= 0x00000004; + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: + { + input.readMessage( + getDefaultParsingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfig> + parsingConfigOverrides__ = + input.readMessage( + ParsingConfigOverridesDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableParsingConfigOverrides() + .ensureBuilderMap() + .put(parsingConfigOverrides__.getKey(), parsingConfigOverrides__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 42 + 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 name_ = ""; + /** + * + * + *
                                +     * The full resource name of the Document Processing Config.
                                +     * Format:
                                +     * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +     * 
                                + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * The full resource name of the Document Processing Config.
                                +     * Format:
                                +     * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +     * 
                                + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * The full resource name of the Document Processing Config.
                                +     * Format:
                                +     * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +     * 
                                + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * The full resource name of the Document Processing Config.
                                +     * Format:
                                +     * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +     * 
                                + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +     * The full resource name of the Document Processing Config.
                                +     * Format:
                                +     * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +     * 
                                + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + defaultParsingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfigOrBuilder> + defaultParsingConfigBuilder_; + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + * + * @return Whether the defaultParsingConfig field is set. + */ + public boolean hasDefaultParsingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + * + * @return The defaultParsingConfig. + */ + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + getDefaultParsingConfig() { + if (defaultParsingConfigBuilder_ == null) { + return defaultParsingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .getDefaultInstance() + : defaultParsingConfig_; + } else { + return defaultParsingConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + public Builder setDefaultParsingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig value) { + if (defaultParsingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultParsingConfig_ = value; + } else { + defaultParsingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + public Builder setDefaultParsingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.Builder + builderForValue) { + if (defaultParsingConfigBuilder_ == null) { + defaultParsingConfig_ = builderForValue.build(); + } else { + defaultParsingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + public Builder mergeDefaultParsingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig value) { + if (defaultParsingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && defaultParsingConfig_ != null + && defaultParsingConfig_ + != com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .getDefaultInstance()) { + getDefaultParsingConfigBuilder().mergeFrom(value); + } else { + defaultParsingConfig_ = value; + } + } else { + defaultParsingConfigBuilder_.mergeFrom(value); + } + if (defaultParsingConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + public Builder clearDefaultParsingConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + defaultParsingConfig_ = null; + if (defaultParsingConfigBuilder_ != null) { + defaultParsingConfigBuilder_.dispose(); + defaultParsingConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.Builder + getDefaultParsingConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDefaultParsingConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfigOrBuilder + getDefaultParsingConfigOrBuilder() { + if (defaultParsingConfigBuilder_ != null) { + return defaultParsingConfigBuilder_.getMessageOrBuilder(); + } else { + return defaultParsingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .getDefaultInstance() + : defaultParsingConfig_; + } + } + /** + * + * + *
                                +     * Configurations for default Document parser.
                                +     * If not specified, we will configure it as default DigitalParsingConfig, and
                                +     * the default parsing config will be applied to all file types for Document
                                +     * parsing.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfigOrBuilder> + getDefaultParsingConfigFieldBuilder() { + if (defaultParsingConfigBuilder_ == null) { + defaultParsingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfigOrBuilder>( + getDefaultParsingConfig(), getParentForChildren(), isClean()); + defaultParsingConfig_ = null; + } + return defaultParsingConfigBuilder_; + } + + private static final class ParsingConfigOverridesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfigOrBuilder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> { + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig build( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfigOrBuilder + val) { + if (val + instanceof + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) { + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) + val; + } + return ((com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .Builder) + val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + defaultEntry() { + return ParsingConfigOverridesDefaultEntryHolder.defaultEntry; + } + }; + + private static final ParsingConfigOverridesConverter parsingConfigOverridesConverter = + new ParsingConfigOverridesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfigOrBuilder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.Builder> + parsingConfigOverrides_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfigOrBuilder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.Builder> + internalGetParsingConfigOverrides() { + if (parsingConfigOverrides_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(parsingConfigOverridesConverter); + } + return parsingConfigOverrides_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfigOrBuilder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.Builder> + internalGetMutableParsingConfigOverrides() { + if (parsingConfigOverrides_ == null) { + parsingConfigOverrides_ = + new com.google.protobuf.MapFieldBuilder<>(parsingConfigOverridesConverter); + } + bitField0_ |= 0x00000004; + onChanged(); + return parsingConfigOverrides_; + } + + public int getParsingConfigOverridesCount() { + return internalGetParsingConfigOverrides().ensureBuilderMap().size(); + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public boolean containsParsingConfigOverrides(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetParsingConfigOverrides().ensureBuilderMap().containsKey(key); + } + /** Use {@link #getParsingConfigOverridesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + getParsingConfigOverrides() { + return getParsingConfigOverridesMap(); + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + getParsingConfigOverridesMap() { + return internalGetParsingConfigOverrides().getImmutableMap(); + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfig + getParsingConfigOverridesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfigOrBuilder> + map = internalGetMutableParsingConfigOverrides().ensureBuilderMap(); + return map.containsKey(key) + ? parsingConfigOverridesConverter.build(map.get(key)) + : defaultValue; + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + getParsingConfigOverridesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfigOrBuilder> + map = internalGetMutableParsingConfigOverrides().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return parsingConfigOverridesConverter.build(map.get(key)); + } + + public Builder clearParsingConfigOverrides() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableParsingConfigOverrides().clear(); + return this; + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + public Builder removeParsingConfigOverrides(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableParsingConfigOverrides().ensureBuilderMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + getMutableParsingConfigOverrides() { + bitField0_ |= 0x00000004; + return internalGetMutableParsingConfigOverrides().ensureMessageMap(); + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + public Builder putParsingConfigOverrides( + java.lang.String key, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableParsingConfigOverrides().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + public Builder putAllParsingConfigOverrides( + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + values) { + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableParsingConfigOverrides().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + /** + * + * + *
                                +     * Map from file type to override the default parsing configuration based on
                                +     * the file type. Supported keys:
                                +     * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +     * parsing or layout parsing is supported.
                                +     * * `html`: Override parsing config for HTML files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +     * or layout parsing are supported.
                                +     * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.Builder + putParsingConfigOverridesBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .ParsingConfigOrBuilder> + builderMap = internalGetMutableParsingConfigOverrides().ensureBuilderMap(); + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfigOrBuilder + entry = builderMap.get(key); + if (entry == null) { + entry = + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .newBuilder(); + builderMap.put(key, entry); + } + if (entry + instanceof + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) { + entry = + ((com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig) entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .Builder) + entry; + } + + @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.discoveryengine.v1beta.DocumentProcessingConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig) + private static final com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentProcessingConfig 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.discoveryengine.v1beta.DocumentProcessingConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigOrBuilder.java new file mode 100644 index 000000000000..860b7173ebb7 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigOrBuilder.java @@ -0,0 +1,219 @@ +/* + * 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/discoveryengine/v1beta/document_processing_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1beta; + +public interface DocumentProcessingConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * The full resource name of the Document Processing Config.
                                +   * Format:
                                +   * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +   * 
                                + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                +   * The full resource name of the Document Processing Config.
                                +   * Format:
                                +   * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
                                +   * 
                                + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                +   * Configurations for default Document parser.
                                +   * If not specified, we will configure it as default DigitalParsingConfig, and
                                +   * the default parsing config will be applied to all file types for Document
                                +   * parsing.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + * + * @return Whether the defaultParsingConfig field is set. + */ + boolean hasDefaultParsingConfig(); + /** + * + * + *
                                +   * Configurations for default Document parser.
                                +   * If not specified, we will configure it as default DigitalParsingConfig, and
                                +   * the default parsing config will be applied to all file types for Document
                                +   * parsing.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + * + * @return The defaultParsingConfig. + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + getDefaultParsingConfig(); + /** + * + * + *
                                +   * Configurations for default Document parser.
                                +   * If not specified, we will configure it as default DigitalParsingConfig, and
                                +   * the default parsing config will be applied to all file types for Document
                                +   * parsing.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; + * + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfigOrBuilder + getDefaultParsingConfigOrBuilder(); + + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + int getParsingConfigOverridesCount(); + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + boolean containsParsingConfigOverrides(java.lang.String key); + /** Use {@link #getParsingConfigOverridesMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + getParsingConfigOverrides(); + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> + getParsingConfigOverridesMap(); + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + /* nullable */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + getParsingConfigOverridesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + defaultValue); + /** + * + * + *
                                +   * Map from file type to override the default parsing configuration based on
                                +   * the file type. Supported keys:
                                +   * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr
                                +   * parsing or layout parsing is supported.
                                +   * * `html`: Override parsing config for HTML files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * * `docx`: Override parsing config for DOCX files, only digital parsing and
                                +   * or layout parsing are supported.
                                +   * 
                                + * + * + * map<string, .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig> parsing_config_overrides = 5; + * + */ + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + getParsingConfigOverridesOrThrow(java.lang.String key); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigProto.java new file mode 100644 index 000000000000..fe9f78f4385c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigProto.java @@ -0,0 +1,164 @@ +/* + * 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/discoveryengine/v1beta/document_processing_config.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1beta; + +public final class DocumentProcessingConfigProto { + private DocumentProcessingConfigProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfigOverridesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfigOverridesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nDgoogle/cloud/discoveryengine/v1beta/do" + + "cument_processing_config.proto\022#google.c" + + "loud.discoveryengine.v1beta\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\"\301\010\n\030DocumentProcessingConfig\022\014\n\004" + + "name\030\001 \001(\t\022k\n\026default_parsing_config\030\004 \001" + + "(\0132K.google.cloud.discoveryengine.v1beta" + + ".DocumentProcessingConfig.ParsingConfig\022" + + "{\n\030parsing_config_overrides\030\005 \003(\0132Y.goog" + + "le.cloud.discoveryengine.v1beta.Document" + + "ProcessingConfig.ParsingConfigOverridesE" + + "ntry\032\222\003\n\rParsingConfig\022\202\001\n\026digital_parsi" + + "ng_config\030\001 \001(\0132`.google.cloud.discovery" + + "engine.v1beta.DocumentProcessingConfig.P" + + "arsingConfig.DigitalParsingConfigH\000\022z\n\022o" + + "cr_parsing_config\030\002 \001(\0132\\.google.cloud.d" + + "iscoveryengine.v1beta.DocumentProcessing" + + "Config.ParsingConfig.OcrParsingConfigH\000\032" + + "\026\n\024DigitalParsingConfig\032O\n\020OcrParsingCon" + + "fig\022\"\n\032enhanced_document_elements\030\001 \003(\t\022" + + "\027\n\017use_native_text\030\002 \001(\010B\027\n\025type_dedicat" + + "ed_config\032\212\001\n\033ParsingConfigOverridesEntr" + + "y\022\013\n\003key\030\001 \001(\t\022Z\n\005value\030\002 \001(\0132K.google.c" + + "loud.discoveryengine.v1beta.DocumentProc" + + "essingConfig.ParsingConfig:\0028\001:\212\002\352A\206\002\n7d" + + "iscoveryengine.googleapis.com/DocumentPr" + + "ocessingConfig\022Xprojects/{project}/locat" + + "ions/{location}/dataStores/{data_store}/" + + "documentProcessingConfig\022qprojects/{proj" + + "ect}/locations/{location}/collections/{c" + + "ollection}/dataStores/{data_store}/docum" + + "entProcessingConfigB\244\002\n\'com.google.cloud" + + ".discoveryengine.v1betaB\035DocumentProcess" + + "ingConfigProtoP\001ZQcloud.google.com/go/di" + + "scoveryengine/apiv1beta/discoveryenginep" + + "b;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002#" + + "Google.Cloud.DiscoveryEngine.V1Beta\312\002#Go" + + "ogle\\Cloud\\DiscoveryEngine\\V1beta\352\002&Goog" + + "le::Cloud::DiscoveryEngine::V1betab\006prot" + + "o3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_descriptor, + new java.lang.String[] { + "Name", "DefaultParsingConfig", "ParsingConfigOverrides", + }); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor, + new java.lang.String[] { + "DigitalParsingConfig", "OcrParsingConfig", "TypeDedicatedConfig", + }); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_OcrParsingConfig_descriptor, + new java.lang.String[] { + "EnhancedDocumentElements", "UseNativeText", + }); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfigOverridesEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfigOverridesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfigOverridesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java index b339022d7a54..c57982147709 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java @@ -49,31 +49,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cument.proto\022#google.cloud.discoveryengi" + "ne.v1beta\032\037google/api/field_behavior.pro" + "to\032\031google/api/resource.proto\032\034google/pr" - + "otobuf/struct.proto\"\223\005\n\010Document\022.\n\013stru" - + "ct_data\030\004 \001(\0132\027.google.protobuf.StructH\000" - + "\022\023\n\tjson_data\030\005 \001(\tH\000\022\021\n\004name\030\001 \001(\tB\003\340A\005" - + "\022\017\n\002id\030\002 \001(\tB\003\340A\005\022\021\n\tschema_id\030\003 \001(\t\022F\n\007" - + "content\030\n \001(\01325.google.cloud.discoveryen" - + "gine.v1beta.Document.Content\022\032\n\022parent_d" - + "ocument_id\030\007 \001(\t\0229\n\023derived_struct_data\030" - + "\006 \001(\0132\027.google.protobuf.StructB\003\340A\003\032K\n\007C" - + "ontent\022\023\n\traw_bytes\030\002 \001(\014H\000\022\r\n\003uri\030\003 \001(\t" - + "H\000\022\021\n\tmime_type\030\001 \001(\tB\t\n\007content:\226\002\352A\222\002\n" - + "\'discoveryengine.googleapis.com/Document" - + "\022fprojects/{project}/locations/{location" - + "}/dataStores/{data_store}/branches/{bran" - + "ch}/documents/{document}\022\177projects/{proj" - + "ect}/locations/{location}/collections/{c" - + "ollection}/dataStores/{data_store}/branc" - + "hes/{branch}/documents/{document}B\006\n\004dat" - + "aB\224\002\n\'com.google.cloud.discoveryengine.v" - + "1betaB\rDocumentProtoP\001ZQcloud.google.com" - + "/go/discoveryengine/apiv1beta/discoverye" - + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" - + "INE\252\002#Google.Cloud.DiscoveryEngine.V1Bet" - + "a\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352" - + "\002&Google::Cloud::DiscoveryEngine::V1beta" - + "b\006proto3" + + "otobuf/struct.proto\032\037google/protobuf/tim" + + "estamp.proto\"\310\005\n\010Document\022.\n\013struct_data" + + "\030\004 \001(\0132\027.google.protobuf.StructH\000\022\023\n\tjso" + + "n_data\030\005 \001(\tH\000\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\017\n\002id\030" + + "\002 \001(\tB\003\340A\005\022\021\n\tschema_id\030\003 \001(\t\022F\n\007content" + + "\030\n \001(\01325.google.cloud.discoveryengine.v1" + + "beta.Document.Content\022\032\n\022parent_document" + + "_id\030\007 \001(\t\0229\n\023derived_struct_data\030\006 \001(\0132\027" + + ".google.protobuf.StructB\003\340A\003\0223\n\nindex_ti" + + "me\030\r \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\032K\n\007Content\022\023\n\traw_bytes\030\002 \001(\014H\000\022\r\n\003uri" + + "\030\003 \001(\tH\000\022\021\n\tmime_type\030\001 \001(\tB\t\n\007content:\226" + + "\002\352A\222\002\n\'discoveryengine.googleapis.com/Do" + + "cument\022fprojects/{project}/locations/{lo" + + "cation}/dataStores/{data_store}/branches" + + "/{branch}/documents/{document}\022\177projects" + + "/{project}/locations/{location}/collecti" + + "ons/{collection}/dataStores/{data_store}" + + "/branches/{branch}/documents/{document}B" + + "\006\n\004dataB\224\002\n\'com.google.cloud.discoveryen" + + "gine.v1betaB\rDocumentProtoP\001ZQcloud.goog" + + "le.com/go/discoveryengine/apiv1beta/disc" + + "overyenginepb;discoveryenginepb\242\002\017DISCOV" + + "ERYENGINE\252\002#Google.Cloud.DiscoveryEngine" + + ".V1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V" + + "1beta\352\002&Google::Cloud::DiscoveryEngine::" + + "V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -82,6 +84,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor = getDescriptor().getMessageTypes().get(0); @@ -97,6 +100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Content", "ParentDocumentId", "DerivedStructData", + "IndexTime", "Data", }); internal_static_google_cloud_discoveryengine_v1beta_Document_Content_descriptor = @@ -118,6 +122,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetServingConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetServingConfigRequest.java index ee521358cffa..5a5433e0714c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetServingConfigRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetServingConfigRequest.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                                    * Required. The resource name of the ServingConfig to get. Format:
                                -   * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                    * 
                                * * @@ -98,7 +98,7 @@ public java.lang.String getName() { * *
                                    * Required. The resource name of the ServingConfig to get. Format:
                                -   * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                    * 
                                * * @@ -473,7 +473,7 @@ public Builder mergeFrom( * *
                                      * Required. The resource name of the ServingConfig to get. Format:
                                -     * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                      * 
                                * * @@ -498,7 +498,7 @@ public java.lang.String getName() { * *
                                      * Required. The resource name of the ServingConfig to get. Format:
                                -     * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                      * 
                                * * @@ -523,7 +523,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                                      * Required. The resource name of the ServingConfig to get. Format:
                                -     * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                      * 
                                * * @@ -547,7 +547,7 @@ public Builder setName(java.lang.String value) { * *
                                      * Required. The resource name of the ServingConfig to get. Format:
                                -     * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                      * 
                                * * @@ -567,7 +567,7 @@ public Builder clearName() { * *
                                      * Required. The resource name of the ServingConfig to get. Format:
                                -     * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                      * 
                                * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetServingConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetServingConfigRequestOrBuilder.java index 8724e00ba4f7..4f8a1dc65022 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetServingConfigRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetServingConfigRequestOrBuilder.java @@ -29,7 +29,7 @@ public interface GetServingConfigRequestOrBuilder * *
                                    * Required. The resource name of the ServingConfig to get. Format:
                                -   * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                    * 
                                * * @@ -44,7 +44,7 @@ public interface GetServingConfigRequestOrBuilder * *
                                    * Required. The resource name of the ServingConfig to get. Format:
                                -   * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}`
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                                    * 
                                * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListServingConfigsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListServingConfigsRequest.java index 09440fe57f88..432f91a68d31 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListServingConfigsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListServingConfigsRequest.java @@ -72,8 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                -   * Required. The dataStore resource name. Format:
                                -   * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`
                                +   * Required. Full resource name of the parent resource. Format:
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                    * 
                                * * @@ -98,8 +98,8 @@ public java.lang.String getParent() { * * *
                                -   * Required. The dataStore resource name. Format:
                                -   * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`
                                +   * Required. Full resource name of the parent resource. Format:
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                    * 
                                * * @@ -594,8 +594,8 @@ public Builder mergeFrom( * * *
                                -     * Required. The dataStore resource name. Format:
                                -     * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`
                                +     * Required. Full resource name of the parent resource. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                      * 
                                * * @@ -619,8 +619,8 @@ public java.lang.String getParent() { * * *
                                -     * Required. The dataStore resource name. Format:
                                -     * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`
                                +     * Required. Full resource name of the parent resource. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                      * 
                                * * @@ -644,8 +644,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                -     * Required. The dataStore resource name. Format:
                                -     * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`
                                +     * Required. Full resource name of the parent resource. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                      * 
                                * * @@ -668,8 +668,8 @@ public Builder setParent(java.lang.String value) { * * *
                                -     * Required. The dataStore resource name. Format:
                                -     * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`
                                +     * Required. Full resource name of the parent resource. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                      * 
                                * * @@ -688,8 +688,8 @@ public Builder clearParent() { * * *
                                -     * Required. The dataStore resource name. Format:
                                -     * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`
                                +     * Required. Full resource name of the parent resource. Format:
                                +     * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                      * 
                                * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListServingConfigsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListServingConfigsRequestOrBuilder.java index 38a06a98c6e6..2881926ba139 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListServingConfigsRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListServingConfigsRequestOrBuilder.java @@ -28,8 +28,8 @@ public interface ListServingConfigsRequestOrBuilder * * *
                                -   * Required. The dataStore resource name. Format:
                                -   * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`
                                +   * Required. Full resource name of the parent resource. Format:
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                    * 
                                * * @@ -43,8 +43,8 @@ public interface ListServingConfigsRequestOrBuilder * * *
                                -   * Required. The dataStore resource name. Format:
                                -   * `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}`
                                +   * Required. Full resource name of the parent resource. Format:
                                +   * `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}`
                                    * 
                                * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java index 51d7e92c4e97..0e402662b182 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeConfigProto.java @@ -72,27 +72,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022\r\n\005force\030\003 \001(\010\"q\n\026PurgeDocumentsRespons" + "e\022\023\n\013purge_count\030\001 \001(\003\022B\n\014purge_sample\030\002" + " \003(\tB,\372A)\n\'discoveryengine.googleapis.co" - + "m/Document\"\250\001\n\026PurgeDocumentsMetadata\022/\n" + + "m/Document\"\277\001\n\026PurgeDocumentsMetadata\022/\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + "estamp\022/\n\013update_time\030\002 \001(\0132\032.google.pro" + "tobuf.Timestamp\022\025\n\rsuccess_count\030\003 \001(\003\022\025" - + "\n\rfailure_count\030\004 \001(\003\"i\n%PurgeSuggestion" - + "DenyListEntriesRequest\022@\n\006parent\030\001 \001(\tB0" - + "\340A\002\372A*\n(discoveryengine.googleapis.com/D" - + "ataStore\"h\n&PurgeSuggestionDenyListEntri" - + "esResponse\022\023\n\013purge_count\030\001 \001(\003\022)\n\rerror" - + "_samples\030\002 \003(\0132\022.google.rpc.Status\"\212\001\n&P" - + "urgeSuggestionDenyListEntriesMetadata\022/\n" - + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" - + "estamp\022/\n\013update_time\030\002 \001(\0132\032.google.pro" - + "tobuf.TimestampB\227\002\n\'com.google.cloud.dis" - + "coveryengine.v1betaB\020PurgeConfigProtoP\001Z" - + "Qcloud.google.com/go/discoveryengine/api" - + "v1beta/discoveryenginepb;discoveryengine" - + "pb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.Disc" - + "overyEngine.V1Beta\312\002#Google\\Cloud\\Discov" - + "eryEngine\\V1beta\352\002&Google::Cloud::Discov" - + "eryEngine::V1betab\006proto3" + + "\n\rfailure_count\030\004 \001(\003\022\025\n\rignored_count\030\005" + + " \001(\003\"i\n%PurgeSuggestionDenyListEntriesRe" + + "quest\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\n(discovery" + + "engine.googleapis.com/DataStore\"h\n&Purge" + + "SuggestionDenyListEntriesResponse\022\023\n\013pur" + + "ge_count\030\001 \001(\003\022)\n\rerror_samples\030\002 \003(\0132\022." + + "google.rpc.Status\"\212\001\n&PurgeSuggestionDen" + + "yListEntriesMetadata\022/\n\013create_time\030\001 \001(" + + "\0132\032.google.protobuf.Timestamp\022/\n\013update_" + + "time\030\002 \001(\0132\032.google.protobuf.TimestampB\227" + + "\002\n\'com.google.cloud.discoveryengine.v1be" + + "taB\020PurgeConfigProtoP\001ZQcloud.google.com" + + "/go/discoveryengine/apiv1beta/discoverye" + + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" + + "INE\252\002#Google.Cloud.DiscoveryEngine.V1Bet" + + "a\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352" + + "\002&Google::Cloud::DiscoveryEngine::V1beta" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -125,7 +126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_PurgeDocumentsMetadata_descriptor, new java.lang.String[] { - "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", + "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", "IgnoredCount", }); internal_static_google_cloud_discoveryengine_v1beta_PurgeSuggestionDenyListEntriesRequest_descriptor = getDescriptor().getMessageTypes().get(3); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadata.java index 51616120e014..5a8253987dbf 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadata.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadata.java @@ -194,6 +194,24 @@ public long getFailureCount() { return failureCount_; } + public static final int IGNORED_COUNT_FIELD_NUMBER = 5; + private long ignoredCount_ = 0L; + /** + * + * + *
                                +   * Count of entries that were ignored as entries were not found.
                                +   * 
                                + * + * int64 ignored_count = 5; + * + * @return The ignoredCount. + */ + @java.lang.Override + public long getIgnoredCount() { + return ignoredCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -220,6 +238,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (failureCount_ != 0L) { output.writeInt64(4, failureCount_); } + if (ignoredCount_ != 0L) { + output.writeInt64(5, ignoredCount_); + } getUnknownFields().writeTo(output); } @@ -241,6 +262,9 @@ public int getSerializedSize() { if (failureCount_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); } + if (ignoredCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, ignoredCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -267,6 +291,7 @@ public boolean equals(final java.lang.Object obj) { } if (getSuccessCount() != other.getSuccessCount()) return false; if (getFailureCount() != other.getFailureCount()) return false; + if (getIgnoredCount() != other.getIgnoredCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,6 +315,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessCount()); hash = (37 * hash) + FAILURE_COUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailureCount()); + hash = (37 * hash) + IGNORED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIgnoredCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -453,6 +480,7 @@ public Builder clear() { } successCount_ = 0L; failureCount_ = 0L; + ignoredCount_ = 0L; return this; } @@ -506,6 +534,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000008) != 0)) { result.failureCount_ = failureCount_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ignoredCount_ = ignoredCount_; + } result.bitField0_ |= to_bitField0_; } @@ -568,6 +599,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.PurgeDocumentsM if (other.getFailureCount() != 0L) { setFailureCount(other.getFailureCount()); } + if (other.getIgnoredCount() != 0L) { + setIgnoredCount(other.getIgnoredCount()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -618,6 +652,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 40: + { + ignoredCount_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1122,6 +1162,59 @@ public Builder clearFailureCount() { return this; } + private long ignoredCount_; + /** + * + * + *
                                +     * Count of entries that were ignored as entries were not found.
                                +     * 
                                + * + * int64 ignored_count = 5; + * + * @return The ignoredCount. + */ + @java.lang.Override + public long getIgnoredCount() { + return ignoredCount_; + } + /** + * + * + *
                                +     * Count of entries that were ignored as entries were not found.
                                +     * 
                                + * + * int64 ignored_count = 5; + * + * @param value The ignoredCount to set. + * @return This builder for chaining. + */ + public Builder setIgnoredCount(long value) { + + ignoredCount_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Count of entries that were ignored as entries were not found.
                                +     * 
                                + * + * int64 ignored_count = 5; + * + * @return This builder for chaining. + */ + public Builder clearIgnoredCount() { + bitField0_ = (bitField0_ & ~0x00000010); + ignoredCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadataOrBuilder.java index 26eea2eb3107..9270910ff126 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadataOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeDocumentsMetadataOrBuilder.java @@ -122,4 +122,17 @@ public interface PurgeDocumentsMetadataOrBuilder * @return The failureCount. */ long getFailureCount(); + + /** + * + * + *
                                +   * Count of entries that were ignored as entries were not found.
                                +   * 
                                + * + * int64 ignored_count = 5; + * + * @return The ignoredCount. + */ + long getIgnoredCount(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java index 2b4d7705a1db..96ac8c62fe39 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java @@ -45,6 +45,7 @@ private SearchRequest() { branch_ = ""; query_ = ""; pageToken_ = ""; + dataStoreSpecs_ = java.util.Collections.emptyList(); filter_ = ""; canonicalFilter_ = ""; orderBy_ = ""; @@ -899,316 +900,1005 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface FacetSpecOrBuilder + public interface DataStoreSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec) com.google.protobuf.MessageOrBuilder { /** * * *
                                -     * Required. The facet key specification.
                                -     * 
                                - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the facetKey field is set. - */ - boolean hasFacetKey(); - /** - * - * - *
                                -     * Required. The facet key specification.
                                +     * Required. Full resource name of
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                      * 
                                * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * - * @return The facetKey. + * @return The dataStore. */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey getFacetKey(); + java.lang.String getDataStore(); /** * * *
                                -     * Required. The facet key specification.
                                +     * Required. Full resource name of
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                      * 
                                * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * - */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyOrBuilder - getFacetKeyOrBuilder(); - - /** - * - * - *
                                -     * Maximum of facet values that should be returned for this facet. If
                                -     * unspecified, defaults to 20. The maximum allowed value is 300. Values
                                -     * above 300 are coerced to 300.
                                -     *
                                -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                -     * 
                                - * - * int32 limit = 2; - * - * @return The limit. - */ - int getLimit(); - - /** - * - * - *
                                -     * List of keys to exclude when faceting.
                                -     *
                                -     *
                                -     * By default,
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                -     * is not excluded from the filter unless it is listed in this field.
                                -     *
                                -     * Listing a facet key in this field allows its values to appear as facet
                                -     * results, even when they are filtered out of search results. Using this
                                -     * field does not affect what search results are returned.
                                -     *
                                -     * For example, suppose there are 100 documents with the color facet "Red"
                                -     * and 200 documents with the color facet "Blue". A query containing the
                                -     * filter "color:ANY("Red")" and having "color" as
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                -     * would by default return only "Red" documents in the search results, and
                                -     * also return "Red" with count 100 as the only color facet. Although there
                                -     * are also blue documents available, "Blue" would not be shown as an
                                -     * available facet value.
                                -     *
                                -     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                -     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                -     * "color" key is now excluded from the filter. Because this field doesn't
                                -     * affect search results, the search results are still correctly filtered to
                                -     * return only "Red" documents.
                                -     *
                                -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                -     * error is returned.
                                -     * 
                                - * - * repeated string excluded_filter_keys = 3; - * - * @return A list containing the excludedFilterKeys. - */ - java.util.List getExcludedFilterKeysList(); - /** - * - * - *
                                -     * List of keys to exclude when faceting.
                                -     *
                                -     *
                                -     * By default,
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                -     * is not excluded from the filter unless it is listed in this field.
                                -     *
                                -     * Listing a facet key in this field allows its values to appear as facet
                                -     * results, even when they are filtered out of search results. Using this
                                -     * field does not affect what search results are returned.
                                -     *
                                -     * For example, suppose there are 100 documents with the color facet "Red"
                                -     * and 200 documents with the color facet "Blue". A query containing the
                                -     * filter "color:ANY("Red")" and having "color" as
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                -     * would by default return only "Red" documents in the search results, and
                                -     * also return "Red" with count 100 as the only color facet. Although there
                                -     * are also blue documents available, "Blue" would not be shown as an
                                -     * available facet value.
                                -     *
                                -     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                -     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                -     * "color" key is now excluded from the filter. Because this field doesn't
                                -     * affect search results, the search results are still correctly filtered to
                                -     * return only "Red" documents.
                                -     *
                                -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                -     * error is returned.
                                -     * 
                                - * - * repeated string excluded_filter_keys = 3; - * - * @return The count of excludedFilterKeys. - */ - int getExcludedFilterKeysCount(); - /** - * - * - *
                                -     * List of keys to exclude when faceting.
                                -     *
                                -     *
                                -     * By default,
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                -     * is not excluded from the filter unless it is listed in this field.
                                -     *
                                -     * Listing a facet key in this field allows its values to appear as facet
                                -     * results, even when they are filtered out of search results. Using this
                                -     * field does not affect what search results are returned.
                                -     *
                                -     * For example, suppose there are 100 documents with the color facet "Red"
                                -     * and 200 documents with the color facet "Blue". A query containing the
                                -     * filter "color:ANY("Red")" and having "color" as
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                -     * would by default return only "Red" documents in the search results, and
                                -     * also return "Red" with count 100 as the only color facet. Although there
                                -     * are also blue documents available, "Blue" would not be shown as an
                                -     * available facet value.
                                -     *
                                -     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                -     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                -     * "color" key is now excluded from the filter. Because this field doesn't
                                -     * affect search results, the search results are still correctly filtered to
                                -     * return only "Red" documents.
                                -     *
                                -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                -     * error is returned.
                                -     * 
                                - * - * repeated string excluded_filter_keys = 3; - * - * @param index The index of the element to return. - * @return The excludedFilterKeys at the given index. - */ - java.lang.String getExcludedFilterKeys(int index); - /** - * - * - *
                                -     * List of keys to exclude when faceting.
                                -     *
                                -     *
                                -     * By default,
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                -     * is not excluded from the filter unless it is listed in this field.
                                -     *
                                -     * Listing a facet key in this field allows its values to appear as facet
                                -     * results, even when they are filtered out of search results. Using this
                                -     * field does not affect what search results are returned.
                                -     *
                                -     * For example, suppose there are 100 documents with the color facet "Red"
                                -     * and 200 documents with the color facet "Blue". A query containing the
                                -     * filter "color:ANY("Red")" and having "color" as
                                -     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                -     * would by default return only "Red" documents in the search results, and
                                -     * also return "Red" with count 100 as the only color facet. Although there
                                -     * are also blue documents available, "Blue" would not be shown as an
                                -     * available facet value.
                                -     *
                                -     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                -     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                -     * "color" key is now excluded from the filter. Because this field doesn't
                                -     * affect search results, the search results are still correctly filtered to
                                -     * return only "Red" documents.
                                -     *
                                -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                -     * error is returned.
                                -     * 
                                - * - * repeated string excluded_filter_keys = 3; - * - * @param index The index of the value to return. - * @return The bytes of the excludedFilterKeys at the given index. - */ - com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index); - - /** - * - * - *
                                -     * Enables dynamic position for this facet. If set to true, the position of
                                -     * this facet among all facets in the response is determined automatically.
                                -     * If dynamic facets are enabled, it is ordered together.
                                -     * If set to false, the position of this facet in the
                                -     * response is the same as in the request, and it is ranked before
                                -     * the facets with dynamic position enable and all dynamic facets.
                                -     *
                                -     * For example, you may always want to have rating facet returned in
                                -     * the response, but it's not necessarily to always display the rating facet
                                -     * at the top. In that case, you can set enable_dynamic_position to true so
                                -     * that the position of rating facet in response is determined
                                -     * automatically.
                                -     *
                                -     * Another example, assuming you have the following facets in the request:
                                -     *
                                -     * * "rating", enable_dynamic_position = true
                                -     *
                                -     * * "price", enable_dynamic_position = false
                                      *
                                -     * * "brands", enable_dynamic_position = false
                                -     *
                                -     * And also you have a dynamic facets enabled, which generates a facet
                                -     * `gender`. Then the final order of the facets in the response can be
                                -     * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
                                -     * "rating") depends on how API orders "gender" and "rating" facets.
                                -     * However, notice that "price" and "brands" are always
                                -     * ranked at first and second position because their enable_dynamic_position
                                -     * is false.
                                -     * 
                                - * - * bool enable_dynamic_position = 4; - * - * @return The enableDynamicPosition. + * @return The bytes for dataStore. */ - boolean getEnableDynamicPosition(); + com.google.protobuf.ByteString getDataStoreBytes(); } /** * * *
                                -   * A facet specification to perform faceted search.
                                +   * A struct to define data stores to filter on in a search call.
                                    * 
                                * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec} */ - public static final class FacetSpec extends com.google.protobuf.GeneratedMessageV3 + public static final class DataStoreSpec extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec) - FacetSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec) + DataStoreSpecOrBuilder { private static final long serialVersionUID = 0L; - // Use FacetSpec.newBuilder() to construct. - private FacetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use DataStoreSpec.newBuilder() to construct. + private DataStoreSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FacetSpec() { - excludedFilterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private DataStoreSpec() { + dataStore_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FacetSpec(); + return new DataStoreSpec(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DataStoreSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DataStoreSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder.class); } - public interface FacetKeyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey) + public static final int DATA_STORE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataStore_ = ""; + /** + * + * + *
                                +     * Required. Full resource name of
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                +     * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataStore. + */ + @java.lang.Override + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + 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(); + dataStore_ = s; + return s; + } + } + /** + * + * + *
                                +     * Required. Full resource name of
                                +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                +     * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataStore. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = 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(dataStore_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataStore_); + } + 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(dataStore_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataStore_); + } + 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.discoveryengine.v1beta.SearchRequest.DataStoreSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec) obj; + + if (!getDataStore().equals(other.getDataStore())) 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) + DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getDataStore().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec 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.discoveryengine.v1beta.SearchRequest.DataStoreSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec 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.discoveryengine.v1beta.SearchRequest.DataStoreSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec 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.discoveryengine.v1beta.SearchRequest.DataStoreSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + 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.discoveryengine.v1beta.SearchRequest.DataStoreSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec 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.discoveryengine.v1beta.SearchRequest.DataStoreSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                                +     * A struct to define data stores to filter on in a search call.
                                +     * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DataStoreSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DataStoreSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataStore_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DataStoreSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataStore_ = dataStore_; + } + } + + @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.discoveryengine.v1beta.SearchRequest.DataStoreSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + .getDefaultInstance()) return this; + if (!other.getDataStore().isEmpty()) { + dataStore_ = other.dataStore_; + 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: + { + dataStore_ = 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 dataStore_ = ""; + /** + * + * + *
                                +       * Required. Full resource name of
                                +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as
                                +       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                +       * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataStore. + */ + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +       * Required. Full resource name of
                                +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as
                                +       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                +       * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataStore. + */ + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +       * Required. Full resource name of
                                +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as
                                +       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                +       * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataStore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +       * Required. Full resource name of
                                +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as
                                +       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                +       * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataStore() { + dataStore_ = getDefaultInstance().getDataStore(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +       * Required. Full resource name of
                                +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as
                                +       * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                                +       * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataStore_ = 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.discoveryengine.v1beta.SearchRequest.DataStoreSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataStoreSpec 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.discoveryengine.v1beta.SearchRequest.DataStoreSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FacetSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +     * Required. The facet key specification.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the facetKey field is set. + */ + boolean hasFacetKey(); + /** + * + * + *
                                +     * Required. The facet key specification.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The facetKey. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey getFacetKey(); + /** + * + * + *
                                +     * Required. The facet key specification.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyOrBuilder + getFacetKeyOrBuilder(); + + /** + * + * + *
                                +     * Maximum of facet values that should be returned for this facet. If
                                +     * unspecified, defaults to 20. The maximum allowed value is 300. Values
                                +     * above 300 are coerced to 300.
                                +     *
                                +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                +     * 
                                + * + * int32 limit = 2; + * + * @return The limit. + */ + int getLimit(); + + /** + * + * + *
                                +     * List of keys to exclude when faceting.
                                +     *
                                +     *
                                +     * By default,
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                +     * is not excluded from the filter unless it is listed in this field.
                                +     *
                                +     * Listing a facet key in this field allows its values to appear as facet
                                +     * results, even when they are filtered out of search results. Using this
                                +     * field does not affect what search results are returned.
                                +     *
                                +     * For example, suppose there are 100 documents with the color facet "Red"
                                +     * and 200 documents with the color facet "Blue". A query containing the
                                +     * filter "color:ANY("Red")" and having "color" as
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                +     * would by default return only "Red" documents in the search results, and
                                +     * also return "Red" with count 100 as the only color facet. Although there
                                +     * are also blue documents available, "Blue" would not be shown as an
                                +     * available facet value.
                                +     *
                                +     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                +     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                +     * "color" key is now excluded from the filter. Because this field doesn't
                                +     * affect search results, the search results are still correctly filtered to
                                +     * return only "Red" documents.
                                +     *
                                +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                +     * error is returned.
                                +     * 
                                + * + * repeated string excluded_filter_keys = 3; + * + * @return A list containing the excludedFilterKeys. + */ + java.util.List getExcludedFilterKeysList(); + /** + * + * + *
                                +     * List of keys to exclude when faceting.
                                +     *
                                +     *
                                +     * By default,
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                +     * is not excluded from the filter unless it is listed in this field.
                                +     *
                                +     * Listing a facet key in this field allows its values to appear as facet
                                +     * results, even when they are filtered out of search results. Using this
                                +     * field does not affect what search results are returned.
                                +     *
                                +     * For example, suppose there are 100 documents with the color facet "Red"
                                +     * and 200 documents with the color facet "Blue". A query containing the
                                +     * filter "color:ANY("Red")" and having "color" as
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                +     * would by default return only "Red" documents in the search results, and
                                +     * also return "Red" with count 100 as the only color facet. Although there
                                +     * are also blue documents available, "Blue" would not be shown as an
                                +     * available facet value.
                                +     *
                                +     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                +     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                +     * "color" key is now excluded from the filter. Because this field doesn't
                                +     * affect search results, the search results are still correctly filtered to
                                +     * return only "Red" documents.
                                +     *
                                +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                +     * error is returned.
                                +     * 
                                + * + * repeated string excluded_filter_keys = 3; + * + * @return The count of excludedFilterKeys. + */ + int getExcludedFilterKeysCount(); + /** + * + * + *
                                +     * List of keys to exclude when faceting.
                                +     *
                                +     *
                                +     * By default,
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                +     * is not excluded from the filter unless it is listed in this field.
                                +     *
                                +     * Listing a facet key in this field allows its values to appear as facet
                                +     * results, even when they are filtered out of search results. Using this
                                +     * field does not affect what search results are returned.
                                +     *
                                +     * For example, suppose there are 100 documents with the color facet "Red"
                                +     * and 200 documents with the color facet "Blue". A query containing the
                                +     * filter "color:ANY("Red")" and having "color" as
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                +     * would by default return only "Red" documents in the search results, and
                                +     * also return "Red" with count 100 as the only color facet. Although there
                                +     * are also blue documents available, "Blue" would not be shown as an
                                +     * available facet value.
                                +     *
                                +     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                +     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                +     * "color" key is now excluded from the filter. Because this field doesn't
                                +     * affect search results, the search results are still correctly filtered to
                                +     * return only "Red" documents.
                                +     *
                                +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                +     * error is returned.
                                +     * 
                                + * + * repeated string excluded_filter_keys = 3; + * + * @param index The index of the element to return. + * @return The excludedFilterKeys at the given index. + */ + java.lang.String getExcludedFilterKeys(int index); + /** + * + * + *
                                +     * List of keys to exclude when faceting.
                                +     *
                                +     *
                                +     * By default,
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                +     * is not excluded from the filter unless it is listed in this field.
                                +     *
                                +     * Listing a facet key in this field allows its values to appear as facet
                                +     * results, even when they are filtered out of search results. Using this
                                +     * field does not affect what search results are returned.
                                +     *
                                +     * For example, suppose there are 100 documents with the color facet "Red"
                                +     * and 200 documents with the color facet "Blue". A query containing the
                                +     * filter "color:ANY("Red")" and having "color" as
                                +     * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                                +     * would by default return only "Red" documents in the search results, and
                                +     * also return "Red" with count 100 as the only color facet. Although there
                                +     * are also blue documents available, "Blue" would not be shown as an
                                +     * available facet value.
                                +     *
                                +     * If "color" is listed in "excludedFilterKeys", then the query returns the
                                +     * facet values "Red" with count 100 and "Blue" with count 200, because the
                                +     * "color" key is now excluded from the filter. Because this field doesn't
                                +     * affect search results, the search results are still correctly filtered to
                                +     * return only "Red" documents.
                                +     *
                                +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
                                +     * error is returned.
                                +     * 
                                + * + * repeated string excluded_filter_keys = 3; + * + * @param index The index of the value to return. + * @return The bytes of the excludedFilterKeys at the given index. + */ + com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index); + + /** + * + * + *
                                +     * Enables dynamic position for this facet. If set to true, the position of
                                +     * this facet among all facets in the response is determined automatically.
                                +     * If dynamic facets are enabled, it is ordered together.
                                +     * If set to false, the position of this facet in the
                                +     * response is the same as in the request, and it is ranked before
                                +     * the facets with dynamic position enable and all dynamic facets.
                                +     *
                                +     * For example, you may always want to have rating facet returned in
                                +     * the response, but it's not necessarily to always display the rating facet
                                +     * at the top. In that case, you can set enable_dynamic_position to true so
                                +     * that the position of rating facet in response is determined
                                +     * automatically.
                                +     *
                                +     * Another example, assuming you have the following facets in the request:
                                +     *
                                +     * * "rating", enable_dynamic_position = true
                                +     *
                                +     * * "price", enable_dynamic_position = false
                                +     *
                                +     * * "brands", enable_dynamic_position = false
                                +     *
                                +     * And also you have a dynamic facets enabled, which generates a facet
                                +     * `gender`. Then the final order of the facets in the response can be
                                +     * ("price", "brands", "rating", "gender") or ("price", "brands", "gender",
                                +     * "rating") depends on how API orders "gender" and "rating" facets.
                                +     * However, notice that "price" and "brands" are always
                                +     * ranked at first and second position because their enable_dynamic_position
                                +     * is false.
                                +     * 
                                + * + * bool enable_dynamic_position = 4; + * + * @return The enableDynamicPosition. + */ + boolean getEnableDynamicPosition(); + } + /** + * + * + *
                                +   * A facet specification to perform faceted search.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec} + */ + public static final class FacetSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec) + FacetSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use FacetSpec.newBuilder() to construct. + private FacetSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FacetSpec() { + excludedFilterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FacetSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder.class); + } + + public interface FacetKeyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey) com.google.protobuf.MessageOrBuilder { /** @@ -5975,9 +6665,8 @@ public interface ConditionBoostSpecOrBuilder * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -5997,9 +6686,8 @@ public interface ConditionBoostSpecOrBuilder * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6100,9 +6788,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6133,9 +6820,8 @@ public java.lang.String getCondition() { * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6617,9 +7303,8 @@ public Builder mergeFrom( * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6649,9 +7334,8 @@ public java.lang.String getCondition() { * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6681,9 +7365,8 @@ public com.google.protobuf.ByteString getConditionBytes() { * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6712,9 +7395,8 @@ public Builder setCondition(java.lang.String value) { * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -6739,9 +7421,8 @@ public Builder clearCondition() { * Examples: * * * To boost documents with document ID "doc_1" or "doc_2", and - * color - * "Red" or "Blue": - * * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + * color "Red" or "Blue": + * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` * * * string condition = 1; @@ -10020,7 +10701,7 @@ public interface SnippetSpecOrBuilder * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=320 * @return The maxSnippetCount. */ @java.lang.Deprecated @@ -10038,7 +10719,7 @@ public interface SnippetSpecOrBuilder * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=312 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=324 * @return The referenceOnly. */ @java.lang.Deprecated @@ -10119,7 +10800,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=320 * @return The maxSnippetCount. */ @java.lang.Override @@ -10142,7 +10823,7 @@ public int getMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=312 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=324 * @return The referenceOnly. */ @java.lang.Override @@ -10620,7 +11301,7 @@ public Builder mergeFrom( * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=320 * @return The maxSnippetCount. */ @java.lang.Override @@ -10641,7 +11322,7 @@ public int getMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=320 * @param value The maxSnippetCount to set. * @return This builder for chaining. */ @@ -10666,7 +11347,7 @@ public Builder setMaxSnippetCount(int value) { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=308 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=320 * @return This builder for chaining. */ @java.lang.Deprecated @@ -10690,7 +11371,7 @@ public Builder clearMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=312 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=324 * @return The referenceOnly. */ @java.lang.Override @@ -10710,7 +11391,7 @@ public boolean getReferenceOnly() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=312 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=324 * @param value The referenceOnly to set. * @return This builder for chaining. */ @@ -10734,7 +11415,7 @@ public Builder setReferenceOnly(boolean value) { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=312 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=324 * @return This builder for chaining. */ @java.lang.Deprecated @@ -10888,7 +11569,7 @@ public interface SummarySpecOrBuilder * of results returned is less than `summaryResultCount`, the summary is * generated from all of the results. * - * At most five results can be used to generate a summary. + * At most 10 results can be used to generate a summary. * * * int32 summary_result_count = 1; @@ -12674,7 +13355,7 @@ public com.google.protobuf.Parser getParserForType() { * of results returned is less than `summaryResultCount`, the summary is * generated from all of the results. * - * At most five results can be used to generate a summary. + * At most 10 results can be used to generate a summary. * * * int32 summary_result_count = 1; @@ -13540,7 +14221,7 @@ public Builder mergeFrom( * of results returned is less than `summaryResultCount`, the summary is * generated from all of the results. * - * At most five results can be used to generate a summary. + * At most 10 results can be used to generate a summary. * * * int32 summary_result_count = 1; @@ -13559,7 +14240,7 @@ public int getSummaryResultCount() { * of results returned is less than `summaryResultCount`, the summary is * generated from all of the results. * - * At most five results can be used to generate a summary. + * At most 10 results can be used to generate a summary. * * * int32 summary_result_count = 1; @@ -13582,7 +14263,7 @@ public Builder setSummaryResultCount(int value) { * of results returned is less than `summaryResultCount`, the summary is * generated from all of the results. * - * At most five results can be used to generate a summary. + * At most 10 results can be used to generate a summary. * * * int32 summary_result_count = 1; @@ -19633,6 +20314,92 @@ public int getOffset() { return offset_; } + public static final int DATA_STORE_SPECS_FIELD_NUMBER = 32; + + @SuppressWarnings("serial") + private java.util.List + dataStoreSpecs_; + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public java.util.List + getDataStoreSpecsList() { + return dataStoreSpecs_; + } + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsOrBuilderList() { + return dataStoreSpecs_; + } + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public int getDataStoreSpecsCount() { + return dataStoreSpecs_.size(); + } + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec getDataStoreSpecs( + int index) { + return dataStoreSpecs_.get(index); + } + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder + getDataStoreSpecsOrBuilder(int index) { + return dataStoreSpecs_.get(index); + } + public static final int FILTER_FIELD_NUMBER = 7; @SuppressWarnings("serial") @@ -20924,6 +21691,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalFilter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, canonicalFilter_); } + for (int i = 0; i < dataStoreSpecs_.size(); i++) { + output.writeMessage(32, dataStoreSpecs_.get(i)); + } getUnknownFields().writeTo(output); } @@ -21014,6 +21784,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(canonicalFilter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, canonicalFilter_); } + for (int i = 0; i < dataStoreSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, dataStoreSpecs_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -21040,6 +21813,7 @@ public boolean equals(final java.lang.Object obj) { if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getOffset() != other.getOffset()) return false; + if (!getDataStoreSpecsList().equals(other.getDataStoreSpecsList())) return false; if (!getFilter().equals(other.getFilter())) return false; if (!getCanonicalFilter().equals(other.getCanonicalFilter())) return false; if (!getOrderBy().equals(other.getOrderBy())) return false; @@ -21100,6 +21874,10 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + getOffset(); + if (getDataStoreSpecsCount() > 0) { + hash = (37 * hash) + DATA_STORE_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getDataStoreSpecsList().hashCode(); + } hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + CANONICAL_FILTER_FIELD_NUMBER; @@ -21318,6 +22096,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getImageQueryFieldBuilder(); + getDataStoreSpecsFieldBuilder(); getUserInfoFieldBuilder(); getFacetSpecsFieldBuilder(); getBoostSpecFieldBuilder(); @@ -21343,6 +22122,13 @@ public Builder clear() { pageSize_ = 0; pageToken_ = ""; offset_ = 0; + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecs_ = java.util.Collections.emptyList(); + } else { + dataStoreSpecs_ = null; + dataStoreSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); filter_ = ""; canonicalFilter_ = ""; orderBy_ = ""; @@ -21357,7 +22143,7 @@ public Builder clear() { facetSpecs_ = null; facetSpecsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); boostSpec_ = null; if (boostSpecBuilder_ != null) { boostSpecBuilder_.dispose(); @@ -21425,10 +22211,19 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.discoveryengine.v1beta.SearchRequest result) { + if (dataStoreSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + dataStoreSpecs_ = java.util.Collections.unmodifiableList(dataStoreSpecs_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.dataStoreSpecs_ = dataStoreSpecs_; + } else { + result.dataStoreSpecs_ = dataStoreSpecsBuilder_.build(); + } if (facetSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { facetSpecs_ = java.util.Collections.unmodifiableList(facetSpecs_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } result.facetSpecs_ = facetSpecs_; } else { @@ -21461,445 +22256,747 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest if (((from_bitField0_ & 0x00000040) != 0)) { result.offset_ = offset_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.filter_ = filter_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.canonicalFilter_ = canonicalFilter_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.orderBy_ = orderBy_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.params_ = internalGetParams().build(ParamsDefaultEntryHolder.defaultEntry); } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.queryExpansionSpec_ = queryExpansionSpecBuilder_ == null ? queryExpansionSpec_ : queryExpansionSpecBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.spellCorrectionSpec_ = spellCorrectionSpecBuilder_ == null ? spellCorrectionSpec_ : spellCorrectionSpecBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.userPseudoId_ = userPseudoId_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.contentSearchSpec_ = contentSearchSpecBuilder_ == null ? contentSearchSpec_ : contentSearchSpecBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.embeddingSpec_ = embeddingSpecBuilder_ == null ? embeddingSpec_ : embeddingSpecBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.rankingExpression_ = rankingExpression_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.safeSearch_ = safeSearch_; } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.userLabels_ = internalGetUserLabels(); - result.userLabels_.makeImmutable(); + if (((from_bitField0_ & 0x00400000) != 0)) { + result.userLabels_ = internalGetUserLabels(); + result.userLabels_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1beta.SearchRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance()) + return this; + if (!other.getServingConfig().isEmpty()) { + servingConfig_ = other.servingConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBranch().isEmpty()) { + branch_ = other.branch_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasImageQuery()) { + mergeImageQuery(other.getImageQuery()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.getOffset() != 0) { + setOffset(other.getOffset()); + } + if (dataStoreSpecsBuilder_ == null) { + if (!other.dataStoreSpecs_.isEmpty()) { + if (dataStoreSpecs_.isEmpty()) { + dataStoreSpecs_ = other.dataStoreSpecs_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.addAll(other.dataStoreSpecs_); + } + onChanged(); + } + } else { + if (!other.dataStoreSpecs_.isEmpty()) { + if (dataStoreSpecsBuilder_.isEmpty()) { + dataStoreSpecsBuilder_.dispose(); + dataStoreSpecsBuilder_ = null; + dataStoreSpecs_ = other.dataStoreSpecs_; + bitField0_ = (bitField0_ & ~0x00000080); + dataStoreSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataStoreSpecsFieldBuilder() + : null; + } else { + dataStoreSpecsBuilder_.addAllMessages(other.dataStoreSpecs_); + } + } + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getCanonicalFilter().isEmpty()) { + canonicalFilter_ = other.canonicalFilter_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasUserInfo()) { + mergeUserInfo(other.getUserInfo()); + } + if (facetSpecsBuilder_ == null) { + if (!other.facetSpecs_.isEmpty()) { + if (facetSpecs_.isEmpty()) { + facetSpecs_ = other.facetSpecs_; + bitField0_ = (bitField0_ & ~0x00001000); + } else { + ensureFacetSpecsIsMutable(); + facetSpecs_.addAll(other.facetSpecs_); + } + onChanged(); + } + } else { + if (!other.facetSpecs_.isEmpty()) { + if (facetSpecsBuilder_.isEmpty()) { + facetSpecsBuilder_.dispose(); + facetSpecsBuilder_ = null; + facetSpecs_ = other.facetSpecs_; + bitField0_ = (bitField0_ & ~0x00001000); + facetSpecsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFacetSpecsFieldBuilder() + : null; + } else { + facetSpecsBuilder_.addAllMessages(other.facetSpecs_); + } + } + } + if (other.hasBoostSpec()) { + mergeBoostSpec(other.getBoostSpec()); + } + internalGetMutableParams().mergeFrom(other.internalGetParams()); + bitField0_ |= 0x00004000; + if (other.hasQueryExpansionSpec()) { + mergeQueryExpansionSpec(other.getQueryExpansionSpec()); + } + if (other.hasSpellCorrectionSpec()) { + mergeSpellCorrectionSpec(other.getSpellCorrectionSpec()); + } + if (!other.getUserPseudoId().isEmpty()) { + userPseudoId_ = other.userPseudoId_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (other.hasContentSearchSpec()) { + mergeContentSearchSpec(other.getContentSearchSpec()); + } + if (other.hasEmbeddingSpec()) { + mergeEmbeddingSpec(other.getEmbeddingSpec()); + } + if (!other.getRankingExpression().isEmpty()) { + rankingExpression_ = other.rankingExpression_; + bitField0_ |= 0x00100000; + onChanged(); + } + if (other.getSafeSearch() != false) { + setSafeSearch(other.getSafeSearch()); } - result.bitField0_ |= to_bitField0_; - } - - @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); + internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); + bitField0_ |= 0x00400000; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public final boolean isInitialized() { + return true; } @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + 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: + { + servingConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + branch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 42: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 48: + { + offset_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 58: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 58 + case 66: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 66 + case 74: + { + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.parser(), + extensionRegistry); + if (facetSpecsBuilder_ == null) { + ensureFacetSpecsIsMutable(); + facetSpecs_.add(m); + } else { + facetSpecsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + input.readMessage(getBoostSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 82 + case 90: + { + com.google.protobuf.MapEntry params__ = + input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableParams() + .ensureBuilderMap() + .put(params__.getKey(), params__.getValue()); + bitField0_ |= 0x00004000; + break; + } // case 90 + case 106: + { + input.readMessage( + getQueryExpansionSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 106 + case 114: + { + input.readMessage( + getSpellCorrectionSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 114 + case 122: + { + userPseudoId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 122 + case 154: + { + input.readMessage(getImageQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 154 + case 160: + { + safeSearch_ = input.readBool(); + bitField0_ |= 0x00200000; + break; + } // case 160 + case 170: + { + input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 170 + case 178: + { + com.google.protobuf.MapEntry userLabels__ = + input.readMessage( + UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableUserLabels() + .getMutableMap() + .put(userLabels__.getKey(), userLabels__.getValue()); + bitField0_ |= 0x00400000; + break; + } // case 178 + case 186: + { + input.readMessage(getEmbeddingSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 186 + case 194: + { + input.readMessage( + getContentSearchSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 194 + case 210: + { + rankingExpression_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00100000; + break; + } // case 210 + case 234: + { + canonicalFilter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 234 + case 258: + { + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + .parser(), + extensionRegistry); + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(m); + } else { + dataStoreSpecsBuilder_.addMessage(m); + } + break; + } // case 258 + 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; } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } + private int bitField0_; - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest) other); + private java.lang.Object servingConfig_ = ""; + /** + * + * + *
                                +     * Required. The resource name of the Search serving config, such as
                                +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                +     * or
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                +     * This field is used to identify the serving configuration name, set
                                +     * of models used to make the search.
                                +     * 
                                + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The servingConfig. + */ + public java.lang.String getServingConfig() { + java.lang.Object ref = servingConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servingConfig_ = s; + return s; } else { - super.mergeFrom(other); - return this; + return (java.lang.String) ref; } } - - public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest other) { - if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance()) - return this; - if (!other.getServingConfig().isEmpty()) { - servingConfig_ = other.servingConfig_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getBranch().isEmpty()) { - branch_ = other.branch_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getQuery().isEmpty()) { - query_ = other.query_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasImageQuery()) { - mergeImageQuery(other.getImageQuery()); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.getOffset() != 0) { - setOffset(other.getOffset()); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getCanonicalFilter().isEmpty()) { - canonicalFilter_ = other.canonicalFilter_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (other.hasUserInfo()) { - mergeUserInfo(other.getUserInfo()); - } - if (facetSpecsBuilder_ == null) { - if (!other.facetSpecs_.isEmpty()) { - if (facetSpecs_.isEmpty()) { - facetSpecs_ = other.facetSpecs_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensureFacetSpecsIsMutable(); - facetSpecs_.addAll(other.facetSpecs_); - } - onChanged(); - } + /** + * + * + *
                                +     * Required. The resource name of the Search serving config, such as
                                +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                +     * or
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                +     * This field is used to identify the serving configuration name, set
                                +     * of models used to make the search.
                                +     * 
                                + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for servingConfig. + */ + public com.google.protobuf.ByteString getServingConfigBytes() { + java.lang.Object ref = servingConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servingConfig_ = b; + return b; } else { - if (!other.facetSpecs_.isEmpty()) { - if (facetSpecsBuilder_.isEmpty()) { - facetSpecsBuilder_.dispose(); - facetSpecsBuilder_ = null; - facetSpecs_ = other.facetSpecs_; - bitField0_ = (bitField0_ & ~0x00000800); - facetSpecsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getFacetSpecsFieldBuilder() - : null; - } else { - facetSpecsBuilder_.addAllMessages(other.facetSpecs_); - } - } - } - if (other.hasBoostSpec()) { - mergeBoostSpec(other.getBoostSpec()); - } - internalGetMutableParams().mergeFrom(other.internalGetParams()); - bitField0_ |= 0x00002000; - if (other.hasQueryExpansionSpec()) { - mergeQueryExpansionSpec(other.getQueryExpansionSpec()); - } - if (other.hasSpellCorrectionSpec()) { - mergeSpellCorrectionSpec(other.getSpellCorrectionSpec()); + return (com.google.protobuf.ByteString) ref; } - if (!other.getUserPseudoId().isEmpty()) { - userPseudoId_ = other.userPseudoId_; - bitField0_ |= 0x00010000; - onChanged(); + } + /** + * + * + *
                                +     * Required. The resource name of the Search serving config, such as
                                +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                +     * or
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                +     * This field is used to identify the serving configuration name, set
                                +     * of models used to make the search.
                                +     * 
                                + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The servingConfig to set. + * @return This builder for chaining. + */ + public Builder setServingConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - if (other.hasContentSearchSpec()) { - mergeContentSearchSpec(other.getContentSearchSpec()); + servingConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The resource name of the Search serving config, such as
                                +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                +     * or
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                +     * This field is used to identify the serving configuration name, set
                                +     * of models used to make the search.
                                +     * 
                                + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearServingConfig() { + servingConfig_ = getDefaultInstance().getServingConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The resource name of the Search serving config, such as
                                +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                +     * or
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                +     * This field is used to identify the serving configuration name, set
                                +     * of models used to make the search.
                                +     * 
                                + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for servingConfig to set. + * @return This builder for chaining. + */ + public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - if (other.hasEmbeddingSpec()) { - mergeEmbeddingSpec(other.getEmbeddingSpec()); + checkByteStringIsUtf8(value); + servingConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object branch_ = ""; + /** + * + * + *
                                +     * The branch resource name, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     *
                                +     * Use `default_branch` as the branch ID or leave this field empty, to search
                                +     * documents under the default branch.
                                +     * 
                                + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @return The branch. + */ + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } else { + return (java.lang.String) ref; } - if (!other.getRankingExpression().isEmpty()) { - rankingExpression_ = other.rankingExpression_; - bitField0_ |= 0x00080000; - onChanged(); + } + /** + * + * + *
                                +     * The branch resource name, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     *
                                +     * Use `default_branch` as the branch ID or leave this field empty, to search
                                +     * documents under the default branch.
                                +     * 
                                + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for branch. + */ + public com.google.protobuf.ByteString getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (other.getSafeSearch() != false) { - setSafeSearch(other.getSafeSearch()); + } + /** + * + * + *
                                +     * The branch resource name, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     *
                                +     * Use `default_branch` as the branch ID or leave this field empty, to search
                                +     * documents under the default branch.
                                +     * 
                                + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The branch to set. + * @return This builder for chaining. + */ + public Builder setBranch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); - bitField0_ |= 0x00200000; - this.mergeUnknownFields(other.getUnknownFields()); + branch_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
                                +     * The branch resource name, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     *
                                +     * Use `default_branch` as the branch ID or leave this field empty, to search
                                +     * documents under the default branch.
                                +     * 
                                + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearBranch() { + branch_ = getDefaultInstance().getBranch(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; } - - @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: - { - servingConfig_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - branch_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - query_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 48: - { - offset_ = input.readInt32(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 58: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 66 - case 74: - { - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.parser(), - extensionRegistry); - if (facetSpecsBuilder_ == null) { - ensureFacetSpecsIsMutable(); - facetSpecs_.add(m); - } else { - facetSpecsBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: - { - input.readMessage(getBoostSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 82 - case 90: - { - com.google.protobuf.MapEntry params__ = - input.readMessage( - ParamsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableParams() - .ensureBuilderMap() - .put(params__.getKey(), params__.getValue()); - bitField0_ |= 0x00002000; - break; - } // case 90 - case 106: - { - input.readMessage( - getQueryExpansionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; - break; - } // case 106 - case 114: - { - input.readMessage( - getSpellCorrectionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; - break; - } // case 114 - case 122: - { - userPseudoId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; - break; - } // case 122 - case 154: - { - input.readMessage(getImageQueryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 154 - case 160: - { - safeSearch_ = input.readBool(); - bitField0_ |= 0x00100000; - break; - } // case 160 - case 170: - { - input.readMessage(getUserInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 170 - case 178: - { - com.google.protobuf.MapEntry userLabels__ = - input.readMessage( - UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableUserLabels() - .getMutableMap() - .put(userLabels__.getKey(), userLabels__.getValue()); - bitField0_ |= 0x00200000; - break; - } // case 178 - case 186: - { - input.readMessage(getEmbeddingSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 186 - case 194: - { - input.readMessage( - getContentSearchSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; - break; - } // case 194 - case 210: - { - rankingExpression_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; - break; - } // case 210 - case 234: - { - canonicalFilter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 234 - 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 + /** + * + * + *
                                +     * The branch resource name, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     *
                                +     * Use `default_branch` as the branch ID or leave this field empty, to search
                                +     * documents under the default branch.
                                +     * 
                                + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for branch to set. + * @return This builder for chaining. + */ + public Builder setBranchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); return this; } - private int bitField0_; - - private java.lang.Object servingConfig_ = ""; + private java.lang.Object query_ = ""; /** * * *
                                -     * Required. The resource name of the Search serving config, such as
                                -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                -     * or
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                -     * This field is used to identify the serving configuration name, set
                                -     * of models used to make the search.
                                +     * Raw search query.
                                      * 
                                * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * string query = 3; * - * @return The servingConfig. + * @return The query. */ - public java.lang.String getServingConfig() { - java.lang.Object ref = servingConfig_; + public java.lang.String getQuery() { + java.lang.Object ref = query_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - servingConfig_ = s; + query_ = s; return s; } else { return (java.lang.String) ref; @@ -21909,26 +23006,19 @@ public java.lang.String getServingConfig() { * * *
                                -     * Required. The resource name of the Search serving config, such as
                                -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                -     * or
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                -     * This field is used to identify the serving configuration name, set
                                -     * of models used to make the search.
                                +     * Raw search query.
                                      * 
                                * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * string query = 3; * - * @return The bytes for servingConfig. + * @return The bytes for query. */ - public com.google.protobuf.ByteString getServingConfigBytes() { - java.lang.Object ref = servingConfig_; + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - servingConfig_ = b; + query_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -21938,27 +23028,20 @@ public com.google.protobuf.ByteString getServingConfigBytes() { * * *
                                -     * Required. The resource name of the Search serving config, such as
                                -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                -     * or
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                -     * This field is used to identify the serving configuration name, set
                                -     * of models used to make the search.
                                +     * Raw search query.
                                      * 
                                * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * string query = 3; * - * @param value The servingConfig to set. + * @param value The query to set. * @return This builder for chaining. */ - public Builder setServingConfig(java.lang.String value) { + public Builder setQuery(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - servingConfig_ = value; - bitField0_ |= 0x00000001; + query_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -21966,23 +23049,16 @@ public Builder setServingConfig(java.lang.String value) { * * *
                                -     * Required. The resource name of the Search serving config, such as
                                -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                -     * or
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                -     * This field is used to identify the serving configuration name, set
                                -     * of models used to make the search.
                                +     * Raw search query.
                                      * 
                                * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * string query = 3; * * @return This builder for chaining. */ - public Builder clearServingConfig() { - servingConfig_ = getDefaultInstance().getServingConfig(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -21990,128 +23066,257 @@ public Builder clearServingConfig() { * * *
                                -     * Required. The resource name of the Search serving config, such as
                                -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
                                -     * or
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
                                -     * This field is used to identify the serving configuration name, set
                                -     * of models used to make the search.
                                +     * Raw search query.
                                      * 
                                * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * string query = 3; * - * @param value The bytes for servingConfig to set. + * @param value The bytes for query to set. * @return This builder for chaining. */ - public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { + public Builder setQueryBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - servingConfig_ = value; - bitField0_ |= 0x00000001; + query_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - private java.lang.Object branch_ = ""; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery imageQuery_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder> + imageQueryBuilder_; /** * * *
                                -     * The branch resource name, such as
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     * Raw image query.
                                +     * 
                                * - * Use `default_branch` as the branch ID or leave this field empty, to search - * documents under the default branch. + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * + * @return Whether the imageQuery field is set. + */ + public boolean hasImageQuery() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                +     * Raw image query.
                                      * 
                                * - * string branch = 2 [(.google.api.resource_reference) = { ... } + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; * - * @return The branch. + * @return The imageQuery. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getImageQuery() { + if (imageQueryBuilder_ == null) { + return imageQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() + : imageQuery_; + } else { + return imageQueryBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Raw image query.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + */ + public Builder setImageQuery( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery value) { + if (imageQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + imageQuery_ = value; + } else { + imageQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Raw image query.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + */ + public Builder setImageQuery( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder builderForValue) { + if (imageQueryBuilder_ == null) { + imageQuery_ = builderForValue.build(); + } else { + imageQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Raw image query.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + */ + public Builder mergeImageQuery( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery value) { + if (imageQueryBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && imageQuery_ != null + && imageQuery_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery + .getDefaultInstance()) { + getImageQueryBuilder().mergeFrom(value); + } else { + imageQuery_ = value; + } + } else { + imageQueryBuilder_.mergeFrom(value); + } + if (imageQuery_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Raw image query.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + */ + public Builder clearImageQuery() { + bitField0_ = (bitField0_ & ~0x00000008); + imageQuery_ = null; + if (imageQueryBuilder_ != null) { + imageQueryBuilder_.dispose(); + imageQueryBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Raw image query.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder + getImageQueryBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getImageQueryFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Raw image query.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; */ - public java.lang.String getBranch() { - java.lang.Object ref = branch_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - branch_ = s; - return s; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder + getImageQueryOrBuilder() { + if (imageQueryBuilder_ != null) { + return imageQueryBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return imageQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() + : imageQuery_; } } /** * * *
                                -     * The branch resource name, such as
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                -     *
                                -     * Use `default_branch` as the branch ID or leave this field empty, to search
                                -     * documents under the default branch.
                                +     * Raw image query.
                                      * 
                                * - * string branch = 2 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for branch. + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; */ - public com.google.protobuf.ByteString getBranchBytes() { - java.lang.Object ref = branch_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - branch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder> + getImageQueryFieldBuilder() { + if (imageQueryBuilder_ == null) { + imageQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder>( + getImageQuery(), getParentForChildren(), isClean()); + imageQuery_ = null; } + return imageQueryBuilder_; } + + private int pageSize_; /** * * *
                                -     * The branch resource name, such as
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
                                +     * to return. If unspecified, defaults to a reasonable value. The maximum
                                +     * allowed value is 100. Values above 100 are coerced to 100.
                                      *
                                -     * Use `default_branch` as the branch ID or leave this field empty, to search
                                -     * documents under the default branch.
                                +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                      * 
                                * - * string branch = 2 [(.google.api.resource_reference) = { ... } + * int32 page_size = 4; * - * @param value The branch to set. - * @return This builder for chaining. + * @return The pageSize. */ - public Builder setBranch(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - branch_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + @java.lang.Override + public int getPageSize() { + return pageSize_; } /** * * *
                                -     * The branch resource name, such as
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
                                +     * to return. If unspecified, defaults to a reasonable value. The maximum
                                +     * allowed value is 100. Values above 100 are coerced to 100.
                                      *
                                -     * Use `default_branch` as the branch ID or leave this field empty, to search
                                -     * documents under the default branch.
                                +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                      * 
                                * - * string branch = 2 [(.google.api.resource_reference) = { ... } + * int32 page_size = 4; * + * @param value The pageSize to set. * @return This builder for chaining. */ - public Builder clearBranch() { - branch_ = getDefaultInstance().getBranch(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -22119,47 +23324,49 @@ public Builder clearBranch() { * * *
                                -     * The branch resource name, such as
                                -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
                                +     * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
                                +     * to return. If unspecified, defaults to a reasonable value. The maximum
                                +     * allowed value is 100. Values above 100 are coerced to 100.
                                      *
                                -     * Use `default_branch` as the branch ID or leave this field empty, to search
                                -     * documents under the default branch.
                                +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                      * 
                                * - * string branch = 2 [(.google.api.resource_reference) = { ... } + * int32 page_size = 4; * - * @param value The bytes for branch to set. * @return This builder for chaining. */ - public Builder setBranchBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - branch_ = value; - bitField0_ |= 0x00000002; + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000010); + pageSize_ = 0; onChanged(); return this; } - private java.lang.Object query_ = ""; + private java.lang.Object pageToken_ = ""; /** * * *
                                -     * Raw search query.
                                +     * A page token received from a previous
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     *  `INVALID_ARGUMENT`  error is returned.
                                      * 
                                * - * string query = 3; + * string page_token = 5; * - * @return The query. + * @return The pageToken. */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - query_ = s; + pageToken_ = s; return s; } else { return (java.lang.String) ref; @@ -22169,19 +23376,26 @@ public java.lang.String getQuery() { * * *
                                -     * Raw search query.
                                +     * A page token received from a previous
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     *  `INVALID_ARGUMENT`  error is returned.
                                      * 
                                * - * string query = 3; + * string page_token = 5; * - * @return The bytes for query. + * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; + pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -22191,20 +23405,27 @@ public com.google.protobuf.ByteString getQueryBytes() { * * *
                                -     * Raw search query.
                                +     * A page token received from a previous
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     *  `INVALID_ARGUMENT`  error is returned.
                                      * 
                                * - * string query = 3; + * string page_token = 5; * - * @param value The query to set. + * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setQuery(java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - query_ = value; - bitField0_ |= 0x00000004; + pageToken_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -22212,16 +23433,23 @@ public Builder setQuery(java.lang.String value) { * * *
                                -     * Raw search query.
                                +     * A page token received from a previous
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     *  `INVALID_ARGUMENT`  error is returned.
                                      * 
                                * - * string query = 3; + * string page_token = 5; * * @return This builder for chaining. */ - public Builder clearQuery() { - query_ = getDefaultInstance().getQuery(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -22229,495 +23457,519 @@ public Builder clearQuery() { * * *
                                -     * Raw search query.
                                +     * A page token received from a previous
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                +     * call. Provide this to retrieve the subsequent page.
                                +     *
                                +     * When paginating, all other parameters provided to
                                +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                +     * must match the call that provided the page token. Otherwise, an
                                +     *  `INVALID_ARGUMENT`  error is returned.
                                      * 
                                * - * string query = 3; + * string page_token = 5; * - * @param value The bytes for query to set. + * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - query_ = value; - bitField0_ |= 0x00000004; + pageToken_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery imageQuery_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder> - imageQueryBuilder_; + private int offset_; /** * * *
                                -     * Raw image query.
                                +     * A 0-indexed integer that specifies the current offset (that is, starting
                                +     * result location, amongst the
                                +     * [Document][google.cloud.discoveryengine.v1beta.Document]s deemed by the API
                                +     * as relevant) in search results. This field is only considered if
                                +     * [page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
                                +     * is unset.
                                +     *
                                +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                      * 
                                * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * int32 offset = 6; * - * @return Whether the imageQuery field is set. + * @return The offset. */ - public boolean hasImageQuery() { - return ((bitField0_ & 0x00000008) != 0); + @java.lang.Override + public int getOffset() { + return offset_; } /** * * *
                                -     * Raw image query.
                                +     * A 0-indexed integer that specifies the current offset (that is, starting
                                +     * result location, amongst the
                                +     * [Document][google.cloud.discoveryengine.v1beta.Document]s deemed by the API
                                +     * as relevant) in search results. This field is only considered if
                                +     * [page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
                                +     * is unset.
                                +     *
                                +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                      * 
                                * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * int32 offset = 6; * - * @return The imageQuery. - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getImageQuery() { - if (imageQueryBuilder_ == null) { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; - } else { - return imageQueryBuilder_.getMessage(); - } + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(int value) { + + offset_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; } /** * * *
                                -     * Raw image query.
                                +     * A 0-indexed integer that specifies the current offset (that is, starting
                                +     * result location, amongst the
                                +     * [Document][google.cloud.discoveryengine.v1beta.Document]s deemed by the API
                                +     * as relevant) in search results. This field is only considered if
                                +     * [page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
                                +     * is unset.
                                +     *
                                +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                      * 
                                * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * int32 offset = 6; + * + * @return This builder for chaining. */ - public Builder setImageQuery( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery value) { - if (imageQueryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - imageQuery_ = value; - } else { - imageQueryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000040); + offset_ = 0; onChanged(); return this; } + + private java.util.List + dataStoreSpecs_ = java.util.Collections.emptyList(); + + private void ensureDataStoreSpecsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + dataStoreSpecs_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec>( + dataStoreSpecs_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + dataStoreSpecsBuilder_; + /** * * *
                                -     * Raw image query.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder setImageQuery( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder builderForValue) { - if (imageQueryBuilder_ == null) { - imageQuery_ = builderForValue.build(); + public java.util.List + getDataStoreSpecsList() { + if (dataStoreSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataStoreSpecs_); } else { - imageQueryBuilder_.setMessage(builderForValue.build()); + return dataStoreSpecsBuilder_.getMessageList(); } - bitField0_ |= 0x00000008; - onChanged(); - return this; } /** * * *
                                -     * Raw image query.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder mergeImageQuery( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery value) { - if (imageQueryBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && imageQuery_ != null - && imageQuery_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery - .getDefaultInstance()) { - getImageQueryBuilder().mergeFrom(value); - } else { - imageQuery_ = value; - } + public int getDataStoreSpecsCount() { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.size(); } else { - imageQueryBuilder_.mergeFrom(value); - } - if (imageQuery_ != null) { - bitField0_ |= 0x00000008; - onChanged(); + return dataStoreSpecsBuilder_.getCount(); } - return this; } /** * * *
                                -     * Raw image query.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder clearImageQuery() { - bitField0_ = (bitField0_ & ~0x00000008); - imageQuery_ = null; - if (imageQueryBuilder_ != null) { - imageQueryBuilder_.dispose(); - imageQueryBuilder_ = null; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec getDataStoreSpecs( + int index) { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.get(index); + } else { + return dataStoreSpecsBuilder_.getMessage(index); } - onChanged(); - return this; } /** * * *
                                -     * Raw image query.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder - getImageQueryBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getImageQueryFieldBuilder().getBuilder(); + public Builder setDataStoreSpecs( + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { + if (dataStoreSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.set(index, value); + onChanged(); + } else { + dataStoreSpecsBuilder_.setMessage(index, value); + } + return this; } /** * * *
                                -     * Raw image query.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder - getImageQueryOrBuilder() { - if (imageQueryBuilder_ != null) { - return imageQueryBuilder_.getMessageOrBuilder(); + public Builder setDataStoreSpecs( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.set(index, builderForValue.build()); + onChanged(); } else { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; + dataStoreSpecsBuilder_.setMessage(index, builderForValue.build()); } + return this; } /** * * *
                                -     * Raw image query.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder> - getImageQueryFieldBuilder() { - if (imageQueryBuilder_ == null) { - imageQueryBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder>( - getImageQuery(), getParentForChildren(), isClean()); - imageQuery_ = null; + public Builder addDataStoreSpecs( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { + if (dataStoreSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(value); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(value); } - return imageQueryBuilder_; + return this; } - - private int pageSize_; /** * * *
                                -     * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
                                -     * to return. If unspecified, defaults to a reasonable value. The maximum
                                -     * allowed value is 100. Values above 100 are coerced to 100.
                                -     *
                                -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * int32 page_size = 4; - * - * @return The pageSize. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - @java.lang.Override - public int getPageSize() { - return pageSize_; + public Builder addDataStoreSpecs( + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { + if (dataStoreSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(index, value); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(index, value); + } + return this; } /** * * *
                                -     * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
                                -     * to return. If unspecified, defaults to a reasonable value. The maximum
                                -     * allowed value is 100. Values above 100 are coerced to 100.
                                -     *
                                -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * int32 page_size = 4; - * - * @param value The pageSize to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000010; - onChanged(); + public Builder addDataStoreSpecs( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(builderForValue.build()); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(builderForValue.build()); + } return this; } /** * * *
                                -     * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
                                -     * to return. If unspecified, defaults to a reasonable value. The maximum
                                -     * allowed value is 100. Values above 100 are coerced to 100.
                                -     *
                                -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * int32 page_size = 4; - * - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000010); - pageSize_ = 0; - onChanged(); + public Builder addDataStoreSpecs( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(index, builderForValue.build()); + } return this; } - - private java.lang.Object pageToken_ = ""; /** * * *
                                -     * A page token received from a previous
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                -     * call. Provide this to retrieve the subsequent page.
                                -     *
                                -     * When paginating, all other parameters provided to
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                -     * must match the call that provided the page token. Otherwise, an
                                -     *  `INVALID_ARGUMENT`  error is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * string page_token = 5; - * - * @return The pageToken. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; + public Builder addAllDataStoreSpecs( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec> + values) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStoreSpecs_); + onChanged(); } else { - return (java.lang.String) ref; + dataStoreSpecsBuilder_.addAllMessages(values); } + return this; } /** * * *
                                -     * A page token received from a previous
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                -     * call. Provide this to retrieve the subsequent page.
                                -     *
                                -     * When paginating, all other parameters provided to
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                -     * must match the call that provided the page token. Otherwise, an
                                -     *  `INVALID_ARGUMENT`  error is returned.
                                -     * 
                                - * - * string page_token = 5; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; + * A list of data store specs to apply on a search call. + * + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public Builder clearDataStoreSpecs() { + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + dataStoreSpecsBuilder_.clear(); } + return this; } /** * * *
                                -     * A page token received from a previous
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                -     * call. Provide this to retrieve the subsequent page.
                                -     *
                                -     * When paginating, all other parameters provided to
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                -     * must match the call that provided the page token. Otherwise, an
                                -     *  `INVALID_ARGUMENT`  error is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * string page_token = 5; - * - * @param value The pageToken to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder removeDataStoreSpecs(int index) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.remove(index); + onChanged(); + } else { + dataStoreSpecsBuilder_.remove(index); } - pageToken_ = value; - bitField0_ |= 0x00000020; - onChanged(); return this; } /** * * *
                                -     * A page token received from a previous
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                -     * call. Provide this to retrieve the subsequent page.
                                -     *
                                -     * When paginating, all other parameters provided to
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                -     * must match the call that provided the page token. Otherwise, an
                                -     *  `INVALID_ARGUMENT`  error is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * string page_token = 5; - * - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + getDataStoreSpecsBuilder(int index) { + return getDataStoreSpecsFieldBuilder().getBuilder(index); } /** * * *
                                -     * A page token received from a previous
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                -     * call. Provide this to retrieve the subsequent page.
                                -     *
                                -     * When paginating, all other parameters provided to
                                -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
                                -     * must match the call that provided the page token. Otherwise, an
                                -     *  `INVALID_ARGUMENT`  error is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * string page_token = 5; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder + getDataStoreSpecsOrBuilder(int index) { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.get(index); + } else { + return dataStoreSpecsBuilder_.getMessageOrBuilder(index); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; } - - private int offset_; /** * * *
                                -     * A 0-indexed integer that specifies the current offset (that is, starting
                                -     * result location, amongst the
                                -     * [Document][google.cloud.discoveryengine.v1beta.Document]s deemed by the API
                                -     * as relevant) in search results. This field is only considered if
                                -     * [page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
                                -     * is unset.
                                -     *
                                -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * int32 offset = 6; - * - * @return The offset. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - @java.lang.Override - public int getOffset() { - return offset_; + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsOrBuilderList() { + if (dataStoreSpecsBuilder_ != null) { + return dataStoreSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataStoreSpecs_); + } } /** * * *
                                -     * A 0-indexed integer that specifies the current offset (that is, starting
                                -     * result location, amongst the
                                -     * [Document][google.cloud.discoveryengine.v1beta.Document]s deemed by the API
                                -     * as relevant) in search results. This field is only considered if
                                -     * [page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
                                -     * is unset.
                                -     *
                                -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * int32 offset = 6; - * - * @param value The offset to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder setOffset(int value) { - - offset_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + addDataStoreSpecsBuilder() { + return getDataStoreSpecsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + .getDefaultInstance()); } /** * * *
                                -     * A 0-indexed integer that specifies the current offset (that is, starting
                                -     * result location, amongst the
                                -     * [Document][google.cloud.discoveryengine.v1beta.Document]s deemed by the API
                                -     * as relevant) in search results. This field is only considered if
                                -     * [page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
                                -     * is unset.
                                -     *
                                -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
                                +     * A list of data store specs to apply on a search call.
                                      * 
                                * - * int32 offset = 6; + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + addDataStoreSpecsBuilder(int index) { + return getDataStoreSpecsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + .getDefaultInstance()); + } + /** * - * @return This builder for chaining. + * + *
                                +     * A list of data store specs to apply on a search call.
                                +     * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * */ - public Builder clearOffset() { - bitField0_ = (bitField0_ & ~0x00000040); - offset_ = 0; - onChanged(); - return this; + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder> + getDataStoreSpecsBuilderList() { + return getDataStoreSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsFieldBuilder() { + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder>( + dataStoreSpecs_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + dataStoreSpecs_ = null; + } + return dataStoreSpecsBuilder_; } private java.lang.Object filter_ = ""; @@ -22824,7 +24076,7 @@ public Builder setFilter(java.lang.String value) { throw new NullPointerException(); } filter_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -22855,7 +24107,7 @@ public Builder setFilter(java.lang.String value) { */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -22891,7 +24143,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); filter_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -22991,7 +24243,7 @@ public Builder setCanonicalFilter(java.lang.String value) { throw new NullPointerException(); } canonicalFilter_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -23019,7 +24271,7 @@ public Builder setCanonicalFilter(java.lang.String value) { */ public Builder clearCanonicalFilter() { canonicalFilter_ = getDefaultInstance().getCanonicalFilter(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -23052,7 +24304,7 @@ public Builder setCanonicalFilterBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); canonicalFilter_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -23137,7 +24389,7 @@ public Builder setOrderBy(java.lang.String value) { throw new NullPointerException(); } orderBy_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -23160,7 +24412,7 @@ public Builder setOrderBy(java.lang.String value) { */ public Builder clearOrderBy() { orderBy_ = getDefaultInstance().getOrderBy(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -23188,7 +24440,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); orderBy_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -23214,7 +24466,7 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -23260,7 +24512,7 @@ public Builder setUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo valu } else { userInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -23283,7 +24535,7 @@ public Builder setUserInfo( } else { userInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -23301,7 +24553,7 @@ public Builder setUserInfo( */ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo value) { if (userInfoBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && userInfo_ != null && userInfo_ != com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()) { getUserInfoBuilder().mergeFrom(value); @@ -23312,7 +24564,7 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo va userInfoBuilder_.mergeFrom(value); } if (userInfo_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -23330,7 +24582,7 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo va * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; */ public Builder clearUserInfo() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); userInfo_ = null; if (userInfoBuilder_ != null) { userInfoBuilder_.dispose(); @@ -23352,7 +24604,7 @@ public Builder clearUserInfo() { * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; */ public com.google.cloud.discoveryengine.v1beta.UserInfo.Builder getUserInfoBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return getUserInfoFieldBuilder().getBuilder(); } @@ -23410,11 +24662,11 @@ public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBu facetSpecs_ = java.util.Collections.emptyList(); private void ensureFacetSpecsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { facetSpecs_ = new java.util.ArrayList< com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec>(facetSpecs_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } @@ -23683,7 +24935,7 @@ public Builder addAllFacetSpecs( public Builder clearFacetSpecs() { if (facetSpecsBuilder_ == null) { facetSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { facetSpecsBuilder_.clear(); @@ -23841,7 +25093,7 @@ public Builder removeFacetSpecs(int index) { com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder>( - facetSpecs_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); + facetSpecs_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); facetSpecs_ = null; } return facetSpecsBuilder_; @@ -23867,7 +25119,7 @@ public Builder removeFacetSpecs(int index) { * @return Whether the boostSpec field is set. */ public boolean hasBoostSpec() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -23912,7 +25164,7 @@ public Builder setBoostSpec( } else { boostSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -23934,7 +25186,7 @@ public Builder setBoostSpec( } else { boostSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -23952,7 +25204,7 @@ public Builder setBoostSpec( public Builder mergeBoostSpec( com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { if (boostSpecBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && boostSpec_ != null && boostSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec @@ -23965,7 +25217,7 @@ public Builder mergeBoostSpec( boostSpecBuilder_.mergeFrom(value); } if (boostSpec_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -23982,7 +25234,7 @@ public Builder mergeBoostSpec( * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ public Builder clearBoostSpec() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); boostSpec_ = null; if (boostSpecBuilder_ != null) { boostSpecBuilder_.dispose(); @@ -24004,7 +25256,7 @@ public Builder clearBoostSpec() { */ public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder getBoostSpecBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return getBoostSpecFieldBuilder().getBuilder(); } @@ -24105,7 +25357,7 @@ public com.google.protobuf.Value build(com.google.protobuf.ValueOrBuilder val) { if (params_ == null) { params_ = new com.google.protobuf.MapFieldBuilder<>(paramsConverter); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return params_; } @@ -24256,7 +25508,7 @@ public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { } public Builder clearParams() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); internalGetMutableParams().clear(); return this; } @@ -24295,7 +25547,7 @@ public Builder removeParams(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParams() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return internalGetMutableParams().ensureMessageMap(); } /** @@ -24331,7 +25583,7 @@ public Builder putParams(java.lang.String key, com.google.protobuf.Value value) throw new NullPointerException("map value"); } internalGetMutableParams().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; return this; } /** @@ -24366,7 +25618,7 @@ public Builder putAllParams(java.util.Map */ public Builder clearQueryExpansionSpec() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); queryExpansionSpec_ = null; if (queryExpansionSpecBuilder_ != null) { queryExpansionSpecBuilder_.dispose(); @@ -24577,7 +25829,7 @@ public Builder clearQueryExpansionSpec() { */ public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder getQueryExpansionSpecBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getQueryExpansionSpecFieldBuilder().getBuilder(); } @@ -24655,7 +25907,7 @@ public Builder clearQueryExpansionSpec() { * @return Whether the spellCorrectionSpec field is set. */ public boolean hasSpellCorrectionSpec() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -24704,7 +25956,7 @@ public Builder setSpellCorrectionSpec( } else { spellCorrectionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -24728,7 +25980,7 @@ public Builder setSpellCorrectionSpec( } else { spellCorrectionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -24747,7 +25999,7 @@ public Builder setSpellCorrectionSpec( public Builder mergeSpellCorrectionSpec( com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec value) { if (spellCorrectionSpecBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && spellCorrectionSpec_ != null && spellCorrectionSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec @@ -24760,7 +26012,7 @@ public Builder mergeSpellCorrectionSpec( spellCorrectionSpecBuilder_.mergeFrom(value); } if (spellCorrectionSpec_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -24778,7 +26030,7 @@ public Builder mergeSpellCorrectionSpec( *
                                */ public Builder clearSpellCorrectionSpec() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); spellCorrectionSpec_ = null; if (spellCorrectionSpecBuilder_ != null) { spellCorrectionSpecBuilder_.dispose(); @@ -24801,7 +26053,7 @@ public Builder clearSpellCorrectionSpec() { */ public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder getSpellCorrectionSpecBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return getSpellCorrectionSpecFieldBuilder().getBuilder(); } @@ -24958,7 +26210,7 @@ public Builder setUserPseudoId(java.lang.String value) { throw new NullPointerException(); } userPseudoId_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -24988,7 +26240,7 @@ public Builder setUserPseudoId(java.lang.String value) { */ public Builder clearUserPseudoId() { userPseudoId_ = getDefaultInstance().getUserPseudoId(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -25023,7 +26275,7 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); userPseudoId_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -25049,7 +26301,7 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { * @return Whether the contentSearchSpec field is set. */ public boolean hasContentSearchSpec() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** * @@ -25096,7 +26348,7 @@ public Builder setContentSearchSpec( } else { contentSearchSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -25119,7 +26371,7 @@ public Builder setContentSearchSpec( } else { contentSearchSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -25137,7 +26389,7 @@ public Builder setContentSearchSpec( public Builder mergeContentSearchSpec( com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec value) { if (contentSearchSpecBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00040000) != 0) && contentSearchSpec_ != null && contentSearchSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec @@ -25150,7 +26402,7 @@ public Builder mergeContentSearchSpec( contentSearchSpecBuilder_.mergeFrom(value); } if (contentSearchSpec_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -25167,7 +26419,7 @@ public Builder mergeContentSearchSpec( *
                                */ public Builder clearContentSearchSpec() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); contentSearchSpec_ = null; if (contentSearchSpecBuilder_ != null) { contentSearchSpecBuilder_.dispose(); @@ -25189,7 +26441,7 @@ public Builder clearContentSearchSpec() { */ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder getContentSearchSpecBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return getContentSearchSpecFieldBuilder().getBuilder(); } @@ -25270,7 +26522,7 @@ public Builder clearContentSearchSpec() { * @return Whether the embeddingSpec field is set. */ public boolean hasEmbeddingSpec() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** * @@ -25330,7 +26582,7 @@ public Builder setEmbeddingSpec( } else { embeddingSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -25360,7 +26612,7 @@ public Builder setEmbeddingSpec( } else { embeddingSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -25385,7 +26637,7 @@ public Builder setEmbeddingSpec( public Builder mergeEmbeddingSpec( com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec value) { if (embeddingSpecBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) + if (((bitField0_ & 0x00080000) != 0) && embeddingSpec_ != null && embeddingSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec @@ -25398,7 +26650,7 @@ public Builder mergeEmbeddingSpec( embeddingSpecBuilder_.mergeFrom(value); } if (embeddingSpec_ != null) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -25422,7 +26674,7 @@ public Builder mergeEmbeddingSpec( *
                                */ public Builder clearEmbeddingSpec() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); embeddingSpec_ = null; if (embeddingSpecBuilder_ != null) { embeddingSpecBuilder_.dispose(); @@ -25451,7 +26703,7 @@ public Builder clearEmbeddingSpec() { */ public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder getEmbeddingSpecBuilder() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return getEmbeddingSpecFieldBuilder().getBuilder(); } @@ -25638,7 +26890,7 @@ public Builder setRankingExpression(java.lang.String value) { throw new NullPointerException(); } rankingExpression_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -25674,7 +26926,7 @@ public Builder setRankingExpression(java.lang.String value) { */ public Builder clearRankingExpression() { rankingExpression_ = getDefaultInstance().getRankingExpression(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -25715,7 +26967,7 @@ public Builder setRankingExpressionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); rankingExpression_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -25753,7 +27005,7 @@ public boolean getSafeSearch() { public Builder setSafeSearch(boolean value) { safeSearch_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -25770,7 +27022,7 @@ public Builder setSafeSearch(boolean value) { * @return This builder for chaining. */ public Builder clearSafeSearch() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); safeSearch_ = false; onChanged(); return this; @@ -25796,7 +27048,7 @@ public Builder clearSafeSearch() { if (!userLabels_.isMutable()) { userLabels_ = userLabels_.copy(); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return userLabels_; } @@ -25945,7 +27197,7 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) { } public Builder clearUserLabels() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); internalGetMutableUserLabels().getMutableMap().clear(); return this; } @@ -25984,7 +27236,7 @@ public Builder removeUserLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableUserLabels() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; return internalGetMutableUserLabels().getMutableMap(); } /** @@ -26020,7 +27272,7 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableUserLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; return this; } /** @@ -26050,7 +27302,7 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllUserLabels(java.util.Map values) { internalGetMutableUserLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; return this; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java index 479c26f70d02..0e21315875c4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java @@ -233,6 +233,71 @@ public interface SearchRequestOrBuilder */ int getOffset(); + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + java.util.List + getDataStoreSpecsList(); + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec getDataStoreSpecs(int index); + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + int getDataStoreSpecsCount(); + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsOrBuilderList(); + /** + * + * + *
                                +   * A list of data store specs to apply on a search call.
                                +   * 
                                + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder + getDataStoreSpecsOrBuilder(int index); + /** * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java index 2d910566aecc..d9fd7d3b48f1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java @@ -36,6 +36,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DataStoreSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DataStoreSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -177,7 +181,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "urce.proto\0320google/cloud/discoveryengine" + "/v1beta/common.proto\0322google/cloud/disco" + "veryengine/v1beta/document.proto\032\034google" - + "/protobuf/struct.proto\"\340\034\n\rSearchRequest" + + "/protobuf/struct.proto\"\223\036\n\rSearchRequest" + "\022L\n\016serving_config\030\001 \001(\tB4\340A\002\372A.\n,discov" + "eryengine.googleapis.com/ServingConfig\022:" + "\n\006branch\030\002 \001(\tB*\372A\'\n%discoveryengine.goo" @@ -185,181 +189,185 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ge_query\030\023 \001(\0132=.google.cloud.discoverye" + "ngine.v1beta.SearchRequest.ImageQuery\022\021\n" + "\tpage_size\030\004 \001(\005\022\022\n\npage_token\030\005 \001(\t\022\016\n\006" - + "offset\030\006 \001(\005\022\016\n\006filter\030\007 \001(\t\022\030\n\020canonica" - + "l_filter\030\035 \001(\t\022\020\n\010order_by\030\010 \001(\t\022@\n\tuser" - + "_info\030\025 \001(\0132-.google.cloud.discoveryengi" - + "ne.v1beta.UserInfo\022Q\n\013facet_specs\030\t \003(\0132" - + "<.google.cloud.discoveryengine.v1beta.Se" - + "archRequest.FacetSpec\022P\n\nboost_spec\030\n \001(" - + "\0132<.google.cloud.discoveryengine.v1beta." - + "SearchRequest.BoostSpec\022N\n\006params\030\013 \003(\0132" - + ">.google.cloud.discoveryengine.v1beta.Se" - + "archRequest.ParamsEntry\022c\n\024query_expansi" - + "on_spec\030\r \001(\0132E.google.cloud.discoveryen" - + "gine.v1beta.SearchRequest.QueryExpansion" - + "Spec\022e\n\025spell_correction_spec\030\016 \001(\0132F.go" - + "ogle.cloud.discoveryengine.v1beta.Search" - + "Request.SpellCorrectionSpec\022\026\n\016user_pseu" - + "do_id\030\017 \001(\t\022a\n\023content_search_spec\030\030 \001(\013" - + "2D.google.cloud.discoveryengine.v1beta.S" - + "earchRequest.ContentSearchSpec\022X\n\016embedd" - + "ing_spec\030\027 \001(\0132@.google.cloud.discoverye" - + "ngine.v1beta.SearchRequest.EmbeddingSpec" - + "\022\032\n\022ranking_expression\030\032 \001(\t\022\023\n\013safe_sea" - + "rch\030\024 \001(\010\022W\n\013user_labels\030\026 \003(\0132B.google." - + "cloud.discoveryengine.v1beta.SearchReque" - + "st.UserLabelsEntry\032,\n\nImageQuery\022\025\n\013imag" - + "e_bytes\030\001 \001(\tH\000B\007\n\005image\032\204\003\n\tFacetSpec\022]" - + "\n\tfacet_key\030\001 \001(\0132E.google.cloud.discove" - + "ryengine.v1beta.SearchRequest.FacetSpec." - + "FacetKeyB\003\340A\002\022\r\n\005limit\030\002 \001(\005\022\034\n\024excluded" - + "_filter_keys\030\003 \003(\t\022\037\n\027enable_dynamic_pos" - + "ition\030\004 \001(\010\032\311\001\n\010FacetKey\022\020\n\003key\030\001 \001(\tB\003\340" - + "A\002\022@\n\tintervals\030\002 \003(\0132-.google.cloud.dis" - + "coveryengine.v1beta.Interval\022\031\n\021restrict" - + "ed_values\030\003 \003(\t\022\020\n\010prefixes\030\004 \003(\t\022\020\n\010con" - + "tains\030\005 \003(\t\022\030\n\020case_insensitive\030\006 \001(\010\022\020\n" - + "\010order_by\030\007 \001(\t\032\263\001\n\tBoostSpec\022n\n\025conditi" - + "on_boost_specs\030\001 \003(\0132O.google.cloud.disc" - + "overyengine.v1beta.SearchRequest.BoostSp" - + "ec.ConditionBoostSpec\0326\n\022ConditionBoostS" - + "pec\022\021\n\tcondition\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002\032\330\001" - + "\n\022QueryExpansionSpec\022b\n\tcondition\030\001 \001(\0162" - + "O.google.cloud.discoveryengine.v1beta.Se" - + "archRequest.QueryExpansionSpec.Condition" - + "\022\036\n\026pin_unexpanded_results\030\002 \001(\010\">\n\tCond" - + "ition\022\031\n\025CONDITION_UNSPECIFIED\020\000\022\014\n\010DISA" - + "BLED\020\001\022\010\n\004AUTO\020\002\032\255\001\n\023SpellCorrectionSpec" - + "\022Y\n\004mode\030\001 \001(\0162K.google.cloud.discoverye" - + "ngine.v1beta.SearchRequest.SpellCorrecti" - + "onSpec.Mode\";\n\004Mode\022\024\n\020MODE_UNSPECIFIED\020" - + "\000\022\023\n\017SUGGESTION_ONLY\020\001\022\010\n\004AUTO\020\002\032\346\010\n\021Con" - + "tentSearchSpec\022f\n\014snippet_spec\030\001 \001(\0132P.g" + + "offset\030\006 \001(\005\022Z\n\020data_store_specs\030 \003(\0132@" + + ".google.cloud.discoveryengine.v1beta.Sea" + + "rchRequest.DataStoreSpec\022\016\n\006filter\030\007 \001(\t" + + "\022\030\n\020canonical_filter\030\035 \001(\t\022\020\n\010order_by\030\010" + + " \001(\t\022@\n\tuser_info\030\025 \001(\0132-.google.cloud.d" + + "iscoveryengine.v1beta.UserInfo\022Q\n\013facet_" + + "specs\030\t \003(\0132<.google.cloud.discoveryengi" + + "ne.v1beta.SearchRequest.FacetSpec\022P\n\nboo" + + "st_spec\030\n \001(\0132<.google.cloud.discoveryen" + + "gine.v1beta.SearchRequest.BoostSpec\022N\n\006p" + + "arams\030\013 \003(\0132>.google.cloud.discoveryengi" + + "ne.v1beta.SearchRequest.ParamsEntry\022c\n\024q" + + "uery_expansion_spec\030\r \001(\0132E.google.cloud" + + ".discoveryengine.v1beta.SearchRequest.Qu" + + "eryExpansionSpec\022e\n\025spell_correction_spe" + + "c\030\016 \001(\0132F.google.cloud.discoveryengine.v" + + "1beta.SearchRequest.SpellCorrectionSpec\022" + + "\026\n\016user_pseudo_id\030\017 \001(\t\022a\n\023content_searc" + + "h_spec\030\030 \001(\0132D.google.cloud.discoveryeng" + + "ine.v1beta.SearchRequest.ContentSearchSp" + + "ec\022X\n\016embedding_spec\030\027 \001(\0132@.google.clou" + + "d.discoveryengine.v1beta.SearchRequest.E" + + "mbeddingSpec\022\032\n\022ranking_expression\030\032 \001(\t" + + "\022\023\n\013safe_search\030\024 \001(\010\022W\n\013user_labels\030\026 \003" + + "(\0132B.google.cloud.discoveryengine.v1beta" + + ".SearchRequest.UserLabelsEntry\032,\n\nImageQ" + + "uery\022\025\n\013image_bytes\030\001 \001(\tH\000B\007\n\005image\032U\n\r" + + "DataStoreSpec\022D\n\ndata_store\030\001 \001(\tB0\340A\002\372A" + + "*\n(discoveryengine.googleapis.com/DataSt" + + "ore\032\204\003\n\tFacetSpec\022]\n\tfacet_key\030\001 \001(\0132E.g" + "oogle.cloud.discoveryengine.v1beta.Searc" - + "hRequest.ContentSearchSpec.SnippetSpec\022f" - + "\n\014summary_spec\030\002 \001(\0132P.google.cloud.disc" - + "overyengine.v1beta.SearchRequest.Content" - + "SearchSpec.SummarySpec\022{\n\027extractive_con" - + "tent_spec\030\003 \001(\0132Z.google.cloud.discovery" + + "hRequest.FacetSpec.FacetKeyB\003\340A\002\022\r\n\005limi" + + "t\030\002 \001(\005\022\034\n\024excluded_filter_keys\030\003 \003(\t\022\037\n" + + "\027enable_dynamic_position\030\004 \001(\010\032\311\001\n\010Facet" + + "Key\022\020\n\003key\030\001 \001(\tB\003\340A\002\022@\n\tintervals\030\002 \003(\013" + + "2-.google.cloud.discoveryengine.v1beta.I" + + "nterval\022\031\n\021restricted_values\030\003 \003(\t\022\020\n\010pr" + + "efixes\030\004 \003(\t\022\020\n\010contains\030\005 \003(\t\022\030\n\020case_i" + + "nsensitive\030\006 \001(\010\022\020\n\010order_by\030\007 \001(\t\032\263\001\n\tB" + + "oostSpec\022n\n\025condition_boost_specs\030\001 \003(\0132" + + "O.google.cloud.discoveryengine.v1beta.Se" + + "archRequest.BoostSpec.ConditionBoostSpec" + + "\0326\n\022ConditionBoostSpec\022\021\n\tcondition\030\001 \001(" + + "\t\022\r\n\005boost\030\002 \001(\002\032\330\001\n\022QueryExpansionSpec\022" + + "b\n\tcondition\030\001 \001(\0162O.google.cloud.discov" + + "eryengine.v1beta.SearchRequest.QueryExpa" + + "nsionSpec.Condition\022\036\n\026pin_unexpanded_re" + + "sults\030\002 \001(\010\">\n\tCondition\022\031\n\025CONDITION_UN" + + "SPECIFIED\020\000\022\014\n\010DISABLED\020\001\022\010\n\004AUTO\020\002\032\255\001\n\023" + + "SpellCorrectionSpec\022Y\n\004mode\030\001 \001(\0162K.goog" + + "le.cloud.discoveryengine.v1beta.SearchRe" + + "quest.SpellCorrectionSpec.Mode\";\n\004Mode\022\024" + + "\n\020MODE_UNSPECIFIED\020\000\022\023\n\017SUGGESTION_ONLY\020" + + "\001\022\010\n\004AUTO\020\002\032\346\010\n\021ContentSearchSpec\022f\n\014sni" + + "ppet_spec\030\001 \001(\0132P.google.cloud.discovery" + "engine.v1beta.SearchRequest.ContentSearc" - + "hSpec.ExtractiveContentSpec\032`\n\013SnippetSp" - + "ec\022\035\n\021max_snippet_count\030\001 \001(\005B\002\030\001\022\032\n\016ref" - + "erence_only\030\002 \001(\010B\002\030\001\022\026\n\016return_snippet\030" - + "\003 \001(\010\032\331\003\n\013SummarySpec\022\034\n\024summary_result_" - + "count\030\001 \001(\005\022\031\n\021include_citations\030\002 \001(\010\022 " - + "\n\030ignore_adversarial_query\030\003 \001(\010\022(\n igno" - + "re_non_summary_seeking_query\030\004 \001(\010\022{\n\021mo" - + "del_prompt_spec\030\005 \001(\0132`.google.cloud.dis" + + "hSpec.SnippetSpec\022f\n\014summary_spec\030\002 \001(\0132" + + "P.google.cloud.discoveryengine.v1beta.Se" + + "archRequest.ContentSearchSpec.SummarySpe" + + "c\022{\n\027extractive_content_spec\030\003 \001(\0132Z.goo" + + "gle.cloud.discoveryengine.v1beta.SearchR" + + "equest.ContentSearchSpec.ExtractiveConte" + + "ntSpec\032`\n\013SnippetSpec\022\035\n\021max_snippet_cou" + + "nt\030\001 \001(\005B\002\030\001\022\032\n\016reference_only\030\002 \001(\010B\002\030\001" + + "\022\026\n\016return_snippet\030\003 \001(\010\032\331\003\n\013SummarySpec" + + "\022\034\n\024summary_result_count\030\001 \001(\005\022\031\n\021includ" + + "e_citations\030\002 \001(\010\022 \n\030ignore_adversarial_" + + "query\030\003 \001(\010\022(\n ignore_non_summary_seekin" + + "g_query\030\004 \001(\010\022{\n\021model_prompt_spec\030\005 \001(\013" + + "2`.google.cloud.discoveryengine.v1beta.S" + + "earchRequest.ContentSearchSpec.SummarySp" + + "ec.ModelPromptSpec\022\025\n\rlanguage_code\030\006 \001(" + + "\t\022n\n\nmodel_spec\030\007 \001(\0132Z.google.cloud.dis" + "coveryengine.v1beta.SearchRequest.Conten" - + "tSearchSpec.SummarySpec.ModelPromptSpec\022" - + "\025\n\rlanguage_code\030\006 \001(\t\022n\n\nmodel_spec\030\007 \001" - + "(\0132Z.google.cloud.discoveryengine.v1beta" - + ".SearchRequest.ContentSearchSpec.Summary" - + "Spec.ModelSpec\032#\n\017ModelPromptSpec\022\020\n\010pre" - + "amble\030\001 \001(\t\032\034\n\tModelSpec\022\017\n\007version\030\001 \001(" - + "\t\032\305\001\n\025ExtractiveContentSpec\022#\n\033max_extra" - + "ctive_answer_count\030\001 \001(\005\022$\n\034max_extracti" - + "ve_segment_count\030\002 \001(\005\022\'\n\037return_extract" - + "ive_segment_score\030\003 \001(\010\022\035\n\025num_previous_" - + "segments\030\004 \001(\005\022\031\n\021num_next_segments\030\005 \001(" - + "\005\032\263\001\n\rEmbeddingSpec\022k\n\021embedding_vectors" - + "\030\001 \003(\0132P.google.cloud.discoveryengine.v1" - + "beta.SearchRequest.EmbeddingSpec.Embeddi" - + "ngVector\0325\n\017EmbeddingVector\022\022\n\nfield_pat" - + "h\030\001 \001(\t\022\016\n\006vector\030\002 \003(\002\032E\n\013ParamsEntry\022\013" - + "\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.prot" - + "obuf.Value:\0028\001\0321\n\017UserLabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\326\025\n\016SearchResp" - + "onse\022Q\n\007results\030\001 \003(\0132@.google.cloud.dis" - + "coveryengine.v1beta.SearchResponse.Searc" - + "hResult\022I\n\006facets\030\002 \003(\01329.google.cloud.d" - + "iscoveryengine.v1beta.SearchResponse.Fac" - + "et\022d\n\024guided_search_result\030\010 \001(\0132F.googl" - + "e.cloud.discoveryengine.v1beta.SearchRes" - + "ponse.GuidedSearchResult\022\022\n\ntotal_size\030\003" - + " \001(\005\022\031\n\021attribution_token\030\004 \001(\t\022\024\n\014redir" - + "ect_uri\030\014 \001(\t\022\027\n\017next_page_token\030\005 \001(\t\022\027" - + "\n\017corrected_query\030\007 \001(\t\022L\n\007summary\030\t \001(\013" - + "2;.google.cloud.discoveryengine.v1beta.S" - + "earchResponse.Summary\022\030\n\020applied_control" - + "s\030\n \003(\t\022d\n\024query_expansion_info\030\016 \001(\0132F." - + "google.cloud.discoveryengine.v1beta.Sear" - + "chResponse.QueryExpansionInfo\032\251\002\n\014Search" - + "Result\022\n\n\002id\030\001 \001(\t\022?\n\010document\030\002 \001(\0132-.g" - + "oogle.cloud.discoveryengine.v1beta.Docum" - + "ent\022g\n\014model_scores\030\004 \003(\0132Q.google.cloud" - + ".discoveryengine.v1beta.SearchResponse.S" - + "earchResult.ModelScoresEntry\032c\n\020ModelSco" - + "resEntry\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.g" - + "oogle.cloud.discoveryengine.v1beta.Doubl" - + "eList:\0028\001\032\201\002\n\005Facet\022\013\n\003key\030\001 \001(\t\022T\n\006valu" - + "es\030\002 \003(\0132D.google.cloud.discoveryengine." - + "v1beta.SearchResponse.Facet.FacetValue\022\025" - + "\n\rdynamic_facet\030\003 \001(\010\032~\n\nFacetValue\022\017\n\005v" - + "alue\030\001 \001(\tH\000\022A\n\010interval\030\002 \001(\0132-.google." - + "cloud.discoveryengine.v1beta.IntervalH\000\022" - + "\r\n\005count\030\003 \001(\003B\r\n\013facet_value\032\363\001\n\022Guided" - + "SearchResult\022y\n\025refinement_attributes\030\001 " - + "\003(\0132Z.google.cloud.discoveryengine.v1bet" - + "a.SearchResponse.GuidedSearchResult.Refi" - + "nementAttribute\022\033\n\023follow_up_questions\030\002" - + " \003(\t\032E\n\023RefinementAttribute\022\025\n\rattribute" - + "_key\030\001 \001(\t\022\027\n\017attribute_value\030\002 \001(\t\032\211\n\n\007" - + "Summary\022\024\n\014summary_text\030\001 \001(\t\022q\n\027summary" - + "_skipped_reasons\030\002 \003(\0162P.google.cloud.di" - + "scoveryengine.v1beta.SearchResponse.Summ" - + "ary.SummarySkippedReason\022g\n\021safety_attri" - + "butes\030\003 \001(\0132L.google.cloud.discoveryengi" - + "ne.v1beta.SearchResponse.Summary.SafetyA" - + "ttributes\022n\n\025summary_with_metadata\030\004 \001(\013" - + "2O.google.cloud.discoveryengine.v1beta.S" - + "earchResponse.Summary.SummaryWithMetadat" - + "a\0326\n\020SafetyAttributes\022\022\n\ncategories\030\001 \003(" - + "\t\022\016\n\006scores\030\002 \003(\002\032k\n\020CitationMetadata\022W\n" - + "\tcitations\030\001 \003(\0132D.google.cloud.discover" - + "yengine.v1beta.SearchResponse.Summary.Ci" - + "tation\032\217\001\n\010Citation\022\023\n\013start_index\030\001 \001(\003" - + "\022\021\n\tend_index\030\002 \001(\003\022[\n\007sources\030\003 \003(\0132J.g" - + "oogle.cloud.discoveryengine.v1beta.Searc" - + "hResponse.Summary.CitationSource\032)\n\016Cita" - + "tionSource\022\027\n\017reference_index\030\004 \001(\003\032j\n\tR" - + "eference\022\r\n\005title\030\001 \001(\t\022A\n\010document\030\002 \001(" - + "\tB/\340A\002\372A)\n\'discoveryengine.googleapis.co" - + "m/Document\022\013\n\003uri\030\003 \001(\t\032\352\001\n\023SummaryWithM" - + "etadata\022\017\n\007summary\030\001 \001(\t\022g\n\021citation_met" - + "adata\030\002 \001(\0132L.google.cloud.discoveryengi" - + "ne.v1beta.SearchResponse.Summary.Citatio" - + "nMetadata\022Y\n\nreferences\030\003 \003(\0132E.google.c" - + "loud.discoveryengine.v1beta.SearchRespon" - + "se.Summary.Reference\"\340\001\n\024SummarySkippedR" - + "eason\022&\n\"SUMMARY_SKIPPED_REASON_UNSPECIF" - + "IED\020\000\022\035\n\031ADVERSARIAL_QUERY_IGNORED\020\001\022%\n!" - + "NON_SUMMARY_SEEKING_QUERY_IGNORED\020\002\022\037\n\033O" - + "UT_OF_DOMAIN_QUERY_IGNORED\020\003\022\036\n\032POTENTIA" - + "L_POLICY_VIOLATION\020\004\022\031\n\025LLM_ADDON_NOT_EN" - + "ABLED\020\005\032I\n\022QueryExpansionInfo\022\026\n\016expande" - + "d_query\030\001 \001(\010\022\033\n\023pinned_result_count\030\002 \001" - + "(\0032\211\004\n\rSearchService\022\243\003\n\006Search\0222.google" - + ".cloud.discoveryengine.v1beta.SearchRequ" - + "est\0323.google.cloud.discoveryengine.v1bet" - + "a.SearchResponse\"\257\002\202\323\344\223\002\250\002\"T/v1beta/{ser" - + "ving_config=projects/*/locations/*/dataS" - + "tores/*/servingConfigs/*}:search:\001*Zg\"b/" - + "v1beta/{serving_config=projects/*/locati" - + "ons/*/collections/*/dataStores/*/serving" - + "Configs/*}:search:\001*Zd\"_/v1beta/{serving" - + "_config=projects/*/locations/*/collectio" - + "ns/*/engines/*/servingConfigs/*}:search:" - + "\001*\032R\312A\036discoveryengine.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-pl" - + "atformB\231\002\n\'com.google.cloud.discoveryeng" - + "ine.v1betaB\022SearchServiceProtoP\001ZQcloud." - + "google.com/go/discoveryengine/apiv1beta/" - + "discoveryenginepb;discoveryenginepb\242\002\017DI" - + "SCOVERYENGINE\252\002#Google.Cloud.DiscoveryEn" - + "gine.V1Beta\312\002#Google\\Cloud\\DiscoveryEngi" - + "ne\\V1beta\352\002&Google::Cloud::DiscoveryEngi" - + "ne::V1betab\006proto3" + + "tSearchSpec.SummarySpec.ModelSpec\032#\n\017Mod" + + "elPromptSpec\022\020\n\010preamble\030\001 \001(\t\032\034\n\tModelS" + + "pec\022\017\n\007version\030\001 \001(\t\032\305\001\n\025ExtractiveConte" + + "ntSpec\022#\n\033max_extractive_answer_count\030\001 " + + "\001(\005\022$\n\034max_extractive_segment_count\030\002 \001(" + + "\005\022\'\n\037return_extractive_segment_score\030\003 \001" + + "(\010\022\035\n\025num_previous_segments\030\004 \001(\005\022\031\n\021num" + + "_next_segments\030\005 \001(\005\032\263\001\n\rEmbeddingSpec\022k" + + "\n\021embedding_vectors\030\001 \003(\0132P.google.cloud" + + ".discoveryengine.v1beta.SearchRequest.Em" + + "beddingSpec.EmbeddingVector\0325\n\017Embedding" + + "Vector\022\022\n\nfield_path\030\001 \001(\t\022\016\n\006vector\030\002 \003" + + "(\002\032E\n\013ParamsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030" + + "\002 \001(\0132\026.google.protobuf.Value:\0028\001\0321\n\017Use" + + "rLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"\326\025\n\016SearchResponse\022Q\n\007results\030\001 \003(\013" + + "2@.google.cloud.discoveryengine.v1beta.S" + + "earchResponse.SearchResult\022I\n\006facets\030\002 \003" + + "(\01329.google.cloud.discoveryengine.v1beta" + + ".SearchResponse.Facet\022d\n\024guided_search_r" + + "esult\030\010 \001(\0132F.google.cloud.discoveryengi" + + "ne.v1beta.SearchResponse.GuidedSearchRes" + + "ult\022\022\n\ntotal_size\030\003 \001(\005\022\031\n\021attribution_t" + + "oken\030\004 \001(\t\022\024\n\014redirect_uri\030\014 \001(\t\022\027\n\017next" + + "_page_token\030\005 \001(\t\022\027\n\017corrected_query\030\007 \001" + + "(\t\022L\n\007summary\030\t \001(\0132;.google.cloud.disco" + + "veryengine.v1beta.SearchResponse.Summary" + + "\022\030\n\020applied_controls\030\n \003(\t\022d\n\024query_expa" + + "nsion_info\030\016 \001(\0132F.google.cloud.discover" + + "yengine.v1beta.SearchResponse.QueryExpan" + + "sionInfo\032\251\002\n\014SearchResult\022\n\n\002id\030\001 \001(\t\022?\n" + + "\010document\030\002 \001(\0132-.google.cloud.discovery" + + "engine.v1beta.Document\022g\n\014model_scores\030\004" + + " \003(\0132Q.google.cloud.discoveryengine.v1be" + + "ta.SearchResponse.SearchResult.ModelScor" + + "esEntry\032c\n\020ModelScoresEntry\022\013\n\003key\030\001 \001(\t" + + "\022>\n\005value\030\002 \001(\0132/.google.cloud.discovery" + + "engine.v1beta.DoubleList:\0028\001\032\201\002\n\005Facet\022\013" + + "\n\003key\030\001 \001(\t\022T\n\006values\030\002 \003(\0132D.google.clo" + + "ud.discoveryengine.v1beta.SearchResponse" + + ".Facet.FacetValue\022\025\n\rdynamic_facet\030\003 \001(\010" + + "\032~\n\nFacetValue\022\017\n\005value\030\001 \001(\tH\000\022A\n\010inter" + + "val\030\002 \001(\0132-.google.cloud.discoveryengine" + + ".v1beta.IntervalH\000\022\r\n\005count\030\003 \001(\003B\r\n\013fac" + + "et_value\032\363\001\n\022GuidedSearchResult\022y\n\025refin" + + "ement_attributes\030\001 \003(\0132Z.google.cloud.di" + + "scoveryengine.v1beta.SearchResponse.Guid" + + "edSearchResult.RefinementAttribute\022\033\n\023fo" + + "llow_up_questions\030\002 \003(\t\032E\n\023RefinementAtt" + + "ribute\022\025\n\rattribute_key\030\001 \001(\t\022\027\n\017attribu" + + "te_value\030\002 \001(\t\032\211\n\n\007Summary\022\024\n\014summary_te" + + "xt\030\001 \001(\t\022q\n\027summary_skipped_reasons\030\002 \003(" + + "\0162P.google.cloud.discoveryengine.v1beta." + + "SearchResponse.Summary.SummarySkippedRea" + + "son\022g\n\021safety_attributes\030\003 \001(\0132L.google." + + "cloud.discoveryengine.v1beta.SearchRespo" + + "nse.Summary.SafetyAttributes\022n\n\025summary_" + + "with_metadata\030\004 \001(\0132O.google.cloud.disco" + + "veryengine.v1beta.SearchResponse.Summary" + + ".SummaryWithMetadata\0326\n\020SafetyAttributes" + + "\022\022\n\ncategories\030\001 \003(\t\022\016\n\006scores\030\002 \003(\002\032k\n\020" + + "CitationMetadata\022W\n\tcitations\030\001 \003(\0132D.go" + + "ogle.cloud.discoveryengine.v1beta.Search" + + "Response.Summary.Citation\032\217\001\n\010Citation\022\023" + + "\n\013start_index\030\001 \001(\003\022\021\n\tend_index\030\002 \001(\003\022[" + + "\n\007sources\030\003 \003(\0132J.google.cloud.discovery" + + "engine.v1beta.SearchResponse.Summary.Cit" + + "ationSource\032)\n\016CitationSource\022\027\n\017referen" + + "ce_index\030\004 \001(\003\032j\n\tReference\022\r\n\005title\030\001 \001" + + "(\t\022A\n\010document\030\002 \001(\tB/\340A\002\372A)\n\'discoverye" + + "ngine.googleapis.com/Document\022\013\n\003uri\030\003 \001" + + "(\t\032\352\001\n\023SummaryWithMetadata\022\017\n\007summary\030\001 " + + "\001(\t\022g\n\021citation_metadata\030\002 \001(\0132L.google." + + "cloud.discoveryengine.v1beta.SearchRespo" + + "nse.Summary.CitationMetadata\022Y\n\nreferenc" + + "es\030\003 \003(\0132E.google.cloud.discoveryengine." + + "v1beta.SearchResponse.Summary.Reference\"" + + "\340\001\n\024SummarySkippedReason\022&\n\"SUMMARY_SKIP" + + "PED_REASON_UNSPECIFIED\020\000\022\035\n\031ADVERSARIAL_" + + "QUERY_IGNORED\020\001\022%\n!NON_SUMMARY_SEEKING_Q" + + "UERY_IGNORED\020\002\022\037\n\033OUT_OF_DOMAIN_QUERY_IG" + + "NORED\020\003\022\036\n\032POTENTIAL_POLICY_VIOLATION\020\004\022" + + "\031\n\025LLM_ADDON_NOT_ENABLED\020\005\032I\n\022QueryExpan" + + "sionInfo\022\026\n\016expanded_query\030\001 \001(\010\022\033\n\023pinn" + + "ed_result_count\030\002 \001(\0032\211\004\n\rSearchService\022" + + "\243\003\n\006Search\0222.google.cloud.discoveryengin" + + "e.v1beta.SearchRequest\0323.google.cloud.di" + + "scoveryengine.v1beta.SearchResponse\"\257\002\202\323" + + "\344\223\002\250\002\"T/v1beta/{serving_config=projects/" + + "*/locations/*/dataStores/*/servingConfig" + + "s/*}:search:\001*Zg\"b/v1beta/{serving_confi" + + "g=projects/*/locations/*/collections/*/d" + + "ataStores/*/servingConfigs/*}:search:\001*Z" + + "d\"_/v1beta/{serving_config=projects/*/lo" + + "cations/*/collections/*/engines/*/servin" + + "gConfigs/*}:search:\001*\032R\312A\036discoveryengin" + + "e.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\231\002\n\'com.google" + + ".cloud.discoveryengine.v1betaB\022SearchSer" + + "viceProtoP\001ZQcloud.google.com/go/discove" + + "ryengine/apiv1beta/discoveryenginepb;dis" + + "coveryenginepb\242\002\017DISCOVERYENGINE\252\002#Googl" + + "e.Cloud.DiscoveryEngine.V1Beta\312\002#Google\\" + + "Cloud\\DiscoveryEngine\\V1beta\352\002&Google::C" + + "loud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -386,6 +394,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageSize", "PageToken", "Offset", + "DataStoreSpecs", "Filter", "CanonicalFilter", "OrderBy", @@ -412,10 +421,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ImageBytes", "Image", }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DataStoreSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor .getNestedTypes() .get(1); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DataStoreSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DataStoreSpec_descriptor, + new java.lang.String[] { + "DataStore", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor + .getNestedTypes() + .get(2); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor, @@ -441,7 +460,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor .getNestedTypes() - .get(2); + .get(3); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_BoostSpec_descriptor, @@ -461,7 +480,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor .getNestedTypes() - .get(3); + .get(4); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_QueryExpansionSpec_descriptor, @@ -471,7 +490,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor .getNestedTypes() - .get(4); + .get(5); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SpellCorrectionSpec_descriptor, @@ -481,7 +500,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor .getNestedTypes() - .get(5); + .get(6); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor, @@ -551,7 +570,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor .getNestedTypes() - .get(6); + .get(7); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor, @@ -571,7 +590,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor .getNestedTypes() - .get(7); + .get(8); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor, @@ -581,7 +600,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor .getNestedTypes() - .get(8); + .get(9); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_descriptor, diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceProto.java new file mode 100644 index 000000000000..608fef047b32 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceProto.java @@ -0,0 +1,172 @@ +/* + * 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/discoveryengine/v1beta/search_tuning_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1beta; + +public final class SearchTuningServiceProto { + private SearchTuningServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelRequest_GcsTrainingInput_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelRequest_GcsTrainingInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n?google/cloud/discoveryengine/v1beta/se" + + "arch_tuning_service.proto\022#google.cloud." + + "discoveryengine.v1beta\032\034google/api/annot" + + "ations.proto\032\027google/api/client.proto\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\0327google/cloud/discover" + + "yengine/v1beta/import_config.proto\032#goog" + + "le/longrunning/operations.proto\032\037google/" + + "protobuf/timestamp.proto\032\027google/rpc/sta" + + "tus.proto\"\270\003\n\027TrainCustomModelRequest\022k\n" + + "\022gcs_training_input\030\002 \001(\0132M.google.cloud" + + ".discoveryengine.v1beta.TrainCustomModel" + + "Request.GcsTrainingInputH\000\022D\n\ndata_store" + + "\030\001 \001(\tB0\340A\002\372A*\n(discoveryengine.googleap" + + "is.com/DataStore\022\022\n\nmodel_type\030\003 \001(\t\022L\n\014" + + "error_config\030\004 \001(\01326.google.cloud.discov" + + "eryengine.v1beta.ImportErrorConfig\032v\n\020Gc" + + "sTrainingInput\022\030\n\020corpus_data_path\030\001 \001(\t" + + "\022\027\n\017query_data_path\030\002 \001(\t\022\027\n\017train_data_" + + "path\030\003 \001(\t\022\026\n\016test_data_path\030\004 \001(\tB\020\n\016tr" + + "aining_input\"\251\001\n\030TrainCustomModelRespons" + + "e\022)\n\rerror_samples\030\001 \003(\0132\022.google.rpc.St" + + "atus\022L\n\014error_config\030\002 \001(\01326.google.clou" + + "d.discoveryengine.v1beta.ImportErrorConf" + + "ig\022\024\n\014model_status\030\003 \001(\t\"|\n\030TrainCustomM" + + "odelMetadata\022/\n\013create_time\030\001 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022/\n\013update_time\030\002 \001" + + "(\0132\032.google.protobuf.Timestamp2\277\003\n\023Searc" + + "hTuningService\022\323\002\n\020TrainCustomModel\022<.go" + + "ogle.cloud.discoveryengine.v1beta.TrainC" + + "ustomModelRequest\032\035.google.longrunning.O" + + "peration\"\341\001\312A|\n * Immutable. Fully qualified name - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` + * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}` * * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2395,7 +2395,7 @@ public java.lang.String getName() { * *
                                    * Immutable. Fully qualified name
                                -   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
                                +   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                    * 
                                * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2741,8 +2741,9 @@ public com.google.cloud.discoveryengine.v1beta.EmbeddingConfig getEmbeddingConfi * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if [SearchRequest.ranking_expression][] is - * specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if + * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] + * is specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -2786,8 +2787,9 @@ public java.lang.String getRankingExpression() { * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if [SearchRequest.ranking_expression][] is - * specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if + * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] + * is specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -5063,7 +5065,7 @@ public Builder clearGenericConfig() { * *
                                      * Immutable. Fully qualified name
                                -     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                      * 
                                * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -5086,7 +5088,7 @@ public java.lang.String getName() { * *
                                      * Immutable. Fully qualified name
                                -     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                      * 
                                * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -5109,7 +5111,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                                      * Immutable. Fully qualified name
                                -     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                      * 
                                * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -5131,7 +5133,7 @@ public Builder setName(java.lang.String value) { * *
                                      * Immutable. Fully qualified name
                                -     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                      * 
                                * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -5149,7 +5151,7 @@ public Builder clearName() { * *
                                      * Immutable. Fully qualified name
                                -     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
                                +     * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                      * 
                                * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -5971,8 +5973,9 @@ public Builder clearEmbeddingConfig() { * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if [SearchRequest.ranking_expression][] is - * specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if + * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] + * is specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -6015,8 +6018,9 @@ public java.lang.String getRankingExpression() { * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if [SearchRequest.ranking_expression][] is - * specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if + * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] + * is specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -6059,8 +6063,9 @@ public com.google.protobuf.ByteString getRankingExpressionBytes() { * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if [SearchRequest.ranking_expression][] is - * specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if + * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] + * is specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -6102,8 +6107,9 @@ public Builder setRankingExpression(java.lang.String value) { * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if [SearchRequest.ranking_expression][] is - * specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if + * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] + * is specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -6141,8 +6147,9 @@ public Builder clearRankingExpression() { * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if [SearchRequest.ranking_expression][] is - * specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if + * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] + * is specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigOrBuilder.java index 8af6bdfaf112..a130c983d225 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigOrBuilder.java @@ -104,7 +104,7 @@ public interface ServingConfigOrBuilder * *
                                    * Immutable. Fully qualified name
                                -   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
                                +   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                    * 
                                * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -117,7 +117,7 @@ public interface ServingConfigOrBuilder * *
                                    * Immutable. Fully qualified name
                                -   * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}`
                                +   * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`
                                    * 
                                * * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; @@ -342,8 +342,9 @@ public interface ServingConfigOrBuilder * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if [SearchRequest.ranking_expression][] is - * specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if + * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] + * is specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -376,8 +377,9 @@ public interface ServingConfigOrBuilder * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if [SearchRequest.ranking_expression][] is - * specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if + * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] + * is specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceProto.java index ed4797664b8b..cfa8a5d2f573 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceProto.java @@ -67,56 +67,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\001(\0132\032.google.protobuf.FieldMask\"]\n\027GetSe" + "rvingConfigRequest\022B\n\004name\030\001 \001(\tB4\340A\002\372A." + "\n,discoveryengine.googleapis.com/Serving" - + "Config\"\216\001\n\031ListServingConfigsRequest\022@\n\006" - + "parent\030\001 \001(\tB0\340A\002\372A*\n(discoveryengine.go" - + "ogleapis.com/DataStore\022\026\n\tpage_size\030\002 \001(" - + "\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\202\001\n\032List" - + "ServingConfigsResponse\022K\n\017serving_config" - + "s\030\001 \003(\01322.google.cloud.discoveryengine.v" - + "1beta.ServingConfig\022\027\n\017next_page_token\030\002" - + " \001(\t2\202\013\n\024ServingConfigService\022\372\003\n\023Update" - + "ServingConfig\022?.google.cloud.discoveryen" - + "gine.v1beta.UpdateServingConfigRequest\0322" - + ".google.cloud.discoveryengine.v1beta.Ser" - + "vingConfig\"\355\002\332A\032serving_config,update_ma" - + "sk\202\323\344\223\002\311\0022R/v1beta/{serving_config.name=" - + "projects/*/locations/*/dataStores/*/serv" - + "ingConfigs/*}:\016serving_configZr2`/v1beta" + + "Config\"\222\001\n\031ListServingConfigsRequest\022D\n\006" + + "parent\030\001 \001(\tB4\340A\002\372A.\022,discoveryengine.go" + + "ogleapis.com/ServingConfig\022\026\n\tpage_size\030" + + "\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\202\001\n\032" + + "ListServingConfigsResponse\022K\n\017serving_co" + + "nfigs\030\001 \003(\01322.google.cloud.discoveryengi" + + "ne.v1beta.ServingConfig\022\027\n\017next_page_tok" + + "en\030\002 \001(\t2\202\013\n\024ServingConfigService\022\372\003\n\023Up" + + "dateServingConfig\022?.google.cloud.discove" + + "ryengine.v1beta.UpdateServingConfigReque" + + "st\0322.google.cloud.discoveryengine.v1beta" + + ".ServingConfig\"\355\002\332A\032serving_config,updat" + + "e_mask\202\323\344\223\002\311\0022R/v1beta/{serving_config.n" + + "ame=projects/*/locations/*/dataStores/*/" + + "servingConfigs/*}:\016serving_configZr2`/v1" + + "beta/{serving_config.name=projects/*/loc" + + "ations/*/collections/*/dataStores/*/serv" + + "ingConfigs/*}:\016serving_configZo2]/v1beta" + "/{serving_config.name=projects/*/locatio" - + "ns/*/collections/*/dataStores/*/servingC" - + "onfigs/*}:\016serving_configZo2]/v1beta/{se" - + "rving_config.name=projects/*/locations/*" - + "/collections/*/engines/*/servingConfigs/" - + "*}:\016serving_config\022\201\003\n\020GetServingConfig\022" - + "<.google.cloud.discoveryengine.v1beta.Ge" - + "tServingConfigRequest\0322.google.cloud.dis" - + "coveryengine.v1beta.ServingConfig\"\372\001\332A\004n" - + "ame\202\323\344\223\002\354\001\022C/v1beta/{name=projects/*/loc" - + "ations/*/dataStores/*/servingConfigs/*}Z" - + "S\022Q/v1beta/{name=projects/*/locations/*/" - + "collections/*/dataStores/*/servingConfig" - + "s/*}ZP\022N/v1beta/{name=projects/*/locatio" + "ns/*/collections/*/engines/*/servingConf" - + "igs/*}\022\224\003\n\022ListServingConfigs\022>.google.c" - + "loud.discoveryengine.v1beta.ListServingC" - + "onfigsRequest\032?.google.cloud.discoveryen" - + "gine.v1beta.ListServingConfigsResponse\"\374" - + "\001\332A\006parent\202\323\344\223\002\354\001\022C/v1beta/{parent=proje" - + "cts/*/locations/*/dataStores/*}/servingC" - + "onfigsZS\022Q/v1beta/{parent=projects/*/loc" - + "ations/*/collections/*/dataStores/*}/ser" - + "vingConfigsZP\022N/v1beta/{parent=projects/" - + "*/locations/*/collections/*/engines/*}/s" - + "ervingConfigs\032R\312A\036discoveryengine.google" - + "apis.com\322A.https://www.googleapis.com/au" - + "th/cloud-platformB\240\002\n\'com.google.cloud.d" - + "iscoveryengine.v1betaB\031ServingConfigServ" - + "iceProtoP\001ZQcloud.google.com/go/discover" - + "yengine/apiv1beta/discoveryenginepb;disc" - + "overyenginepb\242\002\017DISCOVERYENGINE\252\002#Google" - + ".Cloud.DiscoveryEngine.V1Beta\312\002#Google\\C" - + "loud\\DiscoveryEngine\\V1beta\352\002&Google::Cl" - + "oud::DiscoveryEngine::V1betab\006proto3" + + "igs/*}:\016serving_config\022\201\003\n\020GetServingCon" + + "fig\022<.google.cloud.discoveryengine.v1bet" + + "a.GetServingConfigRequest\0322.google.cloud" + + ".discoveryengine.v1beta.ServingConfig\"\372\001" + + "\332A\004name\202\323\344\223\002\354\001\022C/v1beta/{name=projects/*" + + "/locations/*/dataStores/*/servingConfigs" + + "/*}ZS\022Q/v1beta/{name=projects/*/location" + + "s/*/collections/*/dataStores/*/servingCo" + + "nfigs/*}ZP\022N/v1beta/{name=projects/*/loc" + + "ations/*/collections/*/engines/*/serving" + + "Configs/*}\022\224\003\n\022ListServingConfigs\022>.goog" + + "le.cloud.discoveryengine.v1beta.ListServ" + + "ingConfigsRequest\032?.google.cloud.discove" + + "ryengine.v1beta.ListServingConfigsRespon" + + "se\"\374\001\332A\006parent\202\323\344\223\002\354\001\022C/v1beta/{parent=p" + + "rojects/*/locations/*/dataStores/*}/serv" + + "ingConfigsZS\022Q/v1beta/{parent=projects/*" + + "/locations/*/collections/*/dataStores/*}" + + "/servingConfigsZP\022N/v1beta/{parent=proje" + + "cts/*/locations/*/collections/*/engines/" + + "*}/servingConfigs\032R\312A\036discoveryengine.go" + + "ogleapis.com\322A.https://www.googleapis.co" + + "m/auth/cloud-platformB\240\002\n\'com.google.clo" + + "ud.discoveryengine.v1betaB\031ServingConfig" + + "ServiceProtoP\001ZQcloud.google.com/go/disc" + + "overyengine/apiv1beta/discoveryenginepb;" + + "discoveryenginepb\242\002\017DISCOVERYENGINE\252\002#Go" + + "ogle.Cloud.DiscoveryEngine.V1Beta\312\002#Goog" + + "le\\Cloud\\DiscoveryEngine\\V1beta\352\002&Google" + + "::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelMetadata.java new file mode 100644 index 000000000000..3d9b87670429 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelMetadata.java @@ -0,0 +1,1003 @@ +/* + * 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/discoveryengine/v1beta/search_tuning_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
                                + * Metadata related to the progress of the TrainCustomModel operation. This is
                                + * returned by the google.longrunning.Operation.metadata field.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata} + */ +public final class TrainCustomModelMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata) + TrainCustomModelMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainCustomModelMetadata.newBuilder() to construct. + private TrainCustomModelMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrainCustomModelMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrainCustomModelMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata.class, + com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + 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.discoveryengine.v1beta.TrainCustomModelMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata other = + (com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata 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.discoveryengine.v1beta.TrainCustomModelMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata 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.discoveryengine.v1beta.TrainCustomModelMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata 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.discoveryengine.v1beta.TrainCustomModelMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata 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.discoveryengine.v1beta.TrainCustomModelMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata 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.discoveryengine.v1beta.TrainCustomModelMetadata 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 related to the progress of the TrainCustomModel operation. This is
                                +   * returned by the google.longrunning.Operation.metadata field.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata) + com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata.class, + com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata build() { + com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata buildPartial() { + com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata result = + new com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1beta.TrainCustomModelMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + 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(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
                                +     * Operation create time.
                                +     * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
                                +     * Operation last update time. If the operation is done, this is also the
                                +     * finish time.
                                +     * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @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.discoveryengine.v1beta.TrainCustomModelMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata) + private static final com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainCustomModelMetadata 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.discoveryengine.v1beta.TrainCustomModelMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelMetadataOrBuilder.java new file mode 100644 index 000000000000..3924f7881481 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelMetadataOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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/discoveryengine/v1beta/search_tuning_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1beta; + +public interface TrainCustomModelMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
                                +   * Operation create time.
                                +   * 
                                + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
                                +   * Operation last update time. If the operation is done, this is also the
                                +   * finish time.
                                +   * 
                                + * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelRequest.java new file mode 100644 index 000000000000..f2439c3fb2dd --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelRequest.java @@ -0,0 +1,3082 @@ +/* + * 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/discoveryengine/v1beta/search_tuning_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
                                + * Request message for
                                + * [SearchTuningService.TrainCustomModel][google.cloud.discoveryengine.v1beta.SearchTuningService.TrainCustomModel]
                                + * method.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.TrainCustomModelRequest} + */ +public final class TrainCustomModelRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.TrainCustomModelRequest) + TrainCustomModelRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainCustomModelRequest.newBuilder() to construct. + private TrainCustomModelRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrainCustomModelRequest() { + dataStore_ = ""; + modelType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrainCustomModelRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.class, + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.Builder.class); + } + + public interface GcsTrainingInputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +     * The Cloud Storage corpus data which could be associated in train data.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +     * A newline delimited jsonl/ndjson file.
                                +     *
                                +     * For search-tuning model, each line should have the _id, title
                                +     * and text. Example:
                                +     * `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}`
                                +     * 
                                + * + * string corpus_data_path = 1; + * + * @return The corpusDataPath. + */ + java.lang.String getCorpusDataPath(); + /** + * + * + *
                                +     * The Cloud Storage corpus data which could be associated in train data.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +     * A newline delimited jsonl/ndjson file.
                                +     *
                                +     * For search-tuning model, each line should have the _id, title
                                +     * and text. Example:
                                +     * `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}`
                                +     * 
                                + * + * string corpus_data_path = 1; + * + * @return The bytes for corpusDataPath. + */ + com.google.protobuf.ByteString getCorpusDataPathBytes(); + + /** + * + * + *
                                +     * The gcs query data which could be associated in train data.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +     * A newline delimited jsonl/ndjson file.
                                +     *
                                +     * For search-tuning model, each line should have the _id
                                +     * and text. Example: {"_id": "query1",  "text": "example query"}
                                +     * 
                                + * + * string query_data_path = 2; + * + * @return The queryDataPath. + */ + java.lang.String getQueryDataPath(); + /** + * + * + *
                                +     * The gcs query data which could be associated in train data.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +     * A newline delimited jsonl/ndjson file.
                                +     *
                                +     * For search-tuning model, each line should have the _id
                                +     * and text. Example: {"_id": "query1",  "text": "example query"}
                                +     * 
                                + * + * string query_data_path = 2; + * + * @return The bytes for queryDataPath. + */ + com.google.protobuf.ByteString getQueryDataPathBytes(); + + /** + * + * + *
                                +     * Cloud Storage training data path whose format should be
                                +     * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +     * format. Each line should have the doc_id and query_id and score (number).
                                +     *
                                +     * For search-tuning model, it should have the query-id corpus-id
                                +     * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +     * The larger the number is, the more relevant the pair is. Example:
                                +     *
                                +     * * `query-id\tcorpus-id\tscore`
                                +     * * `query1\tdoc1\t1`
                                +     * 
                                + * + * string train_data_path = 3; + * + * @return The trainDataPath. + */ + java.lang.String getTrainDataPath(); + /** + * + * + *
                                +     * Cloud Storage training data path whose format should be
                                +     * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +     * format. Each line should have the doc_id and query_id and score (number).
                                +     *
                                +     * For search-tuning model, it should have the query-id corpus-id
                                +     * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +     * The larger the number is, the more relevant the pair is. Example:
                                +     *
                                +     * * `query-id\tcorpus-id\tscore`
                                +     * * `query1\tdoc1\t1`
                                +     * 
                                + * + * string train_data_path = 3; + * + * @return The bytes for trainDataPath. + */ + com.google.protobuf.ByteString getTrainDataPathBytes(); + + /** + * + * + *
                                +     * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +     * a random 80/20 train/test split will be performed on train_data_path.
                                +     * 
                                + * + * string test_data_path = 4; + * + * @return The testDataPath. + */ + java.lang.String getTestDataPath(); + /** + * + * + *
                                +     * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +     * a random 80/20 train/test split will be performed on train_data_path.
                                +     * 
                                + * + * string test_data_path = 4; + * + * @return The bytes for testDataPath. + */ + com.google.protobuf.ByteString getTestDataPathBytes(); + } + /** + * + * + *
                                +   * Cloud Storage training data input.
                                +   * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput} + */ + public static final class GcsTrainingInput extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) + GcsTrainingInputOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcsTrainingInput.newBuilder() to construct. + private GcsTrainingInput(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcsTrainingInput() { + corpusDataPath_ = ""; + queryDataPath_ = ""; + trainDataPath_ = ""; + testDataPath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsTrainingInput(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelRequest_GcsTrainingInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelRequest_GcsTrainingInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .class, + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .Builder.class); + } + + public static final int CORPUS_DATA_PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object corpusDataPath_ = ""; + /** + * + * + *
                                +     * The Cloud Storage corpus data which could be associated in train data.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +     * A newline delimited jsonl/ndjson file.
                                +     *
                                +     * For search-tuning model, each line should have the _id, title
                                +     * and text. Example:
                                +     * `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}`
                                +     * 
                                + * + * string corpus_data_path = 1; + * + * @return The corpusDataPath. + */ + @java.lang.Override + public java.lang.String getCorpusDataPath() { + java.lang.Object ref = corpusDataPath_; + 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(); + corpusDataPath_ = s; + return s; + } + } + /** + * + * + *
                                +     * The Cloud Storage corpus data which could be associated in train data.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +     * A newline delimited jsonl/ndjson file.
                                +     *
                                +     * For search-tuning model, each line should have the _id, title
                                +     * and text. Example:
                                +     * `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}`
                                +     * 
                                + * + * string corpus_data_path = 1; + * + * @return The bytes for corpusDataPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCorpusDataPathBytes() { + java.lang.Object ref = corpusDataPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + corpusDataPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_DATA_PATH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object queryDataPath_ = ""; + /** + * + * + *
                                +     * The gcs query data which could be associated in train data.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +     * A newline delimited jsonl/ndjson file.
                                +     *
                                +     * For search-tuning model, each line should have the _id
                                +     * and text. Example: {"_id": "query1",  "text": "example query"}
                                +     * 
                                + * + * string query_data_path = 2; + * + * @return The queryDataPath. + */ + @java.lang.Override + public java.lang.String getQueryDataPath() { + java.lang.Object ref = queryDataPath_; + 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(); + queryDataPath_ = s; + return s; + } + } + /** + * + * + *
                                +     * The gcs query data which could be associated in train data.
                                +     * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +     * A newline delimited jsonl/ndjson file.
                                +     *
                                +     * For search-tuning model, each line should have the _id
                                +     * and text. Example: {"_id": "query1",  "text": "example query"}
                                +     * 
                                + * + * string query_data_path = 2; + * + * @return The bytes for queryDataPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryDataPathBytes() { + java.lang.Object ref = queryDataPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryDataPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRAIN_DATA_PATH_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object trainDataPath_ = ""; + /** + * + * + *
                                +     * Cloud Storage training data path whose format should be
                                +     * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +     * format. Each line should have the doc_id and query_id and score (number).
                                +     *
                                +     * For search-tuning model, it should have the query-id corpus-id
                                +     * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +     * The larger the number is, the more relevant the pair is. Example:
                                +     *
                                +     * * `query-id\tcorpus-id\tscore`
                                +     * * `query1\tdoc1\t1`
                                +     * 
                                + * + * string train_data_path = 3; + * + * @return The trainDataPath. + */ + @java.lang.Override + public java.lang.String getTrainDataPath() { + java.lang.Object ref = trainDataPath_; + 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(); + trainDataPath_ = s; + return s; + } + } + /** + * + * + *
                                +     * Cloud Storage training data path whose format should be
                                +     * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +     * format. Each line should have the doc_id and query_id and score (number).
                                +     *
                                +     * For search-tuning model, it should have the query-id corpus-id
                                +     * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +     * The larger the number is, the more relevant the pair is. Example:
                                +     *
                                +     * * `query-id\tcorpus-id\tscore`
                                +     * * `query1\tdoc1\t1`
                                +     * 
                                + * + * string train_data_path = 3; + * + * @return The bytes for trainDataPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTrainDataPathBytes() { + java.lang.Object ref = trainDataPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trainDataPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEST_DATA_PATH_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object testDataPath_ = ""; + /** + * + * + *
                                +     * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +     * a random 80/20 train/test split will be performed on train_data_path.
                                +     * 
                                + * + * string test_data_path = 4; + * + * @return The testDataPath. + */ + @java.lang.Override + public java.lang.String getTestDataPath() { + java.lang.Object ref = testDataPath_; + 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(); + testDataPath_ = s; + return s; + } + } + /** + * + * + *
                                +     * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +     * a random 80/20 train/test split will be performed on train_data_path.
                                +     * 
                                + * + * string test_data_path = 4; + * + * @return The bytes for testDataPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTestDataPathBytes() { + java.lang.Object ref = testDataPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + testDataPath_ = 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(corpusDataPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, corpusDataPath_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryDataPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, queryDataPath_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trainDataPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, trainDataPath_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(testDataPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, testDataPath_); + } + 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(corpusDataPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, corpusDataPath_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryDataPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, queryDataPath_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(trainDataPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, trainDataPath_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(testDataPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, testDataPath_); + } + 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.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput other = + (com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) obj; + + if (!getCorpusDataPath().equals(other.getCorpusDataPath())) return false; + if (!getQueryDataPath().equals(other.getQueryDataPath())) return false; + if (!getTrainDataPath().equals(other.getTrainDataPath())) return false; + if (!getTestDataPath().equals(other.getTestDataPath())) 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) + CORPUS_DATA_PATH_FIELD_NUMBER; + hash = (53 * hash) + getCorpusDataPath().hashCode(); + hash = (37 * hash) + QUERY_DATA_PATH_FIELD_NUMBER; + hash = (53 * hash) + getQueryDataPath().hashCode(); + hash = (37 * hash) + TRAIN_DATA_PATH_FIELD_NUMBER; + hash = (53 * hash) + getTrainDataPath().hashCode(); + hash = (37 * hash) + TEST_DATA_PATH_FIELD_NUMBER; + hash = (53 * hash) + getTestDataPath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + 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.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + 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.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + 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.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + 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.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + 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.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + 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; + } + /** + * + * + *
                                +     * Cloud Storage training data input.
                                +     * 
                                + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelRequest_GcsTrainingInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelRequest_GcsTrainingInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .class, + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + corpusDataPath_ = ""; + queryDataPath_ = ""; + trainDataPath_ = ""; + testDataPath_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelRequest_GcsTrainingInput_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + build() { + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + buildPartial() { + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput result = + new com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.corpusDataPath_ = corpusDataPath_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryDataPath_ = queryDataPath_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.trainDataPath_ = trainDataPath_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.testDataPath_ = testDataPath_; + } + } + + @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.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput other) { + if (other + == com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .getDefaultInstance()) return this; + if (!other.getCorpusDataPath().isEmpty()) { + corpusDataPath_ = other.corpusDataPath_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQueryDataPath().isEmpty()) { + queryDataPath_ = other.queryDataPath_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTrainDataPath().isEmpty()) { + trainDataPath_ = other.trainDataPath_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTestDataPath().isEmpty()) { + testDataPath_ = other.testDataPath_; + bitField0_ |= 0x00000008; + 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: + { + corpusDataPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + queryDataPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + trainDataPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + testDataPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 corpusDataPath_ = ""; + /** + * + * + *
                                +       * The Cloud Storage corpus data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +       * A newline delimited jsonl/ndjson file.
                                +       *
                                +       * For search-tuning model, each line should have the _id, title
                                +       * and text. Example:
                                +       * `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}`
                                +       * 
                                + * + * string corpus_data_path = 1; + * + * @return The corpusDataPath. + */ + public java.lang.String getCorpusDataPath() { + java.lang.Object ref = corpusDataPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + corpusDataPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +       * The Cloud Storage corpus data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +       * A newline delimited jsonl/ndjson file.
                                +       *
                                +       * For search-tuning model, each line should have the _id, title
                                +       * and text. Example:
                                +       * `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}`
                                +       * 
                                + * + * string corpus_data_path = 1; + * + * @return The bytes for corpusDataPath. + */ + public com.google.protobuf.ByteString getCorpusDataPathBytes() { + java.lang.Object ref = corpusDataPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + corpusDataPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +       * The Cloud Storage corpus data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +       * A newline delimited jsonl/ndjson file.
                                +       *
                                +       * For search-tuning model, each line should have the _id, title
                                +       * and text. Example:
                                +       * `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}`
                                +       * 
                                + * + * string corpus_data_path = 1; + * + * @param value The corpusDataPath to set. + * @return This builder for chaining. + */ + public Builder setCorpusDataPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + corpusDataPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                +       * The Cloud Storage corpus data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +       * A newline delimited jsonl/ndjson file.
                                +       *
                                +       * For search-tuning model, each line should have the _id, title
                                +       * and text. Example:
                                +       * `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}`
                                +       * 
                                + * + * string corpus_data_path = 1; + * + * @return This builder for chaining. + */ + public Builder clearCorpusDataPath() { + corpusDataPath_ = getDefaultInstance().getCorpusDataPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                +       * The Cloud Storage corpus data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +       * A newline delimited jsonl/ndjson file.
                                +       *
                                +       * For search-tuning model, each line should have the _id, title
                                +       * and text. Example:
                                +       * `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}`
                                +       * 
                                + * + * string corpus_data_path = 1; + * + * @param value The bytes for corpusDataPath to set. + * @return This builder for chaining. + */ + public Builder setCorpusDataPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + corpusDataPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object queryDataPath_ = ""; + /** + * + * + *
                                +       * The gcs query data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +       * A newline delimited jsonl/ndjson file.
                                +       *
                                +       * For search-tuning model, each line should have the _id
                                +       * and text. Example: {"_id": "query1",  "text": "example query"}
                                +       * 
                                + * + * string query_data_path = 2; + * + * @return The queryDataPath. + */ + public java.lang.String getQueryDataPath() { + java.lang.Object ref = queryDataPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryDataPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +       * The gcs query data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +       * A newline delimited jsonl/ndjson file.
                                +       *
                                +       * For search-tuning model, each line should have the _id
                                +       * and text. Example: {"_id": "query1",  "text": "example query"}
                                +       * 
                                + * + * string query_data_path = 2; + * + * @return The bytes for queryDataPath. + */ + public com.google.protobuf.ByteString getQueryDataPathBytes() { + java.lang.Object ref = queryDataPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryDataPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +       * The gcs query data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +       * A newline delimited jsonl/ndjson file.
                                +       *
                                +       * For search-tuning model, each line should have the _id
                                +       * and text. Example: {"_id": "query1",  "text": "example query"}
                                +       * 
                                + * + * string query_data_path = 2; + * + * @param value The queryDataPath to set. + * @return This builder for chaining. + */ + public Builder setQueryDataPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryDataPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +       * The gcs query data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +       * A newline delimited jsonl/ndjson file.
                                +       *
                                +       * For search-tuning model, each line should have the _id
                                +       * and text. Example: {"_id": "query1",  "text": "example query"}
                                +       * 
                                + * + * string query_data_path = 2; + * + * @return This builder for chaining. + */ + public Builder clearQueryDataPath() { + queryDataPath_ = getDefaultInstance().getQueryDataPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                +       * The gcs query data which could be associated in train data.
                                +       * The data path format is `gs://<bucket_to_data>/<jsonl_file_name>`.
                                +       * A newline delimited jsonl/ndjson file.
                                +       *
                                +       * For search-tuning model, each line should have the _id
                                +       * and text. Example: {"_id": "query1",  "text": "example query"}
                                +       * 
                                + * + * string query_data_path = 2; + * + * @param value The bytes for queryDataPath to set. + * @return This builder for chaining. + */ + public Builder setQueryDataPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryDataPath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object trainDataPath_ = ""; + /** + * + * + *
                                +       * Cloud Storage training data path whose format should be
                                +       * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +       * format. Each line should have the doc_id and query_id and score (number).
                                +       *
                                +       * For search-tuning model, it should have the query-id corpus-id
                                +       * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +       * The larger the number is, the more relevant the pair is. Example:
                                +       *
                                +       * * `query-id\tcorpus-id\tscore`
                                +       * * `query1\tdoc1\t1`
                                +       * 
                                + * + * string train_data_path = 3; + * + * @return The trainDataPath. + */ + public java.lang.String getTrainDataPath() { + java.lang.Object ref = trainDataPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trainDataPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +       * Cloud Storage training data path whose format should be
                                +       * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +       * format. Each line should have the doc_id and query_id and score (number).
                                +       *
                                +       * For search-tuning model, it should have the query-id corpus-id
                                +       * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +       * The larger the number is, the more relevant the pair is. Example:
                                +       *
                                +       * * `query-id\tcorpus-id\tscore`
                                +       * * `query1\tdoc1\t1`
                                +       * 
                                + * + * string train_data_path = 3; + * + * @return The bytes for trainDataPath. + */ + public com.google.protobuf.ByteString getTrainDataPathBytes() { + java.lang.Object ref = trainDataPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trainDataPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +       * Cloud Storage training data path whose format should be
                                +       * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +       * format. Each line should have the doc_id and query_id and score (number).
                                +       *
                                +       * For search-tuning model, it should have the query-id corpus-id
                                +       * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +       * The larger the number is, the more relevant the pair is. Example:
                                +       *
                                +       * * `query-id\tcorpus-id\tscore`
                                +       * * `query1\tdoc1\t1`
                                +       * 
                                + * + * string train_data_path = 3; + * + * @param value The trainDataPath to set. + * @return This builder for chaining. + */ + public Builder setTrainDataPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + trainDataPath_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +       * Cloud Storage training data path whose format should be
                                +       * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +       * format. Each line should have the doc_id and query_id and score (number).
                                +       *
                                +       * For search-tuning model, it should have the query-id corpus-id
                                +       * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +       * The larger the number is, the more relevant the pair is. Example:
                                +       *
                                +       * * `query-id\tcorpus-id\tscore`
                                +       * * `query1\tdoc1\t1`
                                +       * 
                                + * + * string train_data_path = 3; + * + * @return This builder for chaining. + */ + public Builder clearTrainDataPath() { + trainDataPath_ = getDefaultInstance().getTrainDataPath(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                +       * Cloud Storage training data path whose format should be
                                +       * `gs://<bucket_to_data>/<tsv_file_name>`. The file should be in tsv
                                +       * format. Each line should have the doc_id and query_id and score (number).
                                +       *
                                +       * For search-tuning model, it should have the query-id corpus-id
                                +       * score as tsv file header. The score should be a number in `[0, inf+)`.
                                +       * The larger the number is, the more relevant the pair is. Example:
                                +       *
                                +       * * `query-id\tcorpus-id\tscore`
                                +       * * `query1\tdoc1\t1`
                                +       * 
                                + * + * string train_data_path = 3; + * + * @param value The bytes for trainDataPath to set. + * @return This builder for chaining. + */ + public Builder setTrainDataPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trainDataPath_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object testDataPath_ = ""; + /** + * + * + *
                                +       * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +       * a random 80/20 train/test split will be performed on train_data_path.
                                +       * 
                                + * + * string test_data_path = 4; + * + * @return The testDataPath. + */ + public java.lang.String getTestDataPath() { + java.lang.Object ref = testDataPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + testDataPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +       * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +       * a random 80/20 train/test split will be performed on train_data_path.
                                +       * 
                                + * + * string test_data_path = 4; + * + * @return The bytes for testDataPath. + */ + public com.google.protobuf.ByteString getTestDataPathBytes() { + java.lang.Object ref = testDataPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + testDataPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +       * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +       * a random 80/20 train/test split will be performed on train_data_path.
                                +       * 
                                + * + * string test_data_path = 4; + * + * @param value The testDataPath to set. + * @return This builder for chaining. + */ + public Builder setTestDataPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + testDataPath_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                +       * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +       * a random 80/20 train/test split will be performed on train_data_path.
                                +       * 
                                + * + * string test_data_path = 4; + * + * @return This builder for chaining. + */ + public Builder clearTestDataPath() { + testDataPath_ = getDefaultInstance().getTestDataPath(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                +       * Cloud Storage test data. Same format as train_data_path. If not provided,
                                +       * a random 80/20 train/test split will be performed on train_data_path.
                                +       * 
                                + * + * string test_data_path = 4; + * + * @param value The bytes for testDataPath to set. + * @return This builder for chaining. + */ + public Builder setTestDataPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + testDataPath_ = value; + bitField0_ |= 0x00000008; + 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.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) + private static final com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest + .GcsTrainingInput + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput(); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsTrainingInput 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.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int trainingInputCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object trainingInput_; + + public enum TrainingInputCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_TRAINING_INPUT(2), + TRAININGINPUT_NOT_SET(0); + private final int value; + + private TrainingInputCase(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 TrainingInputCase valueOf(int value) { + return forNumber(value); + } + + public static TrainingInputCase forNumber(int value) { + switch (value) { + case 2: + return GCS_TRAINING_INPUT; + case 0: + return TRAININGINPUT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TrainingInputCase getTrainingInputCase() { + return TrainingInputCase.forNumber(trainingInputCase_); + } + + public static final int GCS_TRAINING_INPUT_FIELD_NUMBER = 2; + /** + * + * + *
                                +   * Cloud Storage training input.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + * + * @return Whether the gcsTrainingInput field is set. + */ + @java.lang.Override + public boolean hasGcsTrainingInput() { + return trainingInputCase_ == 2; + } + /** + * + * + *
                                +   * Cloud Storage training input.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + * + * @return The gcsTrainingInput. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + getGcsTrainingInput() { + if (trainingInputCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) + trainingInput_; + } + return com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .getDefaultInstance(); + } + /** + * + * + *
                                +   * Cloud Storage training input.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInputOrBuilder + getGcsTrainingInputOrBuilder() { + if (trainingInputCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) + trainingInput_; + } + return com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .getDefaultInstance(); + } + + public static final int DATA_STORE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataStore_ = ""; + /** + * + * + *
                                +   * Required. The resource name of the Data Store, such as
                                +   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
                                +   * This field is used to identify the data store where to train the models.
                                +   * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataStore. + */ + @java.lang.Override + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + 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(); + dataStore_ = s; + return s; + } + } + /** + * + * + *
                                +   * Required. The resource name of the Data Store, such as
                                +   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
                                +   * This field is used to identify the data store where to train the models.
                                +   * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataStore. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelType_ = ""; + /** + * + * + *
                                +   * Model to be trained. Supported values are:
                                +   *
                                +   *  * **search-tuning**: Fine tuning the search system based on data provided.
                                +   * 
                                + * + * string model_type = 3; + * + * @return The modelType. + */ + @java.lang.Override + public java.lang.String getModelType() { + java.lang.Object ref = modelType_; + 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(); + modelType_ = s; + return s; + } + } + /** + * + * + *
                                +   * Model to be trained. Supported values are:
                                +   *
                                +   *  * **search-tuning**: Fine tuning the search system based on data provided.
                                +   * 
                                + * + * string model_type = 3; + * + * @return The bytes for modelType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelTypeBytes() { + java.lang.Object ref = modelType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; + /** + * + * + *
                                +   * The desired location of errors incurred during the data ingestion and
                                +   * training.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + * + * @return Whether the errorConfig field is set. + */ + @java.lang.Override + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * The desired location of errors incurred during the data ingestion and
                                +   * training.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + * + * @return The errorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + /** + * + * + *
                                +   * The desired location of errors incurred during the data ingestion and
                                +   * training.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + + 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(dataStore_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataStore_); + } + if (trainingInputCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) + trainingInput_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modelType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getErrorConfig()); + } + 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(dataStore_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataStore_); + } + if (trainingInputCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) + trainingInput_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, modelType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getErrorConfig()); + } + 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.discoveryengine.v1beta.TrainCustomModelRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest other = + (com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest) obj; + + if (!getDataStore().equals(other.getDataStore())) return false; + if (!getModelType().equals(other.getModelType())) return false; + if (hasErrorConfig() != other.hasErrorConfig()) return false; + if (hasErrorConfig()) { + if (!getErrorConfig().equals(other.getErrorConfig())) return false; + } + if (!getTrainingInputCase().equals(other.getTrainingInputCase())) return false; + switch (trainingInputCase_) { + case 2: + if (!getGcsTrainingInput().equals(other.getGcsTrainingInput())) 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) + DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getDataStore().hashCode(); + hash = (37 * hash) + MODEL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getModelType().hashCode(); + if (hasErrorConfig()) { + hash = (37 * hash) + ERROR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getErrorConfig().hashCode(); + } + switch (trainingInputCase_) { + case 2: + hash = (37 * hash) + GCS_TRAINING_INPUT_FIELD_NUMBER; + hash = (53 * hash) + getGcsTrainingInput().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest 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.discoveryengine.v1beta.TrainCustomModelRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest 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.discoveryengine.v1beta.TrainCustomModelRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest 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.discoveryengine.v1beta.TrainCustomModelRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest 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.discoveryengine.v1beta.TrainCustomModelRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest 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.discoveryengine.v1beta.TrainCustomModelRequest 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
                                +   * [SearchTuningService.TrainCustomModel][google.cloud.discoveryengine.v1beta.SearchTuningService.TrainCustomModel]
                                +   * method.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.TrainCustomModelRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.TrainCustomModelRequest) + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.class, + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getErrorConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (gcsTrainingInputBuilder_ != null) { + gcsTrainingInputBuilder_.clear(); + } + dataStore_ = ""; + modelType_ = ""; + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + trainingInputCase_ = 0; + trainingInput_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest build() { + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest result = + new com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataStore_ = dataStore_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelType_ = modelType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.errorConfig_ = + errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest result) { + result.trainingInputCase_ = trainingInputCase_; + result.trainingInput_ = this.trainingInput_; + if (trainingInputCase_ == 2 && gcsTrainingInputBuilder_ != null) { + result.trainingInput_ = gcsTrainingInputBuilder_.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.discoveryengine.v1beta.TrainCustomModelRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.getDefaultInstance()) + return this; + if (!other.getDataStore().isEmpty()) { + dataStore_ = other.dataStore_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getModelType().isEmpty()) { + modelType_ = other.modelType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasErrorConfig()) { + mergeErrorConfig(other.getErrorConfig()); + } + switch (other.getTrainingInputCase()) { + case GCS_TRAINING_INPUT: + { + mergeGcsTrainingInput(other.getGcsTrainingInput()); + break; + } + case TRAININGINPUT_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: + { + dataStore_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage( + getGcsTrainingInputFieldBuilder().getBuilder(), extensionRegistry); + trainingInputCase_ = 2; + break; + } // case 18 + case 26: + { + modelType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 trainingInputCase_ = 0; + private java.lang.Object trainingInput_; + + public TrainingInputCase getTrainingInputCase() { + return TrainingInputCase.forNumber(trainingInputCase_); + } + + public Builder clearTrainingInput() { + trainingInputCase_ = 0; + trainingInput_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput, + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .Builder, + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest + .GcsTrainingInputOrBuilder> + gcsTrainingInputBuilder_; + /** + * + * + *
                                +     * Cloud Storage training input.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + * + * @return Whether the gcsTrainingInput field is set. + */ + @java.lang.Override + public boolean hasGcsTrainingInput() { + return trainingInputCase_ == 2; + } + /** + * + * + *
                                +     * Cloud Storage training input.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + * + * @return The gcsTrainingInput. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + getGcsTrainingInput() { + if (gcsTrainingInputBuilder_ == null) { + if (trainingInputCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) + trainingInput_; + } + return com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .getDefaultInstance(); + } else { + if (trainingInputCase_ == 2) { + return gcsTrainingInputBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .getDefaultInstance(); + } + } + /** + * + * + *
                                +     * Cloud Storage training input.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + */ + public Builder setGcsTrainingInput( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput value) { + if (gcsTrainingInputBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trainingInput_ = value; + onChanged(); + } else { + gcsTrainingInputBuilder_.setMessage(value); + } + trainingInputCase_ = 2; + return this; + } + /** + * + * + *
                                +     * Cloud Storage training input.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + */ + public Builder setGcsTrainingInput( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput.Builder + builderForValue) { + if (gcsTrainingInputBuilder_ == null) { + trainingInput_ = builderForValue.build(); + onChanged(); + } else { + gcsTrainingInputBuilder_.setMessage(builderForValue.build()); + } + trainingInputCase_ = 2; + return this; + } + /** + * + * + *
                                +     * Cloud Storage training input.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + */ + public Builder mergeGcsTrainingInput( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput value) { + if (gcsTrainingInputBuilder_ == null) { + if (trainingInputCase_ == 2 + && trainingInput_ + != com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .getDefaultInstance()) { + trainingInput_ = + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .newBuilder( + (com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest + .GcsTrainingInput) + trainingInput_) + .mergeFrom(value) + .buildPartial(); + } else { + trainingInput_ = value; + } + onChanged(); + } else { + if (trainingInputCase_ == 2) { + gcsTrainingInputBuilder_.mergeFrom(value); + } else { + gcsTrainingInputBuilder_.setMessage(value); + } + } + trainingInputCase_ = 2; + return this; + } + /** + * + * + *
                                +     * Cloud Storage training input.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + */ + public Builder clearGcsTrainingInput() { + if (gcsTrainingInputBuilder_ == null) { + if (trainingInputCase_ == 2) { + trainingInputCase_ = 0; + trainingInput_ = null; + onChanged(); + } + } else { + if (trainingInputCase_ == 2) { + trainingInputCase_ = 0; + trainingInput_ = null; + } + gcsTrainingInputBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +     * Cloud Storage training input.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput.Builder + getGcsTrainingInputBuilder() { + return getGcsTrainingInputFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Cloud Storage training input.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInputOrBuilder + getGcsTrainingInputOrBuilder() { + if ((trainingInputCase_ == 2) && (gcsTrainingInputBuilder_ != null)) { + return gcsTrainingInputBuilder_.getMessageOrBuilder(); + } else { + if (trainingInputCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) + trainingInput_; + } + return com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .getDefaultInstance(); + } + } + /** + * + * + *
                                +     * Cloud Storage training input.
                                +     * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput, + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .Builder, + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest + .GcsTrainingInputOrBuilder> + getGcsTrainingInputFieldBuilder() { + if (gcsTrainingInputBuilder_ == null) { + if (!(trainingInputCase_ == 2)) { + trainingInput_ = + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .getDefaultInstance(); + } + gcsTrainingInputBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput, + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + .Builder, + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest + .GcsTrainingInputOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput) + trainingInput_, + getParentForChildren(), + isClean()); + trainingInput_ = null; + } + trainingInputCase_ = 2; + onChanged(); + return gcsTrainingInputBuilder_; + } + + private java.lang.Object dataStore_ = ""; + /** + * + * + *
                                +     * Required. The resource name of the Data Store, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
                                +     * This field is used to identify the data store where to train the models.
                                +     * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataStore. + */ + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Required. The resource name of the Data Store, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
                                +     * This field is used to identify the data store where to train the models.
                                +     * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataStore. + */ + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Required. The resource name of the Data Store, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
                                +     * This field is used to identify the data store where to train the models.
                                +     * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataStore_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The resource name of the Data Store, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
                                +     * This field is used to identify the data store where to train the models.
                                +     * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataStore() { + dataStore_ = getDefaultInstance().getDataStore(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Required. The resource name of the Data Store, such as
                                +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
                                +     * This field is used to identify the data store where to train the models.
                                +     * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataStore_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object modelType_ = ""; + /** + * + * + *
                                +     * Model to be trained. Supported values are:
                                +     *
                                +     *  * **search-tuning**: Fine tuning the search system based on data provided.
                                +     * 
                                + * + * string model_type = 3; + * + * @return The modelType. + */ + public java.lang.String getModelType() { + java.lang.Object ref = modelType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * Model to be trained. Supported values are:
                                +     *
                                +     *  * **search-tuning**: Fine tuning the search system based on data provided.
                                +     * 
                                + * + * string model_type = 3; + * + * @return The bytes for modelType. + */ + public com.google.protobuf.ByteString getModelTypeBytes() { + java.lang.Object ref = modelType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * Model to be trained. Supported values are:
                                +     *
                                +     *  * **search-tuning**: Fine tuning the search system based on data provided.
                                +     * 
                                + * + * string model_type = 3; + * + * @param value The modelType to set. + * @return This builder for chaining. + */ + public Builder setModelType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Model to be trained. Supported values are:
                                +     *
                                +     *  * **search-tuning**: Fine tuning the search system based on data provided.
                                +     * 
                                + * + * string model_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearModelType() { + modelType_ = getDefaultInstance().getModelType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                +     * Model to be trained. Supported values are:
                                +     *
                                +     *  * **search-tuning**: Fine tuning the search system based on data provided.
                                +     * 
                                + * + * string model_type = 3; + * + * @param value The bytes for modelType to set. + * @return This builder for chaining. + */ + public Builder setModelTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> + errorConfigBuilder_; + /** + * + * + *
                                +     * The desired location of errors incurred during the data ingestion and
                                +     * training.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + * + * @return Whether the errorConfig field is set. + */ + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                +     * The desired location of errors incurred during the data ingestion and
                                +     * training.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + * + * @return The errorConfig. + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { + if (errorConfigBuilder_ == null) { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } else { + return errorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * The desired location of errors incurred during the data ingestion and
                                +     * training.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + */ + public Builder setErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorConfig_ = value; + } else { + errorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                +     * The desired location of errors incurred during the data ingestion and
                                +     * training.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder builderForValue) { + if (errorConfigBuilder_ == null) { + errorConfig_ = builderForValue.build(); + } else { + errorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                +     * The desired location of errors incurred during the data ingestion and
                                +     * training.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + */ + public Builder mergeErrorConfig( + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && errorConfig_ != null + && errorConfig_ + != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) { + getErrorConfigBuilder().mergeFrom(value); + } else { + errorConfig_ = value; + } + } else { + errorConfigBuilder_.mergeFrom(value); + } + if (errorConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * The desired location of errors incurred during the data ingestion and
                                +     * training.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + */ + public Builder clearErrorConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * The desired location of errors incurred during the data ingestion and
                                +     * training.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder + getErrorConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getErrorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * The desired location of errors incurred during the data ingestion and
                                +     * training.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + if (errorConfigBuilder_ != null) { + return errorConfigBuilder_.getMessageOrBuilder(); + } else { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + } + /** + * + * + *
                                +     * The desired location of errors incurred during the data ingestion and
                                +     * training.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> + getErrorConfigFieldBuilder() { + if (errorConfigBuilder_ == null) { + errorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>( + getErrorConfig(), getParentForChildren(), isClean()); + errorConfig_ = null; + } + return errorConfigBuilder_; + } + + @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.discoveryengine.v1beta.TrainCustomModelRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.TrainCustomModelRequest) + private static final com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainCustomModelRequest 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.discoveryengine.v1beta.TrainCustomModelRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelRequestOrBuilder.java new file mode 100644 index 000000000000..90b000afe1ae --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelRequestOrBuilder.java @@ -0,0 +1,172 @@ +/* + * 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/discoveryengine/v1beta/search_tuning_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1beta; + +public interface TrainCustomModelRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.TrainCustomModelRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * Cloud Storage training input.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + * + * @return Whether the gcsTrainingInput field is set. + */ + boolean hasGcsTrainingInput(); + /** + * + * + *
                                +   * Cloud Storage training input.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + * + * @return The gcsTrainingInput. + */ + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput + getGcsTrainingInput(); + /** + * + * + *
                                +   * Cloud Storage training input.
                                +   * 
                                + * + * + * .google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.GcsTrainingInputOrBuilder + getGcsTrainingInputOrBuilder(); + + /** + * + * + *
                                +   * Required. The resource name of the Data Store, such as
                                +   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
                                +   * This field is used to identify the data store where to train the models.
                                +   * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataStore. + */ + java.lang.String getDataStore(); + /** + * + * + *
                                +   * Required. The resource name of the Data Store, such as
                                +   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`.
                                +   * This field is used to identify the data store where to train the models.
                                +   * 
                                + * + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataStore. + */ + com.google.protobuf.ByteString getDataStoreBytes(); + + /** + * + * + *
                                +   * Model to be trained. Supported values are:
                                +   *
                                +   *  * **search-tuning**: Fine tuning the search system based on data provided.
                                +   * 
                                + * + * string model_type = 3; + * + * @return The modelType. + */ + java.lang.String getModelType(); + /** + * + * + *
                                +   * Model to be trained. Supported values are:
                                +   *
                                +   *  * **search-tuning**: Fine tuning the search system based on data provided.
                                +   * 
                                + * + * string model_type = 3; + * + * @return The bytes for modelType. + */ + com.google.protobuf.ByteString getModelTypeBytes(); + + /** + * + * + *
                                +   * The desired location of errors incurred during the data ingestion and
                                +   * training.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + * + * @return Whether the errorConfig field is set. + */ + boolean hasErrorConfig(); + /** + * + * + *
                                +   * The desired location of errors incurred during the data ingestion and
                                +   * training.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + * + * @return The errorConfig. + */ + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig(); + /** + * + * + *
                                +   * The desired location of errors incurred during the data ingestion and
                                +   * training.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 4; + */ + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest.TrainingInputCase + getTrainingInputCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelResponse.java new file mode 100644 index 000000000000..841075081517 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelResponse.java @@ -0,0 +1,1439 @@ +/* + * 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/discoveryengine/v1beta/search_tuning_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
                                + * Response of the
                                + * [TrainCustomModelRequest][google.cloud.discoveryengine.v1beta.TrainCustomModelRequest].
                                + * This message is returned by the google.longrunning.Operations.response field.
                                + * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.TrainCustomModelResponse} + */ +public final class TrainCustomModelResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.TrainCustomModelResponse) + TrainCustomModelResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use TrainCustomModelResponse.newBuilder() to construct. + private TrainCustomModelResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TrainCustomModelResponse() { + errorSamples_ = java.util.Collections.emptyList(); + modelStatus_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TrainCustomModelResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse.class, + com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse.Builder.class); + } + + private int bitField0_; + public static final int ERROR_SAMPLES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List errorSamples_; + /** + * + * + *
                                +   * A sample of errors encountered while processing the data.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List getErrorSamplesList() { + return errorSamples_; + } + /** + * + * + *
                                +   * A sample of errors encountered while processing the data.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List getErrorSamplesOrBuilderList() { + return errorSamples_; + } + /** + * + * + *
                                +   * A sample of errors encountered while processing the data.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public int getErrorSamplesCount() { + return errorSamples_.size(); + } + /** + * + * + *
                                +   * A sample of errors encountered while processing the data.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.Status getErrorSamples(int index) { + return errorSamples_.get(index); + } + /** + * + * + *
                                +   * A sample of errors encountered while processing the data.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + return errorSamples_.get(index); + } + + public static final int ERROR_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; + /** + * + * + *
                                +   * Echoes the destination for the complete errors in the request if set.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return Whether the errorConfig field is set. + */ + @java.lang.Override + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                +   * Echoes the destination for the complete errors in the request if set.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return The errorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + /** + * + * + *
                                +   * Echoes the destination for the complete errors in the request if set.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + + public static final int MODEL_STATUS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelStatus_ = ""; + /** + * + * + *
                                +   * The trained model status. Possible values are:
                                +   *
                                +   *  * **bad-data**: The training data quality is bad.
                                +   *  * **no-improvement**: Tuning didn't improve performance. Won't deploy.
                                +   *  * **in-progress**: Model training is in progress.
                                +   *  * **ready**: The model is ready for serving.
                                +   * 
                                + * + * string model_status = 3; + * + * @return The modelStatus. + */ + @java.lang.Override + public java.lang.String getModelStatus() { + java.lang.Object ref = modelStatus_; + 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(); + modelStatus_ = s; + return s; + } + } + /** + * + * + *
                                +   * The trained model status. Possible values are:
                                +   *
                                +   *  * **bad-data**: The training data quality is bad.
                                +   *  * **no-improvement**: Tuning didn't improve performance. Won't deploy.
                                +   *  * **in-progress**: Model training is in progress.
                                +   *  * **ready**: The model is ready for serving.
                                +   * 
                                + * + * string model_status = 3; + * + * @return The bytes for modelStatus. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelStatusBytes() { + java.lang.Object ref = modelStatus_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelStatus_ = 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 { + for (int i = 0; i < errorSamples_.size(); i++) { + output.writeMessage(1, errorSamples_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getErrorConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelStatus_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, modelStatus_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < errorSamples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errorSamples_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getErrorConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modelStatus_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, modelStatus_); + } + 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.discoveryengine.v1beta.TrainCustomModelResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse other = + (com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse) obj; + + if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (hasErrorConfig() != other.hasErrorConfig()) return false; + if (hasErrorConfig()) { + if (!getErrorConfig().equals(other.getErrorConfig())) return false; + } + if (!getModelStatus().equals(other.getModelStatus())) 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 (getErrorSamplesCount() > 0) { + hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getErrorSamplesList().hashCode(); + } + if (hasErrorConfig()) { + hash = (37 * hash) + ERROR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getErrorConfig().hashCode(); + } + hash = (37 * hash) + MODEL_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getModelStatus().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse 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.discoveryengine.v1beta.TrainCustomModelResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse 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.discoveryengine.v1beta.TrainCustomModelResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse 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.discoveryengine.v1beta.TrainCustomModelResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse 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.discoveryengine.v1beta.TrainCustomModelResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse 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.discoveryengine.v1beta.TrainCustomModelResponse 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 of the
                                +   * [TrainCustomModelRequest][google.cloud.discoveryengine.v1beta.TrainCustomModelRequest].
                                +   * This message is returned by the google.longrunning.Operations.response field.
                                +   * 
                                + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.TrainCustomModelResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.TrainCustomModelResponse) + com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse.class, + com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getErrorSamplesFieldBuilder(); + getErrorConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + } else { + errorSamples_ = null; + errorSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + modelStatus_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchTuningServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_TrainCustomModelResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse build() { + com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse result = + new com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse result) { + if (errorSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.errorSamples_ = errorSamples_; + } else { + result.errorSamples_ = errorSamplesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorConfig_ = + errorConfigBuilder_ == null ? errorConfig_ : errorConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelStatus_ = modelStatus_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.discoveryengine.v1beta.TrainCustomModelResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse.getDefaultInstance()) + return this; + if (errorSamplesBuilder_ == null) { + if (!other.errorSamples_.isEmpty()) { + if (errorSamples_.isEmpty()) { + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureErrorSamplesIsMutable(); + errorSamples_.addAll(other.errorSamples_); + } + onChanged(); + } + } else { + if (!other.errorSamples_.isEmpty()) { + if (errorSamplesBuilder_.isEmpty()) { + errorSamplesBuilder_.dispose(); + errorSamplesBuilder_ = null; + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + errorSamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorSamplesFieldBuilder() + : null; + } else { + errorSamplesBuilder_.addAllMessages(other.errorSamples_); + } + } + } + if (other.hasErrorConfig()) { + mergeErrorConfig(other.getErrorConfig()); + } + if (!other.getModelStatus().isEmpty()) { + modelStatus_ = other.modelStatus_; + bitField0_ |= 0x00000004; + 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: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(m); + } else { + errorSamplesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage(getErrorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + modelStatus_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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 bitField0_; + + private java.util.List errorSamples_ = java.util.Collections.emptyList(); + + private void ensureErrorSamplesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + errorSamples_ = new java.util.ArrayList(errorSamples_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorSamplesBuilder_; + + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesList() { + if (errorSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(errorSamples_); + } else { + return errorSamplesBuilder_.getMessageList(); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public int getErrorSamplesCount() { + if (errorSamplesBuilder_ == null) { + return errorSamples_.size(); + } else { + return errorSamplesBuilder_.getCount(); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status getErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessage(index); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, value); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addAllErrorSamples(java.lang.Iterable values) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); + onChanged(); + } else { + errorSamplesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder clearErrorSamples() { + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + errorSamplesBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder removeErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.remove(index); + onChanged(); + } else { + errorSamplesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder().getBuilder(index); + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesOrBuilderList() { + if (errorSamplesBuilder_ != null) { + return errorSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errorSamples_); + } + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder() { + return getErrorSamplesFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { + return getErrorSamplesFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
                                +     * A sample of errors encountered while processing the data.
                                +     * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesBuilderList() { + return getErrorSamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getErrorSamplesFieldBuilder() { + if (errorSamplesBuilder_ == null) { + errorSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errorSamples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errorSamples_ = null; + } + return errorSamplesBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.ImportErrorConfig errorConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> + errorConfigBuilder_; + /** + * + * + *
                                +     * Echoes the destination for the complete errors in the request if set.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return Whether the errorConfig field is set. + */ + public boolean hasErrorConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                +     * Echoes the destination for the complete errors in the request if set.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return The errorConfig. + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig() { + if (errorConfigBuilder_ == null) { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } else { + return errorConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                +     * Echoes the destination for the complete errors in the request if set.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public Builder setErrorConfig(com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorConfig_ = value; + } else { + errorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Echoes the destination for the complete errors in the request if set.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public Builder setErrorConfig( + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder builderForValue) { + if (errorConfigBuilder_ == null) { + errorConfig_ = builderForValue.build(); + } else { + errorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                +     * Echoes the destination for the complete errors in the request if set.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public Builder mergeErrorConfig( + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig value) { + if (errorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && errorConfig_ != null + && errorConfig_ + != com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance()) { + getErrorConfigBuilder().mergeFrom(value); + } else { + errorConfig_ = value; + } + } else { + errorConfigBuilder_.mergeFrom(value); + } + if (errorConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                                +     * Echoes the destination for the complete errors in the request if set.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public Builder clearErrorConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + errorConfig_ = null; + if (errorConfigBuilder_ != null) { + errorConfigBuilder_.dispose(); + errorConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                +     * Echoes the destination for the complete errors in the request if set.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder + getErrorConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getErrorConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                +     * Echoes the destination for the complete errors in the request if set.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + public com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder + getErrorConfigOrBuilder() { + if (errorConfigBuilder_ != null) { + return errorConfigBuilder_.getMessageOrBuilder(); + } else { + return errorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.getDefaultInstance() + : errorConfig_; + } + } + /** + * + * + *
                                +     * Echoes the destination for the complete errors in the request if set.
                                +     * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder> + getErrorConfigFieldBuilder() { + if (errorConfigBuilder_ == null) { + errorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder>( + getErrorConfig(), getParentForChildren(), isClean()); + errorConfig_ = null; + } + return errorConfigBuilder_; + } + + private java.lang.Object modelStatus_ = ""; + /** + * + * + *
                                +     * The trained model status. Possible values are:
                                +     *
                                +     *  * **bad-data**: The training data quality is bad.
                                +     *  * **no-improvement**: Tuning didn't improve performance. Won't deploy.
                                +     *  * **in-progress**: Model training is in progress.
                                +     *  * **ready**: The model is ready for serving.
                                +     * 
                                + * + * string model_status = 3; + * + * @return The modelStatus. + */ + public java.lang.String getModelStatus() { + java.lang.Object ref = modelStatus_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelStatus_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                +     * The trained model status. Possible values are:
                                +     *
                                +     *  * **bad-data**: The training data quality is bad.
                                +     *  * **no-improvement**: Tuning didn't improve performance. Won't deploy.
                                +     *  * **in-progress**: Model training is in progress.
                                +     *  * **ready**: The model is ready for serving.
                                +     * 
                                + * + * string model_status = 3; + * + * @return The bytes for modelStatus. + */ + public com.google.protobuf.ByteString getModelStatusBytes() { + java.lang.Object ref = modelStatus_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                +     * The trained model status. Possible values are:
                                +     *
                                +     *  * **bad-data**: The training data quality is bad.
                                +     *  * **no-improvement**: Tuning didn't improve performance. Won't deploy.
                                +     *  * **in-progress**: Model training is in progress.
                                +     *  * **ready**: The model is ready for serving.
                                +     * 
                                + * + * string model_status = 3; + * + * @param value The modelStatus to set. + * @return This builder for chaining. + */ + public Builder setModelStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelStatus_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                +     * The trained model status. Possible values are:
                                +     *
                                +     *  * **bad-data**: The training data quality is bad.
                                +     *  * **no-improvement**: Tuning didn't improve performance. Won't deploy.
                                +     *  * **in-progress**: Model training is in progress.
                                +     *  * **ready**: The model is ready for serving.
                                +     * 
                                + * + * string model_status = 3; + * + * @return This builder for chaining. + */ + public Builder clearModelStatus() { + modelStatus_ = getDefaultInstance().getModelStatus(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                +     * The trained model status. Possible values are:
                                +     *
                                +     *  * **bad-data**: The training data quality is bad.
                                +     *  * **no-improvement**: Tuning didn't improve performance. Won't deploy.
                                +     *  * **in-progress**: Model training is in progress.
                                +     *  * **ready**: The model is ready for serving.
                                +     * 
                                + * + * string model_status = 3; + * + * @param value The bytes for modelStatus to set. + * @return This builder for chaining. + */ + public Builder setModelStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelStatus_ = value; + bitField0_ |= 0x00000004; + 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.discoveryengine.v1beta.TrainCustomModelResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.TrainCustomModelResponse) + private static final com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrainCustomModelResponse 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.discoveryengine.v1beta.TrainCustomModelResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelResponseOrBuilder.java new file mode 100644 index 000000000000..ba70265e7efb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TrainCustomModelResponseOrBuilder.java @@ -0,0 +1,147 @@ +/* + * 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/discoveryengine/v1beta/search_tuning_service.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.discoveryengine.v1beta; + +public interface TrainCustomModelResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.TrainCustomModelResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                +   * A sample of errors encountered while processing the data.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + java.util.List getErrorSamplesList(); + /** + * + * + *
                                +   * A sample of errors encountered while processing the data.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + com.google.rpc.Status getErrorSamples(int index); + /** + * + * + *
                                +   * A sample of errors encountered while processing the data.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + int getErrorSamplesCount(); + /** + * + * + *
                                +   * A sample of errors encountered while processing the data.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + java.util.List getErrorSamplesOrBuilderList(); + /** + * + * + *
                                +   * A sample of errors encountered while processing the data.
                                +   * 
                                + * + * repeated .google.rpc.Status error_samples = 1; + */ + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); + + /** + * + * + *
                                +   * Echoes the destination for the complete errors in the request if set.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return Whether the errorConfig field is set. + */ + boolean hasErrorConfig(); + /** + * + * + *
                                +   * Echoes the destination for the complete errors in the request if set.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + * + * @return The errorConfig. + */ + com.google.cloud.discoveryengine.v1beta.ImportErrorConfig getErrorConfig(); + /** + * + * + *
                                +   * Echoes the destination for the complete errors in the request if set.
                                +   * 
                                + * + * .google.cloud.discoveryengine.v1beta.ImportErrorConfig error_config = 2; + */ + com.google.cloud.discoveryengine.v1beta.ImportErrorConfigOrBuilder getErrorConfigOrBuilder(); + + /** + * + * + *
                                +   * The trained model status. Possible values are:
                                +   *
                                +   *  * **bad-data**: The training data quality is bad.
                                +   *  * **no-improvement**: Tuning didn't improve performance. Won't deploy.
                                +   *  * **in-progress**: Model training is in progress.
                                +   *  * **ready**: The model is ready for serving.
                                +   * 
                                + * + * string model_status = 3; + * + * @return The modelStatus. + */ + java.lang.String getModelStatus(); + /** + * + * + *
                                +   * The trained model status. Possible values are:
                                +   *
                                +   *  * **bad-data**: The training data quality is bad.
                                +   *  * **no-improvement**: Tuning didn't improve performance. Won't deploy.
                                +   *  * **in-progress**: Model training is in progress.
                                +   *  * **ready**: The model is ready for serving.
                                +   * 
                                + * + * string model_status = 3; + * + * @return The bytes for modelStatus. + */ + com.google.protobuf.ByteString getModelStatusBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversational_search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversational_search_service.proto index 261db57e123a..3c31f4eb023a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversational_search_service.proto @@ -223,6 +223,11 @@ message ConverseConversationRequest { // operators, see // [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) string filter = 9; + + // Boost specification to boost certain documents in search results which may + // affect the converse response. For more information on boosting, see + // [Boosting](https://cloud.google.com/retail/docs/boosting#boost) + SearchRequest.BoostSpec boost_spec = 10; } // Response message for diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store.proto index 200927d3e5ef..60c869cd2f8e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store.proto @@ -19,6 +19,8 @@ package google.cloud.discoveryengine.v1beta; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1beta/common.proto"; +import "google/cloud/discoveryengine/v1beta/document_processing_config.proto"; +import "google/cloud/discoveryengine/v1beta/schema.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; @@ -95,4 +97,24 @@ message DataStore { // [DataStore][google.cloud.discoveryengine.v1beta.DataStore] was created at. google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Configuration for Document understanding and enrichment. + DocumentProcessingConfig document_processing_config = 27; + + // The start schema to use for this + // [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when + // provisioning it. If unset, a default vertical specialized schema will be + // used. + // + // This field is only used by [CreateDataStore][] API, and will be ignored if + // used in other APIs. This field will be omitted from all API responses + // including [CreateDataStore][] API. To retrieve a schema of a + // [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use + // [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema] + // API instead. + // + // The provided schema will be validated against certain rules on schema. + // Learn more from [this + // doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). + Schema starting_schema = 28; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto index 34dd3ffeda83..cadf80387341 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto @@ -19,6 +19,7 @@ package google.cloud.discoveryengine.v1beta; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; @@ -118,4 +119,12 @@ message Document { // It contains derived data that are not in the original input document. google.protobuf.Struct derived_struct_data = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last time the document was indexed. If this field is set, + // the document could be returned in search results. + // + // This field is OUTPUT_ONLY. If this field is not populated, it means the + // document has never been indexed. + google.protobuf.Timestamp index_time = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_processing_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_processing_config.proto new file mode 100644 index 000000000000..5446975ec648 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_processing_config.proto @@ -0,0 +1,94 @@ +// Copyright 2022 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "DocumentProcessingConfigProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// A singleton resource of +// [DataStore][google.cloud.discoveryengine.v1beta.DataStore]. It's empty when +// [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is created, which +// defaults to digital parser. The first call to +// [DataStoreService.UpdateDocumentProcessingConfig][] method will initialize +// the config. +message DocumentProcessingConfig { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/DocumentProcessingConfig" + pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig" + pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig" + }; + + // Related configurations applied to a specific type of document parser. + message ParsingConfig { + // The digital parsing configurations for documents. + message DigitalParsingConfig {} + + // The OCR parsing configurations for documents. + message OcrParsingConfig { + // Apply additional enhanced OCR processing to a list of document + // elements. + // + // Supported values: + // * `table`: advanced table parsing model. + repeated string enhanced_document_elements = 1; + + // If true, will use native text instead of OCR text on pages containing + // native text. + bool use_native_text = 2; + } + + // Configs for document processing types. + oneof type_dedicated_config { + // Configurations applied to digital parser. + DigitalParsingConfig digital_parsing_config = 1; + + // Configurations applied to OCR parser. Currently it only applies to + // PDFs. + OcrParsingConfig ocr_parsing_config = 2; + } + } + + // The full resource name of the Document Processing Config. + // Format: + // `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. + string name = 1; + + // Configurations for default Document parser. + // If not specified, we will configure it as default DigitalParsingConfig, and + // the default parsing config will be applied to all file types for Document + // parsing. + ParsingConfig default_parsing_config = 4; + + // Map from file type to override the default parsing configuration based on + // the file type. Supported keys: + // * `pdf`: Override parsing config for PDF files, either digital parsing, ocr + // parsing or layout parsing is supported. + // * `html`: Override parsing config for HTML files, only digital parsing and + // or layout parsing are supported. + // * `docx`: Override parsing config for DOCX files, only digital parsing and + // or layout parsing are supported. + map parsing_config_overrides = 5; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto index baa7759e847e..6e4c3b93df62 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto @@ -84,6 +84,9 @@ message PurgeDocumentsMetadata { // Count of entries that encountered errors while processing. int64 failure_count = 4; + + // Count of entries that were ignored as entries were not found. + int64 ignored_count = 5; } // Request message for diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto index 55aef986910c..15aaa19945d4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto @@ -69,6 +69,19 @@ message SearchRequest { } } + // A struct to define data stores to filter on in a search call. + message DataStoreSpec { + // Required. Full resource name of + // [DataStore][google.cloud.discoveryengine.v1beta.DataStore], such as + // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. + string data_store = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + } + // A facet specification to perform faceted search. message FacetSpec { // Specifies how a facet is computed. @@ -212,9 +225,8 @@ message SearchRequest { // Examples: // // * To boost documents with document ID "doc_1" or "doc_2", and - // color - // "Red" or "Blue": - // * (id: ANY("doc_1", "doc_2")) AND (color: ANY("Red","Blue")) + // color "Red" or "Blue": + // `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` string condition = 1; // Strength of the condition boost, which should be in [-1, 1]. Negative @@ -347,7 +359,7 @@ message SearchRequest { // of results returned is less than `summaryResultCount`, the summary is // generated from all of the results. // - // At most five results can be used to generate a summary. + // At most 10 results can be used to generate a summary. int32 summary_result_count = 1; // Specifies whether to include citations in the summary. The default @@ -547,6 +559,9 @@ message SearchRequest { // If this field is negative, an `INVALID_ARGUMENT` is returned. int32 offset = 6; + // A list of data store specs to apply on a search call. + repeated DataStoreSpec data_store_specs = 32; + // The filter syntax consists of an expression language for constructing a // predicate from one or more fields of the documents being filtered. Filter // expression is case-sensitive. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_tuning_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_tuning_service.proto new file mode 100644 index 000000000000..1f62c5c35eeb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_tuning_service.proto @@ -0,0 +1,151 @@ +// Copyright 2022 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.discoveryengine.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/import_config.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "SearchTuningServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Service for search tuning. +service SearchTuningService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Trains a custom model. + rpc TrainCustomModel(TrainCustomModelRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{data_store=projects/*/locations/*/collections/*/dataStores/*}:trainCustomModel" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1beta.TrainCustomModelResponse" + metadata_type: "google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata" + }; + } +} + +// Request message for +// [SearchTuningService.TrainCustomModel][google.cloud.discoveryengine.v1beta.SearchTuningService.TrainCustomModel] +// method. +message TrainCustomModelRequest { + // Cloud Storage training data input. + message GcsTrainingInput { + // The Cloud Storage corpus data which could be associated in train data. + // The data path format is `gs:///`. + // A newline delimited jsonl/ndjson file. + // + // For search-tuning model, each line should have the _id, title + // and text. Example: + // `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}` + string corpus_data_path = 1; + + // The gcs query data which could be associated in train data. + // The data path format is `gs:///`. + // A newline delimited jsonl/ndjson file. + // + // For search-tuning model, each line should have the _id + // and text. Example: {"_id": "query1", "text": "example query"} + string query_data_path = 2; + + // Cloud Storage training data path whose format should be + // `gs:///`. The file should be in tsv + // format. Each line should have the doc_id and query_id and score (number). + // + // For search-tuning model, it should have the query-id corpus-id + // score as tsv file header. The score should be a number in `[0, inf+)`. + // The larger the number is, the more relevant the pair is. Example: + // + // * `query-id\tcorpus-id\tscore` + // * `query1\tdoc1\t1` + string train_data_path = 3; + + // Cloud Storage test data. Same format as train_data_path. If not provided, + // a random 80/20 train/test split will be performed on train_data_path. + string test_data_path = 4; + } + + // Model training input. + oneof training_input { + // Cloud Storage training input. + GcsTrainingInput gcs_training_input = 2; + } + + // Required. The resource name of the Data Store, such as + // `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. + // This field is used to identify the data store where to train the models. + string data_store = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + + // Model to be trained. Supported values are: + // + // * **search-tuning**: Fine tuning the search system based on data provided. + string model_type = 3; + + // The desired location of errors incurred during the data ingestion and + // training. + ImportErrorConfig error_config = 4; +} + +// Response of the +// [TrainCustomModelRequest][google.cloud.discoveryengine.v1beta.TrainCustomModelRequest]. +// This message is returned by the google.longrunning.Operations.response field. +message TrainCustomModelResponse { + // A sample of errors encountered while processing the data. + repeated google.rpc.Status error_samples = 1; + + // Echoes the destination for the complete errors in the request if set. + ImportErrorConfig error_config = 2; + + // The trained model status. Possible values are: + // + // * **bad-data**: The training data quality is bad. + // * **no-improvement**: Tuning didn't improve performance. Won't deploy. + // * **in-progress**: Model training is in progress. + // * **ready**: The model is ready for serving. + string model_status = 3; +} + +// Metadata related to the progress of the TrainCustomModel operation. This is +// returned by the google.longrunning.Operation.metadata field. +message TrainCustomModelMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config.proto index 48979119f08c..4b5e1a163cd2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config.proto @@ -109,7 +109,7 @@ message ServingConfig { } // Immutable. Fully qualified name - // `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` + // `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}` string name = 1 [(google.api.field_behavior) = IMMUTABLE]; // Required. The human readable serving config display name. Used in Discovery @@ -165,8 +165,9 @@ message ServingConfig { // The ranking expression controls the customized ranking on retrieval // documents. To leverage this, document embedding is required. The ranking // expression setting in ServingConfig applies to all search requests served - // by the serving config. However, if [SearchRequest.ranking_expression][] is - // specified, it overrides the ServingConfig ranking expression. + // by the serving config. However, if + // [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] + // is specified, it overrides the ServingConfig ranking expression. // // The ranking expression is a single function or multiple functions that are // joined by "+". diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config_service.proto index 8cd21ab8383d..f4caa89c8d91 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config_service.proto @@ -32,7 +32,8 @@ option objc_class_prefix = "DISCOVERYENGINE"; option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; -// Service for modifying ServingConfig. +// Service for operations related to +// [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]. service ServingConfigService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = @@ -107,7 +108,7 @@ message UpdateServingConfigRequest { // Request for GetServingConfig method. message GetServingConfigRequest { // Required. The resource name of the ServingConfig to get. Format: - // `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config_id}` + // `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -118,12 +119,12 @@ message GetServingConfigRequest { // Request for ListServingConfigs method. message ListServingConfigsRequest { - // Required. The dataStore resource name. Format: - // `projects/{project_number}/locations/{location}/collections/{collection}/dataStores/{data_store}` + // Required. Full resource name of the parent resource. Format: + // `projects/{project_number}/locations/{location}/collections/{collection}/engines/{engine}` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "discoveryengine.googleapis.com/DataStore" + child_type: "discoveryengine.googleapis.com/ServingConfig" } ]; diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..04ae72af9793 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_AclConfigService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // 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 + AclConfigServiceSettings aclConfigServiceSettings = + AclConfigServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AclConfigServiceClient aclConfigServiceClient = + AclConfigServiceClient.create(aclConfigServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_AclConfigService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..b31731f66934 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateSetCredentialsProvider1.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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_AclConfigService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // 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 + AclConfigServiceSettings aclConfigServiceSettings = + AclConfigServiceSettings.newHttpJsonBuilder().build(); + AclConfigServiceClient aclConfigServiceClient = + AclConfigServiceClient.create(aclConfigServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_AclConfigService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..953d51724e64 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_AclConfigService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // 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 + AclConfigServiceSettings aclConfigServiceSettings = + AclConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + AclConfigServiceClient aclConfigServiceClient = + AclConfigServiceClient.create(aclConfigServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_AclConfigService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/getaclconfig/AsyncGetAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/getaclconfig/AsyncGetAclConfig.java new file mode 100644 index 000000000000..5283c3b7fd92 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/getaclconfig/AsyncGetAclConfig.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_AclConfigService_GetAclConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.AclConfig; +import com.google.cloud.discoveryengine.v1alpha.AclConfigName; +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest; + +public class AsyncGetAclConfig { + + public static void main(String[] args) throws Exception { + asyncGetAclConfig(); + } + + public static void asyncGetAclConfig() throws Exception { + // 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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + GetAclConfigRequest request = + GetAclConfigRequest.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + ApiFuture future = + aclConfigServiceClient.getAclConfigCallable().futureCall(request); + // Do something. + AclConfig response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_AclConfigService_GetAclConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/getaclconfig/SyncGetAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/getaclconfig/SyncGetAclConfig.java new file mode 100644 index 000000000000..33f84940e8a6 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/getaclconfig/SyncGetAclConfig.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_AclConfigService_GetAclConfig_sync] +import com.google.cloud.discoveryengine.v1alpha.AclConfig; +import com.google.cloud.discoveryengine.v1alpha.AclConfigName; +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1alpha.GetAclConfigRequest; + +public class SyncGetAclConfig { + + public static void main(String[] args) throws Exception { + syncGetAclConfig(); + } + + public static void syncGetAclConfig() throws Exception { + // 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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + GetAclConfigRequest request = + GetAclConfigRequest.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + AclConfig response = aclConfigServiceClient.getAclConfig(request); + } + } +} +// [END discoveryengine_v1alpha_generated_AclConfigService_GetAclConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/getaclconfig/SyncGetAclConfigAclconfigname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/getaclconfig/SyncGetAclConfigAclconfigname.java new file mode 100644 index 000000000000..105f5fb172bb --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/getaclconfig/SyncGetAclConfigAclconfigname.java @@ -0,0 +1,42 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_AclConfigService_GetAclConfig_Aclconfigname_sync] +import com.google.cloud.discoveryengine.v1alpha.AclConfig; +import com.google.cloud.discoveryengine.v1alpha.AclConfigName; +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceClient; + +public class SyncGetAclConfigAclconfigname { + + public static void main(String[] args) throws Exception { + syncGetAclConfigAclconfigname(); + } + + public static void syncGetAclConfigAclconfigname() throws Exception { + // 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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + AclConfig response = aclConfigServiceClient.getAclConfig(name); + } + } +} +// [END discoveryengine_v1alpha_generated_AclConfigService_GetAclConfig_Aclconfigname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/getaclconfig/SyncGetAclConfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/getaclconfig/SyncGetAclConfigString.java new file mode 100644 index 000000000000..7f5f0b111df2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/getaclconfig/SyncGetAclConfigString.java @@ -0,0 +1,42 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_AclConfigService_GetAclConfig_String_sync] +import com.google.cloud.discoveryengine.v1alpha.AclConfig; +import com.google.cloud.discoveryengine.v1alpha.AclConfigName; +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceClient; + +public class SyncGetAclConfigString { + + public static void main(String[] args) throws Exception { + syncGetAclConfigString(); + } + + public static void syncGetAclConfigString() throws Exception { + // 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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + String name = AclConfigName.of("[PROJECT]", "[LOCATION]").toString(); + AclConfig response = aclConfigServiceClient.getAclConfig(name); + } + } +} +// [END discoveryengine_v1alpha_generated_AclConfigService_GetAclConfig_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/updateaclconfig/AsyncUpdateAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/updateaclconfig/AsyncUpdateAclConfig.java new file mode 100644 index 000000000000..1286ae4fb2e3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/updateaclconfig/AsyncUpdateAclConfig.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_AclConfigService_UpdateAclConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.AclConfig; +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest; + +public class AsyncUpdateAclConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateAclConfig(); + } + + public static void asyncUpdateAclConfig() throws Exception { + // 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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build(); + ApiFuture future = + aclConfigServiceClient.updateAclConfigCallable().futureCall(request); + // Do something. + AclConfig response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_AclConfigService_UpdateAclConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/updateaclconfig/SyncUpdateAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/updateaclconfig/SyncUpdateAclConfig.java new file mode 100644 index 000000000000..e65c7846ad97 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservice/updateaclconfig/SyncUpdateAclConfig.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_AclConfigService_UpdateAclConfig_sync] +import com.google.cloud.discoveryengine.v1alpha.AclConfig; +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateAclConfigRequest; + +public class SyncUpdateAclConfig { + + public static void main(String[] args) throws Exception { + syncUpdateAclConfig(); + } + + public static void syncUpdateAclConfig() throws Exception { + // 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 (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build(); + AclConfig response = aclConfigServiceClient.updateAclConfig(request); + } + } +} +// [END discoveryengine_v1alpha_generated_AclConfigService_UpdateAclConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservicesettings/updateaclconfig/SyncUpdateAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservicesettings/updateaclconfig/SyncUpdateAclConfig.java new file mode 100644 index 000000000000..ee666386cc5c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/aclconfigservicesettings/updateaclconfig/SyncUpdateAclConfig.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_AclConfigServiceSettings_UpdateAclConfig_sync] +import com.google.cloud.discoveryengine.v1alpha.AclConfigServiceSettings; +import java.time.Duration; + +public class SyncUpdateAclConfig { + + public static void main(String[] args) throws Exception { + syncUpdateAclConfig(); + } + + public static void syncUpdateAclConfig() throws Exception { + // 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 + AclConfigServiceSettings.Builder aclConfigServiceSettingsBuilder = + AclConfigServiceSettings.newBuilder(); + aclConfigServiceSettingsBuilder + .updateAclConfigSettings() + .setRetrySettings( + aclConfigServiceSettingsBuilder + .updateAclConfigSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AclConfigServiceSettings aclConfigServiceSettings = aclConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_AclConfigServiceSettings_UpdateAclConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..a89fe3b06e65 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ChunkService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // 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 + ChunkServiceSettings chunkServiceSettings = + ChunkServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ChunkServiceClient chunkServiceClient = ChunkServiceClient.create(chunkServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_ChunkService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..846bb109f3e1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,39 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ChunkService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // 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 + ChunkServiceSettings chunkServiceSettings = ChunkServiceSettings.newHttpJsonBuilder().build(); + ChunkServiceClient chunkServiceClient = ChunkServiceClient.create(chunkServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_ChunkService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..d3362ae0783e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/create/SyncCreateSetEndpoint.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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ChunkService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // 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 + ChunkServiceSettings chunkServiceSettings = + ChunkServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ChunkServiceClient chunkServiceClient = ChunkServiceClient.create(chunkServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_ChunkService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/getchunk/AsyncGetChunk.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/getchunk/AsyncGetChunk.java new file mode 100644 index 000000000000..7f37ffa2af6e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/getchunk/AsyncGetChunk.java @@ -0,0 +1,57 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ChunkService_GetChunk_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.Chunk; +import com.google.cloud.discoveryengine.v1alpha.ChunkName; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient; +import com.google.cloud.discoveryengine.v1alpha.GetChunkRequest; + +public class AsyncGetChunk { + + public static void main(String[] args) throws Exception { + asyncGetChunk(); + } + + public static void asyncGetChunk() throws Exception { + // 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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) { + GetChunkRequest request = + GetChunkRequest.newBuilder() + .setName( + ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName( + "[PROJECT]", + "[LOCATION]", + "[DATA_STORE]", + "[BRANCH]", + "[DOCUMENT]", + "[CHUNK]") + .toString()) + .build(); + ApiFuture future = chunkServiceClient.getChunkCallable().futureCall(request); + // Do something. + Chunk response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_ChunkService_GetChunk_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/getchunk/SyncGetChunk.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/getchunk/SyncGetChunk.java new file mode 100644 index 000000000000..1da9275533d1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/getchunk/SyncGetChunk.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ChunkService_GetChunk_sync] +import com.google.cloud.discoveryengine.v1alpha.Chunk; +import com.google.cloud.discoveryengine.v1alpha.ChunkName; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient; +import com.google.cloud.discoveryengine.v1alpha.GetChunkRequest; + +public class SyncGetChunk { + + public static void main(String[] args) throws Exception { + syncGetChunk(); + } + + public static void syncGetChunk() throws Exception { + // 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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) { + GetChunkRequest request = + GetChunkRequest.newBuilder() + .setName( + ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName( + "[PROJECT]", + "[LOCATION]", + "[DATA_STORE]", + "[BRANCH]", + "[DOCUMENT]", + "[CHUNK]") + .toString()) + .build(); + Chunk response = chunkServiceClient.getChunk(request); + } + } +} +// [END discoveryengine_v1alpha_generated_ChunkService_GetChunk_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/getchunk/SyncGetChunkChunkname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/getchunk/SyncGetChunkChunkname.java new file mode 100644 index 000000000000..6422caf1d3e1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/getchunk/SyncGetChunkChunkname.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ChunkService_GetChunk_Chunkname_sync] +import com.google.cloud.discoveryengine.v1alpha.Chunk; +import com.google.cloud.discoveryengine.v1alpha.ChunkName; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient; + +public class SyncGetChunkChunkname { + + public static void main(String[] args) throws Exception { + syncGetChunkChunkname(); + } + + public static void syncGetChunkChunkname() throws Exception { + // 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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) { + ChunkName name = + ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]", "[CHUNK]"); + Chunk response = chunkServiceClient.getChunk(name); + } + } +} +// [END discoveryengine_v1alpha_generated_ChunkService_GetChunk_Chunkname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/getchunk/SyncGetChunkString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/getchunk/SyncGetChunkString.java new file mode 100644 index 000000000000..d7455d8ea638 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/getchunk/SyncGetChunkString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ChunkService_GetChunk_String_sync] +import com.google.cloud.discoveryengine.v1alpha.Chunk; +import com.google.cloud.discoveryengine.v1alpha.ChunkName; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient; + +public class SyncGetChunkString { + + public static void main(String[] args) throws Exception { + syncGetChunkString(); + } + + public static void syncGetChunkString() throws Exception { + // 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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) { + String name = + ChunkName.ofProjectLocationDataStoreBranchDocumentChunkName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]", "[CHUNK]") + .toString(); + Chunk response = chunkServiceClient.getChunk(name); + } + } +} +// [END discoveryengine_v1alpha_generated_ChunkService_GetChunk_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/AsyncListChunks.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/AsyncListChunks.java new file mode 100644 index 000000000000..d8c861f5cb41 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/AsyncListChunks.java @@ -0,0 +1,56 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ChunkService_ListChunks_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.Chunk; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentName; +import com.google.cloud.discoveryengine.v1alpha.ListChunksRequest; + +public class AsyncListChunks { + + public static void main(String[] args) throws Exception { + asyncListChunks(); + } + + public static void asyncListChunks() throws Exception { + // 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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) { + ListChunksRequest request = + ListChunksRequest.newBuilder() + .setParent( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = chunkServiceClient.listChunksPagedCallable().futureCall(request); + // Do something. + for (Chunk element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_ChunkService_ListChunks_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/AsyncListChunksPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/AsyncListChunksPaged.java new file mode 100644 index 000000000000..c6495657dd77 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/AsyncListChunksPaged.java @@ -0,0 +1,64 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ChunkService_ListChunks_Paged_async] +import com.google.cloud.discoveryengine.v1alpha.Chunk; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentName; +import com.google.cloud.discoveryengine.v1alpha.ListChunksRequest; +import com.google.cloud.discoveryengine.v1alpha.ListChunksResponse; +import com.google.common.base.Strings; + +public class AsyncListChunksPaged { + + public static void main(String[] args) throws Exception { + asyncListChunksPaged(); + } + + public static void asyncListChunksPaged() throws Exception { + // 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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) { + ListChunksRequest request = + ListChunksRequest.newBuilder() + .setParent( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListChunksResponse response = chunkServiceClient.listChunksCallable().call(request); + for (Chunk element : response.getChunksList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1alpha_generated_ChunkService_ListChunks_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/SyncListChunks.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/SyncListChunks.java new file mode 100644 index 000000000000..ede6cc050944 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/SyncListChunks.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ChunkService_ListChunks_sync] +import com.google.cloud.discoveryengine.v1alpha.Chunk; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentName; +import com.google.cloud.discoveryengine.v1alpha.ListChunksRequest; + +public class SyncListChunks { + + public static void main(String[] args) throws Exception { + syncListChunks(); + } + + public static void syncListChunks() throws Exception { + // 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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) { + ListChunksRequest request = + ListChunksRequest.newBuilder() + .setParent( + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Chunk element : chunkServiceClient.listChunks(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_ChunkService_ListChunks_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/SyncListChunksDocumentname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/SyncListChunksDocumentname.java new file mode 100644 index 000000000000..abb1598351cf --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/SyncListChunksDocumentname.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ChunkService_ListChunks_Documentname_sync] +import com.google.cloud.discoveryengine.v1alpha.Chunk; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentName; + +public class SyncListChunksDocumentname { + + public static void main(String[] args) throws Exception { + syncListChunksDocumentname(); + } + + public static void syncListChunksDocumentname() throws Exception { + // 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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) { + DocumentName parent = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]"); + for (Chunk element : chunkServiceClient.listChunks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_ChunkService_ListChunks_Documentname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/SyncListChunksString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/SyncListChunksString.java new file mode 100644 index 000000000000..eec02381d2c0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservice/listchunks/SyncListChunksString.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ChunkService_ListChunks_String_sync] +import com.google.cloud.discoveryengine.v1alpha.Chunk; +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentName; + +public class SyncListChunksString { + + public static void main(String[] args) throws Exception { + syncListChunksString(); + } + + public static void syncListChunksString() throws Exception { + // 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 (ChunkServiceClient chunkServiceClient = ChunkServiceClient.create()) { + String parent = + DocumentName.ofProjectLocationDataStoreBranchDocumentName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]", "[DOCUMENT]") + .toString(); + for (Chunk element : chunkServiceClient.listChunks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_ChunkService_ListChunks_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservicesettings/getchunk/SyncGetChunk.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservicesettings/getchunk/SyncGetChunk.java new file mode 100644 index 000000000000..cf8f5900fe4a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/chunkservicesettings/getchunk/SyncGetChunk.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ChunkServiceSettings_GetChunk_sync] +import com.google.cloud.discoveryengine.v1alpha.ChunkServiceSettings; +import java.time.Duration; + +public class SyncGetChunk { + + public static void main(String[] args) throws Exception { + syncGetChunk(); + } + + public static void syncGetChunk() throws Exception { + // 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 + ChunkServiceSettings.Builder chunkServiceSettingsBuilder = ChunkServiceSettings.newBuilder(); + chunkServiceSettingsBuilder + .getChunkSettings() + .setRetrySettings( + chunkServiceSettingsBuilder + .getChunkSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ChunkServiceSettings chunkServiceSettings = chunkServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_ChunkServiceSettings_GetChunk_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/importsuggestiondenylistentries/AsyncImportSuggestionDenyListEntries.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/importsuggestiondenylistentries/AsyncImportSuggestionDenyListEntries.java new file mode 100644 index 000000000000..15aeff58734a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/importsuggestiondenylistentries/AsyncImportSuggestionDenyListEntries.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_CompletionService_ImportSuggestionDenyListEntries_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest; +import com.google.longrunning.Operation; + +public class AsyncImportSuggestionDenyListEntries { + + public static void main(String[] args) throws Exception { + asyncImportSuggestionDenyListEntries(); + } + + public static void asyncImportSuggestionDenyListEntries() throws Exception { + // 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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + ImportSuggestionDenyListEntriesRequest request = + ImportSuggestionDenyListEntriesRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + ApiFuture future = + completionServiceClient.importSuggestionDenyListEntriesCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_CompletionService_ImportSuggestionDenyListEntries_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/importsuggestiondenylistentries/AsyncImportSuggestionDenyListEntriesLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/importsuggestiondenylistentries/AsyncImportSuggestionDenyListEntriesLRO.java new file mode 100644 index 000000000000..ef60b8a2a565 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/importsuggestiondenylistentries/AsyncImportSuggestionDenyListEntriesLRO.java @@ -0,0 +1,58 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_CompletionService_ImportSuggestionDenyListEntries_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse; + +public class AsyncImportSuggestionDenyListEntriesLRO { + + public static void main(String[] args) throws Exception { + asyncImportSuggestionDenyListEntriesLRO(); + } + + public static void asyncImportSuggestionDenyListEntriesLRO() throws Exception { + // 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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + ImportSuggestionDenyListEntriesRequest request = + ImportSuggestionDenyListEntriesRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + OperationFuture< + ImportSuggestionDenyListEntriesResponse, ImportSuggestionDenyListEntriesMetadata> + future = + completionServiceClient + .importSuggestionDenyListEntriesOperationCallable() + .futureCall(request); + // Do something. + ImportSuggestionDenyListEntriesResponse response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_CompletionService_ImportSuggestionDenyListEntries_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/importsuggestiondenylistentries/SyncImportSuggestionDenyListEntries.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/importsuggestiondenylistentries/SyncImportSuggestionDenyListEntries.java new file mode 100644 index 000000000000..24237727678c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/importsuggestiondenylistentries/SyncImportSuggestionDenyListEntries.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_CompletionService_ImportSuggestionDenyListEntries_sync] +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesRequest; +import com.google.cloud.discoveryengine.v1alpha.ImportSuggestionDenyListEntriesResponse; + +public class SyncImportSuggestionDenyListEntries { + + public static void main(String[] args) throws Exception { + syncImportSuggestionDenyListEntries(); + } + + public static void syncImportSuggestionDenyListEntries() throws Exception { + // 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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + ImportSuggestionDenyListEntriesRequest request = + ImportSuggestionDenyListEntriesRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + ImportSuggestionDenyListEntriesResponse response = + completionServiceClient.importSuggestionDenyListEntriesAsync(request).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_CompletionService_ImportSuggestionDenyListEntries_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/purgesuggestiondenylistentries/AsyncPurgeSuggestionDenyListEntries.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/purgesuggestiondenylistentries/AsyncPurgeSuggestionDenyListEntries.java new file mode 100644 index 000000000000..a3b1a5df0456 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/purgesuggestiondenylistentries/AsyncPurgeSuggestionDenyListEntries.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_CompletionService_PurgeSuggestionDenyListEntries_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest; +import com.google.longrunning.Operation; + +public class AsyncPurgeSuggestionDenyListEntries { + + public static void main(String[] args) throws Exception { + asyncPurgeSuggestionDenyListEntries(); + } + + public static void asyncPurgeSuggestionDenyListEntries() throws Exception { + // 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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + PurgeSuggestionDenyListEntriesRequest request = + PurgeSuggestionDenyListEntriesRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + ApiFuture future = + completionServiceClient.purgeSuggestionDenyListEntriesCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_CompletionService_PurgeSuggestionDenyListEntries_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/purgesuggestiondenylistentries/AsyncPurgeSuggestionDenyListEntriesLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/purgesuggestiondenylistentries/AsyncPurgeSuggestionDenyListEntriesLRO.java new file mode 100644 index 000000000000..27240dd224e9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/purgesuggestiondenylistentries/AsyncPurgeSuggestionDenyListEntriesLRO.java @@ -0,0 +1,58 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_CompletionService_PurgeSuggestionDenyListEntries_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesMetadata; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse; + +public class AsyncPurgeSuggestionDenyListEntriesLRO { + + public static void main(String[] args) throws Exception { + asyncPurgeSuggestionDenyListEntriesLRO(); + } + + public static void asyncPurgeSuggestionDenyListEntriesLRO() throws Exception { + // 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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + PurgeSuggestionDenyListEntriesRequest request = + PurgeSuggestionDenyListEntriesRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + OperationFuture< + PurgeSuggestionDenyListEntriesResponse, PurgeSuggestionDenyListEntriesMetadata> + future = + completionServiceClient + .purgeSuggestionDenyListEntriesOperationCallable() + .futureCall(request); + // Do something. + PurgeSuggestionDenyListEntriesResponse response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_CompletionService_PurgeSuggestionDenyListEntries_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/purgesuggestiondenylistentries/SyncPurgeSuggestionDenyListEntries.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/purgesuggestiondenylistentries/SyncPurgeSuggestionDenyListEntries.java new file mode 100644 index 000000000000..b8676deabdd2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/completionservice/purgesuggestiondenylistentries/SyncPurgeSuggestionDenyListEntries.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_CompletionService_PurgeSuggestionDenyListEntries_sync] +import com.google.cloud.discoveryengine.v1alpha.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeSuggestionDenyListEntriesResponse; + +public class SyncPurgeSuggestionDenyListEntries { + + public static void main(String[] args) throws Exception { + syncPurgeSuggestionDenyListEntries(); + } + + public static void syncPurgeSuggestionDenyListEntries() throws Exception { + // 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 (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + PurgeSuggestionDenyListEntriesRequest request = + PurgeSuggestionDenyListEntriesRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .build(); + PurgeSuggestionDenyListEntriesResponse response = + completionServiceClient.purgeSuggestionDenyListEntriesAsync(request).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_CompletionService_PurgeSuggestionDenyListEntries_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/AsyncConverseConversation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/AsyncConverseConversation.java index 206bb862eac1..ca806f9ccd31 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/AsyncConverseConversation.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/AsyncConverseConversation.java @@ -58,6 +58,7 @@ public static void asyncConverseConversation() throws Exception { .putAllUserLabels(new HashMap()) .setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.newBuilder().build()) .setFilter("filter-1274492040") + .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) .build(); ApiFuture future = conversationalSearchServiceClient.converseConversationCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversation.java index 8c50bfc9ad45..a30c4b90fdfd 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversation.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/conversationalsearchservice/converseconversation/SyncConverseConversation.java @@ -57,6 +57,7 @@ public static void syncConverseConversation() throws Exception { .putAllUserLabels(new HashMap()) .setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.newBuilder().build()) .setFilter("filter-1274492040") + .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) .build(); ConverseConversationResponse response = conversationalSearchServiceClient.converseConversation(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/getdocumentprocessingconfig/AsyncGetDocumentProcessingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/getdocumentprocessingconfig/AsyncGetDocumentProcessingConfig.java new file mode 100644 index 000000000000..9feba736b9ff --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/getdocumentprocessingconfig/AsyncGetDocumentProcessingConfig.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DataStoreService_GetDocumentProcessingConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.DataStoreServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigName; +import com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest; + +public class AsyncGetDocumentProcessingConfig { + + public static void main(String[] args) throws Exception { + asyncGetDocumentProcessingConfig(); + } + + public static void asyncGetDocumentProcessingConfig() throws Exception { + // 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 (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + GetDocumentProcessingConfigRequest request = + GetDocumentProcessingConfigRequest.newBuilder() + .setName( + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .build(); + ApiFuture future = + dataStoreServiceClient.getDocumentProcessingConfigCallable().futureCall(request); + // Do something. + DocumentProcessingConfig response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_DataStoreService_GetDocumentProcessingConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/getdocumentprocessingconfig/SyncGetDocumentProcessingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/getdocumentprocessingconfig/SyncGetDocumentProcessingConfig.java new file mode 100644 index 000000000000..16efad9a6b9f --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/getdocumentprocessingconfig/SyncGetDocumentProcessingConfig.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DataStoreService_GetDocumentProcessingConfig_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigName; +import com.google.cloud.discoveryengine.v1alpha.GetDocumentProcessingConfigRequest; + +public class SyncGetDocumentProcessingConfig { + + public static void main(String[] args) throws Exception { + syncGetDocumentProcessingConfig(); + } + + public static void syncGetDocumentProcessingConfig() throws Exception { + // 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 (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + GetDocumentProcessingConfigRequest request = + GetDocumentProcessingConfigRequest.newBuilder() + .setName( + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .build(); + DocumentProcessingConfig response = + dataStoreServiceClient.getDocumentProcessingConfig(request); + } + } +} +// [END discoveryengine_v1alpha_generated_DataStoreService_GetDocumentProcessingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/getdocumentprocessingconfig/SyncGetDocumentProcessingConfigDocumentprocessingconfigname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/getdocumentprocessingconfig/SyncGetDocumentProcessingConfigDocumentprocessingconfigname.java new file mode 100644 index 000000000000..4a3a93d23f89 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/getdocumentprocessingconfig/SyncGetDocumentProcessingConfigDocumentprocessingconfigname.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DataStoreService_GetDocumentProcessingConfig_Documentprocessingconfigname_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigName; + +public class SyncGetDocumentProcessingConfigDocumentprocessingconfigname { + + public static void main(String[] args) throws Exception { + syncGetDocumentProcessingConfigDocumentprocessingconfigname(); + } + + public static void syncGetDocumentProcessingConfigDocumentprocessingconfigname() + throws Exception { + // 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 (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + DocumentProcessingConfigName name = + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + DocumentProcessingConfig response = dataStoreServiceClient.getDocumentProcessingConfig(name); + } + } +} +// [END discoveryengine_v1alpha_generated_DataStoreService_GetDocumentProcessingConfig_Documentprocessingconfigname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/getdocumentprocessingconfig/SyncGetDocumentProcessingConfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/getdocumentprocessingconfig/SyncGetDocumentProcessingConfigString.java new file mode 100644 index 000000000000..0a5688c5e292 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/getdocumentprocessingconfig/SyncGetDocumentProcessingConfigString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DataStoreService_GetDocumentProcessingConfig_String_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfigName; + +public class SyncGetDocumentProcessingConfigString { + + public static void main(String[] args) throws Exception { + syncGetDocumentProcessingConfigString(); + } + + public static void syncGetDocumentProcessingConfigString() throws Exception { + // 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 (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + String name = + DocumentProcessingConfigName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString(); + DocumentProcessingConfig response = dataStoreServiceClient.getDocumentProcessingConfig(name); + } + } +} +// [END discoveryengine_v1alpha_generated_DataStoreService_GetDocumentProcessingConfig_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/updatedocumentprocessingconfig/AsyncUpdateDocumentProcessingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/updatedocumentprocessingconfig/AsyncUpdateDocumentProcessingConfig.java new file mode 100644 index 000000000000..03d25f8b40bf --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/updatedocumentprocessingconfig/AsyncUpdateDocumentProcessingConfig.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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DataStoreService_UpdateDocumentProcessingConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.DataStoreServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig; +import com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateDocumentProcessingConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateDocumentProcessingConfig(); + } + + public static void asyncUpdateDocumentProcessingConfig() throws Exception { + // 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 (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + UpdateDocumentProcessingConfigRequest request = + UpdateDocumentProcessingConfigRequest.newBuilder() + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + dataStoreServiceClient.updateDocumentProcessingConfigCallable().futureCall(request); + // Do something. + DocumentProcessingConfig response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_DataStoreService_UpdateDocumentProcessingConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/updatedocumentprocessingconfig/SyncUpdateDocumentProcessingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/updatedocumentprocessingconfig/SyncUpdateDocumentProcessingConfig.java new file mode 100644 index 000000000000..c5183fa5572a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/updatedocumentprocessingconfig/SyncUpdateDocumentProcessingConfig.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DataStoreService_UpdateDocumentProcessingConfig_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig; +import com.google.cloud.discoveryengine.v1alpha.UpdateDocumentProcessingConfigRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDocumentProcessingConfig { + + public static void main(String[] args) throws Exception { + syncUpdateDocumentProcessingConfig(); + } + + public static void syncUpdateDocumentProcessingConfig() throws Exception { + // 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 (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + UpdateDocumentProcessingConfigRequest request = + UpdateDocumentProcessingConfigRequest.newBuilder() + .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + DocumentProcessingConfig response = + dataStoreServiceClient.updateDocumentProcessingConfig(request); + } + } +} +// [END discoveryengine_v1alpha_generated_DataStoreService_UpdateDocumentProcessingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/updatedocumentprocessingconfig/SyncUpdateDocumentProcessingConfigDocumentprocessingconfigFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/updatedocumentprocessingconfig/SyncUpdateDocumentProcessingConfigDocumentprocessingconfigFieldmask.java new file mode 100644 index 000000000000..3949e56a2ac9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/datastoreservice/updatedocumentprocessingconfig/SyncUpdateDocumentProcessingConfigDocumentprocessingconfigFieldmask.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DataStoreService_UpdateDocumentProcessingConfig_DocumentprocessingconfigFieldmask_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreServiceClient; +import com.google.cloud.discoveryengine.v1alpha.DocumentProcessingConfig; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDocumentProcessingConfigDocumentprocessingconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDocumentProcessingConfigDocumentprocessingconfigFieldmask(); + } + + public static void syncUpdateDocumentProcessingConfigDocumentprocessingconfigFieldmask() + throws Exception { + // 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 (DataStoreServiceClient dataStoreServiceClient = DataStoreServiceClient.create()) { + DocumentProcessingConfig documentProcessingConfig = + DocumentProcessingConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + DocumentProcessingConfig response = + dataStoreServiceClient.updateDocumentProcessingConfig( + documentProcessingConfig, updateMask); + } + } +} +// [END discoveryengine_v1alpha_generated_DataStoreService_UpdateDocumentProcessingConfig_DocumentprocessingconfigFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocuments.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocuments.java index e203973e65b3..ec291f7f8e3e 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocuments.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocuments.java @@ -21,6 +21,7 @@ import com.google.cloud.discoveryengine.v1alpha.BranchName; import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest; +import com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig; import com.google.longrunning.Operation; public class AsyncPurgeDocuments { @@ -43,6 +44,7 @@ public static void asyncPurgeDocuments() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setFilter("filter-1274492040") + .setErrorConfig(PurgeErrorConfig.newBuilder().build()) .setForce(true) .build(); ApiFuture future = diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java index 0b4e0455cbf8..5bf3be085c69 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/AsyncPurgeDocumentsLRO.java @@ -23,6 +23,7 @@ import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsMetadata; import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest; import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig; public class AsyncPurgeDocumentsLRO { @@ -44,6 +45,7 @@ public static void asyncPurgeDocumentsLRO() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setFilter("filter-1274492040") + .setErrorConfig(PurgeErrorConfig.newBuilder().build()) .setForce(true) .build(); OperationFuture future = diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/SyncPurgeDocuments.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/SyncPurgeDocuments.java index cf700b7cb51a..fc4b7c439559 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/SyncPurgeDocuments.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/purgedocuments/SyncPurgeDocuments.java @@ -21,6 +21,7 @@ import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsRequest; import com.google.cloud.discoveryengine.v1alpha.PurgeDocumentsResponse; +import com.google.cloud.discoveryengine.v1alpha.PurgeErrorConfig; public class SyncPurgeDocuments { @@ -42,6 +43,7 @@ public static void syncPurgeDocuments() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setFilter("filter-1274492040") + .setErrorConfig(PurgeErrorConfig.newBuilder().build()) .setForce(true) .build(); PurgeDocumentsResponse response = documentServiceClient.purgeDocumentsAsync(request).get(); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/AsyncUpdateDocument.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/AsyncUpdateDocument.java index 3fe4abdbb80b..53856d9ec116 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/AsyncUpdateDocument.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/AsyncUpdateDocument.java @@ -21,6 +21,7 @@ import com.google.cloud.discoveryengine.v1alpha.Document; import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; import com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest; +import com.google.protobuf.FieldMask; public class AsyncUpdateDocument { @@ -39,6 +40,7 @@ public static void asyncUpdateDocument() throws Exception { UpdateDocumentRequest.newBuilder() .setDocument(Document.newBuilder().build()) .setAllowMissing(true) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); ApiFuture future = documentServiceClient.updateDocumentCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/SyncUpdateDocument.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/SyncUpdateDocument.java index 7c1944107c74..5e174b20db3b 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/SyncUpdateDocument.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/SyncUpdateDocument.java @@ -20,6 +20,7 @@ import com.google.cloud.discoveryengine.v1alpha.Document; import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; import com.google.cloud.discoveryengine.v1alpha.UpdateDocumentRequest; +import com.google.protobuf.FieldMask; public class SyncUpdateDocument { @@ -38,6 +39,7 @@ public static void syncUpdateDocument() throws Exception { UpdateDocumentRequest.newBuilder() .setDocument(Document.newBuilder().build()) .setAllowMissing(true) + .setUpdateMask(FieldMask.newBuilder().build()) .build(); Document response = documentServiceClient.updateDocument(request); } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/SyncUpdateDocumentDocumentFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/SyncUpdateDocumentDocumentFieldmask.java new file mode 100644 index 000000000000..82f7e0d99677 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/documentservice/updatedocument/SyncUpdateDocumentDocumentFieldmask.java @@ -0,0 +1,43 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_DocumentService_UpdateDocument_DocumentFieldmask_sync] +import com.google.cloud.discoveryengine.v1alpha.Document; +import com.google.cloud.discoveryengine.v1alpha.DocumentServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateDocumentDocumentFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateDocumentDocumentFieldmask(); + } + + public static void syncUpdateDocumentDocumentFieldmask() throws Exception { + // 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 (DocumentServiceClient documentServiceClient = DocumentServiceClient.create()) { + Document document = Document.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Document response = documentServiceClient.updateDocument(document, updateMask); + } + } +} +// [END discoveryengine_v1alpha_generated_DocumentService_UpdateDocument_DocumentFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..2610f0d7d0dc --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EstimateBillingService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceClient; +import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // 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 + EstimateBillingServiceSettings estimateBillingServiceSettings = + EstimateBillingServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + EstimateBillingServiceClient estimateBillingServiceClient = + EstimateBillingServiceClient.create(estimateBillingServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_EstimateBillingService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..7bf7d8b7b86d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateSetCredentialsProvider1.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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EstimateBillingService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceClient; +import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // 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 + EstimateBillingServiceSettings estimateBillingServiceSettings = + EstimateBillingServiceSettings.newHttpJsonBuilder().build(); + EstimateBillingServiceClient estimateBillingServiceClient = + EstimateBillingServiceClient.create(estimateBillingServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_EstimateBillingService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..0b3e272d6a8e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EstimateBillingService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceClient; +import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // 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 + EstimateBillingServiceSettings estimateBillingServiceSettings = + EstimateBillingServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + EstimateBillingServiceClient estimateBillingServiceClient = + EstimateBillingServiceClient.create(estimateBillingServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_EstimateBillingService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/estimatedatasize/AsyncEstimateDataSize.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/estimatedatasize/AsyncEstimateDataSize.java new file mode 100644 index 000000000000..e2707bc4af6e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/estimatedatasize/AsyncEstimateDataSize.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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EstimateBillingService_EstimateDataSize_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceClient; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest; +import com.google.cloud.discoveryengine.v1alpha.LocationName; +import com.google.longrunning.Operation; + +public class AsyncEstimateDataSize { + + public static void main(String[] args) throws Exception { + asyncEstimateDataSize(); + } + + public static void asyncEstimateDataSize() throws Exception { + // 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 (EstimateBillingServiceClient estimateBillingServiceClient = + EstimateBillingServiceClient.create()) { + EstimateDataSizeRequest request = + EstimateDataSizeRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + ApiFuture future = + estimateBillingServiceClient.estimateDataSizeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_EstimateBillingService_EstimateDataSize_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/estimatedatasize/AsyncEstimateDataSizeLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/estimatedatasize/AsyncEstimateDataSizeLRO.java new file mode 100644 index 000000000000..4d70d0cf0234 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/estimatedatasize/AsyncEstimateDataSizeLRO.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EstimateBillingService_EstimateDataSize_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceClient; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeMetadata; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse; +import com.google.cloud.discoveryengine.v1alpha.LocationName; + +public class AsyncEstimateDataSizeLRO { + + public static void main(String[] args) throws Exception { + asyncEstimateDataSizeLRO(); + } + + public static void asyncEstimateDataSizeLRO() throws Exception { + // 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 (EstimateBillingServiceClient estimateBillingServiceClient = + EstimateBillingServiceClient.create()) { + EstimateDataSizeRequest request = + EstimateDataSizeRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + OperationFuture future = + estimateBillingServiceClient.estimateDataSizeOperationCallable().futureCall(request); + // Do something. + EstimateDataSizeResponse response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_EstimateBillingService_EstimateDataSize_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/estimatedatasize/SyncEstimateDataSize.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/estimatedatasize/SyncEstimateDataSize.java new file mode 100644 index 000000000000..00089b165d6d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservice/estimatedatasize/SyncEstimateDataSize.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EstimateBillingService_EstimateDataSize_sync] +import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceClient; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeRequest; +import com.google.cloud.discoveryengine.v1alpha.EstimateDataSizeResponse; +import com.google.cloud.discoveryengine.v1alpha.LocationName; + +public class SyncEstimateDataSize { + + public static void main(String[] args) throws Exception { + syncEstimateDataSize(); + } + + public static void syncEstimateDataSize() throws Exception { + // 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 (EstimateBillingServiceClient estimateBillingServiceClient = + EstimateBillingServiceClient.create()) { + EstimateDataSizeRequest request = + EstimateDataSizeRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + EstimateDataSizeResponse response = + estimateBillingServiceClient.estimateDataSizeAsync(request).get(); + } + } +} +// [END discoveryengine_v1alpha_generated_EstimateBillingService_EstimateDataSize_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservicesettings/estimatedatasize/SyncEstimateDataSize.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservicesettings/estimatedatasize/SyncEstimateDataSize.java new file mode 100644 index 000000000000..c3c944cde79a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/estimatebillingservicesettings/estimatedatasize/SyncEstimateDataSize.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_EstimateBillingServiceSettings_EstimateDataSize_sync] +import com.google.cloud.discoveryengine.v1alpha.EstimateBillingServiceSettings; +import java.time.Duration; + +public class SyncEstimateDataSize { + + public static void main(String[] args) throws Exception { + syncEstimateDataSize(); + } + + public static void syncEstimateDataSize() throws Exception { + // 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 + EstimateBillingServiceSettings.Builder estimateBillingServiceSettingsBuilder = + EstimateBillingServiceSettings.newBuilder(); + estimateBillingServiceSettingsBuilder + .estimateDataSizeSettings() + .setRetrySettings( + estimateBillingServiceSettingsBuilder + .estimateDataSizeSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + EstimateBillingServiceSettings estimateBillingServiceSettings = + estimateBillingServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_EstimateBillingServiceSettings_EstimateDataSize_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearch.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearch.java index ecb70ae890a2..c1de57c47a0e 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearch.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearch.java @@ -19,6 +19,7 @@ // [START discoveryengine_v1alpha_generated_SearchService_Search_async] import com.google.api.core.ApiFuture; import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec; import com.google.cloud.discoveryengine.v1alpha.SearchRequest; import com.google.cloud.discoveryengine.v1alpha.SearchResponse; import com.google.cloud.discoveryengine.v1alpha.SearchServiceClient; @@ -56,6 +57,7 @@ public static void asyncSearch() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -71,6 +73,7 @@ public static void asyncSearch() throws Exception { .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) .build(); ApiFuture future = searchServiceClient.searchPagedCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearchPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearchPaged.java index 1490b214a957..daad2afa952b 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearchPaged.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/AsyncSearchPaged.java @@ -18,6 +18,7 @@ // [START discoveryengine_v1alpha_generated_SearchService_Search_Paged_async] import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec; import com.google.cloud.discoveryengine.v1alpha.SearchRequest; import com.google.cloud.discoveryengine.v1alpha.SearchResponse; import com.google.cloud.discoveryengine.v1alpha.SearchServiceClient; @@ -56,6 +57,7 @@ public static void asyncSearchPaged() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -71,6 +73,7 @@ public static void asyncSearchPaged() throws Exception { .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) .build(); while (true) { SearchResponse response = searchServiceClient.searchCallable().call(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/SyncSearch.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/SyncSearch.java index 1a1782b65ac6..9ce37ffe07ea 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/SyncSearch.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/searchservice/search/SyncSearch.java @@ -18,6 +18,7 @@ // [START discoveryengine_v1alpha_generated_SearchService_Search_sync] import com.google.cloud.discoveryengine.v1alpha.BranchName; +import com.google.cloud.discoveryengine.v1alpha.CustomFineTuningSpec; import com.google.cloud.discoveryengine.v1alpha.SearchRequest; import com.google.cloud.discoveryengine.v1alpha.SearchResponse; import com.google.cloud.discoveryengine.v1alpha.SearchServiceClient; @@ -55,6 +56,7 @@ public static void syncSearch() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -70,6 +72,7 @@ public static void syncSearch() throws Exception { .setRankingExpression("rankingExpression2110320494") .setSafeSearch(true) .putAllUserLabels(new HashMap()) + .setCustomFineTuningSpec(CustomFineTuningSpec.newBuilder().build()) .build(); for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { // doThingsWith(element); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..e9490e7e1989 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // 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 + ServingConfigServiceSettings servingConfigServiceSettings = + ServingConfigServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create(servingConfigServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..70a48ee74955 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateSetCredentialsProvider1.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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // 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 + ServingConfigServiceSettings servingConfigServiceSettings = + ServingConfigServiceSettings.newHttpJsonBuilder().build(); + ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create(servingConfigServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..41e2c89343f6 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceSettings; +import com.google.cloud.discoveryengine.v1alpha.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // 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 + ServingConfigServiceSettings servingConfigServiceSettings = + ServingConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create(servingConfigServiceSettings); + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/getservingconfig/AsyncGetServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/getservingconfig/AsyncGetServingConfig.java new file mode 100644 index 000000000000..0211aa4a632e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/getservingconfig/AsyncGetServingConfig.java @@ -0,0 +1,54 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_GetServingConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest; +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigName; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; + +public class AsyncGetServingConfig { + + public static void main(String[] args) throws Exception { + asyncGetServingConfig(); + } + + public static void asyncGetServingConfig() throws Exception { + // 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 (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + GetServingConfigRequest request = + GetServingConfigRequest.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .build(); + ApiFuture future = + servingConfigServiceClient.getServingConfigCallable().futureCall(request); + // Do something. + ServingConfig response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_GetServingConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/getservingconfig/SyncGetServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/getservingconfig/SyncGetServingConfig.java new file mode 100644 index 000000000000..2ac38f064273 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/getservingconfig/SyncGetServingConfig.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_GetServingConfig_sync] +import com.google.cloud.discoveryengine.v1alpha.GetServingConfigRequest; +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigName; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; + +public class SyncGetServingConfig { + + public static void main(String[] args) throws Exception { + syncGetServingConfig(); + } + + public static void syncGetServingConfig() throws Exception { + // 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 (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + GetServingConfigRequest request = + GetServingConfigRequest.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .build(); + ServingConfig response = servingConfigServiceClient.getServingConfig(request); + } + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_GetServingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/getservingconfig/SyncGetServingConfigServingconfigname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/getservingconfig/SyncGetServingConfigServingconfigname.java new file mode 100644 index 000000000000..c6f092a38a24 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/getservingconfig/SyncGetServingConfigServingconfigname.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_GetServingConfig_Servingconfigname_sync] +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigName; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; + +public class SyncGetServingConfigServingconfigname { + + public static void main(String[] args) throws Exception { + syncGetServingConfigServingconfigname(); + } + + public static void syncGetServingConfigServingconfigname() throws Exception { + // 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 (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + ServingConfig response = servingConfigServiceClient.getServingConfig(name); + } + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_GetServingConfig_Servingconfigname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/getservingconfig/SyncGetServingConfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/getservingconfig/SyncGetServingConfigString.java new file mode 100644 index 000000000000..d59ee1abda56 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/getservingconfig/SyncGetServingConfigString.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_GetServingConfig_String_sync] +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigName; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; + +public class SyncGetServingConfigString { + + public static void main(String[] args) throws Exception { + syncGetServingConfigString(); + } + + public static void syncGetServingConfigString() throws Exception { + // 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 (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + String name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString(); + ServingConfig response = servingConfigServiceClient.getServingConfig(name); + } + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_GetServingConfig_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/AsyncListServingConfigs.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/AsyncListServingConfigs.java new file mode 100644 index 000000000000..b14bd8501097 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/AsyncListServingConfigs.java @@ -0,0 +1,58 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_ListServingConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest; +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; + +public class AsyncListServingConfigs { + + public static void main(String[] args) throws Exception { + asyncListServingConfigs(); + } + + public static void asyncListServingConfigs() throws Exception { + // 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 (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + ListServingConfigsRequest request = + ListServingConfigsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + servingConfigServiceClient.listServingConfigsPagedCallable().futureCall(request); + // Do something. + for (ServingConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_ListServingConfigs_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/AsyncListServingConfigsPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/AsyncListServingConfigsPaged.java new file mode 100644 index 000000000000..e5baa76f6db5 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/AsyncListServingConfigsPaged.java @@ -0,0 +1,66 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_ListServingConfigs_Paged_async] +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest; +import com.google.cloud.discoveryengine.v1alpha.ListServingConfigsResponse; +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; +import com.google.common.base.Strings; + +public class AsyncListServingConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListServingConfigsPaged(); + } + + public static void asyncListServingConfigsPaged() throws Exception { + // 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 (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + ListServingConfigsRequest request = + ListServingConfigsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListServingConfigsResponse response = + servingConfigServiceClient.listServingConfigsCallable().call(request); + for (ServingConfig element : response.getServingConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_ListServingConfigs_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/SyncListServingConfigs.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/SyncListServingConfigs.java new file mode 100644 index 000000000000..d5506c24fa38 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/SyncListServingConfigs.java @@ -0,0 +1,55 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_ListServingConfigs_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ListServingConfigsRequest; +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; + +public class SyncListServingConfigs { + + public static void main(String[] args) throws Exception { + syncListServingConfigs(); + } + + public static void syncListServingConfigs() throws Exception { + // 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 (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + ListServingConfigsRequest request = + ListServingConfigsRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (ServingConfig element : + servingConfigServiceClient.listServingConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_ListServingConfigs_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/SyncListServingConfigsDatastorename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/SyncListServingConfigsDatastorename.java new file mode 100644 index 000000000000..90245778a4f4 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/SyncListServingConfigsDatastorename.java @@ -0,0 +1,47 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_ListServingConfigs_Datastorename_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; + +public class SyncListServingConfigsDatastorename { + + public static void main(String[] args) throws Exception { + syncListServingConfigsDatastorename(); + } + + public static void syncListServingConfigsDatastorename() throws Exception { + // 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 (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + for (ServingConfig element : + servingConfigServiceClient.listServingConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_ListServingConfigs_Datastorename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/SyncListServingConfigsEnginename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/SyncListServingConfigsEnginename.java new file mode 100644 index 000000000000..988af99cc5f1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/SyncListServingConfigsEnginename.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_ListServingConfigs_Enginename_sync] +import com.google.cloud.discoveryengine.v1alpha.EngineName; +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; + +public class SyncListServingConfigsEnginename { + + public static void main(String[] args) throws Exception { + syncListServingConfigsEnginename(); + } + + public static void syncListServingConfigsEnginename() throws Exception { + // 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 (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + for (ServingConfig element : + servingConfigServiceClient.listServingConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_ListServingConfigs_Enginename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/SyncListServingConfigsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/SyncListServingConfigsString.java new file mode 100644 index 000000000000..760b90e845e2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/listservingconfigs/SyncListServingConfigsString.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_ListServingConfigs_String_sync] +import com.google.cloud.discoveryengine.v1alpha.DataStoreName; +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; + +public class SyncListServingConfigsString { + + public static void main(String[] args) throws Exception { + syncListServingConfigsString(); + } + + public static void syncListServingConfigsString() throws Exception { + // 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 (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + String parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString(); + for (ServingConfig element : + servingConfigServiceClient.listServingConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_ListServingConfigs_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/updateservingconfig/AsyncUpdateServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/updateservingconfig/AsyncUpdateServingConfig.java new file mode 100644 index 000000000000..d5d8cc904b96 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/updateservingconfig/AsyncUpdateServingConfig.java @@ -0,0 +1,52 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_UpdateServingConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateServingConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateServingConfig(); + } + + public static void asyncUpdateServingConfig() throws Exception { + // 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 (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + UpdateServingConfigRequest request = + UpdateServingConfigRequest.newBuilder() + .setServingConfig(ServingConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + servingConfigServiceClient.updateServingConfigCallable().futureCall(request); + // Do something. + ServingConfig response = future.get(); + } + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_UpdateServingConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/updateservingconfig/SyncUpdateServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/updateservingconfig/SyncUpdateServingConfig.java new file mode 100644 index 000000000000..74e28a4a2f62 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/updateservingconfig/SyncUpdateServingConfig.java @@ -0,0 +1,48 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_UpdateServingConfig_sync] +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; +import com.google.cloud.discoveryengine.v1alpha.UpdateServingConfigRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateServingConfig { + + public static void main(String[] args) throws Exception { + syncUpdateServingConfig(); + } + + public static void syncUpdateServingConfig() throws Exception { + // 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 (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + UpdateServingConfigRequest request = + UpdateServingConfigRequest.newBuilder() + .setServingConfig(ServingConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ServingConfig response = servingConfigServiceClient.updateServingConfig(request); + } + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_UpdateServingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/updateservingconfig/SyncUpdateServingConfigServingconfigFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/updateservingconfig/SyncUpdateServingConfigServingconfigFieldmask.java new file mode 100644 index 000000000000..a3f89554bda1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservice/updateservingconfig/SyncUpdateServingConfigServingconfigFieldmask.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigService_UpdateServingConfig_ServingconfigFieldmask_sync] +import com.google.cloud.discoveryengine.v1alpha.ServingConfig; +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateServingConfigServingconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateServingConfigServingconfigFieldmask(); + } + + public static void syncUpdateServingConfigServingconfigFieldmask() throws Exception { + // 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 (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ServingConfig response = + servingConfigServiceClient.updateServingConfig(servingConfig, updateMask); + } + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigService_UpdateServingConfig_ServingconfigFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservicesettings/updateservingconfig/SyncUpdateServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservicesettings/updateservingconfig/SyncUpdateServingConfig.java new file mode 100644 index 000000000000..b4a5287d37e1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/servingconfigservicesettings/updateservingconfig/SyncUpdateServingConfig.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigServiceSettings_UpdateServingConfig_sync] +import com.google.cloud.discoveryengine.v1alpha.ServingConfigServiceSettings; +import java.time.Duration; + +public class SyncUpdateServingConfig { + + public static void main(String[] args) throws Exception { + syncUpdateServingConfig(); + } + + public static void syncUpdateServingConfig() throws Exception { + // 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 + ServingConfigServiceSettings.Builder servingConfigServiceSettingsBuilder = + ServingConfigServiceSettings.newBuilder(); + servingConfigServiceSettingsBuilder + .updateServingConfigSettings() + .setRetrySettings( + servingConfigServiceSettingsBuilder + .updateServingConfigSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ServingConfigServiceSettings servingConfigServiceSettings = + servingConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigServiceSettings_UpdateServingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/aclconfigservicestubsettings/updateaclconfig/SyncUpdateAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/aclconfigservicestubsettings/updateaclconfig/SyncUpdateAclConfig.java new file mode 100644 index 000000000000..42caed168e3f --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/aclconfigservicestubsettings/updateaclconfig/SyncUpdateAclConfig.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_AclConfigServiceStubSettings_UpdateAclConfig_sync] +import com.google.cloud.discoveryengine.v1alpha.stub.AclConfigServiceStubSettings; +import java.time.Duration; + +public class SyncUpdateAclConfig { + + public static void main(String[] args) throws Exception { + syncUpdateAclConfig(); + } + + public static void syncUpdateAclConfig() throws Exception { + // 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 + AclConfigServiceStubSettings.Builder aclConfigServiceSettingsBuilder = + AclConfigServiceStubSettings.newBuilder(); + aclConfigServiceSettingsBuilder + .updateAclConfigSettings() + .setRetrySettings( + aclConfigServiceSettingsBuilder + .updateAclConfigSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AclConfigServiceStubSettings aclConfigServiceSettings = aclConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_AclConfigServiceStubSettings_UpdateAclConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/chunkservicestubsettings/getchunk/SyncGetChunk.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/chunkservicestubsettings/getchunk/SyncGetChunk.java new file mode 100644 index 000000000000..d4c8dfa52ced --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/chunkservicestubsettings/getchunk/SyncGetChunk.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_ChunkServiceStubSettings_GetChunk_sync] +import com.google.cloud.discoveryengine.v1alpha.stub.ChunkServiceStubSettings; +import java.time.Duration; + +public class SyncGetChunk { + + public static void main(String[] args) throws Exception { + syncGetChunk(); + } + + public static void syncGetChunk() throws Exception { + // 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 + ChunkServiceStubSettings.Builder chunkServiceSettingsBuilder = + ChunkServiceStubSettings.newBuilder(); + chunkServiceSettingsBuilder + .getChunkSettings() + .setRetrySettings( + chunkServiceSettingsBuilder + .getChunkSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ChunkServiceStubSettings chunkServiceSettings = chunkServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_ChunkServiceStubSettings_GetChunk_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/estimatebillingservicestubsettings/estimatedatasize/SyncEstimateDataSize.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/estimatebillingservicestubsettings/estimatedatasize/SyncEstimateDataSize.java new file mode 100644 index 000000000000..cc088a51012b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/estimatebillingservicestubsettings/estimatedatasize/SyncEstimateDataSize.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_EstimateBillingServiceStubSettings_EstimateDataSize_sync] +import com.google.cloud.discoveryengine.v1alpha.stub.EstimateBillingServiceStubSettings; +import java.time.Duration; + +public class SyncEstimateDataSize { + + public static void main(String[] args) throws Exception { + syncEstimateDataSize(); + } + + public static void syncEstimateDataSize() throws Exception { + // 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 + EstimateBillingServiceStubSettings.Builder estimateBillingServiceSettingsBuilder = + EstimateBillingServiceStubSettings.newBuilder(); + estimateBillingServiceSettingsBuilder + .estimateDataSizeSettings() + .setRetrySettings( + estimateBillingServiceSettingsBuilder + .estimateDataSizeSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + EstimateBillingServiceStubSettings estimateBillingServiceSettings = + estimateBillingServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_EstimateBillingServiceStubSettings_EstimateDataSize_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/servingconfigservicestubsettings/updateservingconfig/SyncUpdateServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/servingconfigservicestubsettings/updateservingconfig/SyncUpdateServingConfig.java new file mode 100644 index 000000000000..3ce804cd2d81 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1alpha/stub/servingconfigservicestubsettings/updateservingconfig/SyncUpdateServingConfig.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1alpha.stub.samples; + +// [START discoveryengine_v1alpha_generated_ServingConfigServiceStubSettings_UpdateServingConfig_sync] +import com.google.cloud.discoveryengine.v1alpha.stub.ServingConfigServiceStubSettings; +import java.time.Duration; + +public class SyncUpdateServingConfig { + + public static void main(String[] args) throws Exception { + syncUpdateServingConfig(); + } + + public static void syncUpdateServingConfig() throws Exception { + // 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 + ServingConfigServiceStubSettings.Builder servingConfigServiceSettingsBuilder = + ServingConfigServiceStubSettings.newBuilder(); + servingConfigServiceSettingsBuilder + .updateServingConfigSettings() + .setRetrySettings( + servingConfigServiceSettingsBuilder + .updateServingConfigSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ServingConfigServiceStubSettings servingConfigServiceSettings = + servingConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1alpha_generated_ServingConfigServiceStubSettings_UpdateServingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/AsyncConverseConversation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/AsyncConverseConversation.java index bafdf0c02a0e..6e15cfd0df35 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/AsyncConverseConversation.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/AsyncConverseConversation.java @@ -58,6 +58,7 @@ public static void asyncConverseConversation() throws Exception { .putAllUserLabels(new HashMap()) .setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.newBuilder().build()) .setFilter("filter-1274492040") + .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) .build(); ApiFuture future = conversationalSearchServiceClient.converseConversationCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversation.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversation.java index d809cc3796a9..fff7d0e8d33a 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversation.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/converseconversation/SyncConverseConversation.java @@ -57,6 +57,7 @@ public static void syncConverseConversation() throws Exception { .putAllUserLabels(new HashMap()) .setSummarySpec(SearchRequest.ContentSearchSpec.SummarySpec.newBuilder().build()) .setFilter("filter-1274492040") + .setBoostSpec(SearchRequest.BoostSpec.newBuilder().build()) .build(); ConverseConversationResponse response = conversationalSearchServiceClient.converseConversation(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java index f3ca18c9bbdc..2b021a087b99 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java @@ -56,6 +56,7 @@ public static void asyncSearch() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java index 109b6d9cb3ca..83f87be36ce8 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java @@ -56,6 +56,7 @@ public static void asyncSearchPaged() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java index 1a8ff6955557..b13a905dddca 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java @@ -55,6 +55,7 @@ public static void syncSearch() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) + .addAllDataStoreSpecs(new ArrayList()) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..08d6bc67358b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SearchTuningService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceClient; +import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // 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 + SearchTuningServiceSettings searchTuningServiceSettings = + SearchTuningServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SearchTuningServiceClient searchTuningServiceClient = + SearchTuningServiceClient.create(searchTuningServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SearchTuningService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateSetCredentialsProvider1.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000000..00b0ca9605e0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateSetCredentialsProvider1.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. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SearchTuningService_Create_SetCredentialsProvider1_sync] +import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceClient; +import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // 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 + SearchTuningServiceSettings searchTuningServiceSettings = + SearchTuningServiceSettings.newHttpJsonBuilder().build(); + SearchTuningServiceClient searchTuningServiceClient = + SearchTuningServiceClient.create(searchTuningServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SearchTuningService_Create_SetCredentialsProvider1_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..e634a5f2a573 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SearchTuningService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceClient; +import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // 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 + SearchTuningServiceSettings searchTuningServiceSettings = + SearchTuningServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SearchTuningServiceClient searchTuningServiceClient = + SearchTuningServiceClient.create(searchTuningServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_SearchTuningService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/traincustommodel/AsyncTrainCustomModel.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/traincustommodel/AsyncTrainCustomModel.java new file mode 100644 index 000000000000..00f0dc970676 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/traincustommodel/AsyncTrainCustomModel.java @@ -0,0 +1,56 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SearchTuningService_TrainCustomModel_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.ImportErrorConfig; +import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceClient; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest; +import com.google.longrunning.Operation; + +public class AsyncTrainCustomModel { + + public static void main(String[] args) throws Exception { + asyncTrainCustomModel(); + } + + public static void asyncTrainCustomModel() throws Exception { + // 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 (SearchTuningServiceClient searchTuningServiceClient = SearchTuningServiceClient.create()) { + TrainCustomModelRequest request = + TrainCustomModelRequest.newBuilder() + .setDataStore( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setModelType("modelType-2010627581") + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + ApiFuture future = + searchTuningServiceClient.trainCustomModelCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_SearchTuningService_TrainCustomModel_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/traincustommodel/AsyncTrainCustomModelLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/traincustommodel/AsyncTrainCustomModelLRO.java new file mode 100644 index 000000000000..94e24cb001bb --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/traincustommodel/AsyncTrainCustomModelLRO.java @@ -0,0 +1,57 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SearchTuningService_TrainCustomModel_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.ImportErrorConfig; +import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceClient; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse; + +public class AsyncTrainCustomModelLRO { + + public static void main(String[] args) throws Exception { + asyncTrainCustomModelLRO(); + } + + public static void asyncTrainCustomModelLRO() throws Exception { + // 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 (SearchTuningServiceClient searchTuningServiceClient = SearchTuningServiceClient.create()) { + TrainCustomModelRequest request = + TrainCustomModelRequest.newBuilder() + .setDataStore( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setModelType("modelType-2010627581") + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + OperationFuture future = + searchTuningServiceClient.trainCustomModelOperationCallable().futureCall(request); + // Do something. + TrainCustomModelResponse response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_SearchTuningService_TrainCustomModel_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/traincustommodel/SyncTrainCustomModel.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/traincustommodel/SyncTrainCustomModel.java new file mode 100644 index 000000000000..d63619e86531 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservice/traincustommodel/SyncTrainCustomModel.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SearchTuningService_TrainCustomModel_sync] +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.ImportErrorConfig; +import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceClient; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest; +import com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse; + +public class SyncTrainCustomModel { + + public static void main(String[] args) throws Exception { + syncTrainCustomModel(); + } + + public static void syncTrainCustomModel() throws Exception { + // 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 (SearchTuningServiceClient searchTuningServiceClient = SearchTuningServiceClient.create()) { + TrainCustomModelRequest request = + TrainCustomModelRequest.newBuilder() + .setDataStore( + DataStoreName.ofProjectLocationCollectionDataStoreName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[DATA_STORE]") + .toString()) + .setModelType("modelType-2010627581") + .setErrorConfig(ImportErrorConfig.newBuilder().build()) + .build(); + TrainCustomModelResponse response = + searchTuningServiceClient.trainCustomModelAsync(request).get(); + } + } +} +// [END discoveryengine_v1beta_generated_SearchTuningService_TrainCustomModel_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservicesettings/traincustommodel/SyncTrainCustomModel.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservicesettings/traincustommodel/SyncTrainCustomModel.java new file mode 100644 index 000000000000..6b6795491185 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchtuningservicesettings/traincustommodel/SyncTrainCustomModel.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_SearchTuningServiceSettings_TrainCustomModel_sync] +import com.google.cloud.discoveryengine.v1beta.SearchTuningServiceSettings; +import java.time.Duration; + +public class SyncTrainCustomModel { + + public static void main(String[] args) throws Exception { + syncTrainCustomModel(); + } + + public static void syncTrainCustomModel() throws Exception { + // 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 + SearchTuningServiceSettings.Builder searchTuningServiceSettingsBuilder = + SearchTuningServiceSettings.newBuilder(); + searchTuningServiceSettingsBuilder + .trainCustomModelSettings() + .setRetrySettings( + searchTuningServiceSettingsBuilder + .trainCustomModelSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SearchTuningServiceSettings searchTuningServiceSettings = + searchTuningServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_SearchTuningServiceSettings_TrainCustomModel_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/listservingconfigs/SyncListServingConfigsEnginename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/listservingconfigs/SyncListServingConfigsEnginename.java new file mode 100644 index 000000000000..73385f7cb9c1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/listservingconfigs/SyncListServingConfigsEnginename.java @@ -0,0 +1,46 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_ServingConfigService_ListServingConfigs_Enginename_sync] +import com.google.cloud.discoveryengine.v1beta.EngineName; +import com.google.cloud.discoveryengine.v1beta.ServingConfig; +import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceClient; + +public class SyncListServingConfigsEnginename { + + public static void main(String[] args) throws Exception { + syncListServingConfigsEnginename(); + } + + public static void syncListServingConfigsEnginename() throws Exception { + // 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 (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + for (ServingConfig element : + servingConfigServiceClient.listServingConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_ServingConfigService_ListServingConfigs_Enginename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/searchtuningservicestubsettings/traincustommodel/SyncTrainCustomModel.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/searchtuningservicestubsettings/traincustommodel/SyncTrainCustomModel.java new file mode 100644 index 000000000000..0305bfc0f27a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/searchtuningservicestubsettings/traincustommodel/SyncTrainCustomModel.java @@ -0,0 +1,50 @@ +/* + * 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. + */ + +package com.google.cloud.discoveryengine.v1beta.stub.samples; + +// [START discoveryengine_v1beta_generated_SearchTuningServiceStubSettings_TrainCustomModel_sync] +import com.google.cloud.discoveryengine.v1beta.stub.SearchTuningServiceStubSettings; +import java.time.Duration; + +public class SyncTrainCustomModel { + + public static void main(String[] args) throws Exception { + syncTrainCustomModel(); + } + + public static void syncTrainCustomModel() throws Exception { + // 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 + SearchTuningServiceStubSettings.Builder searchTuningServiceSettingsBuilder = + SearchTuningServiceStubSettings.newBuilder(); + searchTuningServiceSettingsBuilder + .trainCustomModelSettings() + .setRetrySettings( + searchTuningServiceSettingsBuilder + .trainCustomModelSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SearchTuningServiceStubSettings searchTuningServiceSettings = + searchTuningServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_SearchTuningServiceStubSettings_TrainCustomModel_sync] diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java index a5cef23cb816..90d2de4518aa 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceClient.java @@ -29,6 +29,8 @@ import com.google.common.util.concurrent.MoreExecutors; import com.google.privacy.dlp.v2.ActivateJobTriggerRequest; import com.google.privacy.dlp.v2.CancelDlpJobRequest; +import com.google.privacy.dlp.v2.ColumnDataProfile; +import com.google.privacy.dlp.v2.ColumnDataProfileName; import com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.CreateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.CreateDlpJobRequest; @@ -50,12 +52,15 @@ import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.DlpJobName; import com.google.privacy.dlp.v2.FinishDlpJobRequest; +import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; +import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.GetTableDataProfileRequest; import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; import com.google.privacy.dlp.v2.HybridInspectResponse; @@ -66,6 +71,8 @@ import com.google.privacy.dlp.v2.InspectTemplateName; import com.google.privacy.dlp.v2.JobTrigger; import com.google.privacy.dlp.v2.JobTriggerName; +import com.google.privacy.dlp.v2.ListColumnDataProfilesRequest; +import com.google.privacy.dlp.v2.ListColumnDataProfilesResponse; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse; import com.google.privacy.dlp.v2.ListDiscoveryConfigsRequest; @@ -78,11 +85,17 @@ import com.google.privacy.dlp.v2.ListInspectTemplatesResponse; import com.google.privacy.dlp.v2.ListJobTriggersRequest; import com.google.privacy.dlp.v2.ListJobTriggersResponse; +import com.google.privacy.dlp.v2.ListProjectDataProfilesRequest; +import com.google.privacy.dlp.v2.ListProjectDataProfilesResponse; import com.google.privacy.dlp.v2.ListStoredInfoTypesRequest; import com.google.privacy.dlp.v2.ListStoredInfoTypesResponse; +import com.google.privacy.dlp.v2.ListTableDataProfilesRequest; +import com.google.privacy.dlp.v2.ListTableDataProfilesResponse; import com.google.privacy.dlp.v2.LocationName; import com.google.privacy.dlp.v2.OrganizationLocationName; import com.google.privacy.dlp.v2.OrganizationName; +import com.google.privacy.dlp.v2.ProjectDataProfile; +import com.google.privacy.dlp.v2.ProjectDataProfileName; import com.google.privacy.dlp.v2.ProjectName; import com.google.privacy.dlp.v2.RedactImageRequest; import com.google.privacy.dlp.v2.RedactImageResponse; @@ -92,6 +105,8 @@ import com.google.privacy.dlp.v2.StoredInfoType; import com.google.privacy.dlp.v2.StoredInfoTypeConfig; import com.google.privacy.dlp.v2.StoredInfoTypeName; +import com.google.privacy.dlp.v2.TableDataProfile; +import com.google.privacy.dlp.v2.TableDataProfileName; import com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.UpdateInspectTemplateRequest; @@ -112,7 +127,8 @@ * includes methods for sensitive data redaction and scheduling of data scans on Google Cloud * Platform based data sets. * - *

                                To learn more about concepts and find how-to guides see https://cloud.google.com/dlp/docs/. + *

                                To learn more about concepts and find how-to guides see + * https://cloud.google.com/sensitive-data-protection/docs/. * *

                                This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: @@ -150,7 +166,7 @@ *

                                InspectContent *

                                Finds potentially sensitive info in content. This method has limits on input size, processing time, and output size. *

                                When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. - *

                                For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and https://cloud.google.com/dlp/docs/inspecting-text, + *

                                For how to guides, see https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, * *

                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                *
                                  @@ -164,7 +180,7 @@ * * *

                                  RedactImage - *

                                  Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn more. + *

                                  Redacts potentially sensitive info from an image. This method has limits on input size, processing time, and output size. See https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to learn more. *

                                  When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. * *

                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                  @@ -179,7 +195,7 @@ * * *

                                  DeidentifyContent - *

                                  De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn more. + *

                                  De-identifies potentially sensitive info from a ContentItem. This method has limits on input size and output size. See https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn more. *

                                  When no InfoTypes or CustomInfoTypes are specified in this request, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. * *

                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                  @@ -194,7 +210,7 @@ * * *

                                  ReidentifyContent - *

                                  Re-identifies content that has been de-identified. See https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example to learn more. + *

                                  Re-identifies content that has been de-identified. See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example to learn more. * *

                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                  *
                                    @@ -208,7 +224,7 @@ * * *

                                    ListInfoTypes - *

                                    Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/dlp/docs/infotypes-reference to learn more. + *

                                    Returns a list of the sensitive information types that DLP API supports. See https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more. * *

                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                    *
                                      @@ -226,7 +242,7 @@ * * *

                                      CreateInspectTemplate - *

                                      Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + *

                                      Creates an InspectTemplate for reusing frequently used configuration for inspecting content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                      *
                                        @@ -248,7 +264,7 @@ * * *

                                        UpdateInspectTemplate - *

                                        Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + *

                                        Updates the InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                        *
                                          @@ -267,7 +283,7 @@ * * *

                                          GetInspectTemplate - *

                                          Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + *

                                          Gets an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                          *
                                            @@ -286,7 +302,7 @@ * * *

                                            ListInspectTemplates - *

                                            Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + *

                                            Lists InspectTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                            *
                                              @@ -309,7 +325,7 @@ * * *

                                              DeleteInspectTemplate - *

                                              Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + *

                                              Deletes an InspectTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                              *
                                                @@ -328,7 +344,7 @@ * * *

                                                CreateDeidentifyTemplate - *

                                                Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + *

                                                Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying content, images, and storage. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                *
                                                  @@ -350,7 +366,7 @@ * * *

                                                  UpdateDeidentifyTemplate - *

                                                  Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + *

                                                  Updates the DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                  *
                                                    @@ -369,7 +385,7 @@ * * *

                                                    GetDeidentifyTemplate - *

                                                    Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + *

                                                    Gets a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                    *
                                                      @@ -388,7 +404,7 @@ * * *

                                                      ListDeidentifyTemplates - *

                                                      Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + *

                                                      Lists DeidentifyTemplates. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                      *
                                                        @@ -411,7 +427,7 @@ * * *

                                                        DeleteDeidentifyTemplate - *

                                                        Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to learn more. + *

                                                        Deletes a DeidentifyTemplate. See https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                        *
                                                          @@ -430,7 +446,7 @@ * * *

                                                          CreateJobTrigger - *

                                                          Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + *

                                                          Creates a job trigger to run DLP actions such as scanning storage for sensitive information on a set schedule. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                          *
                                                            @@ -450,7 +466,7 @@ * * *

                                                            UpdateJobTrigger - *

                                                            Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + *

                                                            Updates a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                            *
                                                              @@ -488,7 +504,7 @@ * * *

                                                              GetJobTrigger - *

                                                              Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + *

                                                              Gets a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                              *
                                                                @@ -507,7 +523,7 @@ * * *

                                                                ListJobTriggers - *

                                                                Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + *

                                                                Lists job triggers. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                *
                                                                  @@ -528,7 +544,7 @@ * * *

                                                                  DeleteJobTrigger - *

                                                                  Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + *

                                                                  Deletes a job trigger. See https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                  *
                                                                    @@ -657,7 +673,7 @@ * * *

                                                                    CreateDlpJob - *

                                                                    Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + *

                                                                    Creates a new job to inspect storage or calculate risk metrics. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. *

                                                                    When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will automatically choose what detectors to run. By default this may be all types, but may change over time as detectors are updated. * *

                                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                    @@ -681,7 +697,7 @@ * * *

                                                                    ListDlpJobs - *

                                                                    Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + *

                                                                    Lists DlpJobs that match the specified filter in the request. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                    *
                                                                      @@ -702,7 +718,7 @@ * * *

                                                                      GetDlpJob - *

                                                                      Gets the latest state of a long-running DlpJob. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + *

                                                                      Gets the latest state of a long-running DlpJob. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                      *
                                                                        @@ -721,7 +737,7 @@ * * *

                                                                        DeleteDlpJob - *

                                                                        Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + *

                                                                        Deletes a long-running DlpJob. This method indicates that the client is no longer interested in the DlpJob result. The job will be canceled if possible. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                        Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                        *
                                                                          @@ -740,7 +756,7 @@ * * *

                                                                          CancelDlpJob - *

                                                                          Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/dlp/docs/inspecting-storage and https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + *

                                                                          Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to cancel the DlpJob, but success is not guaranteed. See https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                          Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                          *
                                                                            @@ -754,7 +770,7 @@ * * *

                                                                            CreateStoredInfoType - *

                                                                            Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + *

                                                                            Creates a pre-built stored infoType to be used for inspection. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. * *

                                                                            Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                            *
                                                                              @@ -776,7 +792,7 @@ * * *

                                                                              UpdateStoredInfoType - *

                                                                              Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + *

                                                                              Updates the stored infoType by creating a new version. The existing version will continue to be used until the new version is ready. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. * *

                                                                              Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                              *
                                                                                @@ -795,7 +811,7 @@ * * *

                                                                                GetStoredInfoType - *

                                                                                Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + *

                                                                                Gets a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. * *

                                                                                Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                *
                                                                                  @@ -814,7 +830,7 @@ * * *

                                                                                  ListStoredInfoTypes - *

                                                                                  Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + *

                                                                                  Lists stored infoTypes. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. * *

                                                                                  Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                  *
                                                                                    @@ -837,7 +853,7 @@ * * *

                                                                                    DeleteStoredInfoType - *

                                                                                    Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + *

                                                                                    Deletes a stored infoType. See https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn more. * *

                                                                                    Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                    *
                                                                                      @@ -855,6 +871,126 @@ * * * + *

                                                                                      ListProjectDataProfiles + *

                                                                                      Lists data profiles for an organization. + * + *

                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                      + *
                                                                                        + *
                                                                                      • listProjectDataProfiles(ListProjectDataProfilesRequest request) + *

                                                                                      + *

                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                      + *
                                                                                        + *
                                                                                      • listProjectDataProfiles(LocationName parent) + *

                                                                                      • listProjectDataProfiles(OrganizationLocationName parent) + *

                                                                                      • listProjectDataProfiles(String parent) + *

                                                                                      + *

                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                      + *
                                                                                        + *
                                                                                      • listProjectDataProfilesPagedCallable() + *

                                                                                      • listProjectDataProfilesCallable() + *

                                                                                      + * + * + * + *

                                                                                      ListTableDataProfiles + *

                                                                                      Lists data profiles for an organization. + * + *

                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                      + *
                                                                                        + *
                                                                                      • listTableDataProfiles(ListTableDataProfilesRequest request) + *

                                                                                      + *

                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                      + *
                                                                                        + *
                                                                                      • listTableDataProfiles(LocationName parent) + *

                                                                                      • listTableDataProfiles(OrganizationLocationName parent) + *

                                                                                      • listTableDataProfiles(String parent) + *

                                                                                      + *

                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                      + *
                                                                                        + *
                                                                                      • listTableDataProfilesPagedCallable() + *

                                                                                      • listTableDataProfilesCallable() + *

                                                                                      + * + * + * + *

                                                                                      ListColumnDataProfiles + *

                                                                                      Lists data profiles for an organization. + * + *

                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                      + *
                                                                                        + *
                                                                                      • listColumnDataProfiles(ListColumnDataProfilesRequest request) + *

                                                                                      + *

                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                      + *
                                                                                        + *
                                                                                      • listColumnDataProfiles(LocationName parent) + *

                                                                                      • listColumnDataProfiles(OrganizationLocationName parent) + *

                                                                                      • listColumnDataProfiles(String parent) + *

                                                                                      + *

                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                      + *
                                                                                        + *
                                                                                      • listColumnDataProfilesPagedCallable() + *

                                                                                      • listColumnDataProfilesCallable() + *

                                                                                      + * + * + * + *

                                                                                      GetProjectDataProfile + *

                                                                                      Gets a project data profile. + * + *

                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                      + *
                                                                                        + *
                                                                                      • getProjectDataProfile(GetProjectDataProfileRequest request) + *

                                                                                      + *

                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                      + *
                                                                                        + *
                                                                                      • getProjectDataProfile(ProjectDataProfileName name) + *

                                                                                      • getProjectDataProfile(String name) + *

                                                                                      + *

                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                      + *
                                                                                        + *
                                                                                      • getProjectDataProfileCallable() + *

                                                                                      + * + * + * + *

                                                                                      GetTableDataProfile + *

                                                                                      Gets a table data profile. + * + *

                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                      + *
                                                                                        + *
                                                                                      • getTableDataProfile(GetTableDataProfileRequest request) + *

                                                                                      + *

                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                      + *
                                                                                        + *
                                                                                      • getTableDataProfile(TableDataProfileName name) + *

                                                                                      • getTableDataProfile(String name) + *

                                                                                      + *

                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                      + *
                                                                                        + *
                                                                                      • getTableDataProfileCallable() + *

                                                                                      + * + * + * + *

                                                                                      GetColumnDataProfile + *

                                                                                      Gets a column data profile. + * + *

                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                      + *
                                                                                        + *
                                                                                      • getColumnDataProfile(GetColumnDataProfileRequest request) + *

                                                                                      + *

                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                      + *
                                                                                        + *
                                                                                      • getColumnDataProfile(ColumnDataProfileName name) + *

                                                                                      • getColumnDataProfile(String name) + *

                                                                                      + *

                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                      + *
                                                                                        + *
                                                                                      • getColumnDataProfileCallable() + *

                                                                                      + * + * + * *

                                                                                      HybridInspectDlpJob *

                                                                                      Inspect hybrid content and store findings to a job. To review the findings, inspect the job. Inspection will occur asynchronously. * @@ -998,8 +1134,9 @@ public DlpServiceStub getStub() { * automatically choose what detectors to run. By default this may be all types, but may change * over time as detectors are updated. * - *

                                                                                      For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and - * https://cloud.google.com/dlp/docs/inspecting-text, + *

                                                                                      For how to guides, see + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, * *

                                                                                      Sample code: * @@ -1038,8 +1175,9 @@ public final InspectContentResponse inspectContent(InspectContentRequest request * automatically choose what detectors to run. By default this may be all types, but may change * over time as detectors are updated. * - *

                                                                                      For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images and - * https://cloud.google.com/dlp/docs/inspecting-text, + *

                                                                                      For how to guides, see + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-images and + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, * *

                                                                                      Sample code: * @@ -1074,7 +1212,8 @@ public final InspectContentResponse inspectContent(InspectContentRequest request /** * Redacts potentially sensitive info from an image. This method has limits on input size, * processing time, and output size. See - * https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to + * learn more. * *

                                                                                      When no InfoTypes or CustomInfoTypes are specified in this request, the system will * automatically choose what detectors to run. By default this may be all types, but may change @@ -1113,7 +1252,8 @@ public final RedactImageResponse redactImage(RedactImageRequest request) { /** * Redacts potentially sensitive info from an image. This method has limits on input size, * processing time, and output size. See - * https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images to + * learn more. * *

                                                                                      When no InfoTypes or CustomInfoTypes are specified in this request, the system will * automatically choose what detectors to run. By default this may be all types, but may change @@ -1151,7 +1291,8 @@ public final UnaryCallable redactImageC // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * De-identifies potentially sensitive info from a ContentItem. This method has limits on input - * size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn + * size and output size. See + * https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn * more. * *

                                                                                      When no InfoTypes or CustomInfoTypes are specified in this request, the system will @@ -1191,7 +1332,8 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * De-identifies potentially sensitive info from a ContentItem. This method has limits on input - * size and output size. See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to learn + * size and output size. See + * https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data to learn * more. * *

                                                                                      When no InfoTypes or CustomInfoTypes are specified in this request, the system will @@ -1232,7 +1374,7 @@ public final DeidentifyContentResponse deidentifyContent(DeidentifyContentReques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Re-identifies content that has been de-identified. See - * https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example + * https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example * to learn more. * *

                                                                                      Sample code: @@ -1268,7 +1410,7 @@ public final ReidentifyContentResponse reidentifyContent(ReidentifyContentReques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Re-identifies content that has been de-identified. See - * https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example + * https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example * to learn more. * *

                                                                                      Sample code: @@ -1305,7 +1447,7 @@ public final ReidentifyContentResponse reidentifyContent(ReidentifyContentReques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns a list of the sensitive information types that DLP API supports. See - * https://cloud.google.com/dlp/docs/infotypes-reference to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more. * *

                                                                                      Sample code: * @@ -1334,7 +1476,7 @@ public final ListInfoTypesResponse listInfoTypes(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns a list of the sensitive information types that DLP API supports. See - * https://cloud.google.com/dlp/docs/infotypes-reference to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more. * *

                                                                                      Sample code: * @@ -1366,7 +1508,7 @@ public final ListInfoTypesResponse listInfoTypes(ListInfoTypesRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns a list of the sensitive information types that DLP API supports. See - * https://cloud.google.com/dlp/docs/infotypes-reference to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference to learn more. * *

                                                                                      Sample code: * @@ -1398,7 +1540,8 @@ public final UnaryCallable listInfo // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, - * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * images, and storage. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1418,7 +1561,7 @@ public final UnaryCallable listInfo * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -1446,7 +1589,8 @@ public final InspectTemplate createInspectTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, - * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * images, and storage. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1466,7 +1610,7 @@ public final InspectTemplate createInspectTemplate( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -1494,7 +1638,8 @@ public final InspectTemplate createInspectTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, - * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * images, and storage. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1514,7 +1659,7 @@ public final InspectTemplate createInspectTemplate( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -1542,7 +1687,8 @@ public final InspectTemplate createInspectTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, - * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * images, and storage. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1562,7 +1708,7 @@ public final InspectTemplate createInspectTemplate( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -1590,7 +1736,8 @@ public final InspectTemplate createInspectTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, - * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * images, and storage. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1610,7 +1757,7 @@ public final InspectTemplate createInspectTemplate( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -1638,7 +1785,8 @@ public final InspectTemplate createInspectTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, - * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * images, and storage. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1670,7 +1818,8 @@ public final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates an InspectTemplate for reusing frequently used configuration for inspecting content, - * images, and storage. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * images, and storage. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1702,8 +1851,8 @@ public final InspectTemplate createInspectTemplate(CreateInspectTemplateRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Updates the InspectTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1744,8 +1893,8 @@ public final InspectTemplate updateInspectTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Updates the InspectTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1787,8 +1936,8 @@ public final InspectTemplate updateInspectTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Updates the InspectTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1821,8 +1970,8 @@ public final InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Updates the InspectTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1856,8 +2005,8 @@ public final InspectTemplate updateInspectTemplate(UpdateInspectTemplateRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Gets an InspectTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1890,8 +2039,8 @@ public final InspectTemplate getInspectTemplate(InspectTemplateName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Gets an InspectTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1923,8 +2072,8 @@ public final InspectTemplate getInspectTemplate(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Gets an InspectTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1955,8 +2104,8 @@ public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest reques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Gets an InspectTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -1988,7 +2137,8 @@ public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest reques // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Lists InspectTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -2009,7 +2159,7 @@ public final InspectTemplate getInspectTemplate(GetInspectTemplateRequest reques * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -2033,7 +2183,8 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(LocationName // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Lists InspectTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -2054,7 +2205,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(LocationName * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -2079,7 +2230,8 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Lists InspectTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -2100,7 +2252,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -2124,7 +2276,8 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(Organization // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Lists InspectTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -2145,7 +2298,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(Organization * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -2169,7 +2322,8 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(ProjectName // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Lists InspectTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -2190,7 +2344,7 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(ProjectName * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -2212,7 +2366,8 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates(String paren // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Lists InspectTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -2247,7 +2402,8 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Lists InspectTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -2282,7 +2438,8 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists InspectTemplates. See https://cloud.google.com/dlp/docs/creating-templates to learn more. + * Lists InspectTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -2324,8 +2481,8 @@ public final ListInspectTemplatesPagedResponse listInspectTemplates( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Deletes an InspectTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -2358,8 +2515,8 @@ public final void deleteInspectTemplate(InspectTemplateName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Deletes an InspectTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -2391,8 +2548,8 @@ public final void deleteInspectTemplate(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Deletes an InspectTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -2423,8 +2580,8 @@ public final void deleteInspectTemplate(DeleteInspectTemplateRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an InspectTemplate. See https://cloud.google.com/dlp/docs/creating-templates to learn - * more. + * Deletes an InspectTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates to learn more. * *

                                                                                      Sample code: * @@ -2456,8 +2613,8 @@ public final UnaryCallable deleteInspectTem // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying - * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * content, images, and storage. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -2478,7 +2635,7 @@ public final UnaryCallable deleteInspectTem * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -2506,8 +2663,8 @@ public final DeidentifyTemplate createDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying - * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * content, images, and storage. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -2528,7 +2685,7 @@ public final DeidentifyTemplate createDeidentifyTemplate( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -2556,8 +2713,8 @@ public final DeidentifyTemplate createDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying - * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * content, images, and storage. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -2578,7 +2735,7 @@ public final DeidentifyTemplate createDeidentifyTemplate( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -2606,8 +2763,8 @@ public final DeidentifyTemplate createDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying - * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * content, images, and storage. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -2628,7 +2785,7 @@ public final DeidentifyTemplate createDeidentifyTemplate( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -2656,8 +2813,8 @@ public final DeidentifyTemplate createDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying - * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * content, images, and storage. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -2678,7 +2835,7 @@ public final DeidentifyTemplate createDeidentifyTemplate( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -2706,8 +2863,8 @@ public final DeidentifyTemplate createDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying - * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * content, images, and storage. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -2740,8 +2897,8 @@ public final DeidentifyTemplate createDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a DeidentifyTemplate for reusing frequently used configuration for de-identifying - * content, images, and storage. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * content, images, and storage. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -2773,8 +2930,8 @@ public final DeidentifyTemplate createDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid - * to learn more. + * Updates the DeidentifyTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -2815,8 +2972,8 @@ public final DeidentifyTemplate updateDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid - * to learn more. + * Updates the DeidentifyTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -2858,8 +3015,8 @@ public final DeidentifyTemplate updateDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid - * to learn more. + * Updates the DeidentifyTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -2893,8 +3050,8 @@ public final DeidentifyTemplate updateDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid - * to learn more. + * Updates the DeidentifyTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -2928,8 +3085,8 @@ public final DeidentifyTemplate updateDeidentifyTemplate( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Gets a DeidentifyTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -2962,8 +3119,8 @@ public final DeidentifyTemplate getDeidentifyTemplate(DeidentifyTemplateName nam // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Gets a DeidentifyTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -2995,8 +3152,8 @@ public final DeidentifyTemplate getDeidentifyTemplate(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Gets a DeidentifyTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -3027,8 +3184,8 @@ public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Gets a DeidentifyTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -3060,8 +3217,8 @@ public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Lists DeidentifyTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -3083,7 +3240,7 @@ public final DeidentifyTemplate getDeidentifyTemplate(GetDeidentifyTemplateReque * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -3107,8 +3264,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(Locati // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Lists DeidentifyTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -3130,7 +3287,7 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(Locati * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -3155,8 +3312,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Lists DeidentifyTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -3178,7 +3335,7 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -3203,8 +3360,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Lists DeidentifyTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -3226,7 +3383,7 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -3250,8 +3407,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(Projec // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Lists DeidentifyTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -3273,7 +3430,7 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(Projec * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -3295,8 +3452,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates(String // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Lists DeidentifyTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -3332,8 +3489,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Lists DeidentifyTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -3368,8 +3525,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Lists DeidentifyTemplates. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -3411,8 +3568,8 @@ public final ListDeidentifyTemplatesPagedResponse listDeidentifyTemplates( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Deletes a DeidentifyTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -3445,8 +3602,8 @@ public final void deleteDeidentifyTemplate(DeidentifyTemplateName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Deletes a DeidentifyTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -3478,8 +3635,8 @@ public final void deleteDeidentifyTemplate(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Deletes a DeidentifyTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -3510,8 +3667,8 @@ public final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a DeidentifyTemplate. See https://cloud.google.com/dlp/docs/creating-templates-deid to - * learn more. + * Deletes a DeidentifyTemplate. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid to learn more. * *

                                                                                      Sample code: * @@ -3544,7 +3701,8 @@ public final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a job trigger to run DLP actions such as scanning storage for sensitive information on - * a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * a set schedule. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -3563,7 +3721,7 @@ public final void deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest reque * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -3586,7 +3744,8 @@ public final JobTrigger createJobTrigger(LocationName parent, JobTrigger jobTrig // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a job trigger to run DLP actions such as scanning storage for sensitive information on - * a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * a set schedule. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -3605,7 +3764,7 @@ public final JobTrigger createJobTrigger(LocationName parent, JobTrigger jobTrig * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -3628,7 +3787,8 @@ public final JobTrigger createJobTrigger(ProjectName parent, JobTrigger jobTrigg // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a job trigger to run DLP actions such as scanning storage for sensitive information on - * a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * a set schedule. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -3647,7 +3807,7 @@ public final JobTrigger createJobTrigger(ProjectName parent, JobTrigger jobTrigg * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -3667,7 +3827,8 @@ public final JobTrigger createJobTrigger(String parent, JobTrigger jobTrigger) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a job trigger to run DLP actions such as scanning storage for sensitive information on - * a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * a set schedule. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -3699,7 +3860,8 @@ public final JobTrigger createJobTrigger(CreateJobTriggerRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a job trigger to run DLP actions such as scanning storage for sensitive information on - * a set schedule. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * a set schedule. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -3730,8 +3892,8 @@ public final UnaryCallable createJobTrigger // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn - * more. + * Updates a job trigger. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -3768,8 +3930,8 @@ public final JobTrigger updateJobTrigger( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn - * more. + * Updates a job trigger. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -3806,8 +3968,8 @@ public final JobTrigger updateJobTrigger( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn - * more. + * Updates a job trigger. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -3838,8 +4000,8 @@ public final JobTrigger updateJobTrigger(UpdateJobTriggerRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn - * more. + * Updates a job trigger. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -4000,7 +4162,8 @@ public final HybridInspectResponse hybridInspectJobTrigger( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Gets a job trigger. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -4028,7 +4191,8 @@ public final JobTrigger getJobTrigger(JobTriggerName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Gets a job trigger. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -4055,7 +4219,8 @@ public final JobTrigger getJobTrigger(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Gets a job trigger. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -4084,7 +4249,8 @@ public final JobTrigger getJobTrigger(GetJobTriggerRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Gets a job trigger. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -4112,7 +4278,8 @@ public final UnaryCallable getJobTriggerCallab // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Lists job triggers. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -4132,7 +4299,7 @@ public final UnaryCallable getJobTriggerCallab * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -4152,7 +4319,8 @@ public final ListJobTriggersPagedResponse listJobTriggers(LocationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Lists job triggers. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -4172,7 +4340,7 @@ public final ListJobTriggersPagedResponse listJobTriggers(LocationName parent) { * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -4192,7 +4360,8 @@ public final ListJobTriggersPagedResponse listJobTriggers(ProjectName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Lists job triggers. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -4212,7 +4381,7 @@ public final ListJobTriggersPagedResponse listJobTriggers(ProjectName parent) { * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -4229,7 +4398,8 @@ public final ListJobTriggersPagedResponse listJobTriggers(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Lists job triggers. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -4265,7 +4435,8 @@ public final ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Lists job triggers. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -4302,7 +4473,8 @@ public final ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists job triggers. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + * Lists job triggers. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -4345,8 +4517,8 @@ public final ListJobTriggersPagedResponse listJobTriggers(ListJobTriggersRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn - * more. + * Deletes a job trigger. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -4374,8 +4546,8 @@ public final void deleteJobTrigger(JobTriggerName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn - * more. + * Deletes a job trigger. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -4402,8 +4574,8 @@ public final void deleteJobTrigger(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn - * more. + * Deletes a job trigger. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -4432,8 +4604,8 @@ public final void deleteJobTrigger(DeleteJobTriggerRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a job trigger. See https://cloud.google.com/dlp/docs/creating-job-triggers to learn - * more. + * Deletes a job trigger. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers to learn more. * *

                                                                                      Sample code: * @@ -5221,8 +5393,8 @@ public final UnaryCallable deleteDiscoveryC // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new job to inspect storage or calculate risk metrics. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will * automatically choose what detectors to run. By default this may be all types, but may change @@ -5245,7 +5417,7 @@ public final UnaryCallable deleteDiscoveryC * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -5268,8 +5440,8 @@ public final DlpJob createDlpJob(LocationName parent, InspectJobConfig inspectJo // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new job to inspect storage or calculate risk metrics. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will * automatically choose what detectors to run. By default this may be all types, but may change @@ -5292,7 +5464,7 @@ public final DlpJob createDlpJob(LocationName parent, InspectJobConfig inspectJo * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -5316,8 +5488,8 @@ public final DlpJob createDlpJob(LocationName parent, RiskAnalysisJobConfig risk // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new job to inspect storage or calculate risk metrics. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will * automatically choose what detectors to run. By default this may be all types, but may change @@ -5340,7 +5512,7 @@ public final DlpJob createDlpJob(LocationName parent, RiskAnalysisJobConfig risk * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -5363,8 +5535,8 @@ public final DlpJob createDlpJob(ProjectName parent, InspectJobConfig inspectJob // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new job to inspect storage or calculate risk metrics. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will * automatically choose what detectors to run. By default this may be all types, but may change @@ -5387,7 +5559,7 @@ public final DlpJob createDlpJob(ProjectName parent, InspectJobConfig inspectJob * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -5411,8 +5583,8 @@ public final DlpJob createDlpJob(ProjectName parent, RiskAnalysisJobConfig riskJ // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new job to inspect storage or calculate risk metrics. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will * automatically choose what detectors to run. By default this may be all types, but may change @@ -5435,7 +5607,7 @@ public final DlpJob createDlpJob(ProjectName parent, RiskAnalysisJobConfig riskJ * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -5455,8 +5627,8 @@ public final DlpJob createDlpJob(String parent, InspectJobConfig inspectJob) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new job to inspect storage or calculate risk metrics. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will * automatically choose what detectors to run. By default this may be all types, but may change @@ -5479,7 +5651,7 @@ public final DlpJob createDlpJob(String parent, InspectJobConfig inspectJob) { * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -5500,8 +5672,8 @@ public final DlpJob createDlpJob(String parent, RiskAnalysisJobConfig riskJob) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new job to inspect storage or calculate risk metrics. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will * automatically choose what detectors to run. By default this may be all types, but may change @@ -5536,8 +5708,8 @@ public final DlpJob createDlpJob(CreateDlpJobRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new job to inspect storage or calculate risk metrics. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the system will * automatically choose what detectors to run. By default this may be all types, but may change @@ -5571,8 +5743,8 @@ public final UnaryCallable createDlpJobCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists DlpJobs that match the specified filter in the request. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -5592,7 +5764,7 @@ public final UnaryCallable createDlpJobCallable() { * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -5613,8 +5785,8 @@ public final ListDlpJobsPagedResponse listDlpJobs(LocationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists DlpJobs that match the specified filter in the request. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -5634,7 +5806,7 @@ public final ListDlpJobsPagedResponse listDlpJobs(LocationName parent) { * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -5655,8 +5827,8 @@ public final ListDlpJobsPagedResponse listDlpJobs(ProjectName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists DlpJobs that match the specified filter in the request. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -5676,7 +5848,7 @@ public final ListDlpJobsPagedResponse listDlpJobs(ProjectName parent) { * * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -5694,8 +5866,8 @@ public final ListDlpJobsPagedResponse listDlpJobs(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists DlpJobs that match the specified filter in the request. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -5732,8 +5904,8 @@ public final ListDlpJobsPagedResponse listDlpJobs(ListDlpJobsRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists DlpJobs that match the specified filter in the request. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -5770,8 +5942,8 @@ public final ListDlpJobsPagedResponse listDlpJobs(ListDlpJobsRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists DlpJobs that match the specified filter in the request. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -5814,8 +5986,8 @@ public final UnaryCallable listDlpJobsC // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the latest state of a long-running DlpJob. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -5843,8 +6015,8 @@ public final DlpJob getDlpJob(DlpJobName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the latest state of a long-running DlpJob. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -5871,8 +6043,8 @@ public final DlpJob getDlpJob(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the latest state of a long-running DlpJob. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -5901,8 +6073,8 @@ public final DlpJob getDlpJob(GetDlpJobRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the latest state of a long-running DlpJob. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -5931,8 +6103,8 @@ public final UnaryCallable getDlpJobCallable() { /** * Deletes a long-running DlpJob. This method indicates that the client is no longer interested in * the DlpJob result. The job will be canceled if possible. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -5961,8 +6133,8 @@ public final void deleteDlpJob(DlpJobName name) { /** * Deletes a long-running DlpJob. This method indicates that the client is no longer interested in * the DlpJob result. The job will be canceled if possible. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -5990,8 +6162,8 @@ public final void deleteDlpJob(String name) { /** * Deletes a long-running DlpJob. This method indicates that the client is no longer interested in * the DlpJob result. The job will be canceled if possible. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -6021,8 +6193,8 @@ public final void deleteDlpJob(DeleteDlpJobRequest request) { /** * Deletes a long-running DlpJob. This method indicates that the client is no longer interested in * the DlpJob result. The job will be canceled if possible. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -6051,8 +6223,8 @@ public final UnaryCallable deleteDlpJobCallable() { /** * Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to * cancel the DlpJob, but success is not guaranteed. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -6082,8 +6254,8 @@ public final void cancelDlpJob(CancelDlpJobRequest request) { /** * Starts asynchronous cancellation on a long-running DlpJob. The server makes a best effort to * cancel the DlpJob, but success is not guaranteed. See - * https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis to learn more. * *

                                                                                      Sample code: * @@ -6111,7 +6283,8 @@ public final UnaryCallable cancelDlpJobCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a pre-built stored infoType to be used for inspection. See - * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6131,7 +6304,7 @@ public final UnaryCallable cancelDlpJobCallable() { * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -6159,7 +6332,8 @@ public final StoredInfoType createStoredInfoType( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a pre-built stored infoType to be used for inspection. See - * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6179,7 +6353,7 @@ public final StoredInfoType createStoredInfoType( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -6207,7 +6381,8 @@ public final StoredInfoType createStoredInfoType( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a pre-built stored infoType to be used for inspection. See - * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6227,7 +6402,7 @@ public final StoredInfoType createStoredInfoType( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -6255,7 +6430,8 @@ public final StoredInfoType createStoredInfoType( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a pre-built stored infoType to be used for inspection. See - * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6275,7 +6451,7 @@ public final StoredInfoType createStoredInfoType( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -6303,7 +6479,8 @@ public final StoredInfoType createStoredInfoType( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a pre-built stored infoType to be used for inspection. See - * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6323,7 +6500,7 @@ public final StoredInfoType createStoredInfoType( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -6347,7 +6524,8 @@ public final StoredInfoType createStoredInfoType(String parent, StoredInfoTypeCo // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a pre-built stored infoType to be used for inspection. See - * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6379,7 +6557,8 @@ public final StoredInfoType createStoredInfoType(CreateStoredInfoTypeRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a pre-built stored infoType to be used for inspection. See - * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6413,7 +6592,8 @@ public final StoredInfoType createStoredInfoType(CreateStoredInfoTypeRequest req /** * Updates the stored infoType by creating a new version. The existing version will continue to be * used until the new version is ready. See - * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6456,7 +6636,8 @@ public final StoredInfoType updateStoredInfoType( /** * Updates the stored infoType by creating a new version. The existing version will continue to be * used until the new version is ready. See - * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6500,7 +6681,8 @@ public final StoredInfoType updateStoredInfoType( /** * Updates the stored infoType by creating a new version. The existing version will continue to be * used until the new version is ready. See - * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6535,7 +6717,8 @@ public final StoredInfoType updateStoredInfoType(UpdateStoredInfoTypeRequest req /** * Updates the stored infoType by creating a new version. The existing version will continue to be * used until the new version is ready. See - * https://cloud.google.com/dlp/docs/creating-stored-infotypes to learn more. + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6569,8 +6752,9 @@ public final StoredInfoType updateStoredInfoType(UpdateStoredInfoTypeRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Gets a stored infoType. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6603,8 +6787,9 @@ public final StoredInfoType getStoredInfoType(StoredInfoTypeName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Gets a stored infoType. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6635,8 +6820,9 @@ public final StoredInfoType getStoredInfoType(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Gets a stored infoType. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6667,8 +6853,9 @@ public final StoredInfoType getStoredInfoType(GetStoredInfoTypeRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Gets a stored infoType. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6699,8 +6886,9 @@ public final UnaryCallable getStoredIn // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Lists stored infoTypes. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6721,7 +6909,7 @@ public final UnaryCallable getStoredIn * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -6741,8 +6929,9 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(LocationName p // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Lists stored infoTypes. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6763,7 +6952,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(LocationName p * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -6784,8 +6973,9 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Lists stored infoTypes. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6806,7 +6996,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -6826,8 +7016,9 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(OrganizationNa // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Lists stored infoTypes. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6848,7 +7039,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(OrganizationNa * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -6868,8 +7059,9 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(ProjectName pa // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Lists stored infoTypes. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6890,7 +7082,7 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(ProjectName pa * @param parent Required. Parent resource name. *

                                                                                      The format of this value varies depending on the scope of the request (project or * organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): *

                                                                                      + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> * + Projects scope, no location specified (defaults to global):<br/> @@ -6908,8 +7100,9 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes(String parent) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Lists stored infoTypes. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6944,8 +7137,9 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Lists stored infoTypes. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -6980,8 +7174,9 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists stored infoTypes. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Lists stored infoTypes. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -7023,8 +7218,9 @@ public final ListStoredInfoTypesPagedResponse listStoredInfoTypes( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Deletes a stored infoType. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -7057,8 +7253,9 @@ public final void deleteStoredInfoType(StoredInfoTypeName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Deletes a stored infoType. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -7090,8 +7287,9 @@ public final void deleteStoredInfoType(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Deletes a stored infoType. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -7122,8 +7320,9 @@ public final void deleteStoredInfoType(DeleteStoredInfoTypeRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a stored infoType. See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - * learn more. + * Deletes a stored infoType. See + * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes to learn + * more. * *

                                                                                      Sample code: * @@ -7153,8 +7352,7 @@ public final UnaryCallable deleteStoredInfoT // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Inspect hybrid content and store findings to a job. To review the findings, inspect the job. - * Inspection will occur asynchronously. + * Lists data profiles for an organization. * *

                                                                                      Sample code: * @@ -7165,28 +7363,28 @@ public final UnaryCallable deleteStoredInfoT * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * DlpJobName name = - * DlpJobName.ofProjectLocationDlpJobName("[PROJECT]", "[LOCATION]", "[DLP_JOB]"); - * HybridInspectResponse response = dlpServiceClient.hybridInspectDlpJob(name); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (ProjectDataProfile element : + * dlpServiceClient.listProjectDataProfiles(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. Resource name of the job to execute a hybrid inspect on, for example - * `projects/dlp-test-project/dlpJob/53234423`. + * @param parent Required. organizations/{org_id}/locations/{loc_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HybridInspectResponse hybridInspectDlpJob(DlpJobName name) { - HybridInspectDlpJobRequest request = - HybridInspectDlpJobRequest.newBuilder() - .setName(name == null ? null : name.toString()) + public final ListProjectDataProfilesPagedResponse listProjectDataProfiles(LocationName parent) { + ListProjectDataProfilesRequest request = + ListProjectDataProfilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) .build(); - return hybridInspectDlpJob(request); + return listProjectDataProfiles(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Inspect hybrid content and store findings to a job. To review the findings, inspect the job. - * Inspection will occur asynchronously. + * Lists data profiles for an organization. * *

                                                                                      Sample code: * @@ -7197,25 +7395,29 @@ public final HybridInspectResponse hybridInspectDlpJob(DlpJobName name) { * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * String name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]").toString(); - * HybridInspectResponse response = dlpServiceClient.hybridInspectDlpJob(name); + * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + * for (ProjectDataProfile element : + * dlpServiceClient.listProjectDataProfiles(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param name Required. Resource name of the job to execute a hybrid inspect on, for example - * `projects/dlp-test-project/dlpJob/53234423`. + * @param parent Required. organizations/{org_id}/locations/{loc_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HybridInspectResponse hybridInspectDlpJob(String name) { - HybridInspectDlpJobRequest request = - HybridInspectDlpJobRequest.newBuilder().setName(name).build(); - return hybridInspectDlpJob(request); + public final ListProjectDataProfilesPagedResponse listProjectDataProfiles( + OrganizationLocationName parent) { + ListProjectDataProfilesRequest request = + ListProjectDataProfilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listProjectDataProfiles(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Inspect hybrid content and store findings to a job. To review the findings, inspect the job. - * Inspection will occur asynchronously. + * Lists data profiles for an organization. * *

                                                                                      Sample code: * @@ -7226,28 +7428,26 @@ public final HybridInspectResponse hybridInspectDlpJob(String name) { * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * HybridInspectDlpJobRequest request = - * HybridInspectDlpJobRequest.newBuilder() - * .setName( - * DlpJobName.ofProjectLocationDlpJobName("[PROJECT]", "[LOCATION]", "[DLP_JOB]") - * .toString()) - * .setHybridItem(HybridContentItem.newBuilder().build()) - * .build(); - * HybridInspectResponse response = dlpServiceClient.hybridInspectDlpJob(request); + * String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + * for (ProjectDataProfile element : + * dlpServiceClient.listProjectDataProfiles(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. organizations/{org_id}/locations/{loc_id} * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final HybridInspectResponse hybridInspectDlpJob(HybridInspectDlpJobRequest request) { - return hybridInspectDlpJobCallable().call(request); + public final ListProjectDataProfilesPagedResponse listProjectDataProfiles(String parent) { + ListProjectDataProfilesRequest request = + ListProjectDataProfilesRequest.newBuilder().setParent(parent).build(); + return listProjectDataProfiles(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Inspect hybrid content and store findings to a job. To review the findings, inspect the job. - * Inspection will occur asynchronously. + * Lists data profiles for an organization. * *

                                                                                      Sample code: * @@ -7258,29 +7458,32 @@ public final HybridInspectResponse hybridInspectDlpJob(HybridInspectDlpJobReques * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * HybridInspectDlpJobRequest request = - * HybridInspectDlpJobRequest.newBuilder() - * .setName( - * DlpJobName.ofProjectLocationDlpJobName("[PROJECT]", "[LOCATION]", "[DLP_JOB]") - * .toString()) - * .setHybridItem(HybridContentItem.newBuilder().build()) + * ListProjectDataProfilesRequest request = + * ListProjectDataProfilesRequest.newBuilder() + * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + * .setPageToken("pageToken873572522") + * .setPageSize(883849137) + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * ApiFuture future = - * dlpServiceClient.hybridInspectDlpJobCallable().futureCall(request); - * // Do something. - * HybridInspectResponse response = future.get(); + * for (ProjectDataProfile element : + * dlpServiceClient.listProjectDataProfiles(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @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 UnaryCallable - hybridInspectDlpJobCallable() { - return stub.hybridInspectDlpJobCallable(); + public final ListProjectDataProfilesPagedResponse listProjectDataProfiles( + ListProjectDataProfilesRequest request) { + return listProjectDataProfilesPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled - * actions that have not yet run. + * Lists data profiles for an organization. * *

                                                                                      Sample code: * @@ -7291,13 +7494,1014 @@ public final HybridInspectResponse hybridInspectDlpJob(HybridInspectDlpJobReques * // - 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { - * FinishDlpJobRequest request = - * FinishDlpJobRequest.newBuilder() - * .setName( - * DlpJobName.ofProjectLocationDlpJobName("[PROJECT]", "[LOCATION]", "[DLP_JOB]") - * .toString()) + * ListProjectDataProfilesRequest request = + * ListProjectDataProfilesRequest.newBuilder() + * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + * .setPageToken("pageToken873572522") + * .setPageSize(883849137) + * .setOrderBy("orderBy-1207110587") + * .setFilter("filter-1274492040") * .build(); - * dlpServiceClient.finishDlpJob(request); + * ApiFuture future = + * dlpServiceClient.listProjectDataProfilesPagedCallable().futureCall(request); + * // Do something. + * for (ProjectDataProfile element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * } + */ + public final UnaryCallable + listProjectDataProfilesPagedCallable() { + return stub.listProjectDataProfilesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists data profiles for an organization. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   ListProjectDataProfilesRequest request =
                                                                                      +   *       ListProjectDataProfilesRequest.newBuilder()
                                                                                      +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                      +   *           .setPageSize(883849137)
                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                      +   *           .build();
                                                                                      +   *   while (true) {
                                                                                      +   *     ListProjectDataProfilesResponse response =
                                                                                      +   *         dlpServiceClient.listProjectDataProfilesCallable().call(request);
                                                                                      +   *     for (ProjectDataProfile element : response.getProjectDataProfilesList()) {
                                                                                      +   *       // doThingsWith(element);
                                                                                      +   *     }
                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                      +   *     } else {
                                                                                      +   *       break;
                                                                                      +   *     }
                                                                                      +   *   }
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + */ + public final UnaryCallable + listProjectDataProfilesCallable() { + return stub.listProjectDataProfilesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists data profiles for an organization. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                      +   *   for (TableDataProfile element : dlpServiceClient.listTableDataProfiles(parent).iterateAll()) {
                                                                                      +   *     // doThingsWith(element);
                                                                                      +   *   }
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @param parent Required. Resource name of the organization or project, for example + * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTableDataProfilesPagedResponse listTableDataProfiles(LocationName parent) { + ListTableDataProfilesRequest request = + ListTableDataProfilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listTableDataProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists data profiles for an organization. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                                                                      +   *   for (TableDataProfile element : dlpServiceClient.listTableDataProfiles(parent).iterateAll()) {
                                                                                      +   *     // doThingsWith(element);
                                                                                      +   *   }
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @param parent Required. Resource name of the organization or project, for example + * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTableDataProfilesPagedResponse listTableDataProfiles( + OrganizationLocationName parent) { + ListTableDataProfilesRequest request = + ListTableDataProfilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listTableDataProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists data profiles for an organization. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
                                                                                      +   *   for (TableDataProfile element : dlpServiceClient.listTableDataProfiles(parent).iterateAll()) {
                                                                                      +   *     // doThingsWith(element);
                                                                                      +   *   }
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @param parent Required. Resource name of the organization or project, for example + * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTableDataProfilesPagedResponse listTableDataProfiles(String parent) { + ListTableDataProfilesRequest request = + ListTableDataProfilesRequest.newBuilder().setParent(parent).build(); + return listTableDataProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists data profiles for an organization. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   ListTableDataProfilesRequest request =
                                                                                      +   *       ListTableDataProfilesRequest.newBuilder()
                                                                                      +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                      +   *           .setPageSize(883849137)
                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                      +   *           .build();
                                                                                      +   *   for (TableDataProfile element :
                                                                                      +   *       dlpServiceClient.listTableDataProfiles(request).iterateAll()) {
                                                                                      +   *     // doThingsWith(element);
                                                                                      +   *   }
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @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 ListTableDataProfilesPagedResponse listTableDataProfiles( + ListTableDataProfilesRequest request) { + return listTableDataProfilesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists data profiles for an organization. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   ListTableDataProfilesRequest request =
                                                                                      +   *       ListTableDataProfilesRequest.newBuilder()
                                                                                      +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                      +   *           .setPageSize(883849137)
                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                      +   *           .build();
                                                                                      +   *   ApiFuture future =
                                                                                      +   *       dlpServiceClient.listTableDataProfilesPagedCallable().futureCall(request);
                                                                                      +   *   // Do something.
                                                                                      +   *   for (TableDataProfile element : future.get().iterateAll()) {
                                                                                      +   *     // doThingsWith(element);
                                                                                      +   *   }
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + */ + public final UnaryCallable + listTableDataProfilesPagedCallable() { + return stub.listTableDataProfilesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists data profiles for an organization. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   ListTableDataProfilesRequest request =
                                                                                      +   *       ListTableDataProfilesRequest.newBuilder()
                                                                                      +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                      +   *           .setPageSize(883849137)
                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                      +   *           .build();
                                                                                      +   *   while (true) {
                                                                                      +   *     ListTableDataProfilesResponse response =
                                                                                      +   *         dlpServiceClient.listTableDataProfilesCallable().call(request);
                                                                                      +   *     for (TableDataProfile element : response.getTableDataProfilesList()) {
                                                                                      +   *       // doThingsWith(element);
                                                                                      +   *     }
                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                      +   *     } else {
                                                                                      +   *       break;
                                                                                      +   *     }
                                                                                      +   *   }
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + */ + public final UnaryCallable + listTableDataProfilesCallable() { + return stub.listTableDataProfilesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists data profiles for an organization. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
                                                                                      +   *   for (ColumnDataProfile element :
                                                                                      +   *       dlpServiceClient.listColumnDataProfiles(parent).iterateAll()) {
                                                                                      +   *     // doThingsWith(element);
                                                                                      +   *   }
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @param parent Required. Resource name of the organization or project, for example + * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListColumnDataProfilesPagedResponse listColumnDataProfiles(LocationName parent) { + ListColumnDataProfilesRequest request = + ListColumnDataProfilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listColumnDataProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists data profiles for an organization. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
                                                                                      +   *   for (ColumnDataProfile element :
                                                                                      +   *       dlpServiceClient.listColumnDataProfiles(parent).iterateAll()) {
                                                                                      +   *     // doThingsWith(element);
                                                                                      +   *   }
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @param parent Required. Resource name of the organization or project, for example + * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListColumnDataProfilesPagedResponse listColumnDataProfiles( + OrganizationLocationName parent) { + ListColumnDataProfilesRequest request = + ListColumnDataProfilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listColumnDataProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists data profiles for an organization. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
                                                                                      +   *   for (ColumnDataProfile element :
                                                                                      +   *       dlpServiceClient.listColumnDataProfiles(parent).iterateAll()) {
                                                                                      +   *     // doThingsWith(element);
                                                                                      +   *   }
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @param parent Required. Resource name of the organization or project, for example + * `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListColumnDataProfilesPagedResponse listColumnDataProfiles(String parent) { + ListColumnDataProfilesRequest request = + ListColumnDataProfilesRequest.newBuilder().setParent(parent).build(); + return listColumnDataProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists data profiles for an organization. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   ListColumnDataProfilesRequest request =
                                                                                      +   *       ListColumnDataProfilesRequest.newBuilder()
                                                                                      +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                      +   *           .setPageSize(883849137)
                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                      +   *           .build();
                                                                                      +   *   for (ColumnDataProfile element :
                                                                                      +   *       dlpServiceClient.listColumnDataProfiles(request).iterateAll()) {
                                                                                      +   *     // doThingsWith(element);
                                                                                      +   *   }
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @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 ListColumnDataProfilesPagedResponse listColumnDataProfiles( + ListColumnDataProfilesRequest request) { + return listColumnDataProfilesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists data profiles for an organization. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   ListColumnDataProfilesRequest request =
                                                                                      +   *       ListColumnDataProfilesRequest.newBuilder()
                                                                                      +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                      +   *           .setPageSize(883849137)
                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                      +   *           .build();
                                                                                      +   *   ApiFuture future =
                                                                                      +   *       dlpServiceClient.listColumnDataProfilesPagedCallable().futureCall(request);
                                                                                      +   *   // Do something.
                                                                                      +   *   for (ColumnDataProfile element : future.get().iterateAll()) {
                                                                                      +   *     // doThingsWith(element);
                                                                                      +   *   }
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + */ + public final UnaryCallable + listColumnDataProfilesPagedCallable() { + return stub.listColumnDataProfilesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists data profiles for an organization. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   ListColumnDataProfilesRequest request =
                                                                                      +   *       ListColumnDataProfilesRequest.newBuilder()
                                                                                      +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
                                                                                      +   *           .setPageToken("pageToken873572522")
                                                                                      +   *           .setPageSize(883849137)
                                                                                      +   *           .setOrderBy("orderBy-1207110587")
                                                                                      +   *           .setFilter("filter-1274492040")
                                                                                      +   *           .build();
                                                                                      +   *   while (true) {
                                                                                      +   *     ListColumnDataProfilesResponse response =
                                                                                      +   *         dlpServiceClient.listColumnDataProfilesCallable().call(request);
                                                                                      +   *     for (ColumnDataProfile element : response.getColumnDataProfilesList()) {
                                                                                      +   *       // doThingsWith(element);
                                                                                      +   *     }
                                                                                      +   *     String nextPageToken = response.getNextPageToken();
                                                                                      +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
                                                                                      +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
                                                                                      +   *     } else {
                                                                                      +   *       break;
                                                                                      +   *     }
                                                                                      +   *   }
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + */ + public final UnaryCallable + listColumnDataProfilesCallable() { + return stub.listColumnDataProfilesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a project data profile. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   ProjectDataProfileName name =
                                                                                      +   *       ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName(
                                                                                      +   *           "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]");
                                                                                      +   *   ProjectDataProfile response = dlpServiceClient.getProjectDataProfile(name);
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @param name Required. Resource name, for example + * `organizations/12345/locations/us/projectDataProfiles/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ProjectDataProfile getProjectDataProfile(ProjectDataProfileName name) { + GetProjectDataProfileRequest request = + GetProjectDataProfileRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getProjectDataProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a project data profile. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   String name =
                                                                                      +   *       ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName(
                                                                                      +   *               "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]")
                                                                                      +   *           .toString();
                                                                                      +   *   ProjectDataProfile response = dlpServiceClient.getProjectDataProfile(name);
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @param name Required. Resource name, for example + * `organizations/12345/locations/us/projectDataProfiles/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ProjectDataProfile getProjectDataProfile(String name) { + GetProjectDataProfileRequest request = + GetProjectDataProfileRequest.newBuilder().setName(name).build(); + return getProjectDataProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a project data profile. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   GetProjectDataProfileRequest request =
                                                                                      +   *       GetProjectDataProfileRequest.newBuilder()
                                                                                      +   *           .setName(
                                                                                      +   *               ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName(
                                                                                      +   *                       "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]")
                                                                                      +   *                   .toString())
                                                                                      +   *           .build();
                                                                                      +   *   ProjectDataProfile response = dlpServiceClient.getProjectDataProfile(request);
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @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 ProjectDataProfile getProjectDataProfile(GetProjectDataProfileRequest request) { + return getProjectDataProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a project data profile. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   GetProjectDataProfileRequest request =
                                                                                      +   *       GetProjectDataProfileRequest.newBuilder()
                                                                                      +   *           .setName(
                                                                                      +   *               ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName(
                                                                                      +   *                       "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]")
                                                                                      +   *                   .toString())
                                                                                      +   *           .build();
                                                                                      +   *   ApiFuture future =
                                                                                      +   *       dlpServiceClient.getProjectDataProfileCallable().futureCall(request);
                                                                                      +   *   // Do something.
                                                                                      +   *   ProjectDataProfile response = future.get();
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + */ + public final UnaryCallable + getProjectDataProfileCallable() { + return stub.getProjectDataProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a table data profile. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   TableDataProfileName name =
                                                                                      +   *       TableDataProfileName.ofOrganizationLocationTableDataProfileName(
                                                                                      +   *           "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]");
                                                                                      +   *   TableDataProfile response = dlpServiceClient.getTableDataProfile(name);
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @param name Required. Resource name, for example + * `organizations/12345/locations/us/tableDataProfiles/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TableDataProfile getTableDataProfile(TableDataProfileName name) { + GetTableDataProfileRequest request = + GetTableDataProfileRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getTableDataProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a table data profile. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   String name =
                                                                                      +   *       TableDataProfileName.ofOrganizationLocationTableDataProfileName(
                                                                                      +   *               "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]")
                                                                                      +   *           .toString();
                                                                                      +   *   TableDataProfile response = dlpServiceClient.getTableDataProfile(name);
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @param name Required. Resource name, for example + * `organizations/12345/locations/us/tableDataProfiles/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TableDataProfile getTableDataProfile(String name) { + GetTableDataProfileRequest request = + GetTableDataProfileRequest.newBuilder().setName(name).build(); + return getTableDataProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a table data profile. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   GetTableDataProfileRequest request =
                                                                                      +   *       GetTableDataProfileRequest.newBuilder()
                                                                                      +   *           .setName(
                                                                                      +   *               TableDataProfileName.ofOrganizationLocationTableDataProfileName(
                                                                                      +   *                       "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]")
                                                                                      +   *                   .toString())
                                                                                      +   *           .build();
                                                                                      +   *   TableDataProfile response = dlpServiceClient.getTableDataProfile(request);
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @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 TableDataProfile getTableDataProfile(GetTableDataProfileRequest request) { + return getTableDataProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a table data profile. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   GetTableDataProfileRequest request =
                                                                                      +   *       GetTableDataProfileRequest.newBuilder()
                                                                                      +   *           .setName(
                                                                                      +   *               TableDataProfileName.ofOrganizationLocationTableDataProfileName(
                                                                                      +   *                       "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]")
                                                                                      +   *                   .toString())
                                                                                      +   *           .build();
                                                                                      +   *   ApiFuture future =
                                                                                      +   *       dlpServiceClient.getTableDataProfileCallable().futureCall(request);
                                                                                      +   *   // Do something.
                                                                                      +   *   TableDataProfile response = future.get();
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + */ + public final UnaryCallable + getTableDataProfileCallable() { + return stub.getTableDataProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a column data profile. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   ColumnDataProfileName name =
                                                                                      +   *       ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName(
                                                                                      +   *           "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]");
                                                                                      +   *   ColumnDataProfile response = dlpServiceClient.getColumnDataProfile(name);
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @param name Required. Resource name, for example + * `organizations/12345/locations/us/columnDataProfiles/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ColumnDataProfile getColumnDataProfile(ColumnDataProfileName name) { + GetColumnDataProfileRequest request = + GetColumnDataProfileRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getColumnDataProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a column data profile. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   String name =
                                                                                      +   *       ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName(
                                                                                      +   *               "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]")
                                                                                      +   *           .toString();
                                                                                      +   *   ColumnDataProfile response = dlpServiceClient.getColumnDataProfile(name);
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @param name Required. Resource name, for example + * `organizations/12345/locations/us/columnDataProfiles/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ColumnDataProfile getColumnDataProfile(String name) { + GetColumnDataProfileRequest request = + GetColumnDataProfileRequest.newBuilder().setName(name).build(); + return getColumnDataProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a column data profile. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   GetColumnDataProfileRequest request =
                                                                                      +   *       GetColumnDataProfileRequest.newBuilder()
                                                                                      +   *           .setName(
                                                                                      +   *               ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName(
                                                                                      +   *                       "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]")
                                                                                      +   *                   .toString())
                                                                                      +   *           .build();
                                                                                      +   *   ColumnDataProfile response = dlpServiceClient.getColumnDataProfile(request);
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @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 ColumnDataProfile getColumnDataProfile(GetColumnDataProfileRequest request) { + return getColumnDataProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a column data profile. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   GetColumnDataProfileRequest request =
                                                                                      +   *       GetColumnDataProfileRequest.newBuilder()
                                                                                      +   *           .setName(
                                                                                      +   *               ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName(
                                                                                      +   *                       "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]")
                                                                                      +   *                   .toString())
                                                                                      +   *           .build();
                                                                                      +   *   ApiFuture future =
                                                                                      +   *       dlpServiceClient.getColumnDataProfileCallable().futureCall(request);
                                                                                      +   *   // Do something.
                                                                                      +   *   ColumnDataProfile response = future.get();
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + */ + public final UnaryCallable + getColumnDataProfileCallable() { + return stub.getColumnDataProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Inspect hybrid content and store findings to a job. To review the findings, inspect the job. + * Inspection will occur asynchronously. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   DlpJobName name =
                                                                                      +   *       DlpJobName.ofProjectLocationDlpJobName("[PROJECT]", "[LOCATION]", "[DLP_JOB]");
                                                                                      +   *   HybridInspectResponse response = dlpServiceClient.hybridInspectDlpJob(name);
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @param name Required. Resource name of the job to execute a hybrid inspect on, for example + * `projects/dlp-test-project/dlpJob/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HybridInspectResponse hybridInspectDlpJob(DlpJobName name) { + HybridInspectDlpJobRequest request = + HybridInspectDlpJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return hybridInspectDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Inspect hybrid content and store findings to a job. To review the findings, inspect the job. + * Inspection will occur asynchronously. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   String name = DlpJobName.ofProjectDlpJobName("[PROJECT]", "[DLP_JOB]").toString();
                                                                                      +   *   HybridInspectResponse response = dlpServiceClient.hybridInspectDlpJob(name);
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @param name Required. Resource name of the job to execute a hybrid inspect on, for example + * `projects/dlp-test-project/dlpJob/53234423`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final HybridInspectResponse hybridInspectDlpJob(String name) { + HybridInspectDlpJobRequest request = + HybridInspectDlpJobRequest.newBuilder().setName(name).build(); + return hybridInspectDlpJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Inspect hybrid content and store findings to a job. To review the findings, inspect the job. + * Inspection will occur asynchronously. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   HybridInspectDlpJobRequest request =
                                                                                      +   *       HybridInspectDlpJobRequest.newBuilder()
                                                                                      +   *           .setName(
                                                                                      +   *               DlpJobName.ofProjectLocationDlpJobName("[PROJECT]", "[LOCATION]", "[DLP_JOB]")
                                                                                      +   *                   .toString())
                                                                                      +   *           .setHybridItem(HybridContentItem.newBuilder().build())
                                                                                      +   *           .build();
                                                                                      +   *   HybridInspectResponse response = dlpServiceClient.hybridInspectDlpJob(request);
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + * + * @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 HybridInspectResponse hybridInspectDlpJob(HybridInspectDlpJobRequest request) { + return hybridInspectDlpJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Inspect hybrid content and store findings to a job. To review the findings, inspect the job. + * Inspection will occur asynchronously. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   HybridInspectDlpJobRequest request =
                                                                                      +   *       HybridInspectDlpJobRequest.newBuilder()
                                                                                      +   *           .setName(
                                                                                      +   *               DlpJobName.ofProjectLocationDlpJobName("[PROJECT]", "[LOCATION]", "[DLP_JOB]")
                                                                                      +   *                   .toString())
                                                                                      +   *           .setHybridItem(HybridContentItem.newBuilder().build())
                                                                                      +   *           .build();
                                                                                      +   *   ApiFuture future =
                                                                                      +   *       dlpServiceClient.hybridInspectDlpJobCallable().futureCall(request);
                                                                                      +   *   // Do something.
                                                                                      +   *   HybridInspectResponse response = future.get();
                                                                                      +   * }
                                                                                      +   * }
                                                                                      + */ + public final UnaryCallable + hybridInspectDlpJobCallable() { + return stub.hybridInspectDlpJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Finish a running hybrid DlpJob. Triggers the finalization steps and running of any enabled + * actions that have not yet run. + * + *

                                                                                      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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
                                                                                      +   *   FinishDlpJobRequest request =
                                                                                      +   *       FinishDlpJobRequest.newBuilder()
                                                                                      +   *           .setName(
                                                                                      +   *               DlpJobName.ofProjectLocationDlpJobName("[PROJECT]", "[LOCATION]", "[DLP_JOB]")
                                                                                      +   *                   .toString())
                                                                                      +   *           .build();
                                                                                      +   *   dlpServiceClient.finishDlpJob(request);
                                                                                          * }
                                                                                          * }
                                                                                      * @@ -7857,4 +9061,264 @@ protected ListStoredInfoTypesFixedSizeCollection createCollection( return new ListStoredInfoTypesFixedSizeCollection(pages, collectionSize); } } + + public static class ListProjectDataProfilesPagedResponse + extends AbstractPagedListResponse< + ListProjectDataProfilesRequest, + ListProjectDataProfilesResponse, + ProjectDataProfile, + ListProjectDataProfilesPage, + ListProjectDataProfilesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListProjectDataProfilesRequest, ListProjectDataProfilesResponse, ProjectDataProfile> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListProjectDataProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListProjectDataProfilesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListProjectDataProfilesPagedResponse(ListProjectDataProfilesPage page) { + super(page, ListProjectDataProfilesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListProjectDataProfilesPage + extends AbstractPage< + ListProjectDataProfilesRequest, + ListProjectDataProfilesResponse, + ProjectDataProfile, + ListProjectDataProfilesPage> { + + private ListProjectDataProfilesPage( + PageContext< + ListProjectDataProfilesRequest, ListProjectDataProfilesResponse, ProjectDataProfile> + context, + ListProjectDataProfilesResponse response) { + super(context, response); + } + + private static ListProjectDataProfilesPage createEmptyPage() { + return new ListProjectDataProfilesPage(null, null); + } + + @Override + protected ListProjectDataProfilesPage createPage( + PageContext< + ListProjectDataProfilesRequest, ListProjectDataProfilesResponse, ProjectDataProfile> + context, + ListProjectDataProfilesResponse response) { + return new ListProjectDataProfilesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListProjectDataProfilesRequest, ListProjectDataProfilesResponse, ProjectDataProfile> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListProjectDataProfilesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListProjectDataProfilesRequest, + ListProjectDataProfilesResponse, + ProjectDataProfile, + ListProjectDataProfilesPage, + ListProjectDataProfilesFixedSizeCollection> { + + private ListProjectDataProfilesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListProjectDataProfilesFixedSizeCollection createEmptyCollection() { + return new ListProjectDataProfilesFixedSizeCollection(null, 0); + } + + @Override + protected ListProjectDataProfilesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListProjectDataProfilesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListTableDataProfilesPagedResponse + extends AbstractPagedListResponse< + ListTableDataProfilesRequest, + ListTableDataProfilesResponse, + TableDataProfile, + ListTableDataProfilesPage, + ListTableDataProfilesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTableDataProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListTableDataProfilesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListTableDataProfilesPagedResponse(ListTableDataProfilesPage page) { + super(page, ListTableDataProfilesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTableDataProfilesPage + extends AbstractPage< + ListTableDataProfilesRequest, + ListTableDataProfilesResponse, + TableDataProfile, + ListTableDataProfilesPage> { + + private ListTableDataProfilesPage( + PageContext + context, + ListTableDataProfilesResponse response) { + super(context, response); + } + + private static ListTableDataProfilesPage createEmptyPage() { + return new ListTableDataProfilesPage(null, null); + } + + @Override + protected ListTableDataProfilesPage createPage( + PageContext + context, + ListTableDataProfilesResponse response) { + return new ListTableDataProfilesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTableDataProfilesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTableDataProfilesRequest, + ListTableDataProfilesResponse, + TableDataProfile, + ListTableDataProfilesPage, + ListTableDataProfilesFixedSizeCollection> { + + private ListTableDataProfilesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTableDataProfilesFixedSizeCollection createEmptyCollection() { + return new ListTableDataProfilesFixedSizeCollection(null, 0); + } + + @Override + protected ListTableDataProfilesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTableDataProfilesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListColumnDataProfilesPagedResponse + extends AbstractPagedListResponse< + ListColumnDataProfilesRequest, + ListColumnDataProfilesResponse, + ColumnDataProfile, + ListColumnDataProfilesPage, + ListColumnDataProfilesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListColumnDataProfilesRequest, ListColumnDataProfilesResponse, ColumnDataProfile> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListColumnDataProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListColumnDataProfilesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListColumnDataProfilesPagedResponse(ListColumnDataProfilesPage page) { + super(page, ListColumnDataProfilesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListColumnDataProfilesPage + extends AbstractPage< + ListColumnDataProfilesRequest, + ListColumnDataProfilesResponse, + ColumnDataProfile, + ListColumnDataProfilesPage> { + + private ListColumnDataProfilesPage( + PageContext< + ListColumnDataProfilesRequest, ListColumnDataProfilesResponse, ColumnDataProfile> + context, + ListColumnDataProfilesResponse response) { + super(context, response); + } + + private static ListColumnDataProfilesPage createEmptyPage() { + return new ListColumnDataProfilesPage(null, null); + } + + @Override + protected ListColumnDataProfilesPage createPage( + PageContext< + ListColumnDataProfilesRequest, ListColumnDataProfilesResponse, ColumnDataProfile> + context, + ListColumnDataProfilesResponse response) { + return new ListColumnDataProfilesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListColumnDataProfilesRequest, ListColumnDataProfilesResponse, ColumnDataProfile> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListColumnDataProfilesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListColumnDataProfilesRequest, + ListColumnDataProfilesResponse, + ColumnDataProfile, + ListColumnDataProfilesPage, + ListColumnDataProfilesFixedSizeCollection> { + + private ListColumnDataProfilesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListColumnDataProfilesFixedSizeCollection createEmptyCollection() { + return new ListColumnDataProfilesFixedSizeCollection(null, 0); + } + + @Override + protected ListColumnDataProfilesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListColumnDataProfilesFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java index 417257f75a45..3e773462adcc 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/DlpServiceSettings.java @@ -16,12 +16,15 @@ package com.google.cloud.dlp.v2; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListColumnDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListInspectTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListJobTriggersPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListProjectDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListStoredInfoTypesPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListTableDataProfilesPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -38,6 +41,7 @@ import com.google.cloud.dlp.v2.stub.DlpServiceStubSettings; import com.google.privacy.dlp.v2.ActivateJobTriggerRequest; import com.google.privacy.dlp.v2.CancelDlpJobRequest; +import com.google.privacy.dlp.v2.ColumnDataProfile; import com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.CreateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.CreateDlpJobRequest; @@ -56,12 +60,15 @@ import com.google.privacy.dlp.v2.DiscoveryConfig; import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.FinishDlpJobRequest; +import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; +import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.GetTableDataProfileRequest; import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; import com.google.privacy.dlp.v2.HybridInspectResponse; @@ -69,6 +76,8 @@ import com.google.privacy.dlp.v2.InspectContentResponse; import com.google.privacy.dlp.v2.InspectTemplate; import com.google.privacy.dlp.v2.JobTrigger; +import com.google.privacy.dlp.v2.ListColumnDataProfilesRequest; +import com.google.privacy.dlp.v2.ListColumnDataProfilesResponse; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse; import com.google.privacy.dlp.v2.ListDiscoveryConfigsRequest; @@ -81,13 +90,19 @@ import com.google.privacy.dlp.v2.ListInspectTemplatesResponse; import com.google.privacy.dlp.v2.ListJobTriggersRequest; import com.google.privacy.dlp.v2.ListJobTriggersResponse; +import com.google.privacy.dlp.v2.ListProjectDataProfilesRequest; +import com.google.privacy.dlp.v2.ListProjectDataProfilesResponse; import com.google.privacy.dlp.v2.ListStoredInfoTypesRequest; import com.google.privacy.dlp.v2.ListStoredInfoTypesResponse; +import com.google.privacy.dlp.v2.ListTableDataProfilesRequest; +import com.google.privacy.dlp.v2.ListTableDataProfilesResponse; +import com.google.privacy.dlp.v2.ProjectDataProfile; import com.google.privacy.dlp.v2.RedactImageRequest; import com.google.privacy.dlp.v2.RedactImageResponse; import com.google.privacy.dlp.v2.ReidentifyContentRequest; import com.google.privacy.dlp.v2.ReidentifyContentResponse; import com.google.privacy.dlp.v2.StoredInfoType; +import com.google.privacy.dlp.v2.TableDataProfile; import com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.UpdateInspectTemplateRequest; @@ -354,6 +369,51 @@ public UnaryCallSettings deleteStoredInfoTyp return ((DlpServiceStubSettings) getStubSettings()).deleteStoredInfoTypeSettings(); } + /** Returns the object with the settings used for calls to listProjectDataProfiles. */ + public PagedCallSettings< + ListProjectDataProfilesRequest, + ListProjectDataProfilesResponse, + ListProjectDataProfilesPagedResponse> + listProjectDataProfilesSettings() { + return ((DlpServiceStubSettings) getStubSettings()).listProjectDataProfilesSettings(); + } + + /** Returns the object with the settings used for calls to listTableDataProfiles. */ + public PagedCallSettings< + ListTableDataProfilesRequest, + ListTableDataProfilesResponse, + ListTableDataProfilesPagedResponse> + listTableDataProfilesSettings() { + return ((DlpServiceStubSettings) getStubSettings()).listTableDataProfilesSettings(); + } + + /** Returns the object with the settings used for calls to listColumnDataProfiles. */ + public PagedCallSettings< + ListColumnDataProfilesRequest, + ListColumnDataProfilesResponse, + ListColumnDataProfilesPagedResponse> + listColumnDataProfilesSettings() { + return ((DlpServiceStubSettings) getStubSettings()).listColumnDataProfilesSettings(); + } + + /** Returns the object with the settings used for calls to getProjectDataProfile. */ + public UnaryCallSettings + getProjectDataProfileSettings() { + return ((DlpServiceStubSettings) getStubSettings()).getProjectDataProfileSettings(); + } + + /** Returns the object with the settings used for calls to getTableDataProfile. */ + public UnaryCallSettings + getTableDataProfileSettings() { + return ((DlpServiceStubSettings) getStubSettings()).getTableDataProfileSettings(); + } + + /** Returns the object with the settings used for calls to getColumnDataProfile. */ + public UnaryCallSettings + getColumnDataProfileSettings() { + return ((DlpServiceStubSettings) getStubSettings()).getColumnDataProfileSettings(); + } + /** Returns the object with the settings used for calls to hybridInspectDlpJob. */ public UnaryCallSettings hybridInspectDlpJobSettings() { @@ -706,6 +766,51 @@ public UnaryCallSettings.Builder cancelDlpJobSetting return getStubSettingsBuilder().deleteStoredInfoTypeSettings(); } + /** Returns the builder for the settings used for calls to listProjectDataProfiles. */ + public PagedCallSettings.Builder< + ListProjectDataProfilesRequest, + ListProjectDataProfilesResponse, + ListProjectDataProfilesPagedResponse> + listProjectDataProfilesSettings() { + return getStubSettingsBuilder().listProjectDataProfilesSettings(); + } + + /** Returns the builder for the settings used for calls to listTableDataProfiles. */ + public PagedCallSettings.Builder< + ListTableDataProfilesRequest, + ListTableDataProfilesResponse, + ListTableDataProfilesPagedResponse> + listTableDataProfilesSettings() { + return getStubSettingsBuilder().listTableDataProfilesSettings(); + } + + /** Returns the builder for the settings used for calls to listColumnDataProfiles. */ + public PagedCallSettings.Builder< + ListColumnDataProfilesRequest, + ListColumnDataProfilesResponse, + ListColumnDataProfilesPagedResponse> + listColumnDataProfilesSettings() { + return getStubSettingsBuilder().listColumnDataProfilesSettings(); + } + + /** Returns the builder for the settings used for calls to getProjectDataProfile. */ + public UnaryCallSettings.Builder + getProjectDataProfileSettings() { + return getStubSettingsBuilder().getProjectDataProfileSettings(); + } + + /** Returns the builder for the settings used for calls to getTableDataProfile. */ + public UnaryCallSettings.Builder + getTableDataProfileSettings() { + return getStubSettingsBuilder().getTableDataProfileSettings(); + } + + /** Returns the builder for the settings used for calls to getColumnDataProfile. */ + public UnaryCallSettings.Builder + getColumnDataProfileSettings() { + return getStubSettingsBuilder().getColumnDataProfileSettings(); + } + /** Returns the builder for the settings used for calls to hybridInspectDlpJob. */ public UnaryCallSettings.Builder hybridInspectDlpJobSettings() { diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/gapic_metadata.json b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/gapic_metadata.json index cea9d60321af..096e54594ea4 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/gapic_metadata.json +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/gapic_metadata.json @@ -58,6 +58,9 @@ "FinishDlpJob": { "methods": ["finishDlpJob", "finishDlpJobCallable"] }, + "GetColumnDataProfile": { + "methods": ["getColumnDataProfile", "getColumnDataProfile", "getColumnDataProfile", "getColumnDataProfileCallable"] + }, "GetDeidentifyTemplate": { "methods": ["getDeidentifyTemplate", "getDeidentifyTemplate", "getDeidentifyTemplate", "getDeidentifyTemplateCallable"] }, @@ -73,9 +76,15 @@ "GetJobTrigger": { "methods": ["getJobTrigger", "getJobTrigger", "getJobTrigger", "getJobTriggerCallable"] }, + "GetProjectDataProfile": { + "methods": ["getProjectDataProfile", "getProjectDataProfile", "getProjectDataProfile", "getProjectDataProfileCallable"] + }, "GetStoredInfoType": { "methods": ["getStoredInfoType", "getStoredInfoType", "getStoredInfoType", "getStoredInfoTypeCallable"] }, + "GetTableDataProfile": { + "methods": ["getTableDataProfile", "getTableDataProfile", "getTableDataProfile", "getTableDataProfileCallable"] + }, "HybridInspectDlpJob": { "methods": ["hybridInspectDlpJob", "hybridInspectDlpJob", "hybridInspectDlpJob", "hybridInspectDlpJobCallable"] }, @@ -85,6 +94,9 @@ "InspectContent": { "methods": ["inspectContent", "inspectContentCallable"] }, + "ListColumnDataProfiles": { + "methods": ["listColumnDataProfiles", "listColumnDataProfiles", "listColumnDataProfiles", "listColumnDataProfiles", "listColumnDataProfilesPagedCallable", "listColumnDataProfilesCallable"] + }, "ListDeidentifyTemplates": { "methods": ["listDeidentifyTemplates", "listDeidentifyTemplates", "listDeidentifyTemplates", "listDeidentifyTemplates", "listDeidentifyTemplates", "listDeidentifyTemplates", "listDeidentifyTemplatesPagedCallable", "listDeidentifyTemplatesCallable"] }, @@ -103,9 +115,15 @@ "ListJobTriggers": { "methods": ["listJobTriggers", "listJobTriggers", "listJobTriggers", "listJobTriggers", "listJobTriggersPagedCallable", "listJobTriggersCallable"] }, + "ListProjectDataProfiles": { + "methods": ["listProjectDataProfiles", "listProjectDataProfiles", "listProjectDataProfiles", "listProjectDataProfiles", "listProjectDataProfilesPagedCallable", "listProjectDataProfilesCallable"] + }, "ListStoredInfoTypes": { "methods": ["listStoredInfoTypes", "listStoredInfoTypes", "listStoredInfoTypes", "listStoredInfoTypes", "listStoredInfoTypes", "listStoredInfoTypes", "listStoredInfoTypesPagedCallable", "listStoredInfoTypesCallable"] }, + "ListTableDataProfiles": { + "methods": ["listTableDataProfiles", "listTableDataProfiles", "listTableDataProfiles", "listTableDataProfiles", "listTableDataProfilesPagedCallable", "listTableDataProfilesCallable"] + }, "RedactImage": { "methods": ["redactImage", "redactImageCallable"] }, diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java index e471b49a54ec..dec73e4688a8 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/package-info.java @@ -15,7 +15,7 @@ */ /** - * A client to Cloud Data Loss Prevention (DLP) + * A client to Sensitive Data Protection (DLP) * *

                                                                                      The interfaces provided are listed below, along with usage samples. * @@ -27,7 +27,8 @@ * includes methods for sensitive data redaction and scheduling of data scans on Google Cloud * Platform based data sets. * - *

                                                                                      To learn more about concepts and find how-to guides see https://cloud.google.com/dlp/docs/. + *

                                                                                      To learn more about concepts and find how-to guides see + * https://cloud.google.com/sensitive-data-protection/docs/. * *

                                                                                      Sample for DlpServiceClient: * diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java index f5b92fd79c85..bf953a5feb74 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStub.java @@ -16,17 +16,21 @@ package com.google.cloud.dlp.v2.stub; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListColumnDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListInspectTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListJobTriggersPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListProjectDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListStoredInfoTypesPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListTableDataProfilesPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import com.google.privacy.dlp.v2.ActivateJobTriggerRequest; import com.google.privacy.dlp.v2.CancelDlpJobRequest; +import com.google.privacy.dlp.v2.ColumnDataProfile; import com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.CreateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.CreateDlpJobRequest; @@ -45,12 +49,15 @@ import com.google.privacy.dlp.v2.DiscoveryConfig; import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.FinishDlpJobRequest; +import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; +import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.GetTableDataProfileRequest; import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; import com.google.privacy.dlp.v2.HybridInspectResponse; @@ -58,6 +65,8 @@ import com.google.privacy.dlp.v2.InspectContentResponse; import com.google.privacy.dlp.v2.InspectTemplate; import com.google.privacy.dlp.v2.JobTrigger; +import com.google.privacy.dlp.v2.ListColumnDataProfilesRequest; +import com.google.privacy.dlp.v2.ListColumnDataProfilesResponse; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse; import com.google.privacy.dlp.v2.ListDiscoveryConfigsRequest; @@ -70,13 +79,19 @@ import com.google.privacy.dlp.v2.ListInspectTemplatesResponse; import com.google.privacy.dlp.v2.ListJobTriggersRequest; import com.google.privacy.dlp.v2.ListJobTriggersResponse; +import com.google.privacy.dlp.v2.ListProjectDataProfilesRequest; +import com.google.privacy.dlp.v2.ListProjectDataProfilesResponse; import com.google.privacy.dlp.v2.ListStoredInfoTypesRequest; import com.google.privacy.dlp.v2.ListStoredInfoTypesResponse; +import com.google.privacy.dlp.v2.ListTableDataProfilesRequest; +import com.google.privacy.dlp.v2.ListTableDataProfilesResponse; +import com.google.privacy.dlp.v2.ProjectDataProfile; import com.google.privacy.dlp.v2.RedactImageRequest; import com.google.privacy.dlp.v2.RedactImageResponse; import com.google.privacy.dlp.v2.ReidentifyContentRequest; import com.google.privacy.dlp.v2.ReidentifyContentResponse; import com.google.privacy.dlp.v2.StoredInfoType; +import com.google.privacy.dlp.v2.TableDataProfile; import com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.UpdateInspectTemplateRequest; @@ -286,6 +301,53 @@ public UnaryCallable deleteStoredInfoTypeCal throw new UnsupportedOperationException("Not implemented: deleteStoredInfoTypeCallable()"); } + public UnaryCallable + listProjectDataProfilesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listProjectDataProfilesPagedCallable()"); + } + + public UnaryCallable + listProjectDataProfilesCallable() { + throw new UnsupportedOperationException("Not implemented: listProjectDataProfilesCallable()"); + } + + public UnaryCallable + listTableDataProfilesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listTableDataProfilesPagedCallable()"); + } + + public UnaryCallable + listTableDataProfilesCallable() { + throw new UnsupportedOperationException("Not implemented: listTableDataProfilesCallable()"); + } + + public UnaryCallable + listColumnDataProfilesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listColumnDataProfilesPagedCallable()"); + } + + public UnaryCallable + listColumnDataProfilesCallable() { + throw new UnsupportedOperationException("Not implemented: listColumnDataProfilesCallable()"); + } + + public UnaryCallable + getProjectDataProfileCallable() { + throw new UnsupportedOperationException("Not implemented: getProjectDataProfileCallable()"); + } + + public UnaryCallable getTableDataProfileCallable() { + throw new UnsupportedOperationException("Not implemented: getTableDataProfileCallable()"); + } + + public UnaryCallable + getColumnDataProfileCallable() { + throw new UnsupportedOperationException("Not implemented: getColumnDataProfileCallable()"); + } + public UnaryCallable hybridInspectDlpJobCallable() { throw new UnsupportedOperationException("Not implemented: hybridInspectDlpJobCallable()"); diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java index b245e8c6fa93..a3a71b1046e4 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/DlpServiceStubSettings.java @@ -16,12 +16,15 @@ package com.google.cloud.dlp.v2.stub; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListColumnDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListInspectTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListJobTriggersPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListProjectDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListStoredInfoTypesPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListTableDataProfilesPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -54,6 +57,7 @@ import com.google.common.collect.Lists; import com.google.privacy.dlp.v2.ActivateJobTriggerRequest; import com.google.privacy.dlp.v2.CancelDlpJobRequest; +import com.google.privacy.dlp.v2.ColumnDataProfile; import com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.CreateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.CreateDlpJobRequest; @@ -72,12 +76,15 @@ import com.google.privacy.dlp.v2.DiscoveryConfig; import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.FinishDlpJobRequest; +import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; +import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.GetTableDataProfileRequest; import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; import com.google.privacy.dlp.v2.HybridInspectResponse; @@ -85,6 +92,8 @@ import com.google.privacy.dlp.v2.InspectContentResponse; import com.google.privacy.dlp.v2.InspectTemplate; import com.google.privacy.dlp.v2.JobTrigger; +import com.google.privacy.dlp.v2.ListColumnDataProfilesRequest; +import com.google.privacy.dlp.v2.ListColumnDataProfilesResponse; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse; import com.google.privacy.dlp.v2.ListDiscoveryConfigsRequest; @@ -97,13 +106,19 @@ import com.google.privacy.dlp.v2.ListInspectTemplatesResponse; import com.google.privacy.dlp.v2.ListJobTriggersRequest; import com.google.privacy.dlp.v2.ListJobTriggersResponse; +import com.google.privacy.dlp.v2.ListProjectDataProfilesRequest; +import com.google.privacy.dlp.v2.ListProjectDataProfilesResponse; import com.google.privacy.dlp.v2.ListStoredInfoTypesRequest; import com.google.privacy.dlp.v2.ListStoredInfoTypesResponse; +import com.google.privacy.dlp.v2.ListTableDataProfilesRequest; +import com.google.privacy.dlp.v2.ListTableDataProfilesResponse; +import com.google.privacy.dlp.v2.ProjectDataProfile; import com.google.privacy.dlp.v2.RedactImageRequest; import com.google.privacy.dlp.v2.RedactImageResponse; import com.google.privacy.dlp.v2.ReidentifyContentRequest; import com.google.privacy.dlp.v2.ReidentifyContentResponse; import com.google.privacy.dlp.v2.StoredInfoType; +import com.google.privacy.dlp.v2.TableDataProfile; import com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.UpdateInspectTemplateRequest; @@ -231,6 +246,27 @@ public class DlpServiceStubSettings extends StubSettings ListStoredInfoTypesRequest, ListStoredInfoTypesResponse, ListStoredInfoTypesPagedResponse> listStoredInfoTypesSettings; private final UnaryCallSettings deleteStoredInfoTypeSettings; + private final PagedCallSettings< + ListProjectDataProfilesRequest, + ListProjectDataProfilesResponse, + ListProjectDataProfilesPagedResponse> + listProjectDataProfilesSettings; + private final PagedCallSettings< + ListTableDataProfilesRequest, + ListTableDataProfilesResponse, + ListTableDataProfilesPagedResponse> + listTableDataProfilesSettings; + private final PagedCallSettings< + ListColumnDataProfilesRequest, + ListColumnDataProfilesResponse, + ListColumnDataProfilesPagedResponse> + listColumnDataProfilesSettings; + private final UnaryCallSettings + getProjectDataProfileSettings; + private final UnaryCallSettings + getTableDataProfileSettings; + private final UnaryCallSettings + getColumnDataProfileSettings; private final UnaryCallSettings hybridInspectDlpJobSettings; private final UnaryCallSettings finishDlpJobSettings; @@ -477,6 +513,135 @@ public Iterable extractResources(ListStoredInfoTypesResponse pay } }; + private static final PagedListDescriptor< + ListProjectDataProfilesRequest, ListProjectDataProfilesResponse, ProjectDataProfile> + LIST_PROJECT_DATA_PROFILES_PAGE_STR_DESC = + new PagedListDescriptor< + ListProjectDataProfilesRequest, + ListProjectDataProfilesResponse, + ProjectDataProfile>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListProjectDataProfilesRequest injectToken( + ListProjectDataProfilesRequest payload, String token) { + return ListProjectDataProfilesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListProjectDataProfilesRequest injectPageSize( + ListProjectDataProfilesRequest payload, int pageSize) { + return ListProjectDataProfilesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListProjectDataProfilesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListProjectDataProfilesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListProjectDataProfilesResponse payload) { + return payload.getProjectDataProfilesList() == null + ? ImmutableList.of() + : payload.getProjectDataProfilesList(); + } + }; + + private static final PagedListDescriptor< + ListTableDataProfilesRequest, ListTableDataProfilesResponse, TableDataProfile> + LIST_TABLE_DATA_PROFILES_PAGE_STR_DESC = + new PagedListDescriptor< + ListTableDataProfilesRequest, ListTableDataProfilesResponse, TableDataProfile>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTableDataProfilesRequest injectToken( + ListTableDataProfilesRequest payload, String token) { + return ListTableDataProfilesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTableDataProfilesRequest injectPageSize( + ListTableDataProfilesRequest payload, int pageSize) { + return ListTableDataProfilesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListTableDataProfilesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTableDataProfilesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListTableDataProfilesResponse payload) { + return payload.getTableDataProfilesList() == null + ? ImmutableList.of() + : payload.getTableDataProfilesList(); + } + }; + + private static final PagedListDescriptor< + ListColumnDataProfilesRequest, ListColumnDataProfilesResponse, ColumnDataProfile> + LIST_COLUMN_DATA_PROFILES_PAGE_STR_DESC = + new PagedListDescriptor< + ListColumnDataProfilesRequest, ListColumnDataProfilesResponse, ColumnDataProfile>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListColumnDataProfilesRequest injectToken( + ListColumnDataProfilesRequest payload, String token) { + return ListColumnDataProfilesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListColumnDataProfilesRequest injectPageSize( + ListColumnDataProfilesRequest payload, int pageSize) { + return ListColumnDataProfilesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListColumnDataProfilesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListColumnDataProfilesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListColumnDataProfilesResponse payload) { + return payload.getColumnDataProfilesList() == null + ? ImmutableList.of() + : payload.getColumnDataProfilesList(); + } + }; + private static final PagedListResponseFactory< ListInspectTemplatesRequest, ListInspectTemplatesResponse, @@ -607,6 +772,84 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListProjectDataProfilesRequest, + ListProjectDataProfilesResponse, + ListProjectDataProfilesPagedResponse> + LIST_PROJECT_DATA_PROFILES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListProjectDataProfilesRequest, + ListProjectDataProfilesResponse, + ListProjectDataProfilesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListProjectDataProfilesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListProjectDataProfilesRequest, + ListProjectDataProfilesResponse, + ProjectDataProfile> + pageContext = + PageContext.create( + callable, LIST_PROJECT_DATA_PROFILES_PAGE_STR_DESC, request, context); + return ListProjectDataProfilesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListTableDataProfilesRequest, + ListTableDataProfilesResponse, + ListTableDataProfilesPagedResponse> + LIST_TABLE_DATA_PROFILES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTableDataProfilesRequest, + ListTableDataProfilesResponse, + ListTableDataProfilesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListTableDataProfilesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListTableDataProfilesRequest, ListTableDataProfilesResponse, TableDataProfile> + pageContext = + PageContext.create( + callable, LIST_TABLE_DATA_PROFILES_PAGE_STR_DESC, request, context); + return ListTableDataProfilesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListColumnDataProfilesRequest, + ListColumnDataProfilesResponse, + ListColumnDataProfilesPagedResponse> + LIST_COLUMN_DATA_PROFILES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListColumnDataProfilesRequest, + ListColumnDataProfilesResponse, + ListColumnDataProfilesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListColumnDataProfilesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListColumnDataProfilesRequest, + ListColumnDataProfilesResponse, + ColumnDataProfile> + pageContext = + PageContext.create( + callable, LIST_COLUMN_DATA_PROFILES_PAGE_STR_DESC, request, context); + return ListColumnDataProfilesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to inspectContent. */ public UnaryCallSettings inspectContentSettings() { return inspectContentSettings; @@ -824,6 +1067,51 @@ public UnaryCallSettings deleteStoredInfoTyp return deleteStoredInfoTypeSettings; } + /** Returns the object with the settings used for calls to listProjectDataProfiles. */ + public PagedCallSettings< + ListProjectDataProfilesRequest, + ListProjectDataProfilesResponse, + ListProjectDataProfilesPagedResponse> + listProjectDataProfilesSettings() { + return listProjectDataProfilesSettings; + } + + /** Returns the object with the settings used for calls to listTableDataProfiles. */ + public PagedCallSettings< + ListTableDataProfilesRequest, + ListTableDataProfilesResponse, + ListTableDataProfilesPagedResponse> + listTableDataProfilesSettings() { + return listTableDataProfilesSettings; + } + + /** Returns the object with the settings used for calls to listColumnDataProfiles. */ + public PagedCallSettings< + ListColumnDataProfilesRequest, + ListColumnDataProfilesResponse, + ListColumnDataProfilesPagedResponse> + listColumnDataProfilesSettings() { + return listColumnDataProfilesSettings; + } + + /** Returns the object with the settings used for calls to getProjectDataProfile. */ + public UnaryCallSettings + getProjectDataProfileSettings() { + return getProjectDataProfileSettings; + } + + /** Returns the object with the settings used for calls to getTableDataProfile. */ + public UnaryCallSettings + getTableDataProfileSettings() { + return getTableDataProfileSettings; + } + + /** Returns the object with the settings used for calls to getColumnDataProfile. */ + public UnaryCallSettings + getColumnDataProfileSettings() { + return getColumnDataProfileSettings; + } + /** Returns the object with the settings used for calls to hybridInspectDlpJob. */ public UnaryCallSettings hybridInspectDlpJobSettings() { @@ -991,6 +1279,12 @@ protected DlpServiceStubSettings(Builder settingsBuilder) throws IOException { getStoredInfoTypeSettings = settingsBuilder.getStoredInfoTypeSettings().build(); listStoredInfoTypesSettings = settingsBuilder.listStoredInfoTypesSettings().build(); deleteStoredInfoTypeSettings = settingsBuilder.deleteStoredInfoTypeSettings().build(); + listProjectDataProfilesSettings = settingsBuilder.listProjectDataProfilesSettings().build(); + listTableDataProfilesSettings = settingsBuilder.listTableDataProfilesSettings().build(); + listColumnDataProfilesSettings = settingsBuilder.listColumnDataProfilesSettings().build(); + getProjectDataProfileSettings = settingsBuilder.getProjectDataProfileSettings().build(); + getTableDataProfileSettings = settingsBuilder.getTableDataProfileSettings().build(); + getColumnDataProfileSettings = settingsBuilder.getColumnDataProfileSettings().build(); hybridInspectDlpJobSettings = settingsBuilder.hybridInspectDlpJobSettings().build(); finishDlpJobSettings = settingsBuilder.finishDlpJobSettings().build(); } @@ -1081,6 +1375,27 @@ public static class Builder extends StubSettings.Builder deleteStoredInfoTypeSettings; + private final PagedCallSettings.Builder< + ListProjectDataProfilesRequest, + ListProjectDataProfilesResponse, + ListProjectDataProfilesPagedResponse> + listProjectDataProfilesSettings; + private final PagedCallSettings.Builder< + ListTableDataProfilesRequest, + ListTableDataProfilesResponse, + ListTableDataProfilesPagedResponse> + listTableDataProfilesSettings; + private final PagedCallSettings.Builder< + ListColumnDataProfilesRequest, + ListColumnDataProfilesResponse, + ListColumnDataProfilesPagedResponse> + listColumnDataProfilesSettings; + private final UnaryCallSettings.Builder + getProjectDataProfileSettings; + private final UnaryCallSettings.Builder + getTableDataProfileSettings; + private final UnaryCallSettings.Builder + getColumnDataProfileSettings; private final UnaryCallSettings.Builder hybridInspectDlpJobSettings; private final UnaryCallSettings.Builder finishDlpJobSettings; @@ -1175,6 +1490,15 @@ protected Builder(ClientContext clientContext) { listStoredInfoTypesSettings = PagedCallSettings.newBuilder(LIST_STORED_INFO_TYPES_PAGE_STR_FACT); deleteStoredInfoTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listProjectDataProfilesSettings = + PagedCallSettings.newBuilder(LIST_PROJECT_DATA_PROFILES_PAGE_STR_FACT); + listTableDataProfilesSettings = + PagedCallSettings.newBuilder(LIST_TABLE_DATA_PROFILES_PAGE_STR_FACT); + listColumnDataProfilesSettings = + PagedCallSettings.newBuilder(LIST_COLUMN_DATA_PROFILES_PAGE_STR_FACT); + getProjectDataProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getTableDataProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getColumnDataProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); hybridInspectDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); finishDlpJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1217,6 +1541,12 @@ protected Builder(ClientContext clientContext) { getStoredInfoTypeSettings, listStoredInfoTypesSettings, deleteStoredInfoTypeSettings, + listProjectDataProfilesSettings, + listTableDataProfilesSettings, + listColumnDataProfilesSettings, + getProjectDataProfileSettings, + getTableDataProfileSettings, + getColumnDataProfileSettings, hybridInspectDlpJobSettings, finishDlpJobSettings); initDefaults(this); @@ -1262,6 +1592,12 @@ protected Builder(DlpServiceStubSettings settings) { getStoredInfoTypeSettings = settings.getStoredInfoTypeSettings.toBuilder(); listStoredInfoTypesSettings = settings.listStoredInfoTypesSettings.toBuilder(); deleteStoredInfoTypeSettings = settings.deleteStoredInfoTypeSettings.toBuilder(); + listProjectDataProfilesSettings = settings.listProjectDataProfilesSettings.toBuilder(); + listTableDataProfilesSettings = settings.listTableDataProfilesSettings.toBuilder(); + listColumnDataProfilesSettings = settings.listColumnDataProfilesSettings.toBuilder(); + getProjectDataProfileSettings = settings.getProjectDataProfileSettings.toBuilder(); + getTableDataProfileSettings = settings.getTableDataProfileSettings.toBuilder(); + getColumnDataProfileSettings = settings.getColumnDataProfileSettings.toBuilder(); hybridInspectDlpJobSettings = settings.hybridInspectDlpJobSettings.toBuilder(); finishDlpJobSettings = settings.finishDlpJobSettings.toBuilder(); @@ -1304,6 +1640,12 @@ protected Builder(DlpServiceStubSettings settings) { getStoredInfoTypeSettings, listStoredInfoTypesSettings, deleteStoredInfoTypeSettings, + listProjectDataProfilesSettings, + listTableDataProfilesSettings, + listColumnDataProfilesSettings, + getProjectDataProfileSettings, + getTableDataProfileSettings, + getColumnDataProfileSettings, hybridInspectDlpJobSettings, finishDlpJobSettings); } @@ -1518,6 +1860,36 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .listProjectDataProfilesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listTableDataProfilesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listColumnDataProfilesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getProjectDataProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getTableDataProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getColumnDataProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .hybridInspectDlpJobSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1776,6 +2148,51 @@ public UnaryCallSettings.Builder cancelDlpJobSetting return deleteStoredInfoTypeSettings; } + /** Returns the builder for the settings used for calls to listProjectDataProfiles. */ + public PagedCallSettings.Builder< + ListProjectDataProfilesRequest, + ListProjectDataProfilesResponse, + ListProjectDataProfilesPagedResponse> + listProjectDataProfilesSettings() { + return listProjectDataProfilesSettings; + } + + /** Returns the builder for the settings used for calls to listTableDataProfiles. */ + public PagedCallSettings.Builder< + ListTableDataProfilesRequest, + ListTableDataProfilesResponse, + ListTableDataProfilesPagedResponse> + listTableDataProfilesSettings() { + return listTableDataProfilesSettings; + } + + /** Returns the builder for the settings used for calls to listColumnDataProfiles. */ + public PagedCallSettings.Builder< + ListColumnDataProfilesRequest, + ListColumnDataProfilesResponse, + ListColumnDataProfilesPagedResponse> + listColumnDataProfilesSettings() { + return listColumnDataProfilesSettings; + } + + /** Returns the builder for the settings used for calls to getProjectDataProfile. */ + public UnaryCallSettings.Builder + getProjectDataProfileSettings() { + return getProjectDataProfileSettings; + } + + /** Returns the builder for the settings used for calls to getTableDataProfile. */ + public UnaryCallSettings.Builder + getTableDataProfileSettings() { + return getTableDataProfileSettings; + } + + /** Returns the builder for the settings used for calls to getColumnDataProfile. */ + public UnaryCallSettings.Builder + getColumnDataProfileSettings() { + return getColumnDataProfileSettings; + } + /** Returns the builder for the settings used for calls to hybridInspectDlpJob. */ public UnaryCallSettings.Builder hybridInspectDlpJobSettings() { diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java index 5d6e6ecd0fde..b8e862eeb452 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/GrpcDlpServiceStub.java @@ -16,12 +16,15 @@ package com.google.cloud.dlp.v2.stub; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListColumnDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListInspectTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListJobTriggersPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListProjectDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListStoredInfoTypesPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListTableDataProfilesPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -33,6 +36,7 @@ import com.google.longrunning.stub.GrpcOperationsStub; import com.google.privacy.dlp.v2.ActivateJobTriggerRequest; import com.google.privacy.dlp.v2.CancelDlpJobRequest; +import com.google.privacy.dlp.v2.ColumnDataProfile; import com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.CreateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.CreateDlpJobRequest; @@ -51,12 +55,15 @@ import com.google.privacy.dlp.v2.DiscoveryConfig; import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.FinishDlpJobRequest; +import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; +import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.GetTableDataProfileRequest; import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; import com.google.privacy.dlp.v2.HybridInspectResponse; @@ -64,6 +71,8 @@ import com.google.privacy.dlp.v2.InspectContentResponse; import com.google.privacy.dlp.v2.InspectTemplate; import com.google.privacy.dlp.v2.JobTrigger; +import com.google.privacy.dlp.v2.ListColumnDataProfilesRequest; +import com.google.privacy.dlp.v2.ListColumnDataProfilesResponse; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse; import com.google.privacy.dlp.v2.ListDiscoveryConfigsRequest; @@ -76,13 +85,19 @@ import com.google.privacy.dlp.v2.ListInspectTemplatesResponse; import com.google.privacy.dlp.v2.ListJobTriggersRequest; import com.google.privacy.dlp.v2.ListJobTriggersResponse; +import com.google.privacy.dlp.v2.ListProjectDataProfilesRequest; +import com.google.privacy.dlp.v2.ListProjectDataProfilesResponse; import com.google.privacy.dlp.v2.ListStoredInfoTypesRequest; import com.google.privacy.dlp.v2.ListStoredInfoTypesResponse; +import com.google.privacy.dlp.v2.ListTableDataProfilesRequest; +import com.google.privacy.dlp.v2.ListTableDataProfilesResponse; +import com.google.privacy.dlp.v2.ProjectDataProfile; import com.google.privacy.dlp.v2.RedactImageRequest; import com.google.privacy.dlp.v2.RedactImageResponse; import com.google.privacy.dlp.v2.ReidentifyContentRequest; import com.google.privacy.dlp.v2.ReidentifyContentResponse; import com.google.privacy.dlp.v2.StoredInfoType; +import com.google.privacy.dlp.v2.TableDataProfile; import com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.UpdateInspectTemplateRequest; @@ -477,6 +492,73 @@ public class GrpcDlpServiceStub extends DlpServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor< + ListProjectDataProfilesRequest, ListProjectDataProfilesResponse> + listProjectDataProfilesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.privacy.dlp.v2.DlpService/ListProjectDataProfiles") + .setRequestMarshaller( + ProtoUtils.marshaller(ListProjectDataProfilesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListProjectDataProfilesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listTableDataProfilesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.privacy.dlp.v2.DlpService/ListTableDataProfiles") + .setRequestMarshaller( + ProtoUtils.marshaller(ListTableDataProfilesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListTableDataProfilesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListColumnDataProfilesRequest, ListColumnDataProfilesResponse> + listColumnDataProfilesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.privacy.dlp.v2.DlpService/ListColumnDataProfiles") + .setRequestMarshaller( + ProtoUtils.marshaller(ListColumnDataProfilesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListColumnDataProfilesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getProjectDataProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.privacy.dlp.v2.DlpService/GetProjectDataProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(GetProjectDataProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ProjectDataProfile.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getTableDataProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.privacy.dlp.v2.DlpService/GetTableDataProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(GetTableDataProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(TableDataProfile.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getColumnDataProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.privacy.dlp.v2.DlpService/GetColumnDataProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(GetColumnDataProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ColumnDataProfile.getDefaultInstance())) + .build(); + private static final MethodDescriptor hybridInspectDlpJobMethodDescriptor = MethodDescriptor.newBuilder() @@ -565,6 +647,24 @@ public class GrpcDlpServiceStub extends DlpServiceStub { private final UnaryCallable listStoredInfoTypesPagedCallable; private final UnaryCallable deleteStoredInfoTypeCallable; + private final UnaryCallable + listProjectDataProfilesCallable; + private final UnaryCallable + listProjectDataProfilesPagedCallable; + private final UnaryCallable + listTableDataProfilesCallable; + private final UnaryCallable + listTableDataProfilesPagedCallable; + private final UnaryCallable + listColumnDataProfilesCallable; + private final UnaryCallable + listColumnDataProfilesPagedCallable; + private final UnaryCallable + getProjectDataProfileCallable; + private final UnaryCallable + getTableDataProfileCallable; + private final UnaryCallable + getColumnDataProfileCallable; private final UnaryCallable hybridInspectDlpJobCallable; private final UnaryCallable finishDlpJobCallable; @@ -1003,6 +1103,75 @@ protected GrpcDlpServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + listProjectDataProfilesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listProjectDataProfilesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listTableDataProfilesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listTableDataProfilesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listColumnDataProfilesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listColumnDataProfilesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getProjectDataProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getProjectDataProfileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getTableDataProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTableDataProfileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getColumnDataProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getColumnDataProfileMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings hybridInspectDlpJobTransportSettings = GrpcCallSettings.newBuilder() @@ -1210,6 +1379,51 @@ protected GrpcDlpServiceStub( deleteStoredInfoTypeTransportSettings, settings.deleteStoredInfoTypeSettings(), clientContext); + this.listProjectDataProfilesCallable = + callableFactory.createUnaryCallable( + listProjectDataProfilesTransportSettings, + settings.listProjectDataProfilesSettings(), + clientContext); + this.listProjectDataProfilesPagedCallable = + callableFactory.createPagedCallable( + listProjectDataProfilesTransportSettings, + settings.listProjectDataProfilesSettings(), + clientContext); + this.listTableDataProfilesCallable = + callableFactory.createUnaryCallable( + listTableDataProfilesTransportSettings, + settings.listTableDataProfilesSettings(), + clientContext); + this.listTableDataProfilesPagedCallable = + callableFactory.createPagedCallable( + listTableDataProfilesTransportSettings, + settings.listTableDataProfilesSettings(), + clientContext); + this.listColumnDataProfilesCallable = + callableFactory.createUnaryCallable( + listColumnDataProfilesTransportSettings, + settings.listColumnDataProfilesSettings(), + clientContext); + this.listColumnDataProfilesPagedCallable = + callableFactory.createPagedCallable( + listColumnDataProfilesTransportSettings, + settings.listColumnDataProfilesSettings(), + clientContext); + this.getProjectDataProfileCallable = + callableFactory.createUnaryCallable( + getProjectDataProfileTransportSettings, + settings.getProjectDataProfileSettings(), + clientContext); + this.getTableDataProfileCallable = + callableFactory.createUnaryCallable( + getTableDataProfileTransportSettings, + settings.getTableDataProfileSettings(), + clientContext); + this.getColumnDataProfileCallable = + callableFactory.createUnaryCallable( + getColumnDataProfileTransportSettings, + settings.getColumnDataProfileSettings(), + clientContext); this.hybridInspectDlpJobCallable = callableFactory.createUnaryCallable( hybridInspectDlpJobTransportSettings, @@ -1461,6 +1675,59 @@ public UnaryCallable deleteStoredInfoTypeCal return deleteStoredInfoTypeCallable; } + @Override + public UnaryCallable + listProjectDataProfilesCallable() { + return listProjectDataProfilesCallable; + } + + @Override + public UnaryCallable + listProjectDataProfilesPagedCallable() { + return listProjectDataProfilesPagedCallable; + } + + @Override + public UnaryCallable + listTableDataProfilesCallable() { + return listTableDataProfilesCallable; + } + + @Override + public UnaryCallable + listTableDataProfilesPagedCallable() { + return listTableDataProfilesPagedCallable; + } + + @Override + public UnaryCallable + listColumnDataProfilesCallable() { + return listColumnDataProfilesCallable; + } + + @Override + public UnaryCallable + listColumnDataProfilesPagedCallable() { + return listColumnDataProfilesPagedCallable; + } + + @Override + public UnaryCallable + getProjectDataProfileCallable() { + return getProjectDataProfileCallable; + } + + @Override + public UnaryCallable getTableDataProfileCallable() { + return getTableDataProfileCallable; + } + + @Override + public UnaryCallable + getColumnDataProfileCallable() { + return getColumnDataProfileCallable; + } + @Override public UnaryCallable hybridInspectDlpJobCallable() { diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/HttpJsonDlpServiceStub.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/HttpJsonDlpServiceStub.java index d11969fdf95a..f9d6d139130f 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/HttpJsonDlpServiceStub.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/HttpJsonDlpServiceStub.java @@ -16,12 +16,15 @@ package com.google.cloud.dlp.v2.stub; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListColumnDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListInspectTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListJobTriggersPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListProjectDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListStoredInfoTypesPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListTableDataProfilesPagedResponse; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; @@ -37,6 +40,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.privacy.dlp.v2.ActivateJobTriggerRequest; import com.google.privacy.dlp.v2.CancelDlpJobRequest; +import com.google.privacy.dlp.v2.ColumnDataProfile; import com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.CreateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.CreateDlpJobRequest; @@ -55,12 +59,15 @@ import com.google.privacy.dlp.v2.DiscoveryConfig; import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.FinishDlpJobRequest; +import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; +import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.GetTableDataProfileRequest; import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; import com.google.privacy.dlp.v2.HybridInspectResponse; @@ -68,6 +75,8 @@ import com.google.privacy.dlp.v2.InspectContentResponse; import com.google.privacy.dlp.v2.InspectTemplate; import com.google.privacy.dlp.v2.JobTrigger; +import com.google.privacy.dlp.v2.ListColumnDataProfilesRequest; +import com.google.privacy.dlp.v2.ListColumnDataProfilesResponse; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse; import com.google.privacy.dlp.v2.ListDiscoveryConfigsRequest; @@ -80,13 +89,19 @@ import com.google.privacy.dlp.v2.ListInspectTemplatesResponse; import com.google.privacy.dlp.v2.ListJobTriggersRequest; import com.google.privacy.dlp.v2.ListJobTriggersResponse; +import com.google.privacy.dlp.v2.ListProjectDataProfilesRequest; +import com.google.privacy.dlp.v2.ListProjectDataProfilesResponse; import com.google.privacy.dlp.v2.ListStoredInfoTypesRequest; import com.google.privacy.dlp.v2.ListStoredInfoTypesResponse; +import com.google.privacy.dlp.v2.ListTableDataProfilesRequest; +import com.google.privacy.dlp.v2.ListTableDataProfilesResponse; +import com.google.privacy.dlp.v2.ProjectDataProfile; import com.google.privacy.dlp.v2.RedactImageRequest; import com.google.privacy.dlp.v2.RedactImageResponse; import com.google.privacy.dlp.v2.ReidentifyContentRequest; import com.google.privacy.dlp.v2.ReidentifyContentResponse; import com.google.privacy.dlp.v2.StoredInfoType; +import com.google.privacy.dlp.v2.TableDataProfile; import com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.UpdateInspectTemplateRequest; @@ -1559,6 +1574,234 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { .build()) .build(); + private static final ApiMethodDescriptor< + ListProjectDataProfilesRequest, ListProjectDataProfilesResponse> + listProjectDataProfilesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.privacy.dlp.v2.DlpService/ListProjectDataProfiles") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=organizations/*/locations/*}/projectDataProfiles", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v2/{parent=projects/*/locations/*}/projectDataProfiles") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListProjectDataProfilesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListTableDataProfilesRequest, ListTableDataProfilesResponse> + listTableDataProfilesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.privacy.dlp.v2.DlpService/ListTableDataProfiles") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=organizations/*/locations/*}/tableDataProfiles", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v2/{parent=projects/*/locations/*}/tableDataProfiles") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTableDataProfilesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListColumnDataProfilesRequest, ListColumnDataProfilesResponse> + listColumnDataProfilesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.privacy.dlp.v2.DlpService/ListColumnDataProfiles") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=organizations/*/locations/*}/columnDataProfiles", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths("/v2/{parent=projects/*/locations/*}/columnDataProfiles") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListColumnDataProfilesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getProjectDataProfileMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.privacy.dlp.v2.DlpService/GetProjectDataProfile") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=organizations/*/locations/*/projectDataProfiles/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v2/{name=projects/*/locations/*/projectDataProfiles/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ProjectDataProfile.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getTableDataProfileMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.privacy.dlp.v2.DlpService/GetTableDataProfile") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=organizations/*/locations/*/tableDataProfiles/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v2/{name=projects/*/locations/*/tableDataProfiles/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TableDataProfile.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getColumnDataProfileMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.privacy.dlp.v2.DlpService/GetColumnDataProfile") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=organizations/*/locations/*/columnDataProfiles/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v2/{name=projects/*/locations/*/columnDataProfiles/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ColumnDataProfile.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor hybridInspectDlpJobMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1702,6 +1945,24 @@ public class HttpJsonDlpServiceStub extends DlpServiceStub { private final UnaryCallable listStoredInfoTypesPagedCallable; private final UnaryCallable deleteStoredInfoTypeCallable; + private final UnaryCallable + listProjectDataProfilesCallable; + private final UnaryCallable + listProjectDataProfilesPagedCallable; + private final UnaryCallable + listTableDataProfilesCallable; + private final UnaryCallable + listTableDataProfilesPagedCallable; + private final UnaryCallable + listColumnDataProfilesCallable; + private final UnaryCallable + listColumnDataProfilesPagedCallable; + private final UnaryCallable + getProjectDataProfileCallable; + private final UnaryCallable + getTableDataProfileCallable; + private final UnaryCallable + getColumnDataProfileCallable; private final UnaryCallable hybridInspectDlpJobCallable; private final UnaryCallable finishDlpJobCallable; @@ -2184,6 +2445,81 @@ protected HttpJsonDlpServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listProjectDataProfilesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listProjectDataProfilesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listTableDataProfilesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listTableDataProfilesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listColumnDataProfilesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listColumnDataProfilesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getProjectDataProfileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getProjectDataProfileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getTableDataProfileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTableDataProfileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getColumnDataProfileTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getColumnDataProfileMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings hybridInspectDlpJobTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2393,6 +2729,51 @@ protected HttpJsonDlpServiceStub( deleteStoredInfoTypeTransportSettings, settings.deleteStoredInfoTypeSettings(), clientContext); + this.listProjectDataProfilesCallable = + callableFactory.createUnaryCallable( + listProjectDataProfilesTransportSettings, + settings.listProjectDataProfilesSettings(), + clientContext); + this.listProjectDataProfilesPagedCallable = + callableFactory.createPagedCallable( + listProjectDataProfilesTransportSettings, + settings.listProjectDataProfilesSettings(), + clientContext); + this.listTableDataProfilesCallable = + callableFactory.createUnaryCallable( + listTableDataProfilesTransportSettings, + settings.listTableDataProfilesSettings(), + clientContext); + this.listTableDataProfilesPagedCallable = + callableFactory.createPagedCallable( + listTableDataProfilesTransportSettings, + settings.listTableDataProfilesSettings(), + clientContext); + this.listColumnDataProfilesCallable = + callableFactory.createUnaryCallable( + listColumnDataProfilesTransportSettings, + settings.listColumnDataProfilesSettings(), + clientContext); + this.listColumnDataProfilesPagedCallable = + callableFactory.createPagedCallable( + listColumnDataProfilesTransportSettings, + settings.listColumnDataProfilesSettings(), + clientContext); + this.getProjectDataProfileCallable = + callableFactory.createUnaryCallable( + getProjectDataProfileTransportSettings, + settings.getProjectDataProfileSettings(), + clientContext); + this.getTableDataProfileCallable = + callableFactory.createUnaryCallable( + getTableDataProfileTransportSettings, + settings.getTableDataProfileSettings(), + clientContext); + this.getColumnDataProfileCallable = + callableFactory.createUnaryCallable( + getColumnDataProfileTransportSettings, + settings.getColumnDataProfileSettings(), + clientContext); this.hybridInspectDlpJobCallable = callableFactory.createUnaryCallable( hybridInspectDlpJobTransportSettings, @@ -2446,6 +2827,12 @@ public static List getMethodDescriptors() { methodDescriptors.add(getStoredInfoTypeMethodDescriptor); methodDescriptors.add(listStoredInfoTypesMethodDescriptor); methodDescriptors.add(deleteStoredInfoTypeMethodDescriptor); + methodDescriptors.add(listProjectDataProfilesMethodDescriptor); + methodDescriptors.add(listTableDataProfilesMethodDescriptor); + methodDescriptors.add(listColumnDataProfilesMethodDescriptor); + methodDescriptors.add(getProjectDataProfileMethodDescriptor); + methodDescriptors.add(getTableDataProfileMethodDescriptor); + methodDescriptors.add(getColumnDataProfileMethodDescriptor); methodDescriptors.add(hybridInspectDlpJobMethodDescriptor); methodDescriptors.add(finishDlpJobMethodDescriptor); return methodDescriptors; @@ -2685,6 +3072,59 @@ public UnaryCallable deleteStoredInfoTypeCal return deleteStoredInfoTypeCallable; } + @Override + public UnaryCallable + listProjectDataProfilesCallable() { + return listProjectDataProfilesCallable; + } + + @Override + public UnaryCallable + listProjectDataProfilesPagedCallable() { + return listProjectDataProfilesPagedCallable; + } + + @Override + public UnaryCallable + listTableDataProfilesCallable() { + return listTableDataProfilesCallable; + } + + @Override + public UnaryCallable + listTableDataProfilesPagedCallable() { + return listTableDataProfilesPagedCallable; + } + + @Override + public UnaryCallable + listColumnDataProfilesCallable() { + return listColumnDataProfilesCallable; + } + + @Override + public UnaryCallable + listColumnDataProfilesPagedCallable() { + return listColumnDataProfilesPagedCallable; + } + + @Override + public UnaryCallable + getProjectDataProfileCallable() { + return getProjectDataProfileCallable; + } + + @Override + public UnaryCallable getTableDataProfileCallable() { + return getTableDataProfileCallable; + } + + @Override + public UnaryCallable + getColumnDataProfileCallable() { + return getColumnDataProfileCallable; + } + @Override public UnaryCallable hybridInspectDlpJobCallable() { diff --git a/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json b/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json index 60ba9b28ce1a..293f4c5ea395 100644 --- a/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json +++ b/java-dlp/google-cloud-dlp/src/main/resources/META-INF/native-image/com.google.cloud.dlp.v2/reflect-config.json @@ -2069,6 +2069,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.DataSourceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.DataSourceType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.DatastoreKey", "queryAllDeclaredConstructors": true, @@ -2870,6 +2888,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.GetColumnDataProfileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.GetColumnDataProfileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest", "queryAllDeclaredConstructors": true, @@ -2960,6 +2996,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.GetProjectDataProfileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.GetProjectDataProfileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.GetStoredInfoTypeRequest", "queryAllDeclaredConstructors": true, @@ -2978,6 +3032,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.GetTableDataProfileRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.GetTableDataProfileRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.HybridContentItem", "queryAllDeclaredConstructors": true, @@ -3788,6 +3860,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.ListColumnDataProfilesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.ListColumnDataProfilesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.ListColumnDataProfilesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.ListColumnDataProfilesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest", "queryAllDeclaredConstructors": true, @@ -4004,6 +4112,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.ListProjectDataProfilesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.ListProjectDataProfilesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.ListProjectDataProfilesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.ListProjectDataProfilesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.ListStoredInfoTypesRequest", "queryAllDeclaredConstructors": true, @@ -4040,6 +4184,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.ListTableDataProfilesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.ListTableDataProfilesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.ListTableDataProfilesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.ListTableDataProfilesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.Location", "queryAllDeclaredConstructors": true, @@ -4400,6 +4580,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.privacy.dlp.v2.ProjectDataProfile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.privacy.dlp.v2.ProjectDataProfile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.privacy.dlp.v2.QuasiId", "queryAllDeclaredConstructors": true, diff --git a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientHttpJsonTest.java b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientHttpJsonTest.java index 8d79c12fa87c..5dfc5b14d3dc 100644 --- a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientHttpJsonTest.java +++ b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientHttpJsonTest.java @@ -16,12 +16,15 @@ package com.google.cloud.dlp.v2; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListColumnDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListInspectTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListJobTriggersPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListProjectDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListStoredInfoTypesPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListTableDataProfilesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -38,8 +41,13 @@ import com.google.privacy.dlp.v2.ActivateJobTriggerRequest; import com.google.privacy.dlp.v2.ByteContentItem; import com.google.privacy.dlp.v2.CancelDlpJobRequest; +import com.google.privacy.dlp.v2.ColumnDataProfile; +import com.google.privacy.dlp.v2.ColumnDataProfileName; import com.google.privacy.dlp.v2.ContentItem; import com.google.privacy.dlp.v2.DataProfileAction; +import com.google.privacy.dlp.v2.DataProfileConfigSnapshot; +import com.google.privacy.dlp.v2.DataRiskLevel; +import com.google.privacy.dlp.v2.DataSourceType; import com.google.privacy.dlp.v2.DeidentifyConfig; import com.google.privacy.dlp.v2.DeidentifyContentRequest; import com.google.privacy.dlp.v2.DeidentifyContentResponse; @@ -51,10 +59,12 @@ import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.DlpJobName; import com.google.privacy.dlp.v2.DlpJobType; +import com.google.privacy.dlp.v2.EncryptionStatus; import com.google.privacy.dlp.v2.Error; import com.google.privacy.dlp.v2.FinishDlpJobRequest; import com.google.privacy.dlp.v2.HybridInspectResponse; import com.google.privacy.dlp.v2.InfoTypeDescription; +import com.google.privacy.dlp.v2.InfoTypeSummary; import com.google.privacy.dlp.v2.InspectConfig; import com.google.privacy.dlp.v2.InspectContentRequest; import com.google.privacy.dlp.v2.InspectContentResponse; @@ -64,27 +74,40 @@ import com.google.privacy.dlp.v2.InspectTemplateName; import com.google.privacy.dlp.v2.JobTrigger; import com.google.privacy.dlp.v2.JobTriggerName; +import com.google.privacy.dlp.v2.ListColumnDataProfilesResponse; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse; import com.google.privacy.dlp.v2.ListDiscoveryConfigsResponse; import com.google.privacy.dlp.v2.ListDlpJobsResponse; import com.google.privacy.dlp.v2.ListInfoTypesResponse; import com.google.privacy.dlp.v2.ListInspectTemplatesResponse; import com.google.privacy.dlp.v2.ListJobTriggersResponse; +import com.google.privacy.dlp.v2.ListProjectDataProfilesResponse; import com.google.privacy.dlp.v2.ListStoredInfoTypesResponse; +import com.google.privacy.dlp.v2.ListTableDataProfilesResponse; import com.google.privacy.dlp.v2.LocationName; +import com.google.privacy.dlp.v2.NullPercentageLevel; import com.google.privacy.dlp.v2.OrganizationLocationName; import com.google.privacy.dlp.v2.OrganizationName; +import com.google.privacy.dlp.v2.OtherInfoTypeSummary; +import com.google.privacy.dlp.v2.ProfileStatus; +import com.google.privacy.dlp.v2.ProjectDataProfile; +import com.google.privacy.dlp.v2.ProjectDataProfileName; import com.google.privacy.dlp.v2.ProjectName; import com.google.privacy.dlp.v2.RedactImageRequest; import com.google.privacy.dlp.v2.RedactImageResponse; import com.google.privacy.dlp.v2.ReidentifyContentRequest; import com.google.privacy.dlp.v2.ReidentifyContentResponse; +import com.google.privacy.dlp.v2.ResourceVisibility; import com.google.privacy.dlp.v2.RiskAnalysisJobConfig; +import com.google.privacy.dlp.v2.SensitivityScore; import com.google.privacy.dlp.v2.StoredInfoType; import com.google.privacy.dlp.v2.StoredInfoTypeConfig; import com.google.privacy.dlp.v2.StoredInfoTypeName; import com.google.privacy.dlp.v2.StoredInfoTypeVersion; +import com.google.privacy.dlp.v2.TableDataProfile; +import com.google.privacy.dlp.v2.TableDataProfileName; import com.google.privacy.dlp.v2.TransformationOverview; +import com.google.privacy.dlp.v2.UniquenessScoreLevel; import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; @@ -92,6 +115,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import javax.annotation.Generated; import org.junit.After; @@ -4868,6 +4892,846 @@ public void deleteStoredInfoTypeExceptionTest2() throws Exception { } } + @Test + public void listProjectDataProfilesTest() throws Exception { + ProjectDataProfile responsesElement = ProjectDataProfile.newBuilder().build(); + ListProjectDataProfilesResponse expectedResponse = + ListProjectDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllProjectDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListProjectDataProfilesPagedResponse pagedListResponse = client.listProjectDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProjectDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listProjectDataProfilesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listProjectDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listProjectDataProfilesTest2() throws Exception { + ProjectDataProfile responsesElement = ProjectDataProfile.newBuilder().build(); + ListProjectDataProfilesResponse expectedResponse = + ListProjectDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllProjectDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListProjectDataProfilesPagedResponse pagedListResponse = client.listProjectDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProjectDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listProjectDataProfilesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listProjectDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listProjectDataProfilesTest3() throws Exception { + ProjectDataProfile responsesElement = ProjectDataProfile.newBuilder().build(); + ListProjectDataProfilesResponse expectedResponse = + ListProjectDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllProjectDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListProjectDataProfilesPagedResponse pagedListResponse = client.listProjectDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProjectDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listProjectDataProfilesExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + client.listProjectDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTableDataProfilesTest() throws Exception { + TableDataProfile responsesElement = TableDataProfile.newBuilder().build(); + ListTableDataProfilesResponse expectedResponse = + ListTableDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllTableDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListTableDataProfilesPagedResponse pagedListResponse = client.listTableDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTableDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTableDataProfilesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listTableDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTableDataProfilesTest2() throws Exception { + TableDataProfile responsesElement = TableDataProfile.newBuilder().build(); + ListTableDataProfilesResponse expectedResponse = + ListTableDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllTableDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListTableDataProfilesPagedResponse pagedListResponse = client.listTableDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTableDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTableDataProfilesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listTableDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTableDataProfilesTest3() throws Exception { + TableDataProfile responsesElement = TableDataProfile.newBuilder().build(); + ListTableDataProfilesResponse expectedResponse = + ListTableDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllTableDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListTableDataProfilesPagedResponse pagedListResponse = client.listTableDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTableDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTableDataProfilesExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + client.listTableDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listColumnDataProfilesTest() throws Exception { + ColumnDataProfile responsesElement = ColumnDataProfile.newBuilder().build(); + ListColumnDataProfilesResponse expectedResponse = + ListColumnDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllColumnDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListColumnDataProfilesPagedResponse pagedListResponse = client.listColumnDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getColumnDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listColumnDataProfilesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listColumnDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listColumnDataProfilesTest2() throws Exception { + ColumnDataProfile responsesElement = ColumnDataProfile.newBuilder().build(); + ListColumnDataProfilesResponse expectedResponse = + ListColumnDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllColumnDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListColumnDataProfilesPagedResponse pagedListResponse = client.listColumnDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getColumnDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listColumnDataProfilesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listColumnDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listColumnDataProfilesTest3() throws Exception { + ColumnDataProfile responsesElement = ColumnDataProfile.newBuilder().build(); + ListColumnDataProfilesResponse expectedResponse = + ListColumnDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllColumnDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListColumnDataProfilesPagedResponse pagedListResponse = client.listColumnDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getColumnDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listColumnDataProfilesExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "organizations/organization-9365/locations/location-9365"; + client.listColumnDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProjectDataProfileTest() throws Exception { + ProjectDataProfile expectedResponse = + ProjectDataProfile.newBuilder() + .setName( + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]") + .toString()) + .setProjectId("projectId-894832108") + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .setProfileStatus(ProfileStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ProjectDataProfileName name = + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"); + + ProjectDataProfile actualResponse = client.getProjectDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getProjectDataProfileExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectDataProfileName name = + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"); + client.getProjectDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProjectDataProfileTest2() throws Exception { + ProjectDataProfile expectedResponse = + ProjectDataProfile.newBuilder() + .setName( + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]") + .toString()) + .setProjectId("projectId-894832108") + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .setProfileStatus(ProfileStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "organizations/organization-541/locations/location-541/projectDataProfiles/projectDataProfile-541"; + + ProjectDataProfile actualResponse = client.getProjectDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getProjectDataProfileExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-541/locations/location-541/projectDataProfiles/projectDataProfile-541"; + client.getProjectDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTableDataProfileTest() throws Exception { + TableDataProfile expectedResponse = + TableDataProfile.newBuilder() + .setName( + TableDataProfileName.ofOrganizationLocationTableDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]") + .toString()) + .setDataSourceType(DataSourceType.newBuilder().build()) + .setProjectDataProfile("projectDataProfile-1125465658") + .setDatasetProjectId("datasetProjectId128836732") + .setDatasetLocation("datasetLocation-1806712755") + .setDatasetId("datasetId-345342029") + .setTableId("tableId-1552905847") + .setFullResource("fullResource-1464972355") + .setProfileStatus(ProfileStatus.newBuilder().build()) + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .addAllPredictedInfoTypes(new ArrayList()) + .addAllOtherInfoTypes(new ArrayList()) + .setConfigSnapshot(DataProfileConfigSnapshot.newBuilder().build()) + .setLastModifiedTime(Timestamp.newBuilder().build()) + .setExpirationTime(Timestamp.newBuilder().build()) + .setScannedColumnCount(-787756843) + .setFailedColumnCount(-706572376) + .setTableSizeBytes(927763390) + .setRowCount(1340416618) + .setEncryptionStatus(EncryptionStatus.forNumber(0)) + .setResourceVisibility(ResourceVisibility.forNumber(0)) + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .putAllResourceLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TableDataProfileName name = + TableDataProfileName.ofOrganizationLocationTableDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"); + + TableDataProfile actualResponse = client.getTableDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTableDataProfileExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TableDataProfileName name = + TableDataProfileName.ofOrganizationLocationTableDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"); + client.getTableDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTableDataProfileTest2() throws Exception { + TableDataProfile expectedResponse = + TableDataProfile.newBuilder() + .setName( + TableDataProfileName.ofOrganizationLocationTableDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]") + .toString()) + .setDataSourceType(DataSourceType.newBuilder().build()) + .setProjectDataProfile("projectDataProfile-1125465658") + .setDatasetProjectId("datasetProjectId128836732") + .setDatasetLocation("datasetLocation-1806712755") + .setDatasetId("datasetId-345342029") + .setTableId("tableId-1552905847") + .setFullResource("fullResource-1464972355") + .setProfileStatus(ProfileStatus.newBuilder().build()) + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .addAllPredictedInfoTypes(new ArrayList()) + .addAllOtherInfoTypes(new ArrayList()) + .setConfigSnapshot(DataProfileConfigSnapshot.newBuilder().build()) + .setLastModifiedTime(Timestamp.newBuilder().build()) + .setExpirationTime(Timestamp.newBuilder().build()) + .setScannedColumnCount(-787756843) + .setFailedColumnCount(-706572376) + .setTableSizeBytes(927763390) + .setRowCount(1340416618) + .setEncryptionStatus(EncryptionStatus.forNumber(0)) + .setResourceVisibility(ResourceVisibility.forNumber(0)) + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .putAllResourceLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "organizations/organization-2552/locations/location-2552/tableDataProfiles/tableDataProfile-2552"; + + TableDataProfile actualResponse = client.getTableDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTableDataProfileExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-2552/locations/location-2552/tableDataProfiles/tableDataProfile-2552"; + client.getTableDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getColumnDataProfileTest() throws Exception { + ColumnDataProfile expectedResponse = + ColumnDataProfile.newBuilder() + .setName( + ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]") + .toString()) + .setProfileStatus(ProfileStatus.newBuilder().build()) + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .setTableDataProfile("tableDataProfile1513012721") + .setTableFullResource("tableFullResource-2131192149") + .setDatasetProjectId("datasetProjectId128836732") + .setDatasetLocation("datasetLocation-1806712755") + .setDatasetId("datasetId-345342029") + .setTableId("tableId-1552905847") + .setColumn("column-1354837162") + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .setColumnInfoType(InfoTypeSummary.newBuilder().build()) + .addAllOtherMatches(new ArrayList()) + .setEstimatedNullPercentage(NullPercentageLevel.forNumber(0)) + .setEstimatedUniquenessScore(UniquenessScoreLevel.forNumber(0)) + .setFreeTextScore(1218237619) + .build(); + mockService.addResponse(expectedResponse); + + ColumnDataProfileName name = + ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]"); + + ColumnDataProfile actualResponse = client.getColumnDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getColumnDataProfileExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ColumnDataProfileName name = + ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]"); + client.getColumnDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getColumnDataProfileTest2() throws Exception { + ColumnDataProfile expectedResponse = + ColumnDataProfile.newBuilder() + .setName( + ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]") + .toString()) + .setProfileStatus(ProfileStatus.newBuilder().build()) + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .setTableDataProfile("tableDataProfile1513012721") + .setTableFullResource("tableFullResource-2131192149") + .setDatasetProjectId("datasetProjectId128836732") + .setDatasetLocation("datasetLocation-1806712755") + .setDatasetId("datasetId-345342029") + .setTableId("tableId-1552905847") + .setColumn("column-1354837162") + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .setColumnInfoType(InfoTypeSummary.newBuilder().build()) + .addAllOtherMatches(new ArrayList()) + .setEstimatedNullPercentage(NullPercentageLevel.forNumber(0)) + .setEstimatedUniquenessScore(UniquenessScoreLevel.forNumber(0)) + .setFreeTextScore(1218237619) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "organizations/organization-902/locations/location-902/columnDataProfiles/columnDataProfile-902"; + + ColumnDataProfile actualResponse = client.getColumnDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getColumnDataProfileExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-902/locations/location-902/columnDataProfiles/columnDataProfile-902"; + client.getColumnDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void hybridInspectDlpJobTest() throws Exception { HybridInspectResponse expectedResponse = HybridInspectResponse.newBuilder().build(); diff --git a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java index 0e9bdf9e4304..53e9caad0643 100644 --- a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java +++ b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/DlpServiceClientTest.java @@ -16,12 +16,15 @@ package com.google.cloud.dlp.v2; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListColumnDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDeidentifyTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDiscoveryConfigsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListDlpJobsPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListInspectTemplatesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListJobTriggersPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListProjectDataProfilesPagedResponse; import static com.google.cloud.dlp.v2.DlpServiceClient.ListStoredInfoTypesPagedResponse; +import static com.google.cloud.dlp.v2.DlpServiceClient.ListTableDataProfilesPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -35,6 +38,8 @@ import com.google.privacy.dlp.v2.ActivateJobTriggerRequest; import com.google.privacy.dlp.v2.ByteContentItem; import com.google.privacy.dlp.v2.CancelDlpJobRequest; +import com.google.privacy.dlp.v2.ColumnDataProfile; +import com.google.privacy.dlp.v2.ColumnDataProfileName; import com.google.privacy.dlp.v2.ContentItem; import com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.CreateDiscoveryConfigRequest; @@ -43,6 +48,9 @@ import com.google.privacy.dlp.v2.CreateJobTriggerRequest; import com.google.privacy.dlp.v2.CreateStoredInfoTypeRequest; import com.google.privacy.dlp.v2.DataProfileAction; +import com.google.privacy.dlp.v2.DataProfileConfigSnapshot; +import com.google.privacy.dlp.v2.DataRiskLevel; +import com.google.privacy.dlp.v2.DataSourceType; import com.google.privacy.dlp.v2.DeidentifyConfig; import com.google.privacy.dlp.v2.DeidentifyContentRequest; import com.google.privacy.dlp.v2.DeidentifyContentResponse; @@ -60,18 +68,23 @@ import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.DlpJobName; import com.google.privacy.dlp.v2.DlpJobType; +import com.google.privacy.dlp.v2.EncryptionStatus; import com.google.privacy.dlp.v2.Error; import com.google.privacy.dlp.v2.FinishDlpJobRequest; +import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; +import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.GetTableDataProfileRequest; import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; import com.google.privacy.dlp.v2.HybridInspectResponse; import com.google.privacy.dlp.v2.InfoTypeDescription; +import com.google.privacy.dlp.v2.InfoTypeSummary; import com.google.privacy.dlp.v2.InspectConfig; import com.google.privacy.dlp.v2.InspectContentRequest; import com.google.privacy.dlp.v2.InspectContentResponse; @@ -81,6 +94,8 @@ import com.google.privacy.dlp.v2.InspectTemplateName; import com.google.privacy.dlp.v2.JobTrigger; import com.google.privacy.dlp.v2.JobTriggerName; +import com.google.privacy.dlp.v2.ListColumnDataProfilesRequest; +import com.google.privacy.dlp.v2.ListColumnDataProfilesResponse; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse; import com.google.privacy.dlp.v2.ListDiscoveryConfigsRequest; @@ -93,22 +108,36 @@ import com.google.privacy.dlp.v2.ListInspectTemplatesResponse; import com.google.privacy.dlp.v2.ListJobTriggersRequest; import com.google.privacy.dlp.v2.ListJobTriggersResponse; +import com.google.privacy.dlp.v2.ListProjectDataProfilesRequest; +import com.google.privacy.dlp.v2.ListProjectDataProfilesResponse; import com.google.privacy.dlp.v2.ListStoredInfoTypesRequest; import com.google.privacy.dlp.v2.ListStoredInfoTypesResponse; +import com.google.privacy.dlp.v2.ListTableDataProfilesRequest; +import com.google.privacy.dlp.v2.ListTableDataProfilesResponse; import com.google.privacy.dlp.v2.LocationName; +import com.google.privacy.dlp.v2.NullPercentageLevel; import com.google.privacy.dlp.v2.OrganizationLocationName; import com.google.privacy.dlp.v2.OrganizationName; +import com.google.privacy.dlp.v2.OtherInfoTypeSummary; +import com.google.privacy.dlp.v2.ProfileStatus; +import com.google.privacy.dlp.v2.ProjectDataProfile; +import com.google.privacy.dlp.v2.ProjectDataProfileName; import com.google.privacy.dlp.v2.ProjectName; import com.google.privacy.dlp.v2.RedactImageRequest; import com.google.privacy.dlp.v2.RedactImageResponse; import com.google.privacy.dlp.v2.ReidentifyContentRequest; import com.google.privacy.dlp.v2.ReidentifyContentResponse; +import com.google.privacy.dlp.v2.ResourceVisibility; import com.google.privacy.dlp.v2.RiskAnalysisJobConfig; +import com.google.privacy.dlp.v2.SensitivityScore; import com.google.privacy.dlp.v2.StoredInfoType; import com.google.privacy.dlp.v2.StoredInfoTypeConfig; import com.google.privacy.dlp.v2.StoredInfoTypeName; import com.google.privacy.dlp.v2.StoredInfoTypeVersion; +import com.google.privacy.dlp.v2.TableDataProfile; +import com.google.privacy.dlp.v2.TableDataProfileName; import com.google.privacy.dlp.v2.TransformationOverview; +import com.google.privacy.dlp.v2.UniquenessScoreLevel; import com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.UpdateInspectTemplateRequest; @@ -123,6 +152,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import javax.annotation.Generated; @@ -4465,6 +4495,763 @@ public void deleteStoredInfoTypeExceptionTest2() throws Exception { } } + @Test + public void listProjectDataProfilesTest() throws Exception { + ProjectDataProfile responsesElement = ProjectDataProfile.newBuilder().build(); + ListProjectDataProfilesResponse expectedResponse = + ListProjectDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllProjectDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockDlpService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListProjectDataProfilesPagedResponse pagedListResponse = client.listProjectDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProjectDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListProjectDataProfilesRequest actualRequest = + ((ListProjectDataProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listProjectDataProfilesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listProjectDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listProjectDataProfilesTest2() throws Exception { + ProjectDataProfile responsesElement = ProjectDataProfile.newBuilder().build(); + ListProjectDataProfilesResponse expectedResponse = + ListProjectDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllProjectDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockDlpService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListProjectDataProfilesPagedResponse pagedListResponse = client.listProjectDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProjectDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListProjectDataProfilesRequest actualRequest = + ((ListProjectDataProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listProjectDataProfilesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listProjectDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listProjectDataProfilesTest3() throws Exception { + ProjectDataProfile responsesElement = ProjectDataProfile.newBuilder().build(); + ListProjectDataProfilesResponse expectedResponse = + ListProjectDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllProjectDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockDlpService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListProjectDataProfilesPagedResponse pagedListResponse = client.listProjectDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getProjectDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListProjectDataProfilesRequest actualRequest = + ((ListProjectDataProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listProjectDataProfilesExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listProjectDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTableDataProfilesTest() throws Exception { + TableDataProfile responsesElement = TableDataProfile.newBuilder().build(); + ListTableDataProfilesResponse expectedResponse = + ListTableDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllTableDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockDlpService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListTableDataProfilesPagedResponse pagedListResponse = client.listTableDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTableDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTableDataProfilesRequest actualRequest = + ((ListTableDataProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTableDataProfilesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listTableDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTableDataProfilesTest2() throws Exception { + TableDataProfile responsesElement = TableDataProfile.newBuilder().build(); + ListTableDataProfilesResponse expectedResponse = + ListTableDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllTableDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockDlpService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListTableDataProfilesPagedResponse pagedListResponse = client.listTableDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTableDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTableDataProfilesRequest actualRequest = + ((ListTableDataProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTableDataProfilesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listTableDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTableDataProfilesTest3() throws Exception { + TableDataProfile responsesElement = TableDataProfile.newBuilder().build(); + ListTableDataProfilesResponse expectedResponse = + ListTableDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllTableDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockDlpService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListTableDataProfilesPagedResponse pagedListResponse = client.listTableDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTableDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTableDataProfilesRequest actualRequest = + ((ListTableDataProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTableDataProfilesExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTableDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listColumnDataProfilesTest() throws Exception { + ColumnDataProfile responsesElement = ColumnDataProfile.newBuilder().build(); + ListColumnDataProfilesResponse expectedResponse = + ListColumnDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllColumnDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockDlpService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListColumnDataProfilesPagedResponse pagedListResponse = client.listColumnDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getColumnDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListColumnDataProfilesRequest actualRequest = + ((ListColumnDataProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listColumnDataProfilesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listColumnDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listColumnDataProfilesTest2() throws Exception { + ColumnDataProfile responsesElement = ColumnDataProfile.newBuilder().build(); + ListColumnDataProfilesResponse expectedResponse = + ListColumnDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllColumnDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockDlpService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListColumnDataProfilesPagedResponse pagedListResponse = client.listColumnDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getColumnDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListColumnDataProfilesRequest actualRequest = + ((ListColumnDataProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listColumnDataProfilesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listColumnDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listColumnDataProfilesTest3() throws Exception { + ColumnDataProfile responsesElement = ColumnDataProfile.newBuilder().build(); + ListColumnDataProfilesResponse expectedResponse = + ListColumnDataProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllColumnDataProfiles(Arrays.asList(responsesElement)) + .build(); + mockDlpService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListColumnDataProfilesPagedResponse pagedListResponse = client.listColumnDataProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getColumnDataProfilesList().get(0), resources.get(0)); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListColumnDataProfilesRequest actualRequest = + ((ListColumnDataProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listColumnDataProfilesExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listColumnDataProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProjectDataProfileTest() throws Exception { + ProjectDataProfile expectedResponse = + ProjectDataProfile.newBuilder() + .setName( + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]") + .toString()) + .setProjectId("projectId-894832108") + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .setProfileStatus(ProfileStatus.newBuilder().build()) + .build(); + mockDlpService.addResponse(expectedResponse); + + ProjectDataProfileName name = + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"); + + ProjectDataProfile actualResponse = client.getProjectDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetProjectDataProfileRequest actualRequest = + ((GetProjectDataProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getProjectDataProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + ProjectDataProfileName name = + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"); + client.getProjectDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getProjectDataProfileTest2() throws Exception { + ProjectDataProfile expectedResponse = + ProjectDataProfile.newBuilder() + .setName( + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]") + .toString()) + .setProjectId("projectId-894832108") + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .setProfileStatus(ProfileStatus.newBuilder().build()) + .build(); + mockDlpService.addResponse(expectedResponse); + + String name = "name3373707"; + + ProjectDataProfile actualResponse = client.getProjectDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetProjectDataProfileRequest actualRequest = + ((GetProjectDataProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getProjectDataProfileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + String name = "name3373707"; + client.getProjectDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTableDataProfileTest() throws Exception { + TableDataProfile expectedResponse = + TableDataProfile.newBuilder() + .setName( + TableDataProfileName.ofOrganizationLocationTableDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]") + .toString()) + .setDataSourceType(DataSourceType.newBuilder().build()) + .setProjectDataProfile("projectDataProfile-1125465658") + .setDatasetProjectId("datasetProjectId128836732") + .setDatasetLocation("datasetLocation-1806712755") + .setDatasetId("datasetId-345342029") + .setTableId("tableId-1552905847") + .setFullResource("fullResource-1464972355") + .setProfileStatus(ProfileStatus.newBuilder().build()) + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .addAllPredictedInfoTypes(new ArrayList()) + .addAllOtherInfoTypes(new ArrayList()) + .setConfigSnapshot(DataProfileConfigSnapshot.newBuilder().build()) + .setLastModifiedTime(Timestamp.newBuilder().build()) + .setExpirationTime(Timestamp.newBuilder().build()) + .setScannedColumnCount(-787756843) + .setFailedColumnCount(-706572376) + .setTableSizeBytes(927763390) + .setRowCount(1340416618) + .setEncryptionStatus(EncryptionStatus.forNumber(0)) + .setResourceVisibility(ResourceVisibility.forNumber(0)) + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .putAllResourceLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockDlpService.addResponse(expectedResponse); + + TableDataProfileName name = + TableDataProfileName.ofOrganizationLocationTableDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"); + + TableDataProfile actualResponse = client.getTableDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTableDataProfileRequest actualRequest = ((GetTableDataProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTableDataProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + TableDataProfileName name = + TableDataProfileName.ofOrganizationLocationTableDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"); + client.getTableDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTableDataProfileTest2() throws Exception { + TableDataProfile expectedResponse = + TableDataProfile.newBuilder() + .setName( + TableDataProfileName.ofOrganizationLocationTableDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]") + .toString()) + .setDataSourceType(DataSourceType.newBuilder().build()) + .setProjectDataProfile("projectDataProfile-1125465658") + .setDatasetProjectId("datasetProjectId128836732") + .setDatasetLocation("datasetLocation-1806712755") + .setDatasetId("datasetId-345342029") + .setTableId("tableId-1552905847") + .setFullResource("fullResource-1464972355") + .setProfileStatus(ProfileStatus.newBuilder().build()) + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .addAllPredictedInfoTypes(new ArrayList()) + .addAllOtherInfoTypes(new ArrayList()) + .setConfigSnapshot(DataProfileConfigSnapshot.newBuilder().build()) + .setLastModifiedTime(Timestamp.newBuilder().build()) + .setExpirationTime(Timestamp.newBuilder().build()) + .setScannedColumnCount(-787756843) + .setFailedColumnCount(-706572376) + .setTableSizeBytes(927763390) + .setRowCount(1340416618) + .setEncryptionStatus(EncryptionStatus.forNumber(0)) + .setResourceVisibility(ResourceVisibility.forNumber(0)) + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .putAllResourceLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + mockDlpService.addResponse(expectedResponse); + + String name = "name3373707"; + + TableDataProfile actualResponse = client.getTableDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTableDataProfileRequest actualRequest = ((GetTableDataProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTableDataProfileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + String name = "name3373707"; + client.getTableDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getColumnDataProfileTest() throws Exception { + ColumnDataProfile expectedResponse = + ColumnDataProfile.newBuilder() + .setName( + ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]") + .toString()) + .setProfileStatus(ProfileStatus.newBuilder().build()) + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .setTableDataProfile("tableDataProfile1513012721") + .setTableFullResource("tableFullResource-2131192149") + .setDatasetProjectId("datasetProjectId128836732") + .setDatasetLocation("datasetLocation-1806712755") + .setDatasetId("datasetId-345342029") + .setTableId("tableId-1552905847") + .setColumn("column-1354837162") + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .setColumnInfoType(InfoTypeSummary.newBuilder().build()) + .addAllOtherMatches(new ArrayList()) + .setEstimatedNullPercentage(NullPercentageLevel.forNumber(0)) + .setEstimatedUniquenessScore(UniquenessScoreLevel.forNumber(0)) + .setFreeTextScore(1218237619) + .build(); + mockDlpService.addResponse(expectedResponse); + + ColumnDataProfileName name = + ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]"); + + ColumnDataProfile actualResponse = client.getColumnDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetColumnDataProfileRequest actualRequest = + ((GetColumnDataProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getColumnDataProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + ColumnDataProfileName name = + ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]"); + client.getColumnDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getColumnDataProfileTest2() throws Exception { + ColumnDataProfile expectedResponse = + ColumnDataProfile.newBuilder() + .setName( + ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]") + .toString()) + .setProfileStatus(ProfileStatus.newBuilder().build()) + .setProfileLastGenerated(Timestamp.newBuilder().build()) + .setTableDataProfile("tableDataProfile1513012721") + .setTableFullResource("tableFullResource-2131192149") + .setDatasetProjectId("datasetProjectId128836732") + .setDatasetLocation("datasetLocation-1806712755") + .setDatasetId("datasetId-345342029") + .setTableId("tableId-1552905847") + .setColumn("column-1354837162") + .setSensitivityScore(SensitivityScore.newBuilder().build()) + .setDataRiskLevel(DataRiskLevel.newBuilder().build()) + .setColumnInfoType(InfoTypeSummary.newBuilder().build()) + .addAllOtherMatches(new ArrayList()) + .setEstimatedNullPercentage(NullPercentageLevel.forNumber(0)) + .setEstimatedUniquenessScore(UniquenessScoreLevel.forNumber(0)) + .setFreeTextScore(1218237619) + .build(); + mockDlpService.addResponse(expectedResponse); + + String name = "name3373707"; + + ColumnDataProfile actualResponse = client.getColumnDataProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDlpService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetColumnDataProfileRequest actualRequest = + ((GetColumnDataProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getColumnDataProfileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDlpService.addException(exception); + + try { + String name = "name3373707"; + client.getColumnDataProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void hybridInspectDlpJobTest() throws Exception { HybridInspectResponse expectedResponse = HybridInspectResponse.newBuilder().build(); diff --git a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/MockDlpServiceImpl.java b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/MockDlpServiceImpl.java index f5ef47c89717..bfc7f3308b1b 100644 --- a/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/MockDlpServiceImpl.java +++ b/java-dlp/google-cloud-dlp/src/test/java/com/google/cloud/dlp/v2/MockDlpServiceImpl.java @@ -19,6 +19,7 @@ import com.google.api.core.BetaApi; import com.google.privacy.dlp.v2.ActivateJobTriggerRequest; import com.google.privacy.dlp.v2.CancelDlpJobRequest; +import com.google.privacy.dlp.v2.ColumnDataProfile; import com.google.privacy.dlp.v2.CreateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.CreateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.CreateDlpJobRequest; @@ -38,12 +39,15 @@ import com.google.privacy.dlp.v2.DlpJob; import com.google.privacy.dlp.v2.DlpServiceGrpc.DlpServiceImplBase; import com.google.privacy.dlp.v2.FinishDlpJobRequest; +import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; import com.google.privacy.dlp.v2.GetDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.GetDiscoveryConfigRequest; import com.google.privacy.dlp.v2.GetDlpJobRequest; import com.google.privacy.dlp.v2.GetInspectTemplateRequest; import com.google.privacy.dlp.v2.GetJobTriggerRequest; +import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; import com.google.privacy.dlp.v2.GetStoredInfoTypeRequest; +import com.google.privacy.dlp.v2.GetTableDataProfileRequest; import com.google.privacy.dlp.v2.HybridInspectDlpJobRequest; import com.google.privacy.dlp.v2.HybridInspectJobTriggerRequest; import com.google.privacy.dlp.v2.HybridInspectResponse; @@ -51,6 +55,8 @@ import com.google.privacy.dlp.v2.InspectContentResponse; import com.google.privacy.dlp.v2.InspectTemplate; import com.google.privacy.dlp.v2.JobTrigger; +import com.google.privacy.dlp.v2.ListColumnDataProfilesRequest; +import com.google.privacy.dlp.v2.ListColumnDataProfilesResponse; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesRequest; import com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse; import com.google.privacy.dlp.v2.ListDiscoveryConfigsRequest; @@ -63,13 +69,19 @@ import com.google.privacy.dlp.v2.ListInspectTemplatesResponse; import com.google.privacy.dlp.v2.ListJobTriggersRequest; import com.google.privacy.dlp.v2.ListJobTriggersResponse; +import com.google.privacy.dlp.v2.ListProjectDataProfilesRequest; +import com.google.privacy.dlp.v2.ListProjectDataProfilesResponse; import com.google.privacy.dlp.v2.ListStoredInfoTypesRequest; import com.google.privacy.dlp.v2.ListStoredInfoTypesResponse; +import com.google.privacy.dlp.v2.ListTableDataProfilesRequest; +import com.google.privacy.dlp.v2.ListTableDataProfilesResponse; +import com.google.privacy.dlp.v2.ProjectDataProfile; import com.google.privacy.dlp.v2.RedactImageRequest; import com.google.privacy.dlp.v2.RedactImageResponse; import com.google.privacy.dlp.v2.ReidentifyContentRequest; import com.google.privacy.dlp.v2.ReidentifyContentResponse; import com.google.privacy.dlp.v2.StoredInfoType; +import com.google.privacy.dlp.v2.TableDataProfile; import com.google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest; import com.google.privacy.dlp.v2.UpdateDiscoveryConfigRequest; import com.google.privacy.dlp.v2.UpdateInspectTemplateRequest; @@ -898,6 +910,135 @@ public void deleteStoredInfoType( } } + @Override + public void listProjectDataProfiles( + ListProjectDataProfilesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListProjectDataProfilesResponse) { + requests.add(request); + responseObserver.onNext(((ListProjectDataProfilesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListProjectDataProfiles, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListProjectDataProfilesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTableDataProfiles( + ListTableDataProfilesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTableDataProfilesResponse) { + requests.add(request); + responseObserver.onNext(((ListTableDataProfilesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTableDataProfiles, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTableDataProfilesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listColumnDataProfiles( + ListColumnDataProfilesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListColumnDataProfilesResponse) { + requests.add(request); + responseObserver.onNext(((ListColumnDataProfilesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListColumnDataProfiles, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListColumnDataProfilesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getProjectDataProfile( + GetProjectDataProfileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ProjectDataProfile) { + requests.add(request); + responseObserver.onNext(((ProjectDataProfile) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetProjectDataProfile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ProjectDataProfile.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTableDataProfile( + GetTableDataProfileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof TableDataProfile) { + requests.add(request); + responseObserver.onNext(((TableDataProfile) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTableDataProfile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + TableDataProfile.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getColumnDataProfile( + GetColumnDataProfileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ColumnDataProfile) { + requests.add(request); + responseObserver.onNext(((ColumnDataProfile) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetColumnDataProfile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ColumnDataProfile.class.getName(), + Exception.class.getName()))); + } + } + @Override public void hybridInspectDlpJob( HybridInspectDlpJobRequest request, StreamObserver responseObserver) { diff --git a/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java b/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java index a0ac02886651..bc891a1bf1ed 100644 --- a/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java +++ b/java-dlp/grpc-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpServiceGrpc.java @@ -28,7 +28,7 @@ * The service also includes methods for sensitive data redaction and * scheduling of data scans on Google Cloud Platform based data sets. * To learn more about concepts and find how-to guides see - * https://cloud.google.com/dlp/docs/. + * https://cloud.google.com/sensitive-data-protection/docs/. * */ @javax.annotation.Generated( @@ -1733,6 +1733,298 @@ private DlpServiceGrpc() {} return getDeleteStoredInfoTypeMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest, + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse> + getListProjectDataProfilesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListProjectDataProfiles", + requestType = com.google.privacy.dlp.v2.ListProjectDataProfilesRequest.class, + responseType = com.google.privacy.dlp.v2.ListProjectDataProfilesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest, + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse> + getListProjectDataProfilesMethod() { + io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest, + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse> + getListProjectDataProfilesMethod; + if ((getListProjectDataProfilesMethod = DlpServiceGrpc.getListProjectDataProfilesMethod) + == null) { + synchronized (DlpServiceGrpc.class) { + if ((getListProjectDataProfilesMethod = DlpServiceGrpc.getListProjectDataProfilesMethod) + == null) { + DlpServiceGrpc.getListProjectDataProfilesMethod = + getListProjectDataProfilesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListProjectDataProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DlpServiceMethodDescriptorSupplier("ListProjectDataProfiles")) + .build(); + } + } + } + return getListProjectDataProfilesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.ListTableDataProfilesRequest, + com.google.privacy.dlp.v2.ListTableDataProfilesResponse> + getListTableDataProfilesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTableDataProfiles", + requestType = com.google.privacy.dlp.v2.ListTableDataProfilesRequest.class, + responseType = com.google.privacy.dlp.v2.ListTableDataProfilesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.ListTableDataProfilesRequest, + com.google.privacy.dlp.v2.ListTableDataProfilesResponse> + getListTableDataProfilesMethod() { + io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.ListTableDataProfilesRequest, + com.google.privacy.dlp.v2.ListTableDataProfilesResponse> + getListTableDataProfilesMethod; + if ((getListTableDataProfilesMethod = DlpServiceGrpc.getListTableDataProfilesMethod) == null) { + synchronized (DlpServiceGrpc.class) { + if ((getListTableDataProfilesMethod = DlpServiceGrpc.getListTableDataProfilesMethod) + == null) { + DlpServiceGrpc.getListTableDataProfilesMethod = + getListTableDataProfilesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListTableDataProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.ListTableDataProfilesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.ListTableDataProfilesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DlpServiceMethodDescriptorSupplier("ListTableDataProfiles")) + .build(); + } + } + } + return getListTableDataProfilesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest, + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse> + getListColumnDataProfilesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListColumnDataProfiles", + requestType = com.google.privacy.dlp.v2.ListColumnDataProfilesRequest.class, + responseType = com.google.privacy.dlp.v2.ListColumnDataProfilesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest, + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse> + getListColumnDataProfilesMethod() { + io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest, + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse> + getListColumnDataProfilesMethod; + if ((getListColumnDataProfilesMethod = DlpServiceGrpc.getListColumnDataProfilesMethod) + == null) { + synchronized (DlpServiceGrpc.class) { + if ((getListColumnDataProfilesMethod = DlpServiceGrpc.getListColumnDataProfilesMethod) + == null) { + DlpServiceGrpc.getListColumnDataProfilesMethod = + getListColumnDataProfilesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListColumnDataProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DlpServiceMethodDescriptorSupplier("ListColumnDataProfiles")) + .build(); + } + } + } + return getListColumnDataProfilesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.GetProjectDataProfileRequest, + com.google.privacy.dlp.v2.ProjectDataProfile> + getGetProjectDataProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetProjectDataProfile", + requestType = com.google.privacy.dlp.v2.GetProjectDataProfileRequest.class, + responseType = com.google.privacy.dlp.v2.ProjectDataProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.GetProjectDataProfileRequest, + com.google.privacy.dlp.v2.ProjectDataProfile> + getGetProjectDataProfileMethod() { + io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.GetProjectDataProfileRequest, + com.google.privacy.dlp.v2.ProjectDataProfile> + getGetProjectDataProfileMethod; + if ((getGetProjectDataProfileMethod = DlpServiceGrpc.getGetProjectDataProfileMethod) == null) { + synchronized (DlpServiceGrpc.class) { + if ((getGetProjectDataProfileMethod = DlpServiceGrpc.getGetProjectDataProfileMethod) + == null) { + DlpServiceGrpc.getGetProjectDataProfileMethod = + getGetProjectDataProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetProjectDataProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.GetProjectDataProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.ProjectDataProfile.getDefaultInstance())) + .setSchemaDescriptor( + new DlpServiceMethodDescriptorSupplier("GetProjectDataProfile")) + .build(); + } + } + } + return getGetProjectDataProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.GetTableDataProfileRequest, + com.google.privacy.dlp.v2.TableDataProfile> + getGetTableDataProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTableDataProfile", + requestType = com.google.privacy.dlp.v2.GetTableDataProfileRequest.class, + responseType = com.google.privacy.dlp.v2.TableDataProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.GetTableDataProfileRequest, + com.google.privacy.dlp.v2.TableDataProfile> + getGetTableDataProfileMethod() { + io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.GetTableDataProfileRequest, + com.google.privacy.dlp.v2.TableDataProfile> + getGetTableDataProfileMethod; + if ((getGetTableDataProfileMethod = DlpServiceGrpc.getGetTableDataProfileMethod) == null) { + synchronized (DlpServiceGrpc.class) { + if ((getGetTableDataProfileMethod = DlpServiceGrpc.getGetTableDataProfileMethod) == null) { + DlpServiceGrpc.getGetTableDataProfileMethod = + getGetTableDataProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetTableDataProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.GetTableDataProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.TableDataProfile.getDefaultInstance())) + .setSchemaDescriptor( + new DlpServiceMethodDescriptorSupplier("GetTableDataProfile")) + .build(); + } + } + } + return getGetTableDataProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.GetColumnDataProfileRequest, + com.google.privacy.dlp.v2.ColumnDataProfile> + getGetColumnDataProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetColumnDataProfile", + requestType = com.google.privacy.dlp.v2.GetColumnDataProfileRequest.class, + responseType = com.google.privacy.dlp.v2.ColumnDataProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.GetColumnDataProfileRequest, + com.google.privacy.dlp.v2.ColumnDataProfile> + getGetColumnDataProfileMethod() { + io.grpc.MethodDescriptor< + com.google.privacy.dlp.v2.GetColumnDataProfileRequest, + com.google.privacy.dlp.v2.ColumnDataProfile> + getGetColumnDataProfileMethod; + if ((getGetColumnDataProfileMethod = DlpServiceGrpc.getGetColumnDataProfileMethod) == null) { + synchronized (DlpServiceGrpc.class) { + if ((getGetColumnDataProfileMethod = DlpServiceGrpc.getGetColumnDataProfileMethod) + == null) { + DlpServiceGrpc.getGetColumnDataProfileMethod = + getGetColumnDataProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetColumnDataProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.GetColumnDataProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.privacy.dlp.v2.ColumnDataProfile.getDefaultInstance())) + .setSchemaDescriptor( + new DlpServiceMethodDescriptorSupplier("GetColumnDataProfile")) + .build(); + } + } + } + return getGetColumnDataProfileMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.privacy.dlp.v2.HybridInspectDlpJobRequest, com.google.privacy.dlp.v2.HybridInspectResponse> @@ -1871,7 +2163,7 @@ public DlpServiceFutureStub newStub( * The service also includes methods for sensitive data redaction and * scheduling of data scans on Google Cloud Platform based data sets. * To learn more about concepts and find how-to guides see - * https://cloud.google.com/dlp/docs/. + * https://cloud.google.com/sensitive-data-protection/docs/. * */ public interface AsyncService { @@ -1885,8 +2177,10 @@ public interface AsyncService { * When no InfoTypes or CustomInfoTypes are specified in this request, the * system will automatically choose what detectors to run. By default this may * be all types, but may change over time as detectors are updated. - * For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images - * and https://cloud.google.com/dlp/docs/inspecting-text, + * For how to guides, see + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-images + * and + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, * */ default void inspectContent( @@ -1903,8 +2197,9 @@ default void inspectContent( *

                                                                                            * Redacts potentially sensitive info from an image.
                                                                                            * This method has limits on input size, processing time, and output size.
                                                                                      -     * See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images
                                                                                      +     * to learn more.
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in this request, the
                                                                                            * system will automatically choose what detectors to run. By default this may
                                                                                            * be all types, but may change over time as detectors are updated.
                                                                                      @@ -1924,8 +2219,9 @@ default void redactImage(
                                                                                            * 
                                                                                            * De-identifies potentially sensitive info from a ContentItem.
                                                                                            * This method has limits on input size and output size.
                                                                                      -     * See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data
                                                                                      +     * to learn more.
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in this request, the
                                                                                            * system will automatically choose what detectors to run. By default this may
                                                                                            * be all types, but may change over time as detectors are updated.
                                                                                      @@ -1945,7 +2241,7 @@ default void deidentifyContent(
                                                                                            * 
                                                                                            * Re-identifies content that has been de-identified.
                                                                                            * See
                                                                                      -     * https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
                                                                                            * to learn more.
                                                                                            * 
                                                                                      */ @@ -1962,8 +2258,9 @@ default void reidentifyContent( * *
                                                                                            * Returns a list of the sensitive information types that DLP API
                                                                                      -     * supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
                                                                                      -     * learn more.
                                                                                      +     * supports. See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void listInfoTypes( @@ -1980,7 +2277,9 @@ default void listInfoTypes( *
                                                                                            * Creates an InspectTemplate for reusing frequently used configuration
                                                                                            * for inspecting content, images, and storage.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void createInspectTemplate( @@ -1995,7 +2294,9 @@ default void createInspectTemplate( * *
                                                                                            * Updates the InspectTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void updateInspectTemplate( @@ -2010,7 +2311,9 @@ default void updateInspectTemplate( * *
                                                                                            * Gets an InspectTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void getInspectTemplate( @@ -2025,7 +2328,9 @@ default void getInspectTemplate( * *
                                                                                            * Lists InspectTemplates.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void listInspectTemplates( @@ -2041,7 +2346,9 @@ default void listInspectTemplates( * *
                                                                                            * Deletes an InspectTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void deleteInspectTemplate( @@ -2057,8 +2364,9 @@ default void deleteInspectTemplate( *
                                                                                            * Creates a DeidentifyTemplate for reusing frequently used configuration
                                                                                            * for de-identifying content, images, and storage.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void createDeidentifyTemplate( @@ -2074,8 +2382,9 @@ default void createDeidentifyTemplate( * *
                                                                                            * Updates the DeidentifyTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void updateDeidentifyTemplate( @@ -2091,8 +2400,9 @@ default void updateDeidentifyTemplate( * *
                                                                                            * Gets a DeidentifyTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void getDeidentifyTemplate( @@ -2108,8 +2418,9 @@ default void getDeidentifyTemplate( * *
                                                                                            * Lists DeidentifyTemplates.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void listDeidentifyTemplates( @@ -2125,8 +2436,9 @@ default void listDeidentifyTemplates( * *
                                                                                            * Deletes a DeidentifyTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void deleteDeidentifyTemplate( @@ -2142,7 +2454,9 @@ default void deleteDeidentifyTemplate( *
                                                                                            * Creates a job trigger to run DLP actions such as scanning storage for
                                                                                            * sensitive information on a set schedule.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void createJobTrigger( @@ -2157,7 +2471,9 @@ default void createJobTrigger( * *
                                                                                            * Updates a job trigger.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void updateJobTrigger( @@ -2189,7 +2505,9 @@ default void hybridInspectJobTrigger( * *
                                                                                            * Gets a job trigger.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void getJobTrigger( @@ -2204,7 +2522,9 @@ default void getJobTrigger( * *
                                                                                            * Lists job triggers.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void listJobTriggers( @@ -2220,7 +2540,9 @@ default void listJobTriggers( * *
                                                                                            * Deletes a job trigger.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void deleteJobTrigger( @@ -2321,8 +2643,11 @@ default void deleteDiscoveryConfig( * *
                                                                                            * Creates a new job to inspect storage or calculate risk metrics.
                                                                                      -     * See https://cloud.google.com/dlp/docs/inspecting-storage and
                                                                                      -     * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
                                                                                      +     * and
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
                                                                                      +     * to learn more.
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
                                                                                            * system will automatically choose what detectors to run. By default this may
                                                                                            * be all types, but may change over time as detectors are updated.
                                                                                      @@ -2340,8 +2665,11 @@ default void createDlpJob(
                                                                                            *
                                                                                            * 
                                                                                            * Lists DlpJobs that match the specified filter in the request.
                                                                                      -     * See https://cloud.google.com/dlp/docs/inspecting-storage and
                                                                                      -     * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
                                                                                      +     * and
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void listDlpJobs( @@ -2357,8 +2685,11 @@ default void listDlpJobs( * *
                                                                                            * Gets the latest state of a long-running DlpJob.
                                                                                      -     * See https://cloud.google.com/dlp/docs/inspecting-storage and
                                                                                      -     * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
                                                                                      +     * and
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void getDlpJob( @@ -2374,8 +2705,11 @@ default void getDlpJob( * Deletes a long-running DlpJob. This method indicates that the client is * no longer interested in the DlpJob result. The job will be canceled if * possible. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + * and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + * to learn more. *
                                                                                      */ default void deleteDlpJob( @@ -2392,8 +2726,11 @@ default void deleteDlpJob( * Starts asynchronous cancellation on a long-running DlpJob. The server * makes a best effort to cancel the DlpJob, but success is not * guaranteed. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + * and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + * to learn more. *
                                                                                      */ default void cancelDlpJob( @@ -2408,8 +2745,9 @@ default void cancelDlpJob( * *
                                                                                            * Creates a pre-built stored infoType to be used for inspection.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void createStoredInfoType( @@ -2425,8 +2763,9 @@ default void createStoredInfoType( *
                                                                                            * Updates the stored infoType by creating a new version. The existing version
                                                                                            * will continue to be used until the new version is ready.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void updateStoredInfoType( @@ -2441,8 +2780,9 @@ default void updateStoredInfoType( * *
                                                                                            * Gets a stored infoType.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void getStoredInfoType( @@ -2457,8 +2797,9 @@ default void getStoredInfoType( * *
                                                                                            * Lists stored infoTypes.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void listStoredInfoTypes( @@ -2474,8 +2815,9 @@ default void listStoredInfoTypes( * *
                                                                                            * Deletes a stored infoType.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ default void deleteStoredInfoType( @@ -2485,6 +2827,94 @@ default void deleteStoredInfoType( getDeleteStoredInfoTypeMethod(), responseObserver); } + /** + * + * + *
                                                                                      +     * Lists data profiles for an organization.
                                                                                      +     * 
                                                                                      + */ + default void listProjectDataProfiles( + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListProjectDataProfilesMethod(), responseObserver); + } + + /** + * + * + *
                                                                                      +     * Lists data profiles for an organization.
                                                                                      +     * 
                                                                                      + */ + default void listTableDataProfiles( + com.google.privacy.dlp.v2.ListTableDataProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTableDataProfilesMethod(), responseObserver); + } + + /** + * + * + *
                                                                                      +     * Lists data profiles for an organization.
                                                                                      +     * 
                                                                                      + */ + default void listColumnDataProfiles( + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListColumnDataProfilesMethod(), responseObserver); + } + + /** + * + * + *
                                                                                      +     * Gets a project data profile.
                                                                                      +     * 
                                                                                      + */ + default void getProjectDataProfile( + com.google.privacy.dlp.v2.GetProjectDataProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetProjectDataProfileMethod(), responseObserver); + } + + /** + * + * + *
                                                                                      +     * Gets a table data profile.
                                                                                      +     * 
                                                                                      + */ + default void getTableDataProfile( + com.google.privacy.dlp.v2.GetTableDataProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetTableDataProfileMethod(), responseObserver); + } + + /** + * + * + *
                                                                                      +     * Gets a column data profile.
                                                                                      +     * 
                                                                                      + */ + default void getColumnDataProfile( + com.google.privacy.dlp.v2.GetColumnDataProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetColumnDataProfileMethod(), responseObserver); + } + /** * * @@ -2529,7 +2959,7 @@ default void finishDlpJob( * The service also includes methods for sensitive data redaction and * scheduling of data scans on Google Cloud Platform based data sets. * To learn more about concepts and find how-to guides see - * https://cloud.google.com/dlp/docs/. + * https://cloud.google.com/sensitive-data-protection/docs/. *
                                                                                      */ public abstract static class DlpServiceImplBase implements io.grpc.BindableService, AsyncService { @@ -2551,7 +2981,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * The service also includes methods for sensitive data redaction and * scheduling of data scans on Google Cloud Platform based data sets. * To learn more about concepts and find how-to guides see - * https://cloud.google.com/dlp/docs/. + * https://cloud.google.com/sensitive-data-protection/docs/. * */ public static final class DlpServiceStub extends io.grpc.stub.AbstractAsyncStub { @@ -2573,8 +3003,10 @@ protected DlpServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions call * When no InfoTypes or CustomInfoTypes are specified in this request, the * system will automatically choose what detectors to run. By default this may * be all types, but may change over time as detectors are updated. - * For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images - * and https://cloud.google.com/dlp/docs/inspecting-text, + * For how to guides, see + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-images + * and + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, * */ public void inspectContent( @@ -2593,8 +3025,9 @@ public void inspectContent( *
                                                                                            * Redacts potentially sensitive info from an image.
                                                                                            * This method has limits on input size, processing time, and output size.
                                                                                      -     * See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images
                                                                                      +     * to learn more.
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in this request, the
                                                                                            * system will automatically choose what detectors to run. By default this may
                                                                                            * be all types, but may change over time as detectors are updated.
                                                                                      @@ -2616,8 +3049,9 @@ public void redactImage(
                                                                                            * 
                                                                                            * De-identifies potentially sensitive info from a ContentItem.
                                                                                            * This method has limits on input size and output size.
                                                                                      -     * See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data
                                                                                      +     * to learn more.
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in this request, the
                                                                                            * system will automatically choose what detectors to run. By default this may
                                                                                            * be all types, but may change over time as detectors are updated.
                                                                                      @@ -2639,7 +3073,7 @@ public void deidentifyContent(
                                                                                            * 
                                                                                            * Re-identifies content that has been de-identified.
                                                                                            * See
                                                                                      -     * https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
                                                                                            * to learn more.
                                                                                            * 
                                                                                      */ @@ -2658,8 +3092,9 @@ public void reidentifyContent( * *
                                                                                            * Returns a list of the sensitive information types that DLP API
                                                                                      -     * supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
                                                                                      -     * learn more.
                                                                                      +     * supports. See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void listInfoTypes( @@ -2678,7 +3113,9 @@ public void listInfoTypes( *
                                                                                            * Creates an InspectTemplate for reusing frequently used configuration
                                                                                            * for inspecting content, images, and storage.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void createInspectTemplate( @@ -2695,7 +3132,9 @@ public void createInspectTemplate( * *
                                                                                            * Updates the InspectTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void updateInspectTemplate( @@ -2712,7 +3151,9 @@ public void updateInspectTemplate( * *
                                                                                            * Gets an InspectTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void getInspectTemplate( @@ -2729,7 +3170,9 @@ public void getInspectTemplate( * *
                                                                                            * Lists InspectTemplates.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void listInspectTemplates( @@ -2747,7 +3190,9 @@ public void listInspectTemplates( * *
                                                                                            * Deletes an InspectTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void deleteInspectTemplate( @@ -2765,8 +3210,9 @@ public void deleteInspectTemplate( *
                                                                                            * Creates a DeidentifyTemplate for reusing frequently used configuration
                                                                                            * for de-identifying content, images, and storage.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void createDeidentifyTemplate( @@ -2784,8 +3230,9 @@ public void createDeidentifyTemplate( * *
                                                                                            * Updates the DeidentifyTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void updateDeidentifyTemplate( @@ -2803,8 +3250,9 @@ public void updateDeidentifyTemplate( * *
                                                                                            * Gets a DeidentifyTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void getDeidentifyTemplate( @@ -2822,8 +3270,9 @@ public void getDeidentifyTemplate( * *
                                                                                            * Lists DeidentifyTemplates.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void listDeidentifyTemplates( @@ -2841,8 +3290,9 @@ public void listDeidentifyTemplates( * *
                                                                                            * Deletes a DeidentifyTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void deleteDeidentifyTemplate( @@ -2860,7 +3310,9 @@ public void deleteDeidentifyTemplate( *
                                                                                            * Creates a job trigger to run DLP actions such as scanning storage for
                                                                                            * sensitive information on a set schedule.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void createJobTrigger( @@ -2877,7 +3329,9 @@ public void createJobTrigger( * *
                                                                                            * Updates a job trigger.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void updateJobTrigger( @@ -2913,7 +3367,9 @@ public void hybridInspectJobTrigger( * *
                                                                                            * Gets a job trigger.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void getJobTrigger( @@ -2930,7 +3386,9 @@ public void getJobTrigger( * *
                                                                                            * Lists job triggers.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void listJobTriggers( @@ -2948,7 +3406,9 @@ public void listJobTriggers( * *
                                                                                            * Deletes a job trigger.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void deleteJobTrigger( @@ -3063,8 +3523,11 @@ public void deleteDiscoveryConfig( * *
                                                                                            * Creates a new job to inspect storage or calculate risk metrics.
                                                                                      -     * See https://cloud.google.com/dlp/docs/inspecting-storage and
                                                                                      -     * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
                                                                                      +     * and
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
                                                                                      +     * to learn more.
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
                                                                                            * system will automatically choose what detectors to run. By default this may
                                                                                            * be all types, but may change over time as detectors are updated.
                                                                                      @@ -3084,8 +3547,11 @@ public void createDlpJob(
                                                                                            *
                                                                                            * 
                                                                                            * Lists DlpJobs that match the specified filter in the request.
                                                                                      -     * See https://cloud.google.com/dlp/docs/inspecting-storage and
                                                                                      -     * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
                                                                                      +     * and
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void listDlpJobs( @@ -3103,8 +3569,11 @@ public void listDlpJobs( * *
                                                                                            * Gets the latest state of a long-running DlpJob.
                                                                                      -     * See https://cloud.google.com/dlp/docs/inspecting-storage and
                                                                                      -     * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
                                                                                      +     * and
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void getDlpJob( @@ -3121,8 +3590,11 @@ public void getDlpJob( * Deletes a long-running DlpJob. This method indicates that the client is * no longer interested in the DlpJob result. The job will be canceled if * possible. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + * and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + * to learn more. *
                                                                                      */ public void deleteDlpJob( @@ -3141,8 +3613,11 @@ public void deleteDlpJob( * Starts asynchronous cancellation on a long-running DlpJob. The server * makes a best effort to cancel the DlpJob, but success is not * guaranteed. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + * and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + * to learn more. *
                                                                                      */ public void cancelDlpJob( @@ -3159,8 +3634,9 @@ public void cancelDlpJob( * *
                                                                                            * Creates a pre-built stored infoType to be used for inspection.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void createStoredInfoType( @@ -3178,8 +3654,9 @@ public void createStoredInfoType( *
                                                                                            * Updates the stored infoType by creating a new version. The existing version
                                                                                            * will continue to be used until the new version is ready.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void updateStoredInfoType( @@ -3196,8 +3673,9 @@ public void updateStoredInfoType( * *
                                                                                            * Gets a stored infoType.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void getStoredInfoType( @@ -3214,8 +3692,9 @@ public void getStoredInfoType( * *
                                                                                            * Lists stored infoTypes.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void listStoredInfoTypes( @@ -3233,8 +3712,9 @@ public void listStoredInfoTypes( * *
                                                                                            * Deletes a stored infoType.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public void deleteStoredInfoType( @@ -3246,6 +3726,106 @@ public void deleteStoredInfoType( responseObserver); } + /** + * + * + *
                                                                                      +     * Lists data profiles for an organization.
                                                                                      +     * 
                                                                                      + */ + public void listProjectDataProfiles( + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListProjectDataProfilesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                      +     * Lists data profiles for an organization.
                                                                                      +     * 
                                                                                      + */ + public void listTableDataProfiles( + com.google.privacy.dlp.v2.ListTableDataProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTableDataProfilesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                      +     * Lists data profiles for an organization.
                                                                                      +     * 
                                                                                      + */ + public void listColumnDataProfiles( + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListColumnDataProfilesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                      +     * Gets a project data profile.
                                                                                      +     * 
                                                                                      + */ + public void getProjectDataProfile( + com.google.privacy.dlp.v2.GetProjectDataProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetProjectDataProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                      +     * Gets a table data profile.
                                                                                      +     * 
                                                                                      + */ + public void getTableDataProfile( + com.google.privacy.dlp.v2.GetTableDataProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTableDataProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
                                                                                      +     * Gets a column data profile.
                                                                                      +     * 
                                                                                      + */ + public void getColumnDataProfile( + com.google.privacy.dlp.v2.GetColumnDataProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetColumnDataProfileMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -3294,7 +3874,7 @@ public void finishDlpJob( * The service also includes methods for sensitive data redaction and * scheduling of data scans on Google Cloud Platform based data sets. * To learn more about concepts and find how-to guides see - * https://cloud.google.com/dlp/docs/. + * https://cloud.google.com/sensitive-data-protection/docs/. *
                                                                                      */ public static final class DlpServiceBlockingStub @@ -3318,8 +3898,10 @@ protected DlpServiceBlockingStub build( * When no InfoTypes or CustomInfoTypes are specified in this request, the * system will automatically choose what detectors to run. By default this may * be all types, but may change over time as detectors are updated. - * For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images - * and https://cloud.google.com/dlp/docs/inspecting-text, + * For how to guides, see + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-images + * and + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, * */ public com.google.privacy.dlp.v2.InspectContentResponse inspectContent( @@ -3334,8 +3916,9 @@ public com.google.privacy.dlp.v2.InspectContentResponse inspectContent( *
                                                                                            * Redacts potentially sensitive info from an image.
                                                                                            * This method has limits on input size, processing time, and output size.
                                                                                      -     * See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images
                                                                                      +     * to learn more.
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in this request, the
                                                                                            * system will automatically choose what detectors to run. By default this may
                                                                                            * be all types, but may change over time as detectors are updated.
                                                                                      @@ -3353,8 +3936,9 @@ public com.google.privacy.dlp.v2.RedactImageResponse redactImage(
                                                                                            * 
                                                                                            * De-identifies potentially sensitive info from a ContentItem.
                                                                                            * This method has limits on input size and output size.
                                                                                      -     * See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data
                                                                                      +     * to learn more.
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in this request, the
                                                                                            * system will automatically choose what detectors to run. By default this may
                                                                                            * be all types, but may change over time as detectors are updated.
                                                                                      @@ -3372,7 +3956,7 @@ public com.google.privacy.dlp.v2.DeidentifyContentResponse deidentifyContent(
                                                                                            * 
                                                                                            * Re-identifies content that has been de-identified.
                                                                                            * See
                                                                                      -     * https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
                                                                                            * to learn more.
                                                                                            * 
                                                                                      */ @@ -3387,8 +3971,9 @@ public com.google.privacy.dlp.v2.ReidentifyContentResponse reidentifyContent( * *
                                                                                            * Returns a list of the sensitive information types that DLP API
                                                                                      -     * supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
                                                                                      -     * learn more.
                                                                                      +     * supports. See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.ListInfoTypesResponse listInfoTypes( @@ -3403,7 +3988,9 @@ public com.google.privacy.dlp.v2.ListInfoTypesResponse listInfoTypes( *
                                                                                            * Creates an InspectTemplate for reusing frequently used configuration
                                                                                            * for inspecting content, images, and storage.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.InspectTemplate createInspectTemplate( @@ -3417,7 +4004,9 @@ public com.google.privacy.dlp.v2.InspectTemplate createInspectTemplate( * *
                                                                                            * Updates the InspectTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.InspectTemplate updateInspectTemplate( @@ -3431,7 +4020,9 @@ public com.google.privacy.dlp.v2.InspectTemplate updateInspectTemplate( * *
                                                                                            * Gets an InspectTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.InspectTemplate getInspectTemplate( @@ -3445,7 +4036,9 @@ public com.google.privacy.dlp.v2.InspectTemplate getInspectTemplate( * *
                                                                                            * Lists InspectTemplates.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.ListInspectTemplatesResponse listInspectTemplates( @@ -3459,7 +4052,9 @@ public com.google.privacy.dlp.v2.ListInspectTemplatesResponse listInspectTemplat * *
                                                                                            * Deletes an InspectTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.protobuf.Empty deleteInspectTemplate( @@ -3474,8 +4069,9 @@ public com.google.protobuf.Empty deleteInspectTemplate( *
                                                                                            * Creates a DeidentifyTemplate for reusing frequently used configuration
                                                                                            * for de-identifying content, images, and storage.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.DeidentifyTemplate createDeidentifyTemplate( @@ -3489,8 +4085,9 @@ public com.google.privacy.dlp.v2.DeidentifyTemplate createDeidentifyTemplate( * *
                                                                                            * Updates the DeidentifyTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.DeidentifyTemplate updateDeidentifyTemplate( @@ -3504,8 +4101,9 @@ public com.google.privacy.dlp.v2.DeidentifyTemplate updateDeidentifyTemplate( * *
                                                                                            * Gets a DeidentifyTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.DeidentifyTemplate getDeidentifyTemplate( @@ -3519,8 +4117,9 @@ public com.google.privacy.dlp.v2.DeidentifyTemplate getDeidentifyTemplate( * *
                                                                                            * Lists DeidentifyTemplates.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse listDeidentifyTemplates( @@ -3534,8 +4133,9 @@ public com.google.privacy.dlp.v2.ListDeidentifyTemplatesResponse listDeidentifyT * *
                                                                                            * Deletes a DeidentifyTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.protobuf.Empty deleteDeidentifyTemplate( @@ -3550,7 +4150,9 @@ public com.google.protobuf.Empty deleteDeidentifyTemplate( *
                                                                                            * Creates a job trigger to run DLP actions such as scanning storage for
                                                                                            * sensitive information on a set schedule.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.JobTrigger createJobTrigger( @@ -3564,7 +4166,9 @@ public com.google.privacy.dlp.v2.JobTrigger createJobTrigger( * *
                                                                                            * Updates a job trigger.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.JobTrigger updateJobTrigger( @@ -3593,7 +4197,9 @@ public com.google.privacy.dlp.v2.HybridInspectResponse hybridInspectJobTrigger( * *
                                                                                            * Gets a job trigger.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.JobTrigger getJobTrigger( @@ -3607,7 +4213,9 @@ public com.google.privacy.dlp.v2.JobTrigger getJobTrigger( * *
                                                                                            * Lists job triggers.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.ListJobTriggersResponse listJobTriggers( @@ -3621,7 +4229,9 @@ public com.google.privacy.dlp.v2.ListJobTriggersResponse listJobTriggers( * *
                                                                                            * Deletes a job trigger.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.protobuf.Empty deleteJobTrigger( @@ -3714,8 +4324,11 @@ public com.google.protobuf.Empty deleteDiscoveryConfig( * *
                                                                                            * Creates a new job to inspect storage or calculate risk metrics.
                                                                                      -     * See https://cloud.google.com/dlp/docs/inspecting-storage and
                                                                                      -     * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
                                                                                      +     * and
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
                                                                                      +     * to learn more.
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
                                                                                            * system will automatically choose what detectors to run. By default this may
                                                                                            * be all types, but may change over time as detectors are updated.
                                                                                      @@ -3732,8 +4345,11 @@ public com.google.privacy.dlp.v2.DlpJob createDlpJob(
                                                                                            *
                                                                                            * 
                                                                                            * Lists DlpJobs that match the specified filter in the request.
                                                                                      -     * See https://cloud.google.com/dlp/docs/inspecting-storage and
                                                                                      -     * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
                                                                                      +     * and
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.ListDlpJobsResponse listDlpJobs( @@ -3747,8 +4363,11 @@ public com.google.privacy.dlp.v2.ListDlpJobsResponse listDlpJobs( * *
                                                                                            * Gets the latest state of a long-running DlpJob.
                                                                                      -     * See https://cloud.google.com/dlp/docs/inspecting-storage and
                                                                                      -     * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
                                                                                      +     * and
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.DlpJob getDlpJob( @@ -3764,8 +4383,11 @@ public com.google.privacy.dlp.v2.DlpJob getDlpJob( * Deletes a long-running DlpJob. This method indicates that the client is * no longer interested in the DlpJob result. The job will be canceled if * possible. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + * and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + * to learn more. *
                                                                                      */ public com.google.protobuf.Empty deleteDlpJob( @@ -3781,8 +4403,11 @@ public com.google.protobuf.Empty deleteDlpJob( * Starts asynchronous cancellation on a long-running DlpJob. The server * makes a best effort to cancel the DlpJob, but success is not * guaranteed. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + * and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + * to learn more. *
                                                                                      */ public com.google.protobuf.Empty cancelDlpJob( @@ -3796,8 +4421,9 @@ public com.google.protobuf.Empty cancelDlpJob( * *
                                                                                            * Creates a pre-built stored infoType to be used for inspection.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.StoredInfoType createStoredInfoType( @@ -3812,8 +4438,9 @@ public com.google.privacy.dlp.v2.StoredInfoType createStoredInfoType( *
                                                                                            * Updates the stored infoType by creating a new version. The existing version
                                                                                            * will continue to be used until the new version is ready.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.StoredInfoType updateStoredInfoType( @@ -3827,8 +4454,9 @@ public com.google.privacy.dlp.v2.StoredInfoType updateStoredInfoType( * *
                                                                                            * Gets a stored infoType.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.StoredInfoType getStoredInfoType( @@ -3842,8 +4470,9 @@ public com.google.privacy.dlp.v2.StoredInfoType getStoredInfoType( * *
                                                                                            * Lists stored infoTypes.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.privacy.dlp.v2.ListStoredInfoTypesResponse listStoredInfoTypes( @@ -3857,8 +4486,9 @@ public com.google.privacy.dlp.v2.ListStoredInfoTypesResponse listStoredInfoTypes * *
                                                                                            * Deletes a stored infoType.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.protobuf.Empty deleteStoredInfoType( @@ -3867,6 +4497,84 @@ public com.google.protobuf.Empty deleteStoredInfoType( getChannel(), getDeleteStoredInfoTypeMethod(), getCallOptions(), request); } + /** + * + * + *
                                                                                      +     * Lists data profiles for an organization.
                                                                                      +     * 
                                                                                      + */ + public com.google.privacy.dlp.v2.ListProjectDataProfilesResponse listProjectDataProfiles( + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListProjectDataProfilesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                      +     * Lists data profiles for an organization.
                                                                                      +     * 
                                                                                      + */ + public com.google.privacy.dlp.v2.ListTableDataProfilesResponse listTableDataProfiles( + com.google.privacy.dlp.v2.ListTableDataProfilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTableDataProfilesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                      +     * Lists data profiles for an organization.
                                                                                      +     * 
                                                                                      + */ + public com.google.privacy.dlp.v2.ListColumnDataProfilesResponse listColumnDataProfiles( + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListColumnDataProfilesMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                      +     * Gets a project data profile.
                                                                                      +     * 
                                                                                      + */ + public com.google.privacy.dlp.v2.ProjectDataProfile getProjectDataProfile( + com.google.privacy.dlp.v2.GetProjectDataProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetProjectDataProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                      +     * Gets a table data profile.
                                                                                      +     * 
                                                                                      + */ + public com.google.privacy.dlp.v2.TableDataProfile getTableDataProfile( + com.google.privacy.dlp.v2.GetTableDataProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTableDataProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
                                                                                      +     * Gets a column data profile.
                                                                                      +     * 
                                                                                      + */ + public com.google.privacy.dlp.v2.ColumnDataProfile getColumnDataProfile( + com.google.privacy.dlp.v2.GetColumnDataProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetColumnDataProfileMethod(), getCallOptions(), request); + } + /** * * @@ -3908,7 +4616,7 @@ public com.google.protobuf.Empty finishDlpJob( * The service also includes methods for sensitive data redaction and * scheduling of data scans on Google Cloud Platform based data sets. * To learn more about concepts and find how-to guides see - * https://cloud.google.com/dlp/docs/. + * https://cloud.google.com/sensitive-data-protection/docs/. *
                                                                                      */ public static final class DlpServiceFutureStub @@ -3931,8 +4639,10 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * When no InfoTypes or CustomInfoTypes are specified in this request, the * system will automatically choose what detectors to run. By default this may * be all types, but may change over time as detectors are updated. - * For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images - * and https://cloud.google.com/dlp/docs/inspecting-text, + * For how to guides, see + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-images + * and + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, * */ public com.google.common.util.concurrent.ListenableFuture< @@ -3948,8 +4658,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption *
                                                                                            * Redacts potentially sensitive info from an image.
                                                                                            * This method has limits on input size, processing time, and output size.
                                                                                      -     * See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images
                                                                                      +     * to learn more.
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in this request, the
                                                                                            * system will automatically choose what detectors to run. By default this may
                                                                                            * be all types, but may change over time as detectors are updated.
                                                                                      @@ -3968,8 +4679,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
                                                                                            * 
                                                                                            * De-identifies potentially sensitive info from a ContentItem.
                                                                                            * This method has limits on input size and output size.
                                                                                      -     * See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data
                                                                                      +     * to learn more.
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in this request, the
                                                                                            * system will automatically choose what detectors to run. By default this may
                                                                                            * be all types, but may change over time as detectors are updated.
                                                                                      @@ -3988,7 +4700,7 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
                                                                                            * 
                                                                                            * Re-identifies content that has been de-identified.
                                                                                            * See
                                                                                      -     * https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example
                                                                                            * to learn more.
                                                                                            * 
                                                                                      */ @@ -4004,8 +4716,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Returns a list of the sensitive information types that DLP API
                                                                                      -     * supports. See https://cloud.google.com/dlp/docs/infotypes-reference to
                                                                                      -     * learn more.
                                                                                      +     * supports. See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4021,7 +4734,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption *
                                                                                            * Creates an InspectTemplate for reusing frequently used configuration
                                                                                            * for inspecting content, images, and storage.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4036,7 +4751,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Updates the InspectTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4051,7 +4768,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Gets an InspectTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4066,7 +4785,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Lists InspectTemplates.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4081,7 +4802,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Deletes an InspectTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture @@ -4096,8 +4819,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption *
                                                                                            * Creates a DeidentifyTemplate for reusing frequently used configuration
                                                                                            * for de-identifying content, images, and storage.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4113,8 +4837,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Updates the DeidentifyTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4130,8 +4855,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Gets a DeidentifyTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4146,8 +4872,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Lists DeidentifyTemplates.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4162,8 +4889,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Deletes a DeidentifyTemplate.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-templates-deid to learn
                                                                                      -     * more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture @@ -4179,7 +4907,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption *
                                                                                            * Creates a job trigger to run DLP actions such as scanning storage for
                                                                                            * sensitive information on a set schedule.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture @@ -4193,7 +4923,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Updates a job trigger.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture @@ -4223,7 +4955,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Gets a job trigger.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture @@ -4237,7 +4971,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Lists job triggers.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4252,7 +4988,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Deletes a job trigger.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture @@ -4349,8 +5087,11 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Creates a new job to inspect storage or calculate risk metrics.
                                                                                      -     * See https://cloud.google.com/dlp/docs/inspecting-storage and
                                                                                      -     * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
                                                                                      +     * and
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
                                                                                      +     * to learn more.
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the
                                                                                            * system will automatically choose what detectors to run. By default this may
                                                                                            * be all types, but may change over time as detectors are updated.
                                                                                      @@ -4367,8 +5108,11 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
                                                                                            *
                                                                                            * 
                                                                                            * Lists DlpJobs that match the specified filter in the request.
                                                                                      -     * See https://cloud.google.com/dlp/docs/inspecting-storage and
                                                                                      -     * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
                                                                                      +     * and
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4383,8 +5127,11 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Gets the latest state of a long-running DlpJob.
                                                                                      -     * See https://cloud.google.com/dlp/docs/inspecting-storage and
                                                                                      -     * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage
                                                                                      +     * and
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture @@ -4400,8 +5147,11 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * Deletes a long-running DlpJob. This method indicates that the client is * no longer interested in the DlpJob result. The job will be canceled if * possible. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + * and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + * to learn more. *
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture @@ -4417,8 +5167,11 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * Starts asynchronous cancellation on a long-running DlpJob. The server * makes a best effort to cancel the DlpJob, but success is not * guaranteed. - * See https://cloud.google.com/dlp/docs/inspecting-storage and - * https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + * See + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + * and + * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + * to learn more. *
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture @@ -4432,8 +5185,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Creates a pre-built stored infoType to be used for inspection.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4449,8 +5203,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption *
                                                                                            * Updates the stored infoType by creating a new version. The existing version
                                                                                            * will continue to be used until the new version is ready.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4465,8 +5220,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Gets a stored infoType.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4481,8 +5237,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Lists stored infoTypes.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture< @@ -4497,8 +5254,9 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
                                                                                            * Deletes a stored infoType.
                                                                                      -     * See https://cloud.google.com/dlp/docs/creating-stored-infotypes to
                                                                                      -     * learn more.
                                                                                      +     * See
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      */ public com.google.common.util.concurrent.ListenableFuture @@ -4507,6 +5265,90 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption getChannel().newCall(getDeleteStoredInfoTypeMethod(), getCallOptions()), request); } + /** + * + * + *
                                                                                      +     * Lists data profiles for an organization.
                                                                                      +     * 
                                                                                      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse> + listProjectDataProfiles(com.google.privacy.dlp.v2.ListProjectDataProfilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListProjectDataProfilesMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                      +     * Lists data profiles for an organization.
                                                                                      +     * 
                                                                                      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.privacy.dlp.v2.ListTableDataProfilesResponse> + listTableDataProfiles(com.google.privacy.dlp.v2.ListTableDataProfilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTableDataProfilesMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                      +     * Lists data profiles for an organization.
                                                                                      +     * 
                                                                                      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse> + listColumnDataProfiles(com.google.privacy.dlp.v2.ListColumnDataProfilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListColumnDataProfilesMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                      +     * Gets a project data profile.
                                                                                      +     * 
                                                                                      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.privacy.dlp.v2.ProjectDataProfile> + getProjectDataProfile(com.google.privacy.dlp.v2.GetProjectDataProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetProjectDataProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                      +     * Gets a table data profile.
                                                                                      +     * 
                                                                                      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.privacy.dlp.v2.TableDataProfile> + getTableDataProfile(com.google.privacy.dlp.v2.GetTableDataProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTableDataProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
                                                                                      +     * Gets a column data profile.
                                                                                      +     * 
                                                                                      + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.privacy.dlp.v2.ColumnDataProfile> + getColumnDataProfile(com.google.privacy.dlp.v2.GetColumnDataProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetColumnDataProfileMethod(), getCallOptions()), request); + } + /** * * @@ -4575,8 +5417,14 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_GET_STORED_INFO_TYPE = 34; private static final int METHODID_LIST_STORED_INFO_TYPES = 35; private static final int METHODID_DELETE_STORED_INFO_TYPE = 36; - private static final int METHODID_HYBRID_INSPECT_DLP_JOB = 37; - private static final int METHODID_FINISH_DLP_JOB = 38; + private static final int METHODID_LIST_PROJECT_DATA_PROFILES = 37; + private static final int METHODID_LIST_TABLE_DATA_PROFILES = 38; + private static final int METHODID_LIST_COLUMN_DATA_PROFILES = 39; + private static final int METHODID_GET_PROJECT_DATA_PROFILE = 40; + private static final int METHODID_GET_TABLE_DATA_PROFILE = 41; + private static final int METHODID_GET_COLUMN_DATA_PROFILE = 42; + private static final int METHODID_HYBRID_INSPECT_DLP_JOB = 43; + private static final int METHODID_FINISH_DLP_JOB = 44; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4805,6 +5653,44 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_PROJECT_DATA_PROFILES: + serviceImpl.listProjectDataProfiles( + (com.google.privacy.dlp.v2.ListProjectDataProfilesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse>) + responseObserver); + break; + case METHODID_LIST_TABLE_DATA_PROFILES: + serviceImpl.listTableDataProfiles( + (com.google.privacy.dlp.v2.ListTableDataProfilesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_COLUMN_DATA_PROFILES: + serviceImpl.listColumnDataProfiles( + (com.google.privacy.dlp.v2.ListColumnDataProfilesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse>) + responseObserver); + break; + case METHODID_GET_PROJECT_DATA_PROFILE: + serviceImpl.getProjectDataProfile( + (com.google.privacy.dlp.v2.GetProjectDataProfileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_TABLE_DATA_PROFILE: + serviceImpl.getTableDataProfile( + (com.google.privacy.dlp.v2.GetTableDataProfileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_COLUMN_DATA_PROFILE: + serviceImpl.getColumnDataProfile( + (com.google.privacy.dlp.v2.GetColumnDataProfileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_HYBRID_INSPECT_DLP_JOB: serviceImpl.hybridInspectDlpJob( (com.google.privacy.dlp.v2.HybridInspectDlpJobRequest) request, @@ -5079,6 +5965,48 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.privacy.dlp.v2.DeleteStoredInfoTypeRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_STORED_INFO_TYPE))) + .addMethod( + getListProjectDataProfilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest, + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse>( + service, METHODID_LIST_PROJECT_DATA_PROFILES))) + .addMethod( + getListTableDataProfilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.privacy.dlp.v2.ListTableDataProfilesRequest, + com.google.privacy.dlp.v2.ListTableDataProfilesResponse>( + service, METHODID_LIST_TABLE_DATA_PROFILES))) + .addMethod( + getListColumnDataProfilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest, + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse>( + service, METHODID_LIST_COLUMN_DATA_PROFILES))) + .addMethod( + getGetProjectDataProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.privacy.dlp.v2.GetProjectDataProfileRequest, + com.google.privacy.dlp.v2.ProjectDataProfile>( + service, METHODID_GET_PROJECT_DATA_PROFILE))) + .addMethod( + getGetTableDataProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.privacy.dlp.v2.GetTableDataProfileRequest, + com.google.privacy.dlp.v2.TableDataProfile>( + service, METHODID_GET_TABLE_DATA_PROFILE))) + .addMethod( + getGetColumnDataProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.privacy.dlp.v2.GetColumnDataProfileRequest, + com.google.privacy.dlp.v2.ColumnDataProfile>( + service, METHODID_GET_COLUMN_DATA_PROFILE))) .addMethod( getHybridInspectDlpJobMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -5180,6 +6108,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetStoredInfoTypeMethod()) .addMethod(getListStoredInfoTypesMethod()) .addMethod(getDeleteStoredInfoTypeMethod()) + .addMethod(getListProjectDataProfilesMethod()) + .addMethod(getListTableDataProfilesMethod()) + .addMethod(getListColumnDataProfilesMethod()) + .addMethod(getGetProjectDataProfileMethod()) + .addMethod(getGetTableDataProfileMethod()) + .addMethod(getGetColumnDataProfileMethod()) .addMethod(getHybridInspectDlpJobMethod()) .addMethod(getFinishDlpJobMethod()) .build(); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java index 3df72d8bc609..9b6ea30f9139 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java @@ -24,7 +24,8 @@ * *
                                                                                        * A task to execute on the completion of a job.
                                                                                      - * See https://cloud.google.com/dlp/docs/concepts-actions to learn more.
                                                                                      + * See https://cloud.google.com/sensitive-data-protection/docs/concepts-actions
                                                                                      + * to learn more.
                                                                                        * 
                                                                                      * * Protobuf type {@code google.privacy.dlp.v2.Action} @@ -860,7 +861,7 @@ public interface PublishToPubSubOrBuilder * Publish a message into a given Pub/Sub topic when DlpJob has completed. The * message contains a single field, `DlpJobName`, which is equal to the * finished job's - * [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob). + * [`DlpJob.name`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.dlpJobs#DlpJob). * Compatible with: Inspect, Risk *
                                                                                      * @@ -1125,7 +1126,7 @@ protected Builder newBuilderForType( * Publish a message into a given Pub/Sub topic when DlpJob has completed. The * message contains a single field, `DlpJobName`, which is equal to the * finished job's - * [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob). + * [`DlpJob.name`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.dlpJobs#DlpJob). * Compatible with: Inspect, Risk * * @@ -6215,7 +6216,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
                                                                                          * A task to execute on the completion of a job.
                                                                                      -   * See https://cloud.google.com/dlp/docs/concepts-actions to learn more.
                                                                                      +   * See https://cloud.google.com/sensitive-data-protection/docs/concepts-actions
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * Protobuf type {@code google.privacy.dlp.v2.Action} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptions.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptions.java index e5be85dc7eea..daf30b6e8105 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptions.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptions.java @@ -78,7 +78,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Protobuf enum {@code google.privacy.dlp.v2.BigQueryOptions.SampleMethod} */ public enum SampleMethod implements com.google.protobuf.ProtocolMessageEnum { - /** SAMPLE_METHOD_UNSPECIFIED = 0; */ + /** + * + * + *
                                                                                      +     * No sampling.
                                                                                      +     * 
                                                                                      + * + * SAMPLE_METHOD_UNSPECIFIED = 0; + */ SAMPLE_METHOD_UNSPECIFIED(0), /** * @@ -105,7 +113,15 @@ public enum SampleMethod implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** SAMPLE_METHOD_UNSPECIFIED = 0; */ + /** + * + * + *
                                                                                      +     * No sampling.
                                                                                      +     * 
                                                                                      + * + * SAMPLE_METHOD_UNSPECIFIED = 0; + */ public static final int SAMPLE_METHOD_UNSPECIFIED_VALUE = 0; /** * @@ -387,6 +403,11 @@ public long getRowsLimit() { * 100 means no limit. Defaults to 0. Only one of rows_limit and * rows_limit_percent can be specified. Cannot be used in conjunction with * TimespanConfig. + * + * Caution: A [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) + * is causing the `rowsLimitPercent` field to behave unexpectedly. We + * recommend using `rowsLimit` instead. * * * int32 rows_limit_percent = 6; @@ -401,6 +422,12 @@ public int getRowsLimitPercent() { public static final int SAMPLE_METHOD_FIELD_NUMBER = 4; private int sampleMethod_ = 0; /** + * + * + *
                                                                                      +   * How to sample the data.
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; * * @return The enum numeric value on the wire for sampleMethod. @@ -410,6 +437,12 @@ public int getSampleMethodValue() { return sampleMethod_; } /** + * + * + *
                                                                                      +   * How to sample the data.
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; * * @return The sampleMethod. @@ -1923,6 +1956,11 @@ public Builder clearRowsLimit() { * 100 means no limit. Defaults to 0. Only one of rows_limit and * rows_limit_percent can be specified. Cannot be used in conjunction with * TimespanConfig. + * + * Caution: A [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) + * is causing the `rowsLimitPercent` field to behave unexpectedly. We + * recommend using `rowsLimit` instead. * * * int32 rows_limit_percent = 6; @@ -1942,6 +1980,11 @@ public int getRowsLimitPercent() { * 100 means no limit. Defaults to 0. Only one of rows_limit and * rows_limit_percent can be specified. Cannot be used in conjunction with * TimespanConfig. + * + * Caution: A [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) + * is causing the `rowsLimitPercent` field to behave unexpectedly. We + * recommend using `rowsLimit` instead. * * * int32 rows_limit_percent = 6; @@ -1965,6 +2008,11 @@ public Builder setRowsLimitPercent(int value) { * 100 means no limit. Defaults to 0. Only one of rows_limit and * rows_limit_percent can be specified. Cannot be used in conjunction with * TimespanConfig. + * + * Caution: A [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) + * is causing the `rowsLimitPercent` field to behave unexpectedly. We + * recommend using `rowsLimit` instead. * * * int32 rows_limit_percent = 6; @@ -1980,6 +2028,12 @@ public Builder clearRowsLimitPercent() { private int sampleMethod_ = 0; /** + * + * + *
                                                                                      +     * How to sample the data.
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; * * @return The enum numeric value on the wire for sampleMethod. @@ -1989,6 +2043,12 @@ public int getSampleMethodValue() { return sampleMethod_; } /** + * + * + *
                                                                                      +     * How to sample the data.
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; * * @param value The enum numeric value on the wire for sampleMethod to set. @@ -2001,6 +2061,12 @@ public Builder setSampleMethodValue(int value) { return this; } /** + * + * + *
                                                                                      +     * How to sample the data.
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; * * @return The sampleMethod. @@ -2014,6 +2080,12 @@ public com.google.privacy.dlp.v2.BigQueryOptions.SampleMethod getSampleMethod() : result; } /** + * + * + *
                                                                                      +     * How to sample the data.
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; * * @param value The sampleMethod to set. @@ -2029,6 +2101,12 @@ public Builder setSampleMethod(com.google.privacy.dlp.v2.BigQueryOptions.SampleM return this; } /** + * + * + *
                                                                                      +     * How to sample the data.
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; * * @return This builder for chaining. diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptionsOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptionsOrBuilder.java index 7ea7d1ad04a6..bfc5e51b7172 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptionsOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BigQueryOptionsOrBuilder.java @@ -156,6 +156,11 @@ public interface BigQueryOptionsOrBuilder * 100 means no limit. Defaults to 0. Only one of rows_limit and * rows_limit_percent can be specified. Cannot be used in conjunction with * TimespanConfig. + * + * Caution: A [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) + * is causing the `rowsLimitPercent` field to behave unexpectedly. We + * recommend using `rowsLimit` instead. * * * int32 rows_limit_percent = 6; @@ -165,12 +170,24 @@ public interface BigQueryOptionsOrBuilder int getRowsLimitPercent(); /** + * + * + *
                                                                                      +   * How to sample the data.
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; * * @return The enum numeric value on the wire for sampleMethod. */ int getSampleMethodValue(); /** + * + * + *
                                                                                      +   * How to sample the data.
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; * * @return The sampleMethod. diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BucketingConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BucketingConfig.java index 9700d581a97b..583638eb246e 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BucketingConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/BucketingConfig.java @@ -31,7 +31,9 @@ * If the bound `Value` type differs from the type of data being transformed, we * will first attempt converting the type of the data to be transformed to match * the type of the bound before comparing. - * See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more. + * See + * https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to + * learn more. * * * Protobuf type {@code google.privacy.dlp.v2.BucketingConfig} @@ -1701,7 +1703,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * If the bound `Value` type differs from the type of data being transformed, we * will first attempt converting the type of the data to be transformed to match * the type of the bound before comparing. - * See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more. + * See + * https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to + * learn more. * * * Protobuf type {@code google.privacy.dlp.v2.BucketingConfig} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ByteContentItem.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ByteContentItem.java index 3db49c1af89e..a1fcfe1f35ac 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ByteContentItem.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ByteContentItem.java @@ -70,7 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                                                                                          * The type of data being sent for inspection. To learn more, see
                                                                                          * [Supported file
                                                                                      -   * types](https://cloud.google.com/dlp/docs/supported-file-types).
                                                                                      +   * types](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types).
                                                                                          * 
                                                                                      * * Protobuf enum {@code google.privacy.dlp.v2.ByteContentItem.BytesType} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java index 9d8fcbd3cd99..81df1d374f67 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptions.java @@ -77,7 +77,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Protobuf enum {@code google.privacy.dlp.v2.CloudStorageOptions.SampleMethod} */ public enum SampleMethod implements com.google.protobuf.ProtocolMessageEnum { - /** SAMPLE_METHOD_UNSPECIFIED = 0; */ + /** + * + * + *
                                                                                      +     * No sampling.
                                                                                      +     * 
                                                                                      + * + * SAMPLE_METHOD_UNSPECIFIED = 0; + */ SAMPLE_METHOD_UNSPECIFIED(0), /** * @@ -103,7 +111,15 @@ public enum SampleMethod implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** SAMPLE_METHOD_UNSPECIFIED = 0; */ + /** + * + * + *
                                                                                      +     * No sampling.
                                                                                      +     * 
                                                                                      + * + * SAMPLE_METHOD_UNSPECIFIED = 0; + */ public static final int SAMPLE_METHOD_UNSPECIFIED_VALUE = 0; /** * @@ -1329,7 +1345,7 @@ public com.google.privacy.dlp.v2.CloudStorageOptions.FileSetOrBuilder getFileSet * This field can't be set if de-identification is requested. For certain file * types, setting this field has no effect. For more information, see [Limits * on bytes scanned per - * file](https://cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file). + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). * * * int64 bytes_limit_per_file = 4; @@ -1354,7 +1370,7 @@ public long getBytesLimitPerFile() { * This field can't be set if de-identification is requested. For certain file * types, setting this field has no effect. For more information, see [Limits * on bytes scanned per - * file](https://cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file). + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). * * * int32 bytes_limit_per_file_percent = 8; @@ -1496,6 +1512,12 @@ public int getFileTypesValue(int index) { public static final int SAMPLE_METHOD_FIELD_NUMBER = 6; private int sampleMethod_ = 0; /** + * + * + *
                                                                                      +   * How to sample the data.
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; * * @return The enum numeric value on the wire for sampleMethod. @@ -1505,6 +1527,12 @@ public int getSampleMethodValue() { return sampleMethod_; } /** + * + * + *
                                                                                      +   * How to sample the data.
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; * * @return The sampleMethod. @@ -2254,7 +2282,7 @@ public com.google.privacy.dlp.v2.CloudStorageOptions.FileSetOrBuilder getFileSet * This field can't be set if de-identification is requested. For certain file * types, setting this field has no effect. For more information, see [Limits * on bytes scanned per - * file](https://cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file). + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). * * * int64 bytes_limit_per_file = 4; @@ -2275,7 +2303,7 @@ public long getBytesLimitPerFile() { * This field can't be set if de-identification is requested. For certain file * types, setting this field has no effect. For more information, see [Limits * on bytes scanned per - * file](https://cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file). + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). * * * int64 bytes_limit_per_file = 4; @@ -2300,7 +2328,7 @@ public Builder setBytesLimitPerFile(long value) { * This field can't be set if de-identification is requested. For certain file * types, setting this field has no effect. For more information, see [Limits * on bytes scanned per - * file](https://cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file). + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). * * * int64 bytes_limit_per_file = 4; @@ -2326,7 +2354,7 @@ public Builder clearBytesLimitPerFile() { * This field can't be set if de-identification is requested. For certain file * types, setting this field has no effect. For more information, see [Limits * on bytes scanned per - * file](https://cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file). + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). * * * int32 bytes_limit_per_file_percent = 8; @@ -2348,7 +2376,7 @@ public int getBytesLimitPerFilePercent() { * This field can't be set if de-identification is requested. For certain file * types, setting this field has no effect. For more information, see [Limits * on bytes scanned per - * file](https://cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file). + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). * * * int32 bytes_limit_per_file_percent = 8; @@ -2374,7 +2402,7 @@ public Builder setBytesLimitPerFilePercent(int value) { * This field can't be set if de-identification is requested. For certain file * types, setting this field has no effect. For more information, see [Limits * on bytes scanned per - * file](https://cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file). + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). * * * int32 bytes_limit_per_file_percent = 8; @@ -2682,6 +2710,12 @@ public Builder addAllFileTypesValue(java.lang.Iterable values private int sampleMethod_ = 0; /** + * + * + *
                                                                                      +     * How to sample the data.
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; * * @return The enum numeric value on the wire for sampleMethod. @@ -2691,6 +2725,12 @@ public int getSampleMethodValue() { return sampleMethod_; } /** + * + * + *
                                                                                      +     * How to sample the data.
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; * * @param value The enum numeric value on the wire for sampleMethod to set. @@ -2703,6 +2743,12 @@ public Builder setSampleMethodValue(int value) { return this; } /** + * + * + *
                                                                                      +     * How to sample the data.
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; * * @return The sampleMethod. @@ -2716,6 +2762,12 @@ public com.google.privacy.dlp.v2.CloudStorageOptions.SampleMethod getSampleMetho : result; } /** + * + * + *
                                                                                      +     * How to sample the data.
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; * * @param value The sampleMethod to set. @@ -2732,6 +2784,12 @@ public Builder setSampleMethod( return this; } /** + * + * + *
                                                                                      +     * How to sample the data.
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; * * @return This builder for chaining. diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptionsOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptionsOrBuilder.java index dba640840a7b..1783495079bd 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptionsOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStorageOptionsOrBuilder.java @@ -69,7 +69,7 @@ public interface CloudStorageOptionsOrBuilder * This field can't be set if de-identification is requested. For certain file * types, setting this field has no effect. For more information, see [Limits * on bytes scanned per - * file](https://cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file). + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). * * * int64 bytes_limit_per_file = 4; @@ -89,7 +89,7 @@ public interface CloudStorageOptionsOrBuilder * This field can't be set if de-identification is requested. For certain file * types, setting this field has no effect. For more information, see [Limits * on bytes scanned per - * file](https://cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file). + * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). * * * int32 bytes_limit_per_file_percent = 8; @@ -192,12 +192,24 @@ public interface CloudStorageOptionsOrBuilder int getFileTypesValue(int index); /** + * + * + *
                                                                                      +   * How to sample the data.
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; * * @return The enum numeric value on the wire for sampleMethod. */ int getSampleMethodValue(); /** + * + * + *
                                                                                      +   * How to sample the data.
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; * * @return The sampleMethod. diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStoragePath.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStoragePath.java index 6a9fc7023515..3b7864150818 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStoragePath.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStoragePath.java @@ -71,8 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                                                                      -   * A url representing a file or path (no wildcards) in Cloud Storage.
                                                                                      -   * Example: gs://[BUCKET_NAME]/dictionary.txt
                                                                                      +   * A URL representing a file or path (no wildcards) in Cloud Storage.
                                                                                      +   * Example: `gs://[BUCKET_NAME]/dictionary.txt`
                                                                                          * 
                                                                                      * * string path = 1; @@ -95,8 +95,8 @@ public java.lang.String getPath() { * * *
                                                                                      -   * A url representing a file or path (no wildcards) in Cloud Storage.
                                                                                      -   * Example: gs://[BUCKET_NAME]/dictionary.txt
                                                                                      +   * A URL representing a file or path (no wildcards) in Cloud Storage.
                                                                                      +   * Example: `gs://[BUCKET_NAME]/dictionary.txt`
                                                                                          * 
                                                                                      * * string path = 1; @@ -462,8 +462,8 @@ public Builder mergeFrom( * * *
                                                                                      -     * A url representing a file or path (no wildcards) in Cloud Storage.
                                                                                      -     * Example: gs://[BUCKET_NAME]/dictionary.txt
                                                                                      +     * A URL representing a file or path (no wildcards) in Cloud Storage.
                                                                                      +     * Example: `gs://[BUCKET_NAME]/dictionary.txt`
                                                                                            * 
                                                                                      * * string path = 1; @@ -485,8 +485,8 @@ public java.lang.String getPath() { * * *
                                                                                      -     * A url representing a file or path (no wildcards) in Cloud Storage.
                                                                                      -     * Example: gs://[BUCKET_NAME]/dictionary.txt
                                                                                      +     * A URL representing a file or path (no wildcards) in Cloud Storage.
                                                                                      +     * Example: `gs://[BUCKET_NAME]/dictionary.txt`
                                                                                            * 
                                                                                      * * string path = 1; @@ -508,8 +508,8 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
                                                                                      -     * A url representing a file or path (no wildcards) in Cloud Storage.
                                                                                      -     * Example: gs://[BUCKET_NAME]/dictionary.txt
                                                                                      +     * A URL representing a file or path (no wildcards) in Cloud Storage.
                                                                                      +     * Example: `gs://[BUCKET_NAME]/dictionary.txt`
                                                                                            * 
                                                                                      * * string path = 1; @@ -530,8 +530,8 @@ public Builder setPath(java.lang.String value) { * * *
                                                                                      -     * A url representing a file or path (no wildcards) in Cloud Storage.
                                                                                      -     * Example: gs://[BUCKET_NAME]/dictionary.txt
                                                                                      +     * A URL representing a file or path (no wildcards) in Cloud Storage.
                                                                                      +     * Example: `gs://[BUCKET_NAME]/dictionary.txt`
                                                                                            * 
                                                                                      * * string path = 1; @@ -548,8 +548,8 @@ public Builder clearPath() { * * *
                                                                                      -     * A url representing a file or path (no wildcards) in Cloud Storage.
                                                                                      -     * Example: gs://[BUCKET_NAME]/dictionary.txt
                                                                                      +     * A URL representing a file or path (no wildcards) in Cloud Storage.
                                                                                      +     * Example: `gs://[BUCKET_NAME]/dictionary.txt`
                                                                                            * 
                                                                                      * * string path = 1; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStoragePathOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStoragePathOrBuilder.java index 842f10053655..486319976528 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStoragePathOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CloudStoragePathOrBuilder.java @@ -28,8 +28,8 @@ public interface CloudStoragePathOrBuilder * * *
                                                                                      -   * A url representing a file or path (no wildcards) in Cloud Storage.
                                                                                      -   * Example: gs://[BUCKET_NAME]/dictionary.txt
                                                                                      +   * A URL representing a file or path (no wildcards) in Cloud Storage.
                                                                                      +   * Example: `gs://[BUCKET_NAME]/dictionary.txt`
                                                                                          * 
                                                                                      * * string path = 1; @@ -41,8 +41,8 @@ public interface CloudStoragePathOrBuilder * * *
                                                                                      -   * A url representing a file or path (no wildcards) in Cloud Storage.
                                                                                      -   * Example: gs://[BUCKET_NAME]/dictionary.txt
                                                                                      +   * A URL representing a file or path (no wildcards) in Cloud Storage.
                                                                                      +   * Example: `gs://[BUCKET_NAME]/dictionary.txt`
                                                                                          * 
                                                                                      * * string path = 1; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfile.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfile.java index fb3a1b9bcba8..f8cdf741aa2c 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfile.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfile.java @@ -1049,7 +1049,7 @@ public com.google.protobuf.ByteString getTableDataProfileBytes() { * * *
                                                                                      -   * The resource name of the table this column is within.
                                                                                      +   * The resource name of the resource this column is within.
                                                                                          * 
                                                                                      * * string table_full_resource = 5; @@ -1072,7 +1072,7 @@ public java.lang.String getTableFullResource() { * * *
                                                                                      -   * The resource name of the table this column is within.
                                                                                      +   * The resource name of the resource this column is within.
                                                                                          * 
                                                                                      * * string table_full_resource = 5; @@ -1100,7 +1100,7 @@ public com.google.protobuf.ByteString getTableFullResourceBytes() { * * *
                                                                                      -   * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +   * The Google Cloud project ID that owns the profiled resource.
                                                                                          * 
                                                                                      * * string dataset_project_id = 19; @@ -1123,7 +1123,7 @@ public java.lang.String getDatasetProjectId() { * * *
                                                                                      -   * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +   * The Google Cloud project ID that owns the profiled resource.
                                                                                          * 
                                                                                      * * string dataset_project_id = 19; @@ -3353,7 +3353,7 @@ public Builder setTableDataProfileBytes(com.google.protobuf.ByteString value) { * * *
                                                                                      -     * The resource name of the table this column is within.
                                                                                      +     * The resource name of the resource this column is within.
                                                                                            * 
                                                                                      * * string table_full_resource = 5; @@ -3375,7 +3375,7 @@ public java.lang.String getTableFullResource() { * * *
                                                                                      -     * The resource name of the table this column is within.
                                                                                      +     * The resource name of the resource this column is within.
                                                                                            * 
                                                                                      * * string table_full_resource = 5; @@ -3397,7 +3397,7 @@ public com.google.protobuf.ByteString getTableFullResourceBytes() { * * *
                                                                                      -     * The resource name of the table this column is within.
                                                                                      +     * The resource name of the resource this column is within.
                                                                                            * 
                                                                                      * * string table_full_resource = 5; @@ -3418,7 +3418,7 @@ public Builder setTableFullResource(java.lang.String value) { * * *
                                                                                      -     * The resource name of the table this column is within.
                                                                                      +     * The resource name of the resource this column is within.
                                                                                            * 
                                                                                      * * string table_full_resource = 5; @@ -3435,7 +3435,7 @@ public Builder clearTableFullResource() { * * *
                                                                                      -     * The resource name of the table this column is within.
                                                                                      +     * The resource name of the resource this column is within.
                                                                                            * 
                                                                                      * * string table_full_resource = 5; @@ -3459,7 +3459,7 @@ public Builder setTableFullResourceBytes(com.google.protobuf.ByteString value) { * * *
                                                                                      -     * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +     * The Google Cloud project ID that owns the profiled resource.
                                                                                            * 
                                                                                      * * string dataset_project_id = 19; @@ -3481,7 +3481,7 @@ public java.lang.String getDatasetProjectId() { * * *
                                                                                      -     * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +     * The Google Cloud project ID that owns the profiled resource.
                                                                                            * 
                                                                                      * * string dataset_project_id = 19; @@ -3503,7 +3503,7 @@ public com.google.protobuf.ByteString getDatasetProjectIdBytes() { * * *
                                                                                      -     * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +     * The Google Cloud project ID that owns the profiled resource.
                                                                                            * 
                                                                                      * * string dataset_project_id = 19; @@ -3524,7 +3524,7 @@ public Builder setDatasetProjectId(java.lang.String value) { * * *
                                                                                      -     * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +     * The Google Cloud project ID that owns the profiled resource.
                                                                                            * 
                                                                                      * * string dataset_project_id = 19; @@ -3541,7 +3541,7 @@ public Builder clearDatasetProjectId() { * * *
                                                                                      -     * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +     * The Google Cloud project ID that owns the profiled resource.
                                                                                            * 
                                                                                      * * string dataset_project_id = 19; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileName.java new file mode 100644 index 000000000000..75a5db3c2a0d --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileName.java @@ -0,0 +1,364 @@ +/* + * 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. + */ + +package com.google.privacy.dlp.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ColumnDataProfileName implements ResourceName { + private static final PathTemplate ORGANIZATION_LOCATION_COLUMN_DATA_PROFILE = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}"); + private static final PathTemplate PROJECT_LOCATION_COLUMN_DATA_PROFILE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String organization; + private final String location; + private final String columnDataProfile; + private final String project; + + @Deprecated + protected ColumnDataProfileName() { + organization = null; + location = null; + columnDataProfile = null; + project = null; + } + + private ColumnDataProfileName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + columnDataProfile = Preconditions.checkNotNull(builder.getColumnDataProfile()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_COLUMN_DATA_PROFILE; + } + + private ColumnDataProfileName(ProjectLocationColumnDataProfileBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + columnDataProfile = Preconditions.checkNotNull(builder.getColumnDataProfile()); + organization = null; + pathTemplate = PROJECT_LOCATION_COLUMN_DATA_PROFILE; + } + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getColumnDataProfile() { + return columnDataProfile; + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newOrganizationLocationColumnDataProfileBuilder() { + return new Builder(); + } + + public static ProjectLocationColumnDataProfileBuilder + newProjectLocationColumnDataProfileBuilder() { + return new ProjectLocationColumnDataProfileBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ColumnDataProfileName of( + String organization, String location, String columnDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setColumnDataProfile(columnDataProfile) + .build(); + } + + public static ColumnDataProfileName ofOrganizationLocationColumnDataProfileName( + String organization, String location, String columnDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setColumnDataProfile(columnDataProfile) + .build(); + } + + public static ColumnDataProfileName ofProjectLocationColumnDataProfileName( + String project, String location, String columnDataProfile) { + return newProjectLocationColumnDataProfileBuilder() + .setProject(project) + .setLocation(location) + .setColumnDataProfile(columnDataProfile) + .build(); + } + + public static String format(String organization, String location, String columnDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setColumnDataProfile(columnDataProfile) + .build() + .toString(); + } + + public static String formatOrganizationLocationColumnDataProfileName( + String organization, String location, String columnDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setColumnDataProfile(columnDataProfile) + .build() + .toString(); + } + + public static String formatProjectLocationColumnDataProfileName( + String project, String location, String columnDataProfile) { + return newProjectLocationColumnDataProfileBuilder() + .setProject(project) + .setLocation(location) + .setColumnDataProfile(columnDataProfile) + .build() + .toString(); + } + + public static ColumnDataProfileName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (ORGANIZATION_LOCATION_COLUMN_DATA_PROFILE.matches(formattedString)) { + Map matchMap = + ORGANIZATION_LOCATION_COLUMN_DATA_PROFILE.match(formattedString); + return ofOrganizationLocationColumnDataProfileName( + matchMap.get("organization"), + matchMap.get("location"), + matchMap.get("column_data_profile")); + } else if (PROJECT_LOCATION_COLUMN_DATA_PROFILE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_COLUMN_DATA_PROFILE.match(formattedString); + return ofProjectLocationColumnDataProfileName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("column_data_profile")); + } + throw new ValidationException( + "ColumnDataProfileName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ColumnDataProfileName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_LOCATION_COLUMN_DATA_PROFILE.matches(formattedString) + || PROJECT_LOCATION_COLUMN_DATA_PROFILE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (columnDataProfile != null) { + fieldMapBuilder.put("column_data_profile", columnDataProfile); + } + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ColumnDataProfileName that = ((ColumnDataProfileName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.location, that.location) + && Objects.equals(this.columnDataProfile, that.columnDataProfile) + && Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(columnDataProfile); + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** + * Builder for + * organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}. + */ + public static class Builder { + private String organization; + private String location; + private String columnDataProfile; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getColumnDataProfile() { + return columnDataProfile; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setColumnDataProfile(String columnDataProfile) { + this.columnDataProfile = columnDataProfile; + return this; + } + + private Builder(ColumnDataProfileName columnDataProfileName) { + Preconditions.checkArgument( + Objects.equals( + columnDataProfileName.pathTemplate, ORGANIZATION_LOCATION_COLUMN_DATA_PROFILE), + "toBuilder is only supported when ColumnDataProfileName has the pattern of organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}"); + this.organization = columnDataProfileName.organization; + this.location = columnDataProfileName.location; + this.columnDataProfile = columnDataProfileName.columnDataProfile; + } + + public ColumnDataProfileName build() { + return new ColumnDataProfileName(this); + } + } + + /** + * Builder for projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}. + */ + public static class ProjectLocationColumnDataProfileBuilder { + private String project; + private String location; + private String columnDataProfile; + + protected ProjectLocationColumnDataProfileBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getColumnDataProfile() { + return columnDataProfile; + } + + public ProjectLocationColumnDataProfileBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationColumnDataProfileBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationColumnDataProfileBuilder setColumnDataProfile(String columnDataProfile) { + this.columnDataProfile = columnDataProfile; + return this; + } + + public ColumnDataProfileName build() { + return new ColumnDataProfileName(this); + } + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileOrBuilder.java index 7e0d56afef97..f07bed14e308 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ColumnDataProfileOrBuilder.java @@ -176,7 +176,7 @@ public interface ColumnDataProfileOrBuilder * * *
                                                                                      -   * The resource name of the table this column is within.
                                                                                      +   * The resource name of the resource this column is within.
                                                                                          * 
                                                                                      * * string table_full_resource = 5; @@ -188,7 +188,7 @@ public interface ColumnDataProfileOrBuilder * * *
                                                                                      -   * The resource name of the table this column is within.
                                                                                      +   * The resource name of the resource this column is within.
                                                                                          * 
                                                                                      * * string table_full_resource = 5; @@ -201,7 +201,7 @@ public interface ColumnDataProfileOrBuilder * * *
                                                                                      -   * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +   * The Google Cloud project ID that owns the profiled resource.
                                                                                          * 
                                                                                      * * string dataset_project_id = 19; @@ -213,7 +213,7 @@ public interface ColumnDataProfileOrBuilder * * *
                                                                                      -   * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +   * The Google Cloud project ID that owns the profiled resource.
                                                                                          * 
                                                                                      * * string dataset_project_id = 19; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentItem.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentItem.java index 923fc4b2c872..b62591aff52d 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentItem.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentItem.java @@ -19,7 +19,15 @@ // Protobuf Java Version: 3.25.2 package com.google.privacy.dlp.v2; -/** Protobuf type {@code google.privacy.dlp.v2.ContentItem} */ +/** + * + * + *
                                                                                      + * Type of content to inspect.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ContentItem} + */ public final class ContentItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ContentItem) @@ -181,8 +189,8 @@ public com.google.protobuf.ByteString getValueBytes() { * *
                                                                                          * Structured content for inspection. See
                                                                                      -   * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -   * learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; @@ -198,8 +206,8 @@ public boolean hasTable() { * *
                                                                                          * Structured content for inspection. See
                                                                                      -   * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -   * learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; @@ -218,8 +226,8 @@ public com.google.privacy.dlp.v2.Table getTable() { * *
                                                                                          * Structured content for inspection. See
                                                                                      -   * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -   * learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; @@ -483,7 +491,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.privacy.dlp.v2.ContentItem} */ + /** + * + * + *
                                                                                      +   * Type of content to inspect.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ContentItem} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ContentItem) @@ -862,8 +878,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { * *
                                                                                            * Structured content for inspection. See
                                                                                      -     * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -     * learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; @@ -879,8 +895,8 @@ public boolean hasTable() { * *
                                                                                            * Structured content for inspection. See
                                                                                      -     * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -     * learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; @@ -906,8 +922,8 @@ public com.google.privacy.dlp.v2.Table getTable() { * *
                                                                                            * Structured content for inspection. See
                                                                                      -     * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -     * learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; @@ -930,8 +946,8 @@ public Builder setTable(com.google.privacy.dlp.v2.Table value) { * *
                                                                                            * Structured content for inspection. See
                                                                                      -     * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -     * learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; @@ -951,8 +967,8 @@ public Builder setTable(com.google.privacy.dlp.v2.Table.Builder builderForValue) * *
                                                                                            * Structured content for inspection. See
                                                                                      -     * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -     * learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; @@ -985,8 +1001,8 @@ public Builder mergeTable(com.google.privacy.dlp.v2.Table value) { * *
                                                                                            * Structured content for inspection. See
                                                                                      -     * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -     * learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; @@ -1012,8 +1028,8 @@ public Builder clearTable() { * *
                                                                                            * Structured content for inspection. See
                                                                                      -     * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -     * learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; @@ -1026,8 +1042,8 @@ public com.google.privacy.dlp.v2.Table.Builder getTableBuilder() { * *
                                                                                            * Structured content for inspection. See
                                                                                      -     * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -     * learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; @@ -1048,8 +1064,8 @@ public com.google.privacy.dlp.v2.TableOrBuilder getTableOrBuilder() { * *
                                                                                            * Structured content for inspection. See
                                                                                      -     * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -     * learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentItemOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentItemOrBuilder.java index 054541089666..716aa7031381 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentItemOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ContentItemOrBuilder.java @@ -66,8 +66,8 @@ public interface ContentItemOrBuilder * *
                                                                                          * Structured content for inspection. See
                                                                                      -   * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -   * learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; @@ -80,8 +80,8 @@ public interface ContentItemOrBuilder * *
                                                                                          * Structured content for inspection. See
                                                                                      -   * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -   * learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; @@ -94,8 +94,8 @@ public interface ContentItemOrBuilder * *
                                                                                          * Structured content for inspection. See
                                                                                      -   * https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to
                                                                                      -   * learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * .google.privacy.dlp.v2.Table table = 4; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequest.java index 97ba8d90e1b6..150cd0f4fdf9 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequest.java @@ -79,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -123,7 +123,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -771,7 +771,7 @@ public Builder mergeFrom( * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -814,7 +814,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -857,7 +857,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -899,7 +899,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -937,7 +937,7 @@ public Builder clearParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequestOrBuilder.java index a847e8615089..b6ab97fb3f91 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDeidentifyTemplateRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface CreateDeidentifyTemplateRequestOrBuilder * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -65,7 +65,7 @@ public interface CreateDeidentifyTemplateRequestOrBuilder * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequest.java index 72e7f7a00eb8..c4aaf1f050e4 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequest.java @@ -128,7 +128,7 @@ public JobCase getJobCase() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -168,7 +168,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -915,7 +915,7 @@ public Builder clearJob() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -954,7 +954,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -993,7 +993,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1031,7 +1031,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1065,7 +1065,7 @@ public Builder clearParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequestOrBuilder.java index 318be1d141a7..37ea1caa34f3 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateDlpJobRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface CreateDlpJobRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -61,7 +61,7 @@ public interface CreateDlpJobRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequest.java index 7b9e421875d0..43cde26bcd07 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequest.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -122,7 +122,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -767,7 +767,7 @@ public Builder mergeFrom( * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -810,7 +810,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -853,7 +853,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -895,7 +895,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -933,7 +933,7 @@ public Builder clearParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequestOrBuilder.java index 2e5e85c59fb4..0fb1bdd4d048 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateInspectTemplateRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface CreateInspectTemplateRequestOrBuilder * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -65,7 +65,7 @@ public interface CreateInspectTemplateRequestOrBuilder * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequest.java index e39bca64b69e..e67fd1bbd9dd 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequest.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -118,7 +118,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -757,7 +757,7 @@ public Builder mergeFrom( * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -796,7 +796,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -835,7 +835,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -873,7 +873,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -907,7 +907,7 @@ public Builder clearParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequestOrBuilder.java index 3e1680eb95fa..ec9c8f378a78 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateJobTriggerRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface CreateJobTriggerRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -61,7 +61,7 @@ public interface CreateJobTriggerRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequest.java index c74c18cefdbf..eeb691bb9e16 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequest.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -122,7 +122,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -766,7 +766,7 @@ public Builder mergeFrom( * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -809,7 +809,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -852,7 +852,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -894,7 +894,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -932,7 +932,7 @@ public Builder clearParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequestOrBuilder.java index 7b5caab20124..f4703e291949 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CreateStoredInfoTypeRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface CreateStoredInfoTypeRequestOrBuilder * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -65,7 +65,7 @@ public interface CreateStoredInfoTypeRequestOrBuilder * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoHashConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoHashConfig.java index c704dea13480..28e54228a866 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoHashConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoHashConfig.java @@ -29,7 +29,8 @@ * Outputs a base64 encoded representation of the hashed output * (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=). * Currently, only string and integer values can be hashed. - * See https://cloud.google.com/dlp/docs/pseudonymization to learn more. + * See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization + * to learn more. * * * Protobuf type {@code google.privacy.dlp.v2.CryptoHashConfig} @@ -292,7 +293,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * Outputs a base64 encoded representation of the hashed output * (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=). * Currently, only string and integer values can be hashed. - * See https://cloud.google.com/dlp/docs/pseudonymization to learn more. + * See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization + * to learn more. * * * Protobuf type {@code google.privacy.dlp.v2.CryptoHashConfig} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java index c60fd3430ea1..3326ea007407 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfig.java @@ -30,8 +30,9 @@ * encoded as ASCII. For a given crypto key and context, the same identifier * will be replaced with the same surrogate. Identifiers must be at least two * characters long. In the case that the identifier is the empty string, it will - * be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn - * more. + * be skipped. See + * https://cloud.google.com/sensitive-data-protection/docs/pseudonymization to + * learn more. * * Note: We recommend using CryptoDeterministicConfig for all use cases which * do not require preserving the input alphabet space and size, plus warrant @@ -706,7 +707,7 @@ public int getRadix() { * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must @@ -745,7 +746,7 @@ public boolean hasSurrogateInfoType() { * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must @@ -786,7 +787,7 @@ public com.google.privacy.dlp.v2.InfoType getSurrogateInfoType() { * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must @@ -1064,8 +1065,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * encoded as ASCII. For a given crypto key and context, the same identifier * will be replaced with the same surrogate. Identifiers must be at least two * characters long. In the case that the identifier is the empty string, it will - * be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn - * more. + * be skipped. See + * https://cloud.google.com/sensitive-data-protection/docs/pseudonymization to + * learn more. * * Note: We recommend using CryptoDeterministicConfig for all use cases which * do not require preserving the input alphabet space and size, plus warrant @@ -2335,7 +2337,7 @@ public Builder clearRadix() { * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must @@ -2373,7 +2375,7 @@ public boolean hasSurrogateInfoType() { * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must @@ -2417,7 +2419,7 @@ public com.google.privacy.dlp.v2.InfoType getSurrogateInfoType() { * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must @@ -2463,7 +2465,7 @@ public Builder setSurrogateInfoType(com.google.privacy.dlp.v2.InfoType value) { * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must @@ -2507,7 +2509,7 @@ public Builder setSurrogateInfoType( * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must @@ -2558,7 +2560,7 @@ public Builder mergeSurrogateInfoType(com.google.privacy.dlp.v2.InfoType value) * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must @@ -2601,7 +2603,7 @@ public Builder clearSurrogateInfoType() { * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must @@ -2639,7 +2641,7 @@ public com.google.privacy.dlp.v2.InfoType.Builder getSurrogateInfoTypeBuilder() * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must @@ -2681,7 +2683,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getSurrogateInfoTypeOrBuilder * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java index 187ceaee616a..e6847ba50c84 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CryptoReplaceFfxFpeConfigOrBuilder.java @@ -305,7 +305,7 @@ public interface CryptoReplaceFfxFpeConfigOrBuilder * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must @@ -341,7 +341,7 @@ public interface CryptoReplaceFfxFpeConfigOrBuilder * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must @@ -377,7 +377,7 @@ public interface CryptoReplaceFfxFpeConfigOrBuilder * * This annotation identifies the surrogate when inspecting content using the * custom infoType - * [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). * This facilitates reversal of the surrogate when it occurs in free text. * * In order for inspection to work properly, the name of this infoType must diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoType.java index 3f0771a6fe4f..fcf5b8fc3653 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoType.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/CustomInfoType.java @@ -66,7 +66,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.privacy.dlp.v2.CustomInfoType.Builder.class); } - /** Protobuf enum {@code google.privacy.dlp.v2.CustomInfoType.ExclusionType} */ + /** + * + * + *
                                                                                      +   * Type of exclusion rule.
                                                                                      +   * 
                                                                                      + * + * Protobuf enum {@code google.privacy.dlp.v2.CustomInfoType.ExclusionType} + */ public enum ExclusionType implements com.google.protobuf.ProtocolMessageEnum { /** * @@ -298,10 +306,10 @@ public interface DictionaryOrBuilder * Dictionary words containing a large number of characters that are not * letters or digits may result in unexpected findings because such characters * are treated as whitespace. The - * [limits](https://cloud.google.com/dlp/limits) page contains details about - * the size limits of dictionaries. For dictionaries that do not fit within - * these constraints, consider using `LargeCustomDictionaryConfig` in the - * `StoredInfoType` API. + * [limits](https://cloud.google.com/sensitive-data-protection/limits) page + * contains details about the size limits of dictionaries. For dictionaries + * that do not fit within these constraints, consider using + * `LargeCustomDictionaryConfig` in the `StoredInfoType` API. * * * Protobuf type {@code google.privacy.dlp.v2.CustomInfoType.Dictionary} @@ -1513,10 +1521,10 @@ protected Builder newBuilderForType( * Dictionary words containing a large number of characters that are not * letters or digits may result in unexpected findings because such characters * are treated as whitespace. The - * [limits](https://cloud.google.com/dlp/limits) page contains details about - * the size limits of dictionaries. For dictionaries that do not fit within - * these constraints, consider using `LargeCustomDictionaryConfig` in the - * `StoredInfoType` API. + * [limits](https://cloud.google.com/sensitive-data-protection/limits) page + * contains details about the size limits of dictionaries. For dictionaries + * that do not fit within these constraints, consider using + * `LargeCustomDictionaryConfig` in the `StoredInfoType` API. * * * Protobuf type {@code google.privacy.dlp.v2.CustomInfoType.Dictionary} @@ -3206,7 +3214,7 @@ public interface SurrogateTypeOrBuilder *
                                                                                          * Message for detecting output from deidentification transformations
                                                                                          * such as
                                                                                      -   * [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
                                                                                      +   * [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
                                                                                          * These types of transformations are
                                                                                          * those that perform pseudonymization, thereby producing a "surrogate" as
                                                                                          * output. This should be used in conjunction with a field on the
                                                                                      @@ -3407,7 +3415,7 @@ protected Builder newBuilderForType(
                                                                                            * 
                                                                                            * Message for detecting output from deidentification transformations
                                                                                            * such as
                                                                                      -     * [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
                                                                                      +     * [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig).
                                                                                            * These types of transformations are
                                                                                            * those that perform pseudonymization, thereby producing a "surrogate" as
                                                                                            * output. This should be used in conjunction with a field on the
                                                                                      @@ -3737,7 +3745,7 @@ public interface ProximityOrBuilder
                                                                                              * if you want to modify the likelihood of an entire column of findngs,
                                                                                              * set this to 1. For more information, see
                                                                                              * [Hotword example: Set the match likelihood of a table column]
                                                                                      -       * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
                                                                                      +       * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values).
                                                                                              * 
                                                                                      * * int32 window_before = 1; @@ -3812,7 +3820,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * if you want to modify the likelihood of an entire column of findngs, * set this to 1. For more information, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). *
                                                                                      * * int32 window_before = 1; @@ -4228,7 +4236,7 @@ public Builder mergeFrom( * if you want to modify the likelihood of an entire column of findngs, * set this to 1. For more information, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * int32 window_before = 1; @@ -4247,7 +4255,7 @@ public int getWindowBefore() { * if you want to modify the likelihood of an entire column of findngs, * set this to 1. For more information, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * int32 window_before = 1; @@ -4270,7 +4278,7 @@ public Builder setWindowBefore(int value) { * if you want to modify the likelihood of an entire column of findngs, * set this to 1. For more information, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * int32 window_before = 1; @@ -5456,7 +5464,7 @@ public interface HotwordRuleOrBuilder * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; @@ -5480,7 +5488,7 @@ public interface HotwordRuleOrBuilder * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; @@ -5504,7 +5512,7 @@ public interface HotwordRuleOrBuilder * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; @@ -5667,7 +5675,7 @@ public com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder getHotwordRegexOr * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; @@ -5694,7 +5702,7 @@ public boolean hasProximity() { * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; @@ -5723,7 +5731,7 @@ public com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity getProxi * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; @@ -6457,7 +6465,7 @@ public com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder getHotwordRegexOr * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; @@ -6483,7 +6491,7 @@ public boolean hasProximity() { * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; @@ -6516,7 +6524,7 @@ public com.google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity getProxi * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; @@ -6551,7 +6559,7 @@ public Builder setProximity( * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; @@ -6584,7 +6592,7 @@ public Builder setProximity( * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; @@ -6626,7 +6634,7 @@ public Builder mergeProximity( * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; @@ -6657,7 +6665,7 @@ public Builder clearProximity() { * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; @@ -6684,7 +6692,7 @@ public Builder clearProximity() { * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; @@ -6716,7 +6724,7 @@ public Builder clearProximity() { * For tabular data, if you want to modify the likelihood of an entire * column of findngs, see * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). * * * .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java index eaea57159695..798b9a34e75c 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java @@ -38,7 +38,9 @@ private DataProfileConfigSnapshot(com.google.protobuf.GeneratedMessageV3.Builder super(builder); } - private DataProfileConfigSnapshot() {} + private DataProfileConfigSnapshot() { + inspectTemplateName_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -121,14 +123,22 @@ public com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilde * * *
                                                                                      -   * A copy of the configuration used to generate this profile.
                                                                                      +   * A copy of the configuration used to generate this profile. This is
                                                                                      +   * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +   * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +   * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +   * DiscoveryConfig will.
                                                                                          * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * * + * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See + * google/privacy/dlp/v2/dlp.proto;l=6262 * @return Whether the dataProfileJob field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasDataProfileJob() { return ((bitField0_ & 0x00000002) != 0); } @@ -136,14 +146,22 @@ public boolean hasDataProfileJob() { * * *
                                                                                      -   * A copy of the configuration used to generate this profile.
                                                                                      +   * A copy of the configuration used to generate this profile. This is
                                                                                      +   * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +   * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +   * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +   * DiscoveryConfig will.
                                                                                          * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * * + * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See + * google/privacy/dlp/v2/dlp.proto;l=6262 * @return The dataProfileJob. */ @java.lang.Override + @java.lang.Deprecated public com.google.privacy.dlp.v2.DataProfileJobConfig getDataProfileJob() { return dataProfileJob_ == null ? com.google.privacy.dlp.v2.DataProfileJobConfig.getDefaultInstance() @@ -153,18 +171,175 @@ public com.google.privacy.dlp.v2.DataProfileJobConfig getDataProfileJob() { * * *
                                                                                      -   * A copy of the configuration used to generate this profile.
                                                                                      +   * A copy of the configuration used to generate this profile. This is
                                                                                      +   * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +   * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +   * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +   * DiscoveryConfig will.
                                                                                          * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * */ @java.lang.Override + @java.lang.Deprecated public com.google.privacy.dlp.v2.DataProfileJobConfigOrBuilder getDataProfileJobOrBuilder() { return dataProfileJob_ == null ? com.google.privacy.dlp.v2.DataProfileJobConfig.getDefaultInstance() : dataProfileJob_; } + public static final int DISCOVERY_CONFIG_FIELD_NUMBER = 4; + private com.google.privacy.dlp.v2.DiscoveryConfig discoveryConfig_; + /** + * + * + *
                                                                                      +   * A copy of the configuration used to generate this profile.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + * + * @return Whether the discoveryConfig field is set. + */ + @java.lang.Override + public boolean hasDiscoveryConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                                                                                      +   * A copy of the configuration used to generate this profile.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + * + * @return The discoveryConfig. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryConfig getDiscoveryConfig() { + return discoveryConfig_ == null + ? com.google.privacy.dlp.v2.DiscoveryConfig.getDefaultInstance() + : discoveryConfig_; + } + /** + * + * + *
                                                                                      +   * A copy of the configuration used to generate this profile.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DiscoveryConfigOrBuilder getDiscoveryConfigOrBuilder() { + return discoveryConfig_ == null + ? com.google.privacy.dlp.v2.DiscoveryConfig.getDefaultInstance() + : discoveryConfig_; + } + + public static final int INSPECT_TEMPLATE_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object inspectTemplateName_ = ""; + /** + * + * + *
                                                                                      +   * Name of the inspection template used to generate this profile
                                                                                      +   * 
                                                                                      + * + * string inspect_template_name = 5; + * + * @return The inspectTemplateName. + */ + @java.lang.Override + public java.lang.String getInspectTemplateName() { + java.lang.Object ref = inspectTemplateName_; + 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(); + inspectTemplateName_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Name of the inspection template used to generate this profile
                                                                                      +   * 
                                                                                      + * + * string inspect_template_name = 5; + * + * @return The bytes for inspectTemplateName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInspectTemplateNameBytes() { + java.lang.Object ref = inspectTemplateName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inspectTemplateName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSPECT_TEMPLATE_MODIFIED_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp inspectTemplateModifiedTime_; + /** + * + * + *
                                                                                      +   * Timestamp when the template was modified
                                                                                      +   * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + * + * @return Whether the inspectTemplateModifiedTime field is set. + */ + @java.lang.Override + public boolean hasInspectTemplateModifiedTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                                                                      +   * Timestamp when the template was modified
                                                                                      +   * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + * + * @return The inspectTemplateModifiedTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getInspectTemplateModifiedTime() { + return inspectTemplateModifiedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : inspectTemplateModifiedTime_; + } + /** + * + * + *
                                                                                      +   * Timestamp when the template was modified
                                                                                      +   * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getInspectTemplateModifiedTimeOrBuilder() { + return inspectTemplateModifiedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : inspectTemplateModifiedTime_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -185,6 +360,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getDataProfileJob()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getDiscoveryConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inspectTemplateName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, inspectTemplateName_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getInspectTemplateModifiedTime()); + } getUnknownFields().writeTo(output); } @@ -200,6 +384,17 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDataProfileJob()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDiscoveryConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inspectTemplateName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inspectTemplateName_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getInspectTemplateModifiedTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -224,6 +419,16 @@ public boolean equals(final java.lang.Object obj) { if (hasDataProfileJob()) { if (!getDataProfileJob().equals(other.getDataProfileJob())) return false; } + if (hasDiscoveryConfig() != other.hasDiscoveryConfig()) return false; + if (hasDiscoveryConfig()) { + if (!getDiscoveryConfig().equals(other.getDiscoveryConfig())) return false; + } + if (!getInspectTemplateName().equals(other.getInspectTemplateName())) return false; + if (hasInspectTemplateModifiedTime() != other.hasInspectTemplateModifiedTime()) return false; + if (hasInspectTemplateModifiedTime()) { + if (!getInspectTemplateModifiedTime().equals(other.getInspectTemplateModifiedTime())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -243,6 +448,16 @@ public int hashCode() { hash = (37 * hash) + DATA_PROFILE_JOB_FIELD_NUMBER; hash = (53 * hash) + getDataProfileJob().hashCode(); } + if (hasDiscoveryConfig()) { + hash = (37 * hash) + DISCOVERY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDiscoveryConfig().hashCode(); + } + hash = (37 * hash) + INSPECT_TEMPLATE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getInspectTemplateName().hashCode(); + if (hasInspectTemplateModifiedTime()) { + hash = (37 * hash) + INSPECT_TEMPLATE_MODIFIED_TIME_FIELD_NUMBER; + hash = (53 * hash) + getInspectTemplateModifiedTime().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -385,6 +600,8 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getInspectConfigFieldBuilder(); getDataProfileJobFieldBuilder(); + getDiscoveryConfigFieldBuilder(); + getInspectTemplateModifiedTimeFieldBuilder(); } } @@ -402,6 +619,17 @@ public Builder clear() { dataProfileJobBuilder_.dispose(); dataProfileJobBuilder_ = null; } + discoveryConfig_ = null; + if (discoveryConfigBuilder_ != null) { + discoveryConfigBuilder_.dispose(); + discoveryConfigBuilder_ = null; + } + inspectTemplateName_ = ""; + inspectTemplateModifiedTime_ = null; + if (inspectTemplateModifiedTimeBuilder_ != null) { + inspectTemplateModifiedTimeBuilder_.dispose(); + inspectTemplateModifiedTimeBuilder_ = null; + } return this; } @@ -449,6 +677,21 @@ private void buildPartial0(com.google.privacy.dlp.v2.DataProfileConfigSnapshot r dataProfileJobBuilder_ == null ? dataProfileJob_ : dataProfileJobBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.discoveryConfig_ = + discoveryConfigBuilder_ == null ? discoveryConfig_ : discoveryConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.inspectTemplateName_ = inspectTemplateName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.inspectTemplateModifiedTime_ = + inspectTemplateModifiedTimeBuilder_ == null + ? inspectTemplateModifiedTime_ + : inspectTemplateModifiedTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -504,6 +747,17 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.DataProfileConfigSnapshot oth if (other.hasDataProfileJob()) { mergeDataProfileJob(other.getDataProfileJob()); } + if (other.hasDiscoveryConfig()) { + mergeDiscoveryConfig(other.getDiscoveryConfig()); + } + if (!other.getInspectTemplateName().isEmpty()) { + inspectTemplateName_ = other.inspectTemplateName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasInspectTemplateModifiedTime()) { + mergeInspectTemplateModifiedTime(other.getInspectTemplateModifiedTime()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -542,6 +796,25 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 26 + case 34: + { + input.readMessage(getDiscoveryConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + inspectTemplateName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + input.readMessage( + getInspectTemplateModifiedTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -766,13 +1039,21 @@ public com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilde * * *
                                                                                      -     * A copy of the configuration used to generate this profile.
                                                                                      +     * A copy of the configuration used to generate this profile. This is
                                                                                      +     * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +     * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +     * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +     * DiscoveryConfig will.
                                                                                            * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * * + * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. + * See google/privacy/dlp/v2/dlp.proto;l=6262 * @return Whether the dataProfileJob field is set. */ + @java.lang.Deprecated public boolean hasDataProfileJob() { return ((bitField0_ & 0x00000002) != 0); } @@ -780,13 +1061,21 @@ public boolean hasDataProfileJob() { * * *
                                                                                      -     * A copy of the configuration used to generate this profile.
                                                                                      +     * A copy of the configuration used to generate this profile. This is
                                                                                      +     * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +     * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +     * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +     * DiscoveryConfig will.
                                                                                            * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * * + * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. + * See google/privacy/dlp/v2/dlp.proto;l=6262 * @return The dataProfileJob. */ + @java.lang.Deprecated public com.google.privacy.dlp.v2.DataProfileJobConfig getDataProfileJob() { if (dataProfileJobBuilder_ == null) { return dataProfileJob_ == null @@ -800,11 +1089,17 @@ public com.google.privacy.dlp.v2.DataProfileJobConfig getDataProfileJob() { * * *
                                                                                      -     * A copy of the configuration used to generate this profile.
                                                                                      +     * A copy of the configuration used to generate this profile. This is
                                                                                      +     * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +     * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +     * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +     * DiscoveryConfig will.
                                                                                            * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setDataProfileJob(com.google.privacy.dlp.v2.DataProfileJobConfig value) { if (dataProfileJobBuilder_ == null) { if (value == null) { @@ -822,11 +1117,17 @@ public Builder setDataProfileJob(com.google.privacy.dlp.v2.DataProfileJobConfig * * *
                                                                                      -     * A copy of the configuration used to generate this profile.
                                                                                      +     * A copy of the configuration used to generate this profile. This is
                                                                                      +     * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +     * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +     * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +     * DiscoveryConfig will.
                                                                                            * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder setDataProfileJob( com.google.privacy.dlp.v2.DataProfileJobConfig.Builder builderForValue) { if (dataProfileJobBuilder_ == null) { @@ -842,11 +1143,17 @@ public Builder setDataProfileJob( * * *
                                                                                      -     * A copy of the configuration used to generate this profile.
                                                                                      +     * A copy of the configuration used to generate this profile. This is
                                                                                      +     * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +     * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +     * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +     * DiscoveryConfig will.
                                                                                            * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder mergeDataProfileJob(com.google.privacy.dlp.v2.DataProfileJobConfig value) { if (dataProfileJobBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) @@ -870,11 +1177,17 @@ public Builder mergeDataProfileJob(com.google.privacy.dlp.v2.DataProfileJobConfi * * *
                                                                                      -     * A copy of the configuration used to generate this profile.
                                                                                      +     * A copy of the configuration used to generate this profile. This is
                                                                                      +     * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +     * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +     * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +     * DiscoveryConfig will.
                                                                                            * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearDataProfileJob() { bitField0_ = (bitField0_ & ~0x00000002); dataProfileJob_ = null; @@ -889,11 +1202,17 @@ public Builder clearDataProfileJob() { * * *
                                                                                      -     * A copy of the configuration used to generate this profile.
                                                                                      +     * A copy of the configuration used to generate this profile. This is
                                                                                      +     * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +     * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +     * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +     * DiscoveryConfig will.
                                                                                            * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.privacy.dlp.v2.DataProfileJobConfig.Builder getDataProfileJobBuilder() { bitField0_ |= 0x00000002; onChanged(); @@ -903,11 +1222,17 @@ public com.google.privacy.dlp.v2.DataProfileJobConfig.Builder getDataProfileJobB * * *
                                                                                      -     * A copy of the configuration used to generate this profile.
                                                                                      +     * A copy of the configuration used to generate this profile. This is
                                                                                      +     * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +     * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +     * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +     * DiscoveryConfig will.
                                                                                            * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.privacy.dlp.v2.DataProfileJobConfigOrBuilder getDataProfileJobOrBuilder() { if (dataProfileJobBuilder_ != null) { return dataProfileJobBuilder_.getMessageOrBuilder(); @@ -921,10 +1246,15 @@ public com.google.privacy.dlp.v2.DataProfileJobConfigOrBuilder getDataProfileJob * * *
                                                                                      -     * A copy of the configuration used to generate this profile.
                                                                                      +     * A copy of the configuration used to generate this profile. This is
                                                                                      +     * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +     * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +     * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +     * DiscoveryConfig will.
                                                                                            * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DataProfileJobConfig, @@ -943,6 +1273,484 @@ public com.google.privacy.dlp.v2.DataProfileJobConfigOrBuilder getDataProfileJob return dataProfileJobBuilder_; } + private com.google.privacy.dlp.v2.DiscoveryConfig discoveryConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryConfig, + com.google.privacy.dlp.v2.DiscoveryConfig.Builder, + com.google.privacy.dlp.v2.DiscoveryConfigOrBuilder> + discoveryConfigBuilder_; + /** + * + * + *
                                                                                      +     * A copy of the configuration used to generate this profile.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + * + * @return Whether the discoveryConfig field is set. + */ + public boolean hasDiscoveryConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                                                                                      +     * A copy of the configuration used to generate this profile.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + * + * @return The discoveryConfig. + */ + public com.google.privacy.dlp.v2.DiscoveryConfig getDiscoveryConfig() { + if (discoveryConfigBuilder_ == null) { + return discoveryConfig_ == null + ? com.google.privacy.dlp.v2.DiscoveryConfig.getDefaultInstance() + : discoveryConfig_; + } else { + return discoveryConfigBuilder_.getMessage(); + } + } + /** + * + * + *
                                                                                      +     * A copy of the configuration used to generate this profile.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + */ + public Builder setDiscoveryConfig(com.google.privacy.dlp.v2.DiscoveryConfig value) { + if (discoveryConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + discoveryConfig_ = value; + } else { + discoveryConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * A copy of the configuration used to generate this profile.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + */ + public Builder setDiscoveryConfig( + com.google.privacy.dlp.v2.DiscoveryConfig.Builder builderForValue) { + if (discoveryConfigBuilder_ == null) { + discoveryConfig_ = builderForValue.build(); + } else { + discoveryConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * A copy of the configuration used to generate this profile.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + */ + public Builder mergeDiscoveryConfig(com.google.privacy.dlp.v2.DiscoveryConfig value) { + if (discoveryConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && discoveryConfig_ != null + && discoveryConfig_ != com.google.privacy.dlp.v2.DiscoveryConfig.getDefaultInstance()) { + getDiscoveryConfigBuilder().mergeFrom(value); + } else { + discoveryConfig_ = value; + } + } else { + discoveryConfigBuilder_.mergeFrom(value); + } + if (discoveryConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
                                                                                      +     * A copy of the configuration used to generate this profile.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + */ + public Builder clearDiscoveryConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + discoveryConfig_ = null; + if (discoveryConfigBuilder_ != null) { + discoveryConfigBuilder_.dispose(); + discoveryConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * A copy of the configuration used to generate this profile.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + */ + public com.google.privacy.dlp.v2.DiscoveryConfig.Builder getDiscoveryConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDiscoveryConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * A copy of the configuration used to generate this profile.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + */ + public com.google.privacy.dlp.v2.DiscoveryConfigOrBuilder getDiscoveryConfigOrBuilder() { + if (discoveryConfigBuilder_ != null) { + return discoveryConfigBuilder_.getMessageOrBuilder(); + } else { + return discoveryConfig_ == null + ? com.google.privacy.dlp.v2.DiscoveryConfig.getDefaultInstance() + : discoveryConfig_; + } + } + /** + * + * + *
                                                                                      +     * A copy of the configuration used to generate this profile.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryConfig, + com.google.privacy.dlp.v2.DiscoveryConfig.Builder, + com.google.privacy.dlp.v2.DiscoveryConfigOrBuilder> + getDiscoveryConfigFieldBuilder() { + if (discoveryConfigBuilder_ == null) { + discoveryConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DiscoveryConfig, + com.google.privacy.dlp.v2.DiscoveryConfig.Builder, + com.google.privacy.dlp.v2.DiscoveryConfigOrBuilder>( + getDiscoveryConfig(), getParentForChildren(), isClean()); + discoveryConfig_ = null; + } + return discoveryConfigBuilder_; + } + + private java.lang.Object inspectTemplateName_ = ""; + /** + * + * + *
                                                                                      +     * Name of the inspection template used to generate this profile
                                                                                      +     * 
                                                                                      + * + * string inspect_template_name = 5; + * + * @return The inspectTemplateName. + */ + public java.lang.String getInspectTemplateName() { + java.lang.Object ref = inspectTemplateName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inspectTemplateName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Name of the inspection template used to generate this profile
                                                                                      +     * 
                                                                                      + * + * string inspect_template_name = 5; + * + * @return The bytes for inspectTemplateName. + */ + public com.google.protobuf.ByteString getInspectTemplateNameBytes() { + java.lang.Object ref = inspectTemplateName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inspectTemplateName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Name of the inspection template used to generate this profile
                                                                                      +     * 
                                                                                      + * + * string inspect_template_name = 5; + * + * @param value The inspectTemplateName to set. + * @return This builder for chaining. + */ + public Builder setInspectTemplateName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inspectTemplateName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Name of the inspection template used to generate this profile
                                                                                      +     * 
                                                                                      + * + * string inspect_template_name = 5; + * + * @return This builder for chaining. + */ + public Builder clearInspectTemplateName() { + inspectTemplateName_ = getDefaultInstance().getInspectTemplateName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Name of the inspection template used to generate this profile
                                                                                      +     * 
                                                                                      + * + * string inspect_template_name = 5; + * + * @param value The bytes for inspectTemplateName to set. + * @return This builder for chaining. + */ + public Builder setInspectTemplateNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inspectTemplateName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp inspectTemplateModifiedTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + inspectTemplateModifiedTimeBuilder_; + /** + * + * + *
                                                                                      +     * Timestamp when the template was modified
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + * + * @return Whether the inspectTemplateModifiedTime field is set. + */ + public boolean hasInspectTemplateModifiedTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
                                                                                      +     * Timestamp when the template was modified
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + * + * @return The inspectTemplateModifiedTime. + */ + public com.google.protobuf.Timestamp getInspectTemplateModifiedTime() { + if (inspectTemplateModifiedTimeBuilder_ == null) { + return inspectTemplateModifiedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : inspectTemplateModifiedTime_; + } else { + return inspectTemplateModifiedTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                                                                                      +     * Timestamp when the template was modified
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + */ + public Builder setInspectTemplateModifiedTime(com.google.protobuf.Timestamp value) { + if (inspectTemplateModifiedTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + inspectTemplateModifiedTime_ = value; + } else { + inspectTemplateModifiedTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Timestamp when the template was modified
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + */ + public Builder setInspectTemplateModifiedTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (inspectTemplateModifiedTimeBuilder_ == null) { + inspectTemplateModifiedTime_ = builderForValue.build(); + } else { + inspectTemplateModifiedTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Timestamp when the template was modified
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + */ + public Builder mergeInspectTemplateModifiedTime(com.google.protobuf.Timestamp value) { + if (inspectTemplateModifiedTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && inspectTemplateModifiedTime_ != null + && inspectTemplateModifiedTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getInspectTemplateModifiedTimeBuilder().mergeFrom(value); + } else { + inspectTemplateModifiedTime_ = value; + } + } else { + inspectTemplateModifiedTimeBuilder_.mergeFrom(value); + } + if (inspectTemplateModifiedTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
                                                                                      +     * Timestamp when the template was modified
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + */ + public Builder clearInspectTemplateModifiedTime() { + bitField0_ = (bitField0_ & ~0x00000010); + inspectTemplateModifiedTime_ = null; + if (inspectTemplateModifiedTimeBuilder_ != null) { + inspectTemplateModifiedTimeBuilder_.dispose(); + inspectTemplateModifiedTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Timestamp when the template was modified
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + */ + public com.google.protobuf.Timestamp.Builder getInspectTemplateModifiedTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getInspectTemplateModifiedTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * Timestamp when the template was modified
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + */ + public com.google.protobuf.TimestampOrBuilder getInspectTemplateModifiedTimeOrBuilder() { + if (inspectTemplateModifiedTimeBuilder_ != null) { + return inspectTemplateModifiedTimeBuilder_.getMessageOrBuilder(); + } else { + return inspectTemplateModifiedTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : inspectTemplateModifiedTime_; + } + } + /** + * + * + *
                                                                                      +     * Timestamp when the template was modified
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getInspectTemplateModifiedTimeFieldBuilder() { + if (inspectTemplateModifiedTimeBuilder_ == null) { + inspectTemplateModifiedTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getInspectTemplateModifiedTime(), getParentForChildren(), isClean()); + inspectTemplateModifiedTime_ = null; + } + return inspectTemplateModifiedTimeBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java index 56276604ee26..e0223614b590 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java @@ -66,34 +66,151 @@ public interface DataProfileConfigSnapshotOrBuilder * * *
                                                                                      -   * A copy of the configuration used to generate this profile.
                                                                                      +   * A copy of the configuration used to generate this profile. This is
                                                                                      +   * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +   * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +   * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +   * DiscoveryConfig will.
                                                                                          * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * * + * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See + * google/privacy/dlp/v2/dlp.proto;l=6262 * @return Whether the dataProfileJob field is set. */ + @java.lang.Deprecated boolean hasDataProfileJob(); /** * * *
                                                                                      -   * A copy of the configuration used to generate this profile.
                                                                                      +   * A copy of the configuration used to generate this profile. This is
                                                                                      +   * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +   * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +   * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +   * DiscoveryConfig will.
                                                                                          * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * * + * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See + * google/privacy/dlp/v2/dlp.proto;l=6262 * @return The dataProfileJob. */ + @java.lang.Deprecated com.google.privacy.dlp.v2.DataProfileJobConfig getDataProfileJob(); /** * * *
                                                                                      -   * A copy of the configuration used to generate this profile.
                                                                                      +   * A copy of the configuration used to generate this profile. This is
                                                                                      +   * deprecated, and the DiscoveryConfig field is preferred moving forward.
                                                                                      +   * DataProfileJobConfig will still be written here for Discovery in BigQuery
                                                                                      +   * for backwards compatibility, but will not be updated with new fields, while
                                                                                      +   * DiscoveryConfig will.
                                                                                          * 
                                                                                      * - * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3; + * .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.privacy.dlp.v2.DataProfileJobConfigOrBuilder getDataProfileJobOrBuilder(); + + /** + * + * + *
                                                                                      +   * A copy of the configuration used to generate this profile.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + * + * @return Whether the discoveryConfig field is set. + */ + boolean hasDiscoveryConfig(); + /** + * + * + *
                                                                                      +   * A copy of the configuration used to generate this profile.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + * + * @return The discoveryConfig. + */ + com.google.privacy.dlp.v2.DiscoveryConfig getDiscoveryConfig(); + /** + * + * + *
                                                                                      +   * A copy of the configuration used to generate this profile.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; + */ + com.google.privacy.dlp.v2.DiscoveryConfigOrBuilder getDiscoveryConfigOrBuilder(); + + /** + * + * + *
                                                                                      +   * Name of the inspection template used to generate this profile
                                                                                      +   * 
                                                                                      + * + * string inspect_template_name = 5; + * + * @return The inspectTemplateName. + */ + java.lang.String getInspectTemplateName(); + /** + * + * + *
                                                                                      +   * Name of the inspection template used to generate this profile
                                                                                      +   * 
                                                                                      + * + * string inspect_template_name = 5; + * + * @return The bytes for inspectTemplateName. + */ + com.google.protobuf.ByteString getInspectTemplateNameBytes(); + + /** + * + * + *
                                                                                      +   * Timestamp when the template was modified
                                                                                      +   * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + * + * @return Whether the inspectTemplateModifiedTime field is set. + */ + boolean hasInspectTemplateModifiedTime(); + /** + * + * + *
                                                                                      +   * Timestamp when the template was modified
                                                                                      +   * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + * + * @return The inspectTemplateModifiedTime. + */ + com.google.protobuf.Timestamp getInspectTemplateModifiedTime(); + /** + * + * + *
                                                                                      +   * Timestamp when the template was modified
                                                                                      +   * 
                                                                                      + * + * .google.protobuf.Timestamp inspect_template_modified_time = 6; + */ + com.google.protobuf.TimestampOrBuilder getInspectTemplateModifiedTimeOrBuilder(); } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileJobConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileJobConfig.java index 228faf74c183..3c8498bb4212 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileJobConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileJobConfig.java @@ -29,7 +29,7 @@ * * The generated data profiles are retained according to the * [data retention policy] - * (https://cloud.google.com/dlp/docs/data-profiles#retention). + * (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention). * * * Protobuf type {@code google.privacy.dlp.v2.DataProfileJobConfig} @@ -201,7 +201,7 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -230,7 +230,7 @@ public com.google.protobuf.ProtocolStringList getInspectTemplatesList() { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -259,7 +259,7 @@ public int getInspectTemplatesCount() { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -289,7 +289,7 @@ public java.lang.String getInspectTemplates(int index) { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -584,7 +584,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * The generated data profiles are retained according to the * [data retention policy] - * (https://cloud.google.com/dlp/docs/data-profiles#retention). + * (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention). * * * Protobuf type {@code google.privacy.dlp.v2.DataProfileJobConfig} @@ -1204,7 +1204,7 @@ private void ensureInspectTemplatesIsMutable() { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -1234,7 +1234,7 @@ public com.google.protobuf.ProtocolStringList getInspectTemplatesList() { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -1263,7 +1263,7 @@ public int getInspectTemplatesCount() { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -1293,7 +1293,7 @@ public java.lang.String getInspectTemplates(int index) { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -1323,7 +1323,7 @@ public com.google.protobuf.ByteString getInspectTemplatesBytes(int index) { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -1361,7 +1361,7 @@ public Builder setInspectTemplates(int index, java.lang.String value) { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -1398,7 +1398,7 @@ public Builder addInspectTemplates(java.lang.String value) { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -1432,7 +1432,7 @@ public Builder addAllInspectTemplates(java.lang.Iterable value * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -1465,7 +1465,7 @@ public Builder clearInspectTemplates() { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileJobConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileJobConfigOrBuilder.java index 1e95edf9037e..ed5aa88c4a53 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileJobConfigOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileJobConfigOrBuilder.java @@ -107,7 +107,7 @@ public interface DataProfileJobConfigOrBuilder * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -134,7 +134,7 @@ public interface DataProfileJobConfigOrBuilder * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -161,7 +161,7 @@ public interface DataProfileJobConfigOrBuilder * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; @@ -189,7 +189,7 @@ public interface DataProfileJobConfigOrBuilder * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 7; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataSourceType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataSourceType.java new file mode 100644 index 000000000000..e4938bc26303 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataSourceType.java @@ -0,0 +1,630 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +/** + * + * + *
                                                                                      + * Message used to identify the type of resource being profiled.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.DataSourceType} + */ +public final class DataSourceType extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.DataSourceType) + DataSourceTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataSourceType.newBuilder() to construct. + private DataSourceType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataSourceType() { + dataSource_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataSourceType(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataSourceType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataSourceType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DataSourceType.class, + com.google.privacy.dlp.v2.DataSourceType.Builder.class); + } + + public static final int DATA_SOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataSource_ = ""; + /** + * + * + *
                                                                                      +   * Output only. An identifying string to the type of resource being profiled.
                                                                                      +   * Current values: google/bigquery/table, google/project
                                                                                      +   * 
                                                                                      + * + * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataSource. + */ + @java.lang.Override + public java.lang.String getDataSource() { + java.lang.Object ref = dataSource_; + 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(); + dataSource_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Output only. An identifying string to the type of resource being profiled.
                                                                                      +   * Current values: google/bigquery/table, google/project
                                                                                      +   * 
                                                                                      + * + * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dataSource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataSourceBytes() { + java.lang.Object ref = dataSource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSource_ = 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(dataSource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataSource_); + } + 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(dataSource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataSource_); + } + 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.privacy.dlp.v2.DataSourceType)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.DataSourceType other = (com.google.privacy.dlp.v2.DataSourceType) obj; + + if (!getDataSource().equals(other.getDataSource())) 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) + DATA_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDataSource().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.DataSourceType parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DataSourceType parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DataSourceType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DataSourceType 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.privacy.dlp.v2.DataSourceType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.DataSourceType parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.DataSourceType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DataSourceType 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.privacy.dlp.v2.DataSourceType parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DataSourceType 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.privacy.dlp.v2.DataSourceType parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.DataSourceType 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.privacy.dlp.v2.DataSourceType 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; + } + /** + * + * + *
                                                                                      +   * Message used to identify the type of resource being profiled.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.DataSourceType} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.DataSourceType) + com.google.privacy.dlp.v2.DataSourceTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataSourceType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataSourceType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.DataSourceType.class, + com.google.privacy.dlp.v2.DataSourceType.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.DataSourceType.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataSource_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_DataSourceType_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DataSourceType getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DataSourceType build() { + com.google.privacy.dlp.v2.DataSourceType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.DataSourceType buildPartial() { + com.google.privacy.dlp.v2.DataSourceType result = + new com.google.privacy.dlp.v2.DataSourceType(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.DataSourceType result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataSource_ = dataSource_; + } + } + + @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.privacy.dlp.v2.DataSourceType) { + return mergeFrom((com.google.privacy.dlp.v2.DataSourceType) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.DataSourceType other) { + if (other == com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance()) return this; + if (!other.getDataSource().isEmpty()) { + dataSource_ = other.dataSource_; + 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: + { + dataSource_ = 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 dataSource_ = ""; + /** + * + * + *
                                                                                      +     * Output only. An identifying string to the type of resource being profiled.
                                                                                      +     * Current values: google/bigquery/table, google/project
                                                                                      +     * 
                                                                                      + * + * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataSource. + */ + public java.lang.String getDataSource() { + java.lang.Object ref = dataSource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataSource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Output only. An identifying string to the type of resource being profiled.
                                                                                      +     * Current values: google/bigquery/table, google/project
                                                                                      +     * 
                                                                                      + * + * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dataSource. + */ + public com.google.protobuf.ByteString getDataSourceBytes() { + java.lang.Object ref = dataSource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataSource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Output only. An identifying string to the type of resource being profiled.
                                                                                      +     * Current values: google/bigquery/table, google/project
                                                                                      +     * 
                                                                                      + * + * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dataSource to set. + * @return This builder for chaining. + */ + public Builder setDataSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataSource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Output only. An identifying string to the type of resource being profiled.
                                                                                      +     * Current values: google/bigquery/table, google/project
                                                                                      +     * 
                                                                                      + * + * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDataSource() { + dataSource_ = getDefaultInstance().getDataSource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Output only. An identifying string to the type of resource being profiled.
                                                                                      +     * Current values: google/bigquery/table, google/project
                                                                                      +     * 
                                                                                      + * + * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for dataSource to set. + * @return This builder for chaining. + */ + public Builder setDataSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataSource_ = 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.privacy.dlp.v2.DataSourceType) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.DataSourceType) + private static final com.google.privacy.dlp.v2.DataSourceType DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.DataSourceType(); + } + + public static com.google.privacy.dlp.v2.DataSourceType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataSourceType 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.privacy.dlp.v2.DataSourceType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataSourceTypeOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataSourceTypeOrBuilder.java new file mode 100644 index 000000000000..de2b30bdab2f --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataSourceTypeOrBuilder.java @@ -0,0 +1,53 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +public interface DataSourceTypeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.DataSourceType) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * Output only. An identifying string to the type of resource being profiled.
                                                                                      +   * Current values: google/bigquery/table, google/project
                                                                                      +   * 
                                                                                      + * + * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The dataSource. + */ + java.lang.String getDataSource(); + /** + * + * + *
                                                                                      +   * Output only. An identifying string to the type of resource being profiled.
                                                                                      +   * Current values: google/bigquery/table, google/project
                                                                                      +   * 
                                                                                      + * + * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for dataSource. + */ + com.google.protobuf.ByteString getDataSourceBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfig.java index 7d270d296a73..3ce1761e0f10 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DateShiftConfig.java @@ -24,7 +24,8 @@ * *
                                                                                        * Shifts dates by random number of days, with option to be consistent for the
                                                                                      - * same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
                                                                                      + * same context. See
                                                                                      + * https://cloud.google.com/sensitive-data-protection/docs/concepts-date-shifting
                                                                                        * to learn more.
                                                                                        * 
                                                                                      * @@ -471,7 +472,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
                                                                                          * Shifts dates by random number of days, with option to be consistent for the
                                                                                      -   * same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting
                                                                                      +   * same context. See
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/concepts-date-shifting
                                                                                          * to learn more.
                                                                                          * 
                                                                                      * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java index 9d9bf6aff81d..58ca398e4bf6 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequest.java @@ -79,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -117,7 +117,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1031,7 +1031,7 @@ public Builder mergeFrom( * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1068,7 +1068,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1105,7 +1105,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1141,7 +1141,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1173,7 +1173,7 @@ public Builder clearParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequestOrBuilder.java index 57ab8c3b31f7..e3755fc3dc6b 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyContentRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface DeidentifyContentRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -59,7 +59,7 @@ public interface DeidentifyContentRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplate.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplate.java index 71a1247fc23f..b0e66c28db0b 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplate.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplate.java @@ -24,7 +24,9 @@ * *
                                                                                        * DeidentifyTemplates contains instructions on how to de-identify content.
                                                                                      - * See https://cloud.google.com/dlp/docs/concepts-templates to learn more.
                                                                                      + * See
                                                                                      + * https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to
                                                                                      + * learn more.
                                                                                        * 
                                                                                      * * Protobuf type {@code google.privacy.dlp.v2.DeidentifyTemplate} @@ -600,7 +602,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
                                                                                          * DeidentifyTemplates contains instructions on how to de-identify content.
                                                                                      -   * See https://cloud.google.com/dlp/docs/concepts-templates to learn more.
                                                                                      +   * See
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to
                                                                                      +   * learn more.
                                                                                          * 
                                                                                      * * Protobuf type {@code google.privacy.dlp.v2.DeidentifyTemplate} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryConfig.java index ce2daec4a709..0a589aafa833 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryConfig.java @@ -29,7 +29,7 @@ * * The generated data profiles are retained according to the * [data retention policy] - * (https://cloud.google.com/dlp/docs/data-profiles#retention). + * (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention). * * * Protobuf type {@code google.privacy.dlp.v2.DiscoveryConfig} @@ -1390,7 +1390,7 @@ public com.google.privacy.dlp.v2.DiscoveryConfig.OrgConfigOrBuilder getOrgConfig * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -1419,7 +1419,7 @@ public com.google.protobuf.ProtocolStringList getInspectTemplatesList() { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -1448,7 +1448,7 @@ public int getInspectTemplatesCount() { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -1478,7 +1478,7 @@ public java.lang.String getInspectTemplates(int index) { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -2211,7 +2211,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * The generated data profiles are retained according to the * [data retention policy] - * (https://cloud.google.com/dlp/docs/data-profiles#retention). + * (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention). * * * Protobuf type {@code google.privacy.dlp.v2.DiscoveryConfig} @@ -3137,7 +3137,7 @@ private void ensureInspectTemplatesIsMutable() { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -3167,7 +3167,7 @@ public com.google.protobuf.ProtocolStringList getInspectTemplatesList() { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -3196,7 +3196,7 @@ public int getInspectTemplatesCount() { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -3226,7 +3226,7 @@ public java.lang.String getInspectTemplates(int index) { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -3256,7 +3256,7 @@ public com.google.protobuf.ByteString getInspectTemplatesBytes(int index) { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -3294,7 +3294,7 @@ public Builder setInspectTemplates(int index, java.lang.String value) { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -3331,7 +3331,7 @@ public Builder addInspectTemplates(java.lang.String value) { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -3365,7 +3365,7 @@ public Builder addAllInspectTemplates(java.lang.Iterable value * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -3398,7 +3398,7 @@ public Builder clearInspectTemplates() { * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryConfigOrBuilder.java index e5488677b277..2c6e331a8a36 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryConfigOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DiscoveryConfigOrBuilder.java @@ -132,7 +132,7 @@ public interface DiscoveryConfigOrBuilder * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -159,7 +159,7 @@ public interface DiscoveryConfigOrBuilder * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -186,7 +186,7 @@ public interface DiscoveryConfigOrBuilder * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; @@ -214,7 +214,7 @@ public interface DiscoveryConfigOrBuilder * scanned. * * For more information, see - * https://cloud.google.com/dlp/docs/data-profiles#data-residency. + * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. * * * repeated string inspect_templates = 3; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java index 165c5ff4f9cf..861384d04ac7 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java @@ -928,10 +928,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_HybridInspectResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_DataRiskLevel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_ProjectDataProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_ProjectDataProfile_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -960,6 +988,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_ColumnDataProfile_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_ColumnDataProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -976,6 +1016,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_privacy_dlp_v2_DataSourceType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_privacy_dlp_v2_DataSourceType_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -2054,467 +2098,567 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google.privacy.dlp.v2.HybridFindingDetai" + "ls.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001" + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\027\n\025HybridInspectRe" - + "sponse\"\271\001\n\rDataRiskLevel\022F\n\005score\030\001 \001(\0162" - + "7.google.privacy.dlp.v2.DataRiskLevel.Da" - + "taRiskLevelScore\"`\n\022DataRiskLevelScore\022\032" - + "\n\026RISK_SCORE_UNSPECIFIED\020\000\022\014\n\010RISK_LOW\020\n" - + "\022\021\n\rRISK_MODERATE\020\024\022\r\n\tRISK_HIGH\020\036\"\240\001\n\031D" - + "ataProfileConfigSnapshot\022<\n\016inspect_conf" - + "ig\030\002 \001(\0132$.google.privacy.dlp.v2.Inspect" - + "Config\022E\n\020data_profile_job\030\003 \001(\0132+.googl" - + "e.privacy.dlp.v2.DataProfileJobConfig\"\232\n" - + "\n\020TableDataProfile\022\014\n\004name\030\001 \001(\t\022\034\n\024proj" - + "ect_data_profile\030\002 \001(\t\022\032\n\022dataset_projec" - + "t_id\030\030 \001(\t\022\030\n\020dataset_location\030\035 \001(\t\022\022\n\n" - + "dataset_id\030\031 \001(\t\022\020\n\010table_id\030\032 \001(\t\022\025\n\rfu" - + "ll_resource\030\003 \001(\t\022<\n\016profile_status\030\025 \001(" - + "\0132$.google.privacy.dlp.v2.ProfileStatus\022" - + "<\n\005state\030\026 \001(\0162-.google.privacy.dlp.v2.T" - + "ableDataProfile.State\022B\n\021sensitivity_sco" - + "re\030\005 \001(\0132\'.google.privacy.dlp.v2.Sensiti" - + "vityScore\022=\n\017data_risk_level\030\006 \001(\0132$.goo" - + "gle.privacy.dlp.v2.DataRiskLevel\022D\n\024pred" - + "icted_info_types\030\033 \003(\0132&.google.privacy." - + "dlp.v2.InfoTypeSummary\022E\n\020other_info_typ" - + "es\030\034 \003(\0132+.google.privacy.dlp.v2.OtherIn" - + "foTypeSummary\022I\n\017config_snapshot\030\007 \001(\01320" - + ".google.privacy.dlp.v2.DataProfileConfig" - + "Snapshot\0226\n\022last_modified_time\030\010 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\0223\n\017expiration_t" - + "ime\030\t \001(\0132\032.google.protobuf.Timestamp\022\034\n" - + "\024scanned_column_count\030\n \001(\003\022\033\n\023failed_co" - + "lumn_count\030\013 \001(\003\022\030\n\020table_size_bytes\030\014 \001" - + "(\003\022\021\n\trow_count\030\r \001(\003\022B\n\021encryption_stat" - + "us\030\016 \001(\0162\'.google.privacy.dlp.v2.Encrypt" - + "ionStatus\022F\n\023resource_visibility\030\017 \001(\0162)" - + ".google.privacy.dlp.v2.ResourceVisibilit" - + "y\022:\n\026profile_last_generated\030\020 \001(\0132\032.goog" - + "le.protobuf.Timestamp\022T\n\017resource_labels" - + "\030\021 \003(\0132;.google.privacy.dlp.v2.TableData" - + "Profile.ResourceLabelsEntry\022/\n\013create_ti" - + "me\030\027 \001(\0132\032.google.protobuf.Timestamp\0325\n\023" - + "ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"5\n\005State\022\025\n\021STATE_UNSPECIFIE" - + "D\020\000\022\013\n\007RUNNING\020\001\022\010\n\004DONE\020\002\"b\n\rProfileSta" - + "tus\022\"\n\006status\030\001 \001(\0132\022.google.rpc.Status\022" - + "-\n\ttimestamp\030\003 \001(\0132\032.google.protobuf.Tim" - + "estamp\"g\n\017InfoTypeSummary\0222\n\tinfo_type\030\001" - + " \001(\0132\037.google.privacy.dlp.v2.InfoType\022 \n" - + "\024estimated_prevalence\030\002 \001(\005B\002\030\001\"\210\001\n\024Othe" - + "rInfoTypeSummary\0222\n\tinfo_type\030\001 \001(\0132\037.go" - + "ogle.privacy.dlp.v2.InfoType\022\034\n\024estimate" - + "d_prevalence\030\002 \001(\005\022\036\n\026excluded_from_anal" - + "ysis\030\003 \001(\010\"\223\013\n\021ColumnDataProfile\022\014\n\004name" - + "\030\001 \001(\t\022<\n\016profile_status\030\021 \001(\0132$.google." - + "privacy.dlp.v2.ProfileStatus\022=\n\005state\030\022 " - + "\001(\0162..google.privacy.dlp.v2.ColumnDataPr" - + "ofile.State\022:\n\026profile_last_generated\030\003 " - + "\001(\0132\032.google.protobuf.Timestamp\022\032\n\022table" - + "_data_profile\030\004 \001(\t\022\033\n\023table_full_resour" - + "ce\030\005 \001(\t\022\032\n\022dataset_project_id\030\023 \001(\t\022\030\n\020" - + "dataset_location\030\024 \001(\t\022\022\n\ndataset_id\030\025 \001" - + "(\t\022\020\n\010table_id\030\026 \001(\t\022\016\n\006column\030\006 \001(\t\022B\n\021" - + "sensitivity_score\030\007 \001(\0132\'.google.privacy" - + ".dlp.v2.SensitivityScore\022=\n\017data_risk_le" - + "vel\030\010 \001(\0132$.google.privacy.dlp.v2.DataRi" - + "skLevel\022@\n\020column_info_type\030\t \001(\0132&.goog" - + "le.privacy.dlp.v2.InfoTypeSummary\022B\n\roth" - + "er_matches\030\n \003(\0132+.google.privacy.dlp.v2" - + ".OtherInfoTypeSummary\022M\n\031estimated_null_" - + "percentage\030\027 \001(\0162*.google.privacy.dlp.v2" - + ".NullPercentageLevel\022O\n\032estimated_unique" - + "ness_score\030\030 \001(\0162+.google.privacy.dlp.v2" - + ".UniquenessScoreLevel\022\027\n\017free_text_score" - + "\030\r \001(\001\022L\n\013column_type\030\016 \001(\01627.google.pri" - + "vacy.dlp.v2.ColumnDataProfile.ColumnData" - + "Type\022P\n\014policy_state\030\017 \001(\0162:.google.priv" - + "acy.dlp.v2.ColumnDataProfile.ColumnPolic" - + "yState\"5\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013" - + "\n\007RUNNING\020\001\022\010\n\004DONE\020\002\"\244\002\n\016ColumnDataType" - + "\022 \n\034COLUMN_DATA_TYPE_UNSPECIFIED\020\000\022\016\n\nTY" - + "PE_INT64\020\001\022\r\n\tTYPE_BOOL\020\002\022\020\n\014TYPE_FLOAT6" - + "4\020\003\022\017\n\013TYPE_STRING\020\004\022\016\n\nTYPE_BYTES\020\005\022\022\n\016" - + "TYPE_TIMESTAMP\020\006\022\r\n\tTYPE_DATE\020\007\022\r\n\tTYPE_" - + "TIME\020\010\022\021\n\rTYPE_DATETIME\020\t\022\022\n\016TYPE_GEOGRA" - + "PHY\020\n\022\020\n\014TYPE_NUMERIC\020\013\022\017\n\013TYPE_RECORD\020\014" - + "\022\023\n\017TYPE_BIGNUMERIC\020\r\022\r\n\tTYPE_JSON\020\016\"R\n\021" - + "ColumnPolicyState\022#\n\037COLUMN_POLICY_STATE" - + "_UNSPECIFIED\020\000\022\030\n\024COLUMN_POLICY_TAGGED\020\001" - + "\"\352\005\n\032DataProfilePubSubCondition\022X\n\013expre" - + "ssions\030\001 \001(\0132C.google.privacy.dlp.v2.Dat" - + "aProfilePubSubCondition.PubSubExpression" - + "s\032\351\001\n\017PubSubCondition\022b\n\022minimum_risk_sc" - + "ore\030\001 \001(\0162D.google.privacy.dlp.v2.DataPr" - + "ofilePubSubCondition.ProfileScoreBucketH" - + "\000\022i\n\031minimum_sensitivity_score\030\002 \001(\0162D.g" - + "oogle.privacy.dlp.v2.DataProfilePubSubCo" - + "ndition.ProfileScoreBucketH\000B\007\n\005value\032\253\002" - + "\n\021PubSubExpressions\022s\n\020logical_operator\030" - + "\001 \001(\0162Y.google.privacy.dlp.v2.DataProfil" - + "ePubSubCondition.PubSubExpressions.PubSu" - + "bLogicalOperator\022U\n\nconditions\030\002 \003(\0132A.g" - + "oogle.privacy.dlp.v2.DataProfilePubSubCo" - + "ndition.PubSubCondition\"J\n\025PubSubLogical" - + "Operator\022 \n\034LOGICAL_OPERATOR_UNSPECIFIED" - + "\020\000\022\006\n\002OR\020\001\022\007\n\003AND\020\002\"X\n\022ProfileScoreBucke" - + "t\022$\n PROFILE_SCORE_BUCKET_UNSPECIFIED\020\000\022" - + "\010\n\004HIGH\020\001\022\022\n\016MEDIUM_OR_HIGH\020\002\"\227\001\n\030DataPr" - + "ofilePubSubMessage\0228\n\007profile\030\001 \001(\0132\'.go" - + "ogle.privacy.dlp.v2.TableDataProfile\022A\n\005" - + "event\030\002 \001(\01622.google.privacy.dlp.v2.Data" - + "ProfileAction.EventType*\240\001\n\036Transformati" - + "onResultStatusType\022\032\n\026STATE_TYPE_UNSPECI" - + "FIED\020\000\022\025\n\021INVALID_TRANSFORM\020\001\022\"\n\036BIGQUER" - + "Y_MAX_ROW_SIZE_EXCEEDED\020\002\022\032\n\026METADATA_UN" - + "RETRIEVABLE\020\003\022\013\n\007SUCCESS\020\004*\177\n\033Transforma" - + "tionContainerType\022\037\n\033TRANSFORM_UNKNOWN_C" - + "ONTAINER\020\000\022\022\n\016TRANSFORM_BODY\020\001\022\026\n\022TRANSF" - + "ORM_METADATA\020\002\022\023\n\017TRANSFORM_TABLE\020\003*\340\002\n\022" - + "TransformationType\022#\n\037TRANSFORMATION_TYP" - + "E_UNSPECIFIED\020\000\022\026\n\022RECORD_SUPPRESSION\020\001\022" - + "\021\n\rREPLACE_VALUE\020\002\022\026\n\022REPLACE_DICTIONARY" - + "\020\017\022\n\n\006REDACT\020\003\022\022\n\016CHARACTER_MASK\020\004\022\032\n\026CR" - + "YPTO_REPLACE_FFX_FPE\020\005\022\030\n\024FIXED_SIZE_BUC" - + "KETING\020\006\022\r\n\tBUCKETING\020\007\022\032\n\026REPLACE_WITH_" - + "INFO_TYPE\020\010\022\r\n\tTIME_PART\020\t\022\017\n\013CRYPTO_HAS" - + "H\020\n\022\016\n\nDATE_SHIFT\020\014\022\037\n\033CRYPTO_DETERMINIS" - + "TIC_CONFIG\020\r\022\020\n\014REDACT_IMAGE\020\016*\226\001\n\033BigQu" - + "eryTableTypeCollection\022$\n BIG_QUERY_COLL" - + "ECTION_UNSPECIFIED\020\000\022\"\n\036BIG_QUERY_COLLEC" - + "TION_ALL_TYPES\020\001\022-\n)BIG_QUERY_COLLECTION" - + "_ONLY_SUPPORTED_TYPES\020\002*\205\001\n\021BigQueryTabl" - + "eType\022$\n BIG_QUERY_TABLE_TYPE_UNSPECIFIE" - + "D\020\000\022\036\n\032BIG_QUERY_TABLE_TYPE_TABLE\020\001\022*\n&B", - "IG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE\020\002*" - + "\224\001\n\032DataProfileUpdateFrequency\022 \n\034UPDATE" - + "_FREQUENCY_UNSPECIFIED\020\000\022\032\n\026UPDATE_FREQU" - + "ENCY_NEVER\020\001\022\032\n\026UPDATE_FREQUENCY_DAILY\020\002" - + "\022\034\n\030UPDATE_FREQUENCY_MONTHLY\020\004*]\n\031BigQue" - + "ryTableModification\022\"\n\036TABLE_MODIFICATIO" - + "N_UNSPECIFIED\020\000\022\034\n\030TABLE_MODIFIED_TIMEST" - + "AMP\020\001*u\n\032BigQuerySchemaModification\022#\n\037S" - + "CHEMA_MODIFICATION_UNSPECIFIED\020\000\022\026\n\022SCHE" - + "MA_NEW_COLUMNS\020\001\022\032\n\026SCHEMA_REMOVED_COLUM" - + "NS\020\002*\273\001\n\022RelationalOperator\022#\n\037RELATIONA" - + "L_OPERATOR_UNSPECIFIED\020\000\022\014\n\010EQUAL_TO\020\001\022\020" - + "\n\014NOT_EQUAL_TO\020\002\022\020\n\014GREATER_THAN\020\003\022\r\n\tLE" - + "SS_THAN\020\004\022\032\n\026GREATER_THAN_OR_EQUALS\020\005\022\027\n" - + "\023LESS_THAN_OR_EQUALS\020\006\022\n\n\006EXISTS\020\007*\215\001\n\014M" - + "atchingType\022\035\n\031MATCHING_TYPE_UNSPECIFIED" - + "\020\000\022\034\n\030MATCHING_TYPE_FULL_MATCH\020\001\022\037\n\033MATC" - + "HING_TYPE_PARTIAL_MATCH\020\002\022\037\n\033MATCHING_TY" - + "PE_INVERSE_MATCH\020\003*M\n\rContentOption\022\027\n\023C" - + "ONTENT_UNSPECIFIED\020\000\022\020\n\014CONTENT_TEXT\020\001\022\021" - + "\n\rCONTENT_IMAGE\020\002*B\n\014MetadataType\022\034\n\030MET" - + "ADATATYPE_UNSPECIFIED\020\000\022\024\n\020STORAGE_METAD" - + "ATA\020\002*P\n\023InfoTypeSupportedBy\022\031\n\025ENUM_TYP" - + "E_UNSPECIFIED\020\000\022\013\n\007INSPECT\020\001\022\021\n\rRISK_ANA" - + "LYSIS\020\002*R\n\nDlpJobType\022\034\n\030DLP_JOB_TYPE_UN" - + "SPECIFIED\020\000\022\017\n\013INSPECT_JOB\020\001\022\025\n\021RISK_ANA" - + "LYSIS_JOB\020\002*n\n\023StoredInfoTypeState\022&\n\"ST" - + "ORED_INFO_TYPE_STATE_UNSPECIFIED\020\000\022\013\n\007PE" - + "NDING\020\001\022\t\n\005READY\020\002\022\n\n\006FAILED\020\003\022\013\n\007INVALI" - + "D\020\004*}\n\022ResourceVisibility\022#\n\037RESOURCE_VI" - + "SIBILITY_UNSPECIFIED\020\000\022\036\n\032RESOURCE_VISIB" - + "ILITY_PUBLIC\020\n\022\"\n\036RESOURCE_VISIBILITY_RE" - + "STRICTED\020\024*u\n\020EncryptionStatus\022!\n\035ENCRYP" - + "TION_STATUS_UNSPECIFIED\020\000\022\035\n\031ENCRYPTION_" - + "GOOGLE_MANAGED\020\001\022\037\n\033ENCRYPTION_CUSTOMER_" - + "MANAGED\020\002*\251\001\n\023NullPercentageLevel\022%\n!NUL" - + "L_PERCENTAGE_LEVEL_UNSPECIFIED\020\000\022\034\n\030NULL" - + "_PERCENTAGE_VERY_LOW\020\001\022\027\n\023NULL_PERCENTAG" - + "E_LOW\020\002\022\032\n\026NULL_PERCENTAGE_MEDIUM\020\003\022\030\n\024N" - + "ULL_PERCENTAGE_HIGH\020\004*\220\001\n\024UniquenessScor" - + "eLevel\022&\n\"UNIQUENESS_SCORE_LEVEL_UNSPECI" - + "FIED\020\000\022\030\n\024UNIQUENESS_SCORE_LOW\020\001\022\033\n\027UNIQ" - + "UENESS_SCORE_MEDIUM\020\002\022\031\n\025UNIQUENESS_SCOR" - + "E_HIGH\020\0032\265V\n\nDlpService\022\333\001\n\016InspectConte" - + "nt\022,.google.privacy.dlp.v2.InspectConten" - + "tRequest\032-.google.privacy.dlp.v2.Inspect" - + "ContentResponse\"l\202\323\344\223\002f\"\'/v2/{parent=pro" - + "jects/*}/content:inspect:\001*Z8\"3/v2/{pare" - + "nt=projects/*/locations/*}/content:inspe" - + "ct:\001*\022\314\001\n\013RedactImage\022).google.privacy.d" - + "lp.v2.RedactImageRequest\032*.google.privac" - + "y.dlp.v2.RedactImageResponse\"f\202\323\344\223\002`\"$/v" - + "2/{parent=projects/*}/image:redact:\001*Z5\"" - + "0/v2/{parent=projects/*/locations/*}/ima" - + "ge:redact:\001*\022\352\001\n\021DeidentifyContent\022/.goo" - + "gle.privacy.dlp.v2.DeidentifyContentRequ" - + "est\0320.google.privacy.dlp.v2.DeidentifyCo" - + "ntentResponse\"r\202\323\344\223\002l\"*/v2/{parent=proje" - + "cts/*}/content:deidentify:\001*Z;\"6/v2/{par" - + "ent=projects/*/locations/*}/content:deid" - + "entify:\001*\022\352\001\n\021ReidentifyContent\022/.google" - + ".privacy.dlp.v2.ReidentifyContentRequest" - + "\0320.google.privacy.dlp.v2.ReidentifyConte" - + "ntResponse\"r\202\323\344\223\002l\"*/v2/{parent=projects" - + "/*}/content:reidentify:\001*Z;\"6/v2/{parent" - + "=projects/*/locations/*}/content:reident" - + "ify:\001*\022\260\001\n\rListInfoTypes\022+.google.privac" - + "y.dlp.v2.ListInfoTypesRequest\032,.google.p" - + "rivacy.dlp.v2.ListInfoTypesResponse\"D\332A\006" - + "parent\202\323\344\223\0025\022\r/v2/infoTypesZ$\022\"/v2/{pare" - + "nt=locations/*}/infoTypes\022\364\002\n\025CreateInsp" - + "ectTemplate\0223.google.privacy.dlp.v2.Crea" - + "teInspectTemplateRequest\032&.google.privac" - + "y.dlp.v2.InspectTemplate\"\375\001\332A\027parent,ins" - + "pect_template\202\323\344\223\002\334\001\"-/v2/{parent=organi" - + "zations/*}/inspectTemplates:\001*Z>\"9/v2/{p" - + "arent=organizations/*/locations/*}/inspe" - + "ctTemplates:\001*Z-\"(/v2/{parent=projects/*" - + "}/inspectTemplates:\001*Z9\"4/v2/{parent=pro" - + "jects/*/locations/*}/inspectTemplates:\001*" - + "\022\376\002\n\025UpdateInspectTemplate\0223.google.priv" - + "acy.dlp.v2.UpdateInspectTemplateRequest\032" - + "&.google.privacy.dlp.v2.InspectTemplate\"" - + "\207\002\332A!name,inspect_template,update_mask\202\323" - + "\344\223\002\334\0012-/v2/{name=organizations/*/inspect" - + "Templates/*}:\001*Z>29/v2/{name=organizatio" - + "ns/*/locations/*/inspectTemplates/*}:\001*Z" - + "-2(/v2/{name=projects/*/inspectTemplates" - + "/*}:\001*Z924/v2/{name=projects/*/locations" - + "/*/inspectTemplates/*}:\001*\022\317\002\n\022GetInspect" - + "Template\0220.google.privacy.dlp.v2.GetInsp" - + "ectTemplateRequest\032&.google.privacy.dlp." - + "v2.InspectTemplate\"\336\001\332A\004name\202\323\344\223\002\320\001\022-/v2" - + "/{name=organizations/*/inspectTemplates/" - + "*}Z;\0229/v2/{name=organizations/*/location" - + "s/*/inspectTemplates/*}Z*\022(/v2/{name=pro" - + "jects/*/inspectTemplates/*}Z6\0224/v2/{name" - + "=projects/*/locations/*/inspectTemplates" - + "/*}\022\342\002\n\024ListInspectTemplates\0222.google.pr" - + "ivacy.dlp.v2.ListInspectTemplatesRequest" - + "\0323.google.privacy.dlp.v2.ListInspectTemp" - + "latesResponse\"\340\001\332A\006parent\202\323\344\223\002\320\001\022-/v2/{p" - + "arent=organizations/*}/inspectTemplatesZ" - + ";\0229/v2/{parent=organizations/*/locations" - + "/*}/inspectTemplatesZ*\022(/v2/{parent=proj" - + "ects/*}/inspectTemplatesZ6\0224/v2/{parent=" - + "projects/*/locations/*}/inspectTemplates" - + "\022\305\002\n\025DeleteInspectTemplate\0223.google.priv" - + "acy.dlp.v2.DeleteInspectTemplateRequest\032" - + "\026.google.protobuf.Empty\"\336\001\332A\004name\202\323\344\223\002\320\001" - + "*-/v2/{name=organizations/*/inspectTempl" - + "ates/*}Z;*9/v2/{name=organizations/*/loc" - + "ations/*/inspectTemplates/*}Z**(/v2/{nam" - + "e=projects/*/inspectTemplates/*}Z6*4/v2/" - + "{name=projects/*/locations/*/inspectTemp" - + "lates/*}\022\214\003\n\030CreateDeidentifyTemplate\0226." - + "google.privacy.dlp.v2.CreateDeidentifyTe" - + "mplateRequest\032).google.privacy.dlp.v2.De" - + "identifyTemplate\"\214\002\332A\032parent,deidentify_" - + "template\202\323\344\223\002\350\001\"0/v2/{parent=organizatio" - + "ns/*}/deidentifyTemplates:\001*ZA\"\022\022*\"9/v2/{parent=organizations/*/locatio" - + "ns/*}/discoveryConfigs:\001*\022\232\002\n\025UpdateDisc" - + "overyConfig\0223.google.privacy.dlp.v2.Upda" - + "teDiscoveryConfigRequest\032&.google.privac" - + "y.dlp.v2.DiscoveryConfig\"\243\001\332A!name,disco" - + "very_config,update_mask\202\323\344\223\002y24/v2/{name" - + "=projects/*/locations/*/discoveryConfigs" - + "/*}:\001*Z>29/v2/{name=organizations/*/loca" - + "tions/*/discoveryConfigs/*}:\001*\022\361\001\n\022GetDi" - + "scoveryConfig\0220.google.privacy.dlp.v2.Ge" - + "tDiscoveryConfigRequest\032&.google.privacy" - + ".dlp.v2.DiscoveryConfig\"\200\001\332A\004name\202\323\344\223\002s\022" - + "4/v2/{name=projects/*/locations/*/discov" - + "eryConfigs/*}Z;\0229/v2/{name=organizations" - + "/*/locations/*/discoveryConfigs/*}\022\204\002\n\024L" - + "istDiscoveryConfigs\0222.google.privacy.dlp" - + ".v2.ListDiscoveryConfigsRequest\0323.google" - + ".privacy.dlp.v2.ListDiscoveryConfigsResp" - + "onse\"\202\001\332A\006parent\202\323\344\223\002s\0224/v2/{parent=proj" - + "ects/*/locations/*}/discoveryConfigsZ;\0229" - + "/v2/{parent=organizations/*/locations/*}" - + "/discoveryConfigs\022\347\001\n\025DeleteDiscoveryCon" - + "fig\0223.google.privacy.dlp.v2.DeleteDiscov" - + "eryConfigRequest\032\026.google.protobuf.Empty" - + "\"\200\001\332A\004name\202\323\344\223\002s*4/v2/{name=projects/*/l" - + "ocations/*/discoveryConfigs/*}Z;*9/v2/{n" - + "ame=organizations/*/locations/*/discover" - + "yConfigs/*}\022\337\001\n\014CreateDlpJob\022*.google.pr" - + "ivacy.dlp.v2.CreateDlpJobRequest\032\035.googl" - + "e.privacy.dlp.v2.DlpJob\"\203\001\332A\022parent,insp" - + "ect_job\332A\017parent,risk_job\202\323\344\223\002V\"\037/v2/{pa" - + "rent=projects/*}/dlpJobs:\001*Z0\"+/v2/{pare" - + "nt=projects/*/locations/*}/dlpJobs:\001*\022\373\001" - + "\n\013ListDlpJobs\022).google.privacy.dlp.v2.Li" - + "stDlpJobsRequest\032*.google.privacy.dlp.v2" - + ".ListDlpJobsResponse\"\224\001\332A\006parent\202\323\344\223\002\204\001\022" - + "\037/v2/{parent=projects/*}/dlpJobsZ-\022+/v2/" - + "{parent=projects/*/locations/*}/dlpJobsZ" - + "2\0220/v2/{parent=organizations/*/locations" - + "/*}/dlpJobs\022\262\001\n\tGetDlpJob\022\'.google.priva" - + "cy.dlp.v2.GetDlpJobRequest\032\035.google.priv" - + "acy.dlp.v2.DlpJob\"]\332A\004name\202\323\344\223\002P\022\037/v2/{n" - + "ame=projects/*/dlpJobs/*}Z-\022+/v2/{name=p" - + "rojects/*/locations/*/dlpJobs/*}\022\261\001\n\014Del" - + "eteDlpJob\022*.google.privacy.dlp.v2.Delete" - + "DlpJobRequest\032\026.google.protobuf.Empty\"]\332" - + "A\004name\202\323\344\223\002P*\037/v2/{name=projects/*/dlpJo" - + "bs/*}Z-*+/v2/{name=projects/*/locations/" - + "*/dlpJobs/*}\022\276\001\n\014CancelDlpJob\022*.google.p" - + "rivacy.dlp.v2.CancelDlpJobRequest\032\026.goog" - + "le.protobuf.Empty\"j\202\323\344\223\002d\"&/v2/{name=pro" - + "jects/*/dlpJobs/*}:cancel:\001*Z7\"2/v2/{nam" - + "e=projects/*/locations/*/dlpJobs/*}:canc" - + "el:\001*\022\343\002\n\024CreateStoredInfoType\0222.google." - + "privacy.dlp.v2.CreateStoredInfoTypeReque" - + "st\032%.google.privacy.dlp.v2.StoredInfoTyp" - + "e\"\357\001\332A\rparent,config\202\323\344\223\002\330\001\",/v2/{parent" - + "=organizations/*}/storedInfoTypes:\001*Z=\"8" + + "sponse\"\250\001\n\036ListProjectDataProfilesReques" + + "t\022=\n\006parent\030\001 \001(\tB-\340A\002\372A\'\022%dlp.googleapi" + + "s.com/ProjectDataProfile\022\022\n\npage_token\030\002" + + " \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010order_by\030\004 \001(" + + "\t\022\016\n\006filter\030\005 \001(\t\"\204\001\n\037ListProjectDataPro" + + "filesResponse\022H\n\025project_data_profiles\030\001" + + " \003(\0132).google.privacy.dlp.v2.ProjectData" + + "Profile\022\027\n\017next_page_token\030\002 \001(\t\"\244\001\n\034Lis" + + "tTableDataProfilesRequest\022;\n\006parent\030\001 \001(" + + "\tB+\340A\002\372A%\022#dlp.googleapis.com/TableDataP" + + "rofile\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030" + + "\003 \001(\005\022\020\n\010order_by\030\004 \001(\t\022\016\n\006filter\030\005 \001(\t\"" + + "~\n\035ListTableDataProfilesResponse\022D\n\023tabl" + + "e_data_profiles\030\001 \003(\0132\'.google.privacy.d" + + "lp.v2.TableDataProfile\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"\246\001\n\035ListColumnDataProfilesReques" + + "t\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\022$dlp.googleapi" + + "s.com/ColumnDataProfile\022\022\n\npage_token\030\002 " + + "\001(\t\022\021\n\tpage_size\030\003 \001(\005\022\020\n\010order_by\030\004 \001(\t" + + "\022\016\n\006filter\030\005 \001(\t\"\201\001\n\036ListColumnDataProfi" + + "lesResponse\022F\n\024column_data_profiles\030\001 \003(" + + "\0132(.google.privacy.dlp.v2.ColumnDataProf" + + "ile\022\027\n\017next_page_token\030\002 \001(\t\"\271\001\n\rDataRis" + + "kLevel\022F\n\005score\030\001 \001(\01627.google.privacy.d" + + "lp.v2.DataRiskLevel.DataRiskLevelScore\"`" + + "\n\022DataRiskLevelScore\022\032\n\026RISK_SCORE_UNSPE" + + "CIFIED\020\000\022\014\n\010RISK_LOW\020\n\022\021\n\rRISK_MODERATE\020" + + "\024\022\r\n\tRISK_HIGH\020\036\"\223\004\n\022ProjectDataProfile\022" + + "\014\n\004name\030\001 \001(\t\022\022\n\nproject_id\030\002 \001(\t\022:\n\026pro" + + "file_last_generated\030\003 \001(\0132\032.google.proto" + + "buf.Timestamp\022B\n\021sensitivity_score\030\004 \001(\013" + + "2\'.google.privacy.dlp.v2.SensitivityScor" + + "e\022=\n\017data_risk_level\030\005 \001(\0132$.google.priv" + + "acy.dlp.v2.DataRiskLevel\022<\n\016profile_stat" + + "us\030\007 \001(\0132$.google.privacy.dlp.v2.Profile" + + "Status:\335\001\352A\331\001\n%dlp.googleapis.com/Projec" + + "tDataProfile\022\\organizations/{organizatio" + + "n}/locations/{location}/projectDataProfi" + + "les/{project_data_profile}\022Rprojects/{pr" + + "oject}/locations/{location}/projectDataP" + + "rofiles/{project_data_profile}\"\311\002\n\031DataP" + + "rofileConfigSnapshot\022<\n\016inspect_config\030\002" + + " \001(\0132$.google.privacy.dlp.v2.InspectConf" + + "ig\022I\n\020data_profile_job\030\003 \001(\0132+.google.pr" + + "ivacy.dlp.v2.DataProfileJobConfigB\002\030\001\022@\n" + + "\020discovery_config\030\004 \001(\0132&.google.privacy" + + ".dlp.v2.DiscoveryConfig\022\035\n\025inspect_templ" + + "ate_name\030\005 \001(\t\022B\n\036inspect_template_modif" + + "ied_time\030\006 \001(\0132\032.google.protobuf.Timesta" + + "mp\"\261\014\n\020TableDataProfile\022\014\n\004name\030\001 \001(\t\022?\n" + + "\020data_source_type\030$ \001(\0132%.google.privacy" + + ".dlp.v2.DataSourceType\022\034\n\024project_data_p" + + "rofile\030\002 \001(\t\022\032\n\022dataset_project_id\030\030 \001(\t" + + "\022\030\n\020dataset_location\030\035 \001(\t\022\022\n\ndataset_id" + + "\030\031 \001(\t\022\020\n\010table_id\030\032 \001(\t\022\025\n\rfull_resourc" + + "e\030\003 \001(\t\022<\n\016profile_status\030\025 \001(\0132$.google" + + ".privacy.dlp.v2.ProfileStatus\022<\n\005state\030\026" + + " \001(\0162-.google.privacy.dlp.v2.TableDataPr" + + "ofile.State\022B\n\021sensitivity_score\030\005 \001(\0132\'" + + ".google.privacy.dlp.v2.SensitivityScore\022" + + "=\n\017data_risk_level\030\006 \001(\0132$.google.privac" + + "y.dlp.v2.DataRiskLevel\022D\n\024predicted_info" + + "_types\030\033 \003(\0132&.google.privacy.dlp.v2.Inf" + + "oTypeSummary\022E\n\020other_info_types\030\034 \003(\0132+" + + ".google.privacy.dlp.v2.OtherInfoTypeSumm" + + "ary\022I\n\017config_snapshot\030\007 \001(\01320.google.pr" + + "ivacy.dlp.v2.DataProfileConfigSnapshot\0226" + + "\n\022last_modified_time\030\010 \001(\0132\032.google.prot" + + "obuf.Timestamp\0223\n\017expiration_time\030\t \001(\0132" + + "\032.google.protobuf.Timestamp\022\034\n\024scanned_c" + + "olumn_count\030\n \001(\003\022\033\n\023failed_column_count" + + "\030\013 \001(\003\022\030\n\020table_size_bytes\030\014 \001(\003\022\021\n\trow_" + + "count\030\r \001(\003\022B\n\021encryption_status\030\016 \001(\0162\'" + + ".google.privacy.dlp.v2.EncryptionStatus\022" + + "F\n\023resource_visibility\030\017 \001(\0162).google.pr" + + "ivacy.dlp.v2.ResourceVisibility\022:\n\026profi" + + "le_last_generated\030\020 \001(\0132\032.google.protobu" + + "f.Timestamp\022T\n\017resource_labels\030\021 \003(\0132;.g" + + "oogle.privacy.dlp.v2.TableDataProfile.Re" + + "sourceLabelsEntry\022/\n\013create_time\030\027 \001(\0132\032" + + ".google.protobuf.Timestamp\0325\n\023ResourceLa" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"5\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUN" + + "NING\020\001\022\010\n\004DONE\020\002:\323\001\352A\317\001\n#dlp.googleapis." + + "com/TableDataProfile\022Xorganizations/{org" + + "anization}/locations/{location}/tableDat" + + "aProfiles/{table_data_profile}\022Nprojects" + + "/{project}/locations/{location}/tableDat" + + "aProfiles/{table_data_profile}\"b\n\rProfil" + + "eStatus\022\"\n\006status\030\001 \001(\0132\022.google.rpc.Sta" + + "tus\022-\n\ttimestamp\030\003 \001(\0132\032.google.protobuf" + + ".Timestamp\"g\n\017InfoTypeSummary\0222\n\tinfo_ty" + + "pe\030\001 \001(\0132\037.google.privacy.dlp.v2.InfoTyp" + + "e\022 \n\024estimated_prevalence\030\002 \001(\005B\002\030\001\"\210\001\n\024" + + "OtherInfoTypeSummary\0222\n\tinfo_type\030\001 \001(\0132" + + "\037.google.privacy.dlp.v2.InfoType\022\034\n\024esti" + + "mated_prevalence\030\002 \001(\005\022\036\n\026excluded_from_" + + "analysis\030\003 \001(\010\"\356\014\n\021ColumnDataProfile\022\014\n\004" + + "name\030\001 \001(\t\022<\n\016profile_status\030\021 \001(\0132$.goo" + + "gle.privacy.dlp.v2.ProfileStatus\022=\n\005stat" + + "e\030\022 \001(\0162..google.privacy.dlp.v2.ColumnDa" + + "taProfile.State\022:\n\026profile_last_generate" + + "d\030\003 \001(\0132\032.google.protobuf.Timestamp\022\032\n\022t" + + "able_data_profile\030\004 \001(\t\022\033\n\023table_full_re" + + "source\030\005 \001(\t\022\032\n\022dataset_project_id\030\023 \001(\t" + + "\022\030\n\020dataset_location\030\024 \001(\t\022\022\n\ndataset_id" + + "\030\025 \001(\t\022\020\n\010table_id\030\026 \001(\t\022\016\n\006column\030\006 \001(\t" + + "\022B\n\021sensitivity_score\030\007 \001(\0132\'.google.pri" + + "vacy.dlp.v2.SensitivityScore\022=\n\017data_ris" + + "k_level\030\010 \001(\0132$.google.privacy.dlp.v2.Da" + + "taRiskLevel\022@\n\020column_info_type\030\t \001(\0132&." + + "google.privacy.dlp.v2.InfoTypeSummary\022B\n" + + "\rother_matches\030\n \003(\0132+.google.privacy.dl" + + "p.v2.OtherInfoTypeSummary\022M\n\031estimated_n" + + "ull_percentage\030\027 \001(\0162*.google.privacy.dl" + + "p.v2.NullPercentageLevel\022O\n\032estimated_un" + + "iqueness_score\030\030 \001(\0162+.google.privacy.dl" + + "p.v2.UniquenessScoreLevel\022\027\n\017free_text_s" + + "core\030\r \001(\001\022L\n\013column_type\030\016 \001(\01627.google" + + ".privacy.dlp.v2.ColumnDataProfile.Column" + + "DataType\022P\n\014policy_state\030\017 \001(\0162:.google." + + "privacy.dlp.v2.ColumnDataProfile.ColumnP" + + "olicyState\"5\n\005State\022\025\n\021STATE_UNSPECIFIED" + + "\020\000\022\013\n\007RUNNING\020\001\022\010\n\004DONE\020\002\"\244\002\n\016ColumnData" + + "Type\022 \n\034COLUMN_DATA_TYPE_UNSPECIFIED\020\000\022\016" + + "\n\nTYPE_INT64\020\001\022\r\n\tTYPE_BOOL\020\002\022\020\n\014TYPE_FL" + + "OAT64\020\003\022\017\n\013TYPE_STRING\020\004\022\016\n\nTYPE_BYTES\020\005" + + "\022\022\n\016TYPE_TIMESTAMP\020\006\022\r\n\tTYPE_DATE\020\007\022\r\n\tT" + + "YPE_TIME\020\010\022\021\n\rTYPE_DATETIME\020\t\022\022\n\016TYPE_GE" + + "OGRAPHY\020\n\022\020\n\014TYPE_NUMERIC\020\013\022\017\n\013TYPE_RECO" + + "RD\020\014\022\023\n\017TYPE_BIGNUMERIC\020\r\022\r\n\tTYPE_JSON\020\016", + "\"R\n\021ColumnPolicyState\022#\n\037COLUMN_POLICY_S" + + "TATE_UNSPECIFIED\020\000\022\030\n\024COLUMN_POLICY_TAGG" + + "ED\020\001:\330\001\352A\324\001\n$dlp.googleapis.com/ColumnDa" + + "taProfile\022Zorganizations/{organization}/" + + "locations/{location}/columnDataProfiles/" + + "{column_data_profile}\022Pprojects/{project" + + "}/locations/{location}/columnDataProfile" + + "s/{column_data_profile}\"[\n\034GetProjectDat" + + "aProfileRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%d" + + "lp.googleapis.com/ProjectDataProfile\"W\n\032" + + "GetTableDataProfileRequest\0229\n\004name\030\001 \001(\t" + + "B+\340A\002\372A%\n#dlp.googleapis.com/TableDataPr" + + "ofile\"Y\n\033GetColumnDataProfileRequest\022:\n\004" + + "name\030\001 \001(\tB,\340A\002\372A&\n$dlp.googleapis.com/C" + + "olumnDataProfile\"\352\005\n\032DataProfilePubSubCo" + + "ndition\022X\n\013expressions\030\001 \001(\0132C.google.pr" + + "ivacy.dlp.v2.DataProfilePubSubCondition." + + "PubSubExpressions\032\351\001\n\017PubSubCondition\022b\n" + + "\022minimum_risk_score\030\001 \001(\0162D.google.priva" + + "cy.dlp.v2.DataProfilePubSubCondition.Pro" + + "fileScoreBucketH\000\022i\n\031minimum_sensitivity" + + "_score\030\002 \001(\0162D.google.privacy.dlp.v2.Dat" + + "aProfilePubSubCondition.ProfileScoreBuck" + + "etH\000B\007\n\005value\032\253\002\n\021PubSubExpressions\022s\n\020l" + + "ogical_operator\030\001 \001(\0162Y.google.privacy.d" + + "lp.v2.DataProfilePubSubCondition.PubSubE" + + "xpressions.PubSubLogicalOperator\022U\n\ncond" + + "itions\030\002 \003(\0132A.google.privacy.dlp.v2.Dat" + + "aProfilePubSubCondition.PubSubCondition\"" + + "J\n\025PubSubLogicalOperator\022 \n\034LOGICAL_OPER" + + "ATOR_UNSPECIFIED\020\000\022\006\n\002OR\020\001\022\007\n\003AND\020\002\"X\n\022P" + + "rofileScoreBucket\022$\n PROFILE_SCORE_BUCKE" + + "T_UNSPECIFIED\020\000\022\010\n\004HIGH\020\001\022\022\n\016MEDIUM_OR_H" + + "IGH\020\002\"\227\001\n\030DataProfilePubSubMessage\0228\n\007pr" + + "ofile\030\001 \001(\0132\'.google.privacy.dlp.v2.Tabl" + + "eDataProfile\022A\n\005event\030\002 \001(\01622.google.pri" + + "vacy.dlp.v2.DataProfileAction.EventType\"" + + "*\n\016DataSourceType\022\030\n\013data_source\030\001 \001(\tB\003" + + "\340A\003*\240\001\n\036TransformationResultStatusType\022\032" + + "\n\026STATE_TYPE_UNSPECIFIED\020\000\022\025\n\021INVALID_TR" + + "ANSFORM\020\001\022\"\n\036BIGQUERY_MAX_ROW_SIZE_EXCEE" + + "DED\020\002\022\032\n\026METADATA_UNRETRIEVABLE\020\003\022\013\n\007SUC" + + "CESS\020\004*\177\n\033TransformationContainerType\022\037\n" + + "\033TRANSFORM_UNKNOWN_CONTAINER\020\000\022\022\n\016TRANSF" + + "ORM_BODY\020\001\022\026\n\022TRANSFORM_METADATA\020\002\022\023\n\017TR" + + "ANSFORM_TABLE\020\003*\340\002\n\022TransformationType\022#" + + "\n\037TRANSFORMATION_TYPE_UNSPECIFIED\020\000\022\026\n\022R" + + "ECORD_SUPPRESSION\020\001\022\021\n\rREPLACE_VALUE\020\002\022\026" + + "\n\022REPLACE_DICTIONARY\020\017\022\n\n\006REDACT\020\003\022\022\n\016CH" + + "ARACTER_MASK\020\004\022\032\n\026CRYPTO_REPLACE_FFX_FPE" + + "\020\005\022\030\n\024FIXED_SIZE_BUCKETING\020\006\022\r\n\tBUCKETIN" + + "G\020\007\022\032\n\026REPLACE_WITH_INFO_TYPE\020\010\022\r\n\tTIME_" + + "PART\020\t\022\017\n\013CRYPTO_HASH\020\n\022\016\n\nDATE_SHIFT\020\014\022" + + "\037\n\033CRYPTO_DETERMINISTIC_CONFIG\020\r\022\020\n\014REDA" + + "CT_IMAGE\020\016*\226\001\n\033BigQueryTableTypeCollecti" + + "on\022$\n BIG_QUERY_COLLECTION_UNSPECIFIED\020\000" + + "\022\"\n\036BIG_QUERY_COLLECTION_ALL_TYPES\020\001\022-\n)" + + "BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPE" + + "S\020\002*\205\001\n\021BigQueryTableType\022$\n BIG_QUERY_T" + + "ABLE_TYPE_UNSPECIFIED\020\000\022\036\n\032BIG_QUERY_TAB" + + "LE_TYPE_TABLE\020\001\022*\n&BIG_QUERY_TABLE_TYPE_" + + "EXTERNAL_BIG_LAKE\020\002*\224\001\n\032DataProfileUpdat" + + "eFrequency\022 \n\034UPDATE_FREQUENCY_UNSPECIFI" + + "ED\020\000\022\032\n\026UPDATE_FREQUENCY_NEVER\020\001\022\032\n\026UPDA" + + "TE_FREQUENCY_DAILY\020\002\022\034\n\030UPDATE_FREQUENCY" + + "_MONTHLY\020\004*]\n\031BigQueryTableModification\022" + + "\"\n\036TABLE_MODIFICATION_UNSPECIFIED\020\000\022\034\n\030T" + + "ABLE_MODIFIED_TIMESTAMP\020\001*u\n\032BigQuerySch" + + "emaModification\022#\n\037SCHEMA_MODIFICATION_U" + + "NSPECIFIED\020\000\022\026\n\022SCHEMA_NEW_COLUMNS\020\001\022\032\n\026" + + "SCHEMA_REMOVED_COLUMNS\020\002*\273\001\n\022RelationalO" + + "perator\022#\n\037RELATIONAL_OPERATOR_UNSPECIFI" + + "ED\020\000\022\014\n\010EQUAL_TO\020\001\022\020\n\014NOT_EQUAL_TO\020\002\022\020\n\014" + + "GREATER_THAN\020\003\022\r\n\tLESS_THAN\020\004\022\032\n\026GREATER" + + "_THAN_OR_EQUALS\020\005\022\027\n\023LESS_THAN_OR_EQUALS" + + "\020\006\022\n\n\006EXISTS\020\007*\215\001\n\014MatchingType\022\035\n\031MATCH" + + "ING_TYPE_UNSPECIFIED\020\000\022\034\n\030MATCHING_TYPE_" + + "FULL_MATCH\020\001\022\037\n\033MATCHING_TYPE_PARTIAL_MA" + + "TCH\020\002\022\037\n\033MATCHING_TYPE_INVERSE_MATCH\020\003*M" + + "\n\rContentOption\022\027\n\023CONTENT_UNSPECIFIED\020\000" + + "\022\020\n\014CONTENT_TEXT\020\001\022\021\n\rCONTENT_IMAGE\020\002*B\n" + + "\014MetadataType\022\034\n\030METADATATYPE_UNSPECIFIE" + + "D\020\000\022\024\n\020STORAGE_METADATA\020\002*P\n\023InfoTypeSup" + + "portedBy\022\031\n\025ENUM_TYPE_UNSPECIFIED\020\000\022\013\n\007I" + + "NSPECT\020\001\022\021\n\rRISK_ANALYSIS\020\002*R\n\nDlpJobTyp" + + "e\022\034\n\030DLP_JOB_TYPE_UNSPECIFIED\020\000\022\017\n\013INSPE" + + "CT_JOB\020\001\022\025\n\021RISK_ANALYSIS_JOB\020\002*n\n\023Store" + + "dInfoTypeState\022&\n\"STORED_INFO_TYPE_STATE" + + "_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\t\n\005READY\020\002\022\n" + + "\n\006FAILED\020\003\022\013\n\007INVALID\020\004*}\n\022ResourceVisib" + + "ility\022#\n\037RESOURCE_VISIBILITY_UNSPECIFIED" + + "\020\000\022\036\n\032RESOURCE_VISIBILITY_PUBLIC\020\n\022\"\n\036RE" + + "SOURCE_VISIBILITY_RESTRICTED\020\024*u\n\020Encryp" + + "tionStatus\022!\n\035ENCRYPTION_STATUS_UNSPECIF" + + "IED\020\000\022\035\n\031ENCRYPTION_GOOGLE_MANAGED\020\001\022\037\n\033" + + "ENCRYPTION_CUSTOMER_MANAGED\020\002*\251\001\n\023NullPe" + + "rcentageLevel\022%\n!NULL_PERCENTAGE_LEVEL_U" + + "NSPECIFIED\020\000\022\034\n\030NULL_PERCENTAGE_VERY_LOW" + + "\020\001\022\027\n\023NULL_PERCENTAGE_LOW\020\002\022\032\n\026NULL_PERC" + + "ENTAGE_MEDIUM\020\003\022\030\n\024NULL_PERCENTAGE_HIGH\020" + + "\004*\220\001\n\024UniquenessScoreLevel\022&\n\"UNIQUENESS" + + "_SCORE_LEVEL_UNSPECIFIED\020\000\022\030\n\024UNIQUENESS" + + "_SCORE_LOW\020\001\022\033\n\027UNIQUENESS_SCORE_MEDIUM\020" + + "\002\022\031\n\025UNIQUENESS_SCORE_HIGH\020\0032\342b\n\nDlpServ" + + "ice\022\333\001\n\016InspectContent\022,.google.privacy." + + "dlp.v2.InspectContentRequest\032-.google.pr" + + "ivacy.dlp.v2.InspectContentResponse\"l\202\323\344" + + "\223\002f\"\'/v2/{parent=projects/*}/content:ins" + + "pect:\001*Z8\"3/v2/{parent=projects/*/locati" + + "ons/*}/content:inspect:\001*\022\314\001\n\013RedactImag" + + "e\022).google.privacy.dlp.v2.RedactImageReq" + + "uest\032*.google.privacy.dlp.v2.RedactImage" + + "Response\"f\202\323\344\223\002`\"$/v2/{parent=projects/*" + + "}/image:redact:\001*Z5\"0/v2/{parent=project" + + "s/*/locations/*}/image:redact:\001*\022\352\001\n\021Dei" + + "dentifyContent\022/.google.privacy.dlp.v2.D" + + "eidentifyContentRequest\0320.google.privacy" + + ".dlp.v2.DeidentifyContentResponse\"r\202\323\344\223\002" + + "l\"*/v2/{parent=projects/*}/content:deide" + + "ntify:\001*Z;\"6/v2/{parent=projects/*/locat" + + "ions/*}/content:deidentify:\001*\022\352\001\n\021Reiden" + + "tifyContent\022/.google.privacy.dlp.v2.Reid" + + "entifyContentRequest\0320.google.privacy.dl" + + "p.v2.ReidentifyContentResponse\"r\202\323\344\223\002l\"*" + + "/v2/{parent=projects/*}/content:reidenti" + + "fy:\001*Z;\"6/v2/{parent=projects/*/location" + + "s/*}/content:reidentify:\001*\022\260\001\n\rListInfoT" + + "ypes\022+.google.privacy.dlp.v2.ListInfoTyp" + + "esRequest\032,.google.privacy.dlp.v2.ListIn" + + "foTypesResponse\"D\332A\006parent\202\323\344\223\0025\022\r/v2/in" + + "foTypesZ$\022\"/v2/{parent=locations/*}/info" + + "Types\022\364\002\n\025CreateInspectTemplate\0223.google" + + ".privacy.dlp.v2.CreateInspectTemplateReq" + + "uest\032&.google.privacy.dlp.v2.InspectTemp" + + "late\"\375\001\332A\027parent,inspect_template\202\323\344\223\002\334\001" + + "\"-/v2/{parent=organizations/*}/inspectTe" + + "mplates:\001*Z>\"9/v2/{parent=organizations/" + + "*/locations/*}/inspectTemplates:\001*Z-\"(/v" + + "2/{parent=projects/*}/inspectTemplates:\001" + + "*Z9\"4/v2/{parent=projects/*/locations/*}" + + "/inspectTemplates:\001*\022\376\002\n\025UpdateInspectTe" + + "mplate\0223.google.privacy.dlp.v2.UpdateIns" + + "pectTemplateRequest\032&.google.privacy.dlp" + + ".v2.InspectTemplate\"\207\002\332A!name,inspect_te" + + "mplate,update_mask\202\323\344\223\002\334\0012-/v2/{name=org" + + "anizations/*/inspectTemplates/*}:\001*Z>29/" + + "v2/{name=organizations/*/locations/*/ins" + + "pectTemplates/*}:\001*Z-2(/v2/{name=project" + + "s/*/inspectTemplates/*}:\001*Z924/v2/{name=" + + "projects/*/locations/*/inspectTemplates/" + + "*}:\001*\022\317\002\n\022GetInspectTemplate\0220.google.pr" + + "ivacy.dlp.v2.GetInspectTemplateRequest\032&" + + ".google.privacy.dlp.v2.InspectTemplate\"\336" + + "\001\332A\004name\202\323\344\223\002\320\001\022-/v2/{name=organizations" + + "/*/inspectTemplates/*}Z;\0229/v2/{name=orga" + + "nizations/*/locations/*/inspectTemplates" + + "/*}Z*\022(/v2/{name=projects/*/inspectTempl" + + "ates/*}Z6\0224/v2/{name=projects/*/location" + + "s/*/inspectTemplates/*}\022\342\002\n\024ListInspectT" + + "emplates\0222.google.privacy.dlp.v2.ListIns" + + "pectTemplatesRequest\0323.google.privacy.dl" + + "p.v2.ListInspectTemplatesResponse\"\340\001\332A\006p" + + "arent\202\323\344\223\002\320\001\022-/v2/{parent=organizations/" + + "*}/inspectTemplatesZ;\0229/v2/{parent=organ" + + "izations/*/locations/*}/inspectTemplates" + + "Z*\022(/v2/{parent=projects/*}/inspectTempl" + + "atesZ6\0224/v2/{parent=projects/*/locations" + + "/*}/inspectTemplates\022\305\002\n\025DeleteInspectTe" + + "mplate\0223.google.privacy.dlp.v2.DeleteIns" + + "pectTemplateRequest\032\026.google.protobuf.Em" + + "pty\"\336\001\332A\004name\202\323\344\223\002\320\001*-/v2/{name=organiza" + + "tions/*/inspectTemplates/*}Z;*9/v2/{name" + + "=organizations/*/locations/*/inspectTemp" + + "lates/*}Z**(/v2/{name=projects/*/inspect" + + "Templates/*}Z6*4/v2/{name=projects/*/loc" + + "ations/*/inspectTemplates/*}\022\214\003\n\030CreateD" + + "eidentifyTemplate\0226.google.privacy.dlp.v" + + "2.CreateDeidentifyTemplateRequest\032).goog" + + "le.privacy.dlp.v2.DeidentifyTemplate\"\214\002\332" + + "A\032parent,deidentify_template\202\323\344\223\002\350\001\"0/v2" + + "/{parent=organizations/*}/deidentifyTemp" + + "lates:\001*ZA\"\022\022*\"9/v2/{parent=org" + + "anizations/*/locations/*}/discoveryConfi" + + "gs:\001*\022\232\002\n\025UpdateDiscoveryConfig\0223.google" + + ".privacy.dlp.v2.UpdateDiscoveryConfigReq" + + "uest\032&.google.privacy.dlp.v2.DiscoveryCo" + + "nfig\"\243\001\332A!name,discovery_config,update_m" + + "ask\202\323\344\223\002y24/v2/{name=projects/*/location" + + "s/*/discoveryConfigs/*}:\001*Z>29/v2/{name=" + + "organizations/*/locations/*/discoveryCon" + + "figs/*}:\001*\022\361\001\n\022GetDiscoveryConfig\0220.goog" + + "le.privacy.dlp.v2.GetDiscoveryConfigRequ" + + "est\032&.google.privacy.dlp.v2.DiscoveryCon" + + "fig\"\200\001\332A\004name\202\323\344\223\002s\0224/v2/{name=projects/" + + "*/locations/*/discoveryConfigs/*}Z;\0229/v2" + + "/{name=organizations/*/locations/*/disco" + + "veryConfigs/*}\022\204\002\n\024ListDiscoveryConfigs\022" + + "2.google.privacy.dlp.v2.ListDiscoveryCon" + + "figsRequest\0323.google.privacy.dlp.v2.List" + + "DiscoveryConfigsResponse\"\202\001\332A\006parent\202\323\344\223" + + "\002s\0224/v2/{parent=projects/*/locations/*}/" + + "discoveryConfigsZ;\0229/v2/{parent=organiza" + + "tions/*/locations/*}/discoveryConfigs\022\347\001" + + "\n\025DeleteDiscoveryConfig\0223.google.privacy" + + ".dlp.v2.DeleteDiscoveryConfigRequest\032\026.g" + + "oogle.protobuf.Empty\"\200\001\332A\004name\202\323\344\223\002s*4/v" + + "2/{name=projects/*/locations/*/discovery" + + "Configs/*}Z;*9/v2/{name=organizations/*/" + + "locations/*/discoveryConfigs/*}\022\337\001\n\014Crea" + + "teDlpJob\022*.google.privacy.dlp.v2.CreateD" + + "lpJobRequest\032\035.google.privacy.dlp.v2.Dlp" + + "Job\"\203\001\332A\022parent,inspect_job\332A\017parent,ris" + + "k_job\202\323\344\223\002V\"\037/v2/{parent=projects/*}/dlp" + + "Jobs:\001*Z0\"+/v2/{parent=projects/*/locati" + + "ons/*}/dlpJobs:\001*\022\373\001\n\013ListDlpJobs\022).goog" + + "le.privacy.dlp.v2.ListDlpJobsRequest\032*.g" + + "oogle.privacy.dlp.v2.ListDlpJobsResponse" + + "\"\224\001\332A\006parent\202\323\344\223\002\204\001\022\037/v2/{parent=project" + + "s/*}/dlpJobsZ-\022+/v2/{parent=projects/*/l" + + "ocations/*}/dlpJobsZ2\0220/v2/{parent=organ" + + "izations/*/locations/*}/dlpJobs\022\262\001\n\tGetD" + + "lpJob\022\'.google.privacy.dlp.v2.GetDlpJobR" + + "equest\032\035.google.privacy.dlp.v2.DlpJob\"]\332" + + "A\004name\202\323\344\223\002P\022\037/v2/{name=projects/*/dlpJo" + + "bs/*}Z-\022+/v2/{name=projects/*/locations/" + + "*/dlpJobs/*}\022\261\001\n\014DeleteDlpJob\022*.google.p" + + "rivacy.dlp.v2.DeleteDlpJobRequest\032\026.goog" + + "le.protobuf.Empty\"]\332A\004name\202\323\344\223\002P*\037/v2/{n" + + "ame=projects/*/dlpJobs/*}Z-*+/v2/{name=p" + + "rojects/*/locations/*/dlpJobs/*}\022\276\001\n\014Can" + + "celDlpJob\022*.google.privacy.dlp.v2.Cancel" + + "DlpJobRequest\032\026.google.protobuf.Empty\"j\202" + + "\323\344\223\002d\"&/v2/{name=projects/*/dlpJobs/*}:c" + + "ancel:\001*Z7\"2/v2/{name=projects/*/locatio" + + "ns/*/dlpJobs/*}:cancel:\001*\022\343\002\n\024CreateStor" + + "edInfoType\0222.google.privacy.dlp.v2.Creat" + + "eStoredInfoTypeRequest\032%.google.privacy." + + "dlp.v2.StoredInfoType\"\357\001\332A\rparent,config" + + "\202\323\344\223\002\330\001\",/v2/{parent=organizations/*}/st" + + "oredInfoTypes:\001*Z=\"8/v2/{parent=organiza" + + "tions/*/locations/*}/storedInfoTypes:\001*Z" + + ",\"\'/v2/{parent=projects/*}/storedInfoTyp" + + "es:\001*Z8\"3/v2/{parent=projects/*/location" + + "s/*}/storedInfoTypes:\001*\022\355\002\n\024UpdateStored" + + "InfoType\0222.google.privacy.dlp.v2.UpdateS" + + "toredInfoTypeRequest\032%.google.privacy.dl" + + "p.v2.StoredInfoType\"\371\001\332A\027name,config,upd" + + "ate_mask\202\323\344\223\002\330\0012,/v2/{name=organizations" + + "/*/storedInfoTypes/*}:\001*Z=28/v2/{name=or" + "ganizations/*/locations/*/storedInfoType" - + "s/*}Z)\022\'/v2/{name=projects/*/storedInfoT" - + "ypes/*}Z5\0223/v2/{name=projects/*/location" - + "s/*/storedInfoTypes/*}\022\333\002\n\023ListStoredInf" - + "oTypes\0221.google.privacy.dlp.v2.ListStore" - + "dInfoTypesRequest\0322.google.privacy.dlp.v" - + "2.ListStoredInfoTypesResponse\"\334\001\332A\006paren" - + "t\202\323\344\223\002\314\001\022,/v2/{parent=organizations/*}/s" - + "toredInfoTypesZ:\0228/v2/{parent=organizati" - + "ons/*/locations/*}/storedInfoTypesZ)\022\'/v" - + "2/{parent=projects/*}/storedInfoTypesZ5\022" - + "3/v2/{parent=projects/*/locations/*}/sto" - + "redInfoTypes\022\277\002\n\024DeleteStoredInfoType\0222." - + "google.privacy.dlp.v2.DeleteStoredInfoTy" - + "peRequest\032\026.google.protobuf.Empty\"\332\001\332A\004n" - + "ame\202\323\344\223\002\314\001*,/v2/{name=organizations/*/st" - + "oredInfoTypes/*}Z:*8/v2/{name=organizati" - + "ons/*/locations/*/storedInfoTypes/*}Z)*\'" - + "/v2/{name=projects/*/storedInfoTypes/*}Z" - + "5*3/v2/{name=projects/*/locations/*/stor" - + "edInfoTypes/*}\022\303\001\n\023HybridInspectDlpJob\0221" - + ".google.privacy.dlp.v2.HybridInspectDlpJ" - + "obRequest\032,.google.privacy.dlp.v2.Hybrid" - + "InspectResponse\"K\332A\004name\202\323\344\223\002>\"9/v2/{nam" - + "e=projects/*/locations/*/dlpJobs/*}:hybr" - + "idInspect:\001*\022\221\001\n\014FinishDlpJob\022*.google.p" - + "rivacy.dlp.v2.FinishDlpJobRequest\032\026.goog" - + "le.protobuf.Empty\"=\202\323\344\223\0027\"2/v2/{name=pro" - + "jects/*/locations/*/dlpJobs/*}:finish:\001*" - + "\032F\312A\022dlp.googleapis.com\322A.https://www.go" - + "ogleapis.com/auth/cloud-platformB\353\002\n\031com" - + ".google.privacy.dlp.v2B\010DlpProtoP\001Z)clou" - + "d.google.com/go/dlp/apiv2/dlppb;dlppb\252\002\023" - + "Google.Cloud.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\V" - + "2\352\002\026Google::Cloud::Dlp::V2\352Ar\n\035dlp.googl" - + "eapis.com/DlpContent\022\035projects/{project}" - + "/dlpContent\0222projects/{project}/location" - + "s/{location}/dlpContent\352A\\\n\'dlp.googleap" - + "is.com/OrganizationLocation\0221organizatio" - + "ns/{organization}/locations/{location}b\006" - + "proto3" + + "s/*}:\001*Z,2\'/v2/{name=projects/*/storedIn" + + "foTypes/*}:\001*Z823/v2/{name=projects/*/lo" + + "cations/*/storedInfoTypes/*}:\001*\022\310\002\n\021GetS" + + "toredInfoType\022/.google.privacy.dlp.v2.Ge" + + "tStoredInfoTypeRequest\032%.google.privacy." + + "dlp.v2.StoredInfoType\"\332\001\332A\004name\202\323\344\223\002\314\001\022," + + "/v2/{name=organizations/*/storedInfoType" + + "s/*}Z:\0228/v2/{name=organizations/*/locati" + + "ons/*/storedInfoTypes/*}Z)\022\'/v2/{name=pr" + + "ojects/*/storedInfoTypes/*}Z5\0223/v2/{name" + + "=projects/*/locations/*/storedInfoTypes/" + + "*}\022\333\002\n\023ListStoredInfoTypes\0221.google.priv" + + "acy.dlp.v2.ListStoredInfoTypesRequest\0322." + + "google.privacy.dlp.v2.ListStoredInfoType" + + "sResponse\"\334\001\332A\006parent\202\323\344\223\002\314\001\022,/v2/{paren" + + "t=organizations/*}/storedInfoTypesZ:\0228/v" + + "2/{parent=organizations/*/locations/*}/s" + + "toredInfoTypesZ)\022\'/v2/{parent=projects/*" + + "}/storedInfoTypesZ5\0223/v2/{parent=project" + + "s/*/locations/*}/storedInfoTypes\022\277\002\n\024Del" + + "eteStoredInfoType\0222.google.privacy.dlp.v" + + "2.DeleteStoredInfoTypeRequest\032\026.google.p" + + "rotobuf.Empty\"\332\001\332A\004name\202\323\344\223\002\314\001*,/v2/{nam" + + "e=organizations/*/storedInfoTypes/*}Z:*8" + + "/v2/{name=organizations/*/locations/*/st" + + "oredInfoTypes/*}Z)*\'/v2/{name=projects/*" + + "/storedInfoTypes/*}Z5*3/v2/{name=project" + + "s/*/locations/*/storedInfoTypes/*}\022\223\002\n\027L" + + "istProjectDataProfiles\0225.google.privacy." + + "dlp.v2.ListProjectDataProfilesRequest\0326." + + "google.privacy.dlp.v2.ListProjectDataPro" + + "filesResponse\"\210\001\332A\006parent\202\323\344\223\002y\022\"9/v2/{na" + + "me=projects/*/locations/*/dlpJobs/*}:hyb" + + "ridInspect:\001*\022\221\001\n\014FinishDlpJob\022*.google." + + "privacy.dlp.v2.FinishDlpJobRequest\032\026.goo" + + "gle.protobuf.Empty\"=\202\323\344\223\0027\"2/v2/{name=pr" + + "ojects/*/locations/*/dlpJobs/*}:finish:\001" + + "*\032F\312A\022dlp.googleapis.com\322A.https://www.g" + + "oogleapis.com/auth/cloud-platformB\353\002\n\031co" + + "m.google.privacy.dlp.v2B\010DlpProtoP\001Z)clo" + + "ud.google.com/go/dlp/apiv2/dlppb;dlppb\252\002" + + "\023Google.Cloud.Dlp.V2\312\002\023Google\\Cloud\\Dlp\\" + + "V2\352\002\026Google::Cloud::Dlp::V2\352Ar\n\035dlp.goog" + + "leapis.com/DlpContent\022\035projects/{project" + + "}/dlpContent\0222projects/{project}/locatio" + + "ns/{location}/dlpContent\352A\\\n\'dlp.googlea" + + "pis.com/OrganizationLocation\0221organizati" + + "ons/{organization}/locations/{location}b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -4542,29 +4686,95 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_HybridInspectResponse_descriptor, new java.lang.String[] {}); - internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor = + internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_descriptor = getDescriptor().getMessageTypes().get(163); + internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", "OrderBy", "Filter", + }); + internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(164); + internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_descriptor, + new java.lang.String[] { + "ProjectDataProfiles", "NextPageToken", + }); + internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(165); + internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", "OrderBy", "Filter", + }); + internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(166); + internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_descriptor, + new java.lang.String[] { + "TableDataProfiles", "NextPageToken", + }); + internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(167); + internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageToken", "PageSize", "OrderBy", "Filter", + }); + internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(168); + internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_descriptor, + new java.lang.String[] { + "ColumnDataProfiles", "NextPageToken", + }); + internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor = + getDescriptor().getMessageTypes().get(169); internal_static_google_privacy_dlp_v2_DataRiskLevel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataRiskLevel_descriptor, new java.lang.String[] { "Score", }); + internal_static_google_privacy_dlp_v2_ProjectDataProfile_descriptor = + getDescriptor().getMessageTypes().get(170); + internal_static_google_privacy_dlp_v2_ProjectDataProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_ProjectDataProfile_descriptor, + new java.lang.String[] { + "Name", + "ProjectId", + "ProfileLastGenerated", + "SensitivityScore", + "DataRiskLevel", + "ProfileStatus", + }); internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_descriptor = - getDescriptor().getMessageTypes().get(164); + getDescriptor().getMessageTypes().get(171); internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfileConfigSnapshot_descriptor, new java.lang.String[] { - "InspectConfig", "DataProfileJob", + "InspectConfig", + "DataProfileJob", + "DiscoveryConfig", + "InspectTemplateName", + "InspectTemplateModifiedTime", }); internal_static_google_privacy_dlp_v2_TableDataProfile_descriptor = - getDescriptor().getMessageTypes().get(165); + getDescriptor().getMessageTypes().get(172); internal_static_google_privacy_dlp_v2_TableDataProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_TableDataProfile_descriptor, new java.lang.String[] { "Name", + "DataSourceType", "ProjectDataProfile", "DatasetProjectId", "DatasetLocation", @@ -4599,7 +4809,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_privacy_dlp_v2_ProfileStatus_descriptor = - getDescriptor().getMessageTypes().get(166); + getDescriptor().getMessageTypes().get(173); internal_static_google_privacy_dlp_v2_ProfileStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ProfileStatus_descriptor, @@ -4607,7 +4817,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Status", "Timestamp", }); internal_static_google_privacy_dlp_v2_InfoTypeSummary_descriptor = - getDescriptor().getMessageTypes().get(167); + getDescriptor().getMessageTypes().get(174); internal_static_google_privacy_dlp_v2_InfoTypeSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_InfoTypeSummary_descriptor, @@ -4615,7 +4825,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoType", "EstimatedPrevalence", }); internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_descriptor = - getDescriptor().getMessageTypes().get(168); + getDescriptor().getMessageTypes().get(175); internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_OtherInfoTypeSummary_descriptor, @@ -4623,7 +4833,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoType", "EstimatedPrevalence", "ExcludedFromAnalysis", }); internal_static_google_privacy_dlp_v2_ColumnDataProfile_descriptor = - getDescriptor().getMessageTypes().get(169); + getDescriptor().getMessageTypes().get(176); internal_static_google_privacy_dlp_v2_ColumnDataProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_ColumnDataProfile_descriptor, @@ -4649,8 +4859,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ColumnType", "PolicyState", }); + internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(177); + internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(178); + internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(179); + internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor = - getDescriptor().getMessageTypes().get(170); + getDescriptor().getMessageTypes().get(180); internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfilePubSubCondition_descriptor, @@ -4678,13 +4912,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LogicalOperator", "Conditions", }); internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_descriptor = - getDescriptor().getMessageTypes().get(171); + getDescriptor().getMessageTypes().get(181); internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_privacy_dlp_v2_DataProfilePubSubMessage_descriptor, new java.lang.String[] { "Profile", "Event", }); + internal_static_google_privacy_dlp_v2_DataSourceType_descriptor = + getDescriptor().getMessageTypes().get(182); + internal_static_google_privacy_dlp_v2_DataSourceType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_privacy_dlp_v2_DataSourceType_descriptor, + new java.lang.String[] { + "DataSource", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileType.java index 769a203db4e7..c4a017493de9 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileType.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FileType.java @@ -63,8 +63,9 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { * dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, * mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, * properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, - * shtml, shtm, xhtml, lhs, ics, ini, java, js, json, kix, kml, ocaml, md, - * txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml. + * shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, + * ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, + * yml, yaml. * * * TEXT_FILE = 2; @@ -207,8 +208,9 @@ public enum FileType implements com.google.protobuf.ProtocolMessageEnum { * dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, * mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, * properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, - * shtml, shtm, xhtml, lhs, ics, ini, java, js, json, kix, kml, ocaml, md, - * txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml. + * shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, + * ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, + * yml, yaml. * * * TEXT_FILE = 2; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FinishDlpJobRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FinishDlpJobRequest.java index 2c7c1aa65b81..d2185d8bbbdd 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FinishDlpJobRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FinishDlpJobRequest.java @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                                                                      -   * Required. The name of the DlpJob resource to be cancelled.
                                                                                      +   * Required. The name of the DlpJob resource to be finished.
                                                                                          * 
                                                                                      * * @@ -96,7 +96,7 @@ public java.lang.String getName() { * * *
                                                                                      -   * Required. The name of the DlpJob resource to be cancelled.
                                                                                      +   * Required. The name of the DlpJob resource to be finished.
                                                                                          * 
                                                                                      * * @@ -464,7 +464,7 @@ public Builder mergeFrom( * * *
                                                                                      -     * Required. The name of the DlpJob resource to be cancelled.
                                                                                      +     * Required. The name of the DlpJob resource to be finished.
                                                                                            * 
                                                                                      * * @@ -488,7 +488,7 @@ public java.lang.String getName() { * * *
                                                                                      -     * Required. The name of the DlpJob resource to be cancelled.
                                                                                      +     * Required. The name of the DlpJob resource to be finished.
                                                                                            * 
                                                                                      * * @@ -512,7 +512,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                                                                      -     * Required. The name of the DlpJob resource to be cancelled.
                                                                                      +     * Required. The name of the DlpJob resource to be finished.
                                                                                            * 
                                                                                      * * @@ -535,7 +535,7 @@ public Builder setName(java.lang.String value) { * * *
                                                                                      -     * Required. The name of the DlpJob resource to be cancelled.
                                                                                      +     * Required. The name of the DlpJob resource to be finished.
                                                                                            * 
                                                                                      * * @@ -554,7 +554,7 @@ public Builder clearName() { * * *
                                                                                      -     * Required. The name of the DlpJob resource to be cancelled.
                                                                                      +     * Required. The name of the DlpJob resource to be finished.
                                                                                            * 
                                                                                      * * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FinishDlpJobRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FinishDlpJobRequestOrBuilder.java index 83dcfadea8b9..a420af38aa7a 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FinishDlpJobRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FinishDlpJobRequestOrBuilder.java @@ -28,7 +28,7 @@ public interface FinishDlpJobRequestOrBuilder * * *
                                                                                      -   * Required. The name of the DlpJob resource to be cancelled.
                                                                                      +   * Required. The name of the DlpJob resource to be finished.
                                                                                          * 
                                                                                      * * @@ -42,7 +42,7 @@ public interface FinishDlpJobRequestOrBuilder * * *
                                                                                      -   * Required. The name of the DlpJob resource to be cancelled.
                                                                                      +   * Required. The name of the DlpJob resource to be finished.
                                                                                          * 
                                                                                      * * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfig.java index 37da3fb443ec..c4fa842ab6e9 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/FixedSizeBucketingConfig.java @@ -38,7 +38,9 @@ * being transformed, we will first attempt converting the type of the data to * be transformed to match the type of the bound before comparing. * - * See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more. + * See + * https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to + * learn more. * * * Protobuf type {@code google.privacy.dlp.v2.FixedSizeBucketingConfig} @@ -418,7 +420,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * being transformed, we will first attempt converting the type of the data to * be transformed to match the type of the bound before comparing. * - * See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more. + * See + * https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to + * learn more. * * * Protobuf type {@code google.privacy.dlp.v2.FixedSizeBucketingConfig} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetColumnDataProfileRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetColumnDataProfileRequest.java new file mode 100644 index 000000000000..065904da1372 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetColumnDataProfileRequest.java @@ -0,0 +1,647 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +/** + * + * + *
                                                                                      + * Request to get a column data profile.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.GetColumnDataProfileRequest} + */ +public final class GetColumnDataProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.GetColumnDataProfileRequest) + GetColumnDataProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetColumnDataProfileRequest.newBuilder() to construct. + private GetColumnDataProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetColumnDataProfileRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetColumnDataProfileRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.GetColumnDataProfileRequest.class, + com.google.privacy.dlp.v2.GetColumnDataProfileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                                                                      +   * Required. Resource name, for example
                                                                                      +   * `organizations/12345/locations/us/columnDataProfiles/53234423`.
                                                                                      +   * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Required. Resource name, for example
                                                                                      +   * `organizations/12345/locations/us/columnDataProfiles/53234423`.
                                                                                      +   * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.privacy.dlp.v2.GetColumnDataProfileRequest)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.GetColumnDataProfileRequest other = + (com.google.privacy.dlp.v2.GetColumnDataProfileRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.GetColumnDataProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.GetColumnDataProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.GetColumnDataProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.GetColumnDataProfileRequest 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.privacy.dlp.v2.GetColumnDataProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.GetColumnDataProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.GetColumnDataProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.GetColumnDataProfileRequest 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.privacy.dlp.v2.GetColumnDataProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.GetColumnDataProfileRequest 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.privacy.dlp.v2.GetColumnDataProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.GetColumnDataProfileRequest 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.privacy.dlp.v2.GetColumnDataProfileRequest 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 to get a column data profile.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.GetColumnDataProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.GetColumnDataProfileRequest) + com.google.privacy.dlp.v2.GetColumnDataProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.GetColumnDataProfileRequest.class, + com.google.privacy.dlp.v2.GetColumnDataProfileRequest.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.GetColumnDataProfileRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetColumnDataProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.GetColumnDataProfileRequest getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.GetColumnDataProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.GetColumnDataProfileRequest build() { + com.google.privacy.dlp.v2.GetColumnDataProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.GetColumnDataProfileRequest buildPartial() { + com.google.privacy.dlp.v2.GetColumnDataProfileRequest result = + new com.google.privacy.dlp.v2.GetColumnDataProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.GetColumnDataProfileRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.privacy.dlp.v2.GetColumnDataProfileRequest) { + return mergeFrom((com.google.privacy.dlp.v2.GetColumnDataProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.GetColumnDataProfileRequest other) { + if (other == com.google.privacy.dlp.v2.GetColumnDataProfileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + name_ = 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 name_ = ""; + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/columnDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/columnDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/columnDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/columnDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/columnDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 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.privacy.dlp.v2.GetColumnDataProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.GetColumnDataProfileRequest) + private static final com.google.privacy.dlp.v2.GetColumnDataProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.GetColumnDataProfileRequest(); + } + + public static com.google.privacy.dlp.v2.GetColumnDataProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetColumnDataProfileRequest 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.privacy.dlp.v2.GetColumnDataProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetColumnDataProfileRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetColumnDataProfileRequestOrBuilder.java new file mode 100644 index 000000000000..50610ac779eb --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetColumnDataProfileRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +public interface GetColumnDataProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.GetColumnDataProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * Required. Resource name, for example
                                                                                      +   * `organizations/12345/locations/us/columnDataProfiles/53234423`.
                                                                                      +   * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                                                                      +   * Required. Resource name, for example
                                                                                      +   * `organizations/12345/locations/us/columnDataProfiles/53234423`.
                                                                                      +   * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetProjectDataProfileRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetProjectDataProfileRequest.java new file mode 100644 index 000000000000..0918291ebab9 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetProjectDataProfileRequest.java @@ -0,0 +1,647 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +/** + * + * + *
                                                                                      + * Request to get a project data profile.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.GetProjectDataProfileRequest} + */ +public final class GetProjectDataProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.GetProjectDataProfileRequest) + GetProjectDataProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetProjectDataProfileRequest.newBuilder() to construct. + private GetProjectDataProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetProjectDataProfileRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetProjectDataProfileRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.GetProjectDataProfileRequest.class, + com.google.privacy.dlp.v2.GetProjectDataProfileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                                                                      +   * Required. Resource name, for example
                                                                                      +   * `organizations/12345/locations/us/projectDataProfiles/53234423`.
                                                                                      +   * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Required. Resource name, for example
                                                                                      +   * `organizations/12345/locations/us/projectDataProfiles/53234423`.
                                                                                      +   * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.privacy.dlp.v2.GetProjectDataProfileRequest)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.GetProjectDataProfileRequest other = + (com.google.privacy.dlp.v2.GetProjectDataProfileRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.GetProjectDataProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.GetProjectDataProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.GetProjectDataProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.GetProjectDataProfileRequest 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.privacy.dlp.v2.GetProjectDataProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.GetProjectDataProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.GetProjectDataProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.GetProjectDataProfileRequest 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.privacy.dlp.v2.GetProjectDataProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.GetProjectDataProfileRequest 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.privacy.dlp.v2.GetProjectDataProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.GetProjectDataProfileRequest 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.privacy.dlp.v2.GetProjectDataProfileRequest 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 to get a project data profile.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.GetProjectDataProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.GetProjectDataProfileRequest) + com.google.privacy.dlp.v2.GetProjectDataProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.GetProjectDataProfileRequest.class, + com.google.privacy.dlp.v2.GetProjectDataProfileRequest.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.GetProjectDataProfileRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetProjectDataProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.GetProjectDataProfileRequest getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.GetProjectDataProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.GetProjectDataProfileRequest build() { + com.google.privacy.dlp.v2.GetProjectDataProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.GetProjectDataProfileRequest buildPartial() { + com.google.privacy.dlp.v2.GetProjectDataProfileRequest result = + new com.google.privacy.dlp.v2.GetProjectDataProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.GetProjectDataProfileRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.privacy.dlp.v2.GetProjectDataProfileRequest) { + return mergeFrom((com.google.privacy.dlp.v2.GetProjectDataProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.GetProjectDataProfileRequest other) { + if (other == com.google.privacy.dlp.v2.GetProjectDataProfileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + name_ = 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 name_ = ""; + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/projectDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/projectDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/projectDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/projectDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/projectDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 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.privacy.dlp.v2.GetProjectDataProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.GetProjectDataProfileRequest) + private static final com.google.privacy.dlp.v2.GetProjectDataProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.GetProjectDataProfileRequest(); + } + + public static com.google.privacy.dlp.v2.GetProjectDataProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetProjectDataProfileRequest 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.privacy.dlp.v2.GetProjectDataProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetProjectDataProfileRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetProjectDataProfileRequestOrBuilder.java new file mode 100644 index 000000000000..e7dd3dfb96ef --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetProjectDataProfileRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +public interface GetProjectDataProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.GetProjectDataProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * Required. Resource name, for example
                                                                                      +   * `organizations/12345/locations/us/projectDataProfiles/53234423`.
                                                                                      +   * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                                                                      +   * Required. Resource name, for example
                                                                                      +   * `organizations/12345/locations/us/projectDataProfiles/53234423`.
                                                                                      +   * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetTableDataProfileRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetTableDataProfileRequest.java new file mode 100644 index 000000000000..91882aebae5f --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetTableDataProfileRequest.java @@ -0,0 +1,646 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +/** + * + * + *
                                                                                      + * Request to get a table data profile.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.GetTableDataProfileRequest} + */ +public final class GetTableDataProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.GetTableDataProfileRequest) + GetTableDataProfileRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetTableDataProfileRequest.newBuilder() to construct. + private GetTableDataProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTableDataProfileRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTableDataProfileRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.GetTableDataProfileRequest.class, + com.google.privacy.dlp.v2.GetTableDataProfileRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                                                                      +   * Required. Resource name, for example
                                                                                      +   * `organizations/12345/locations/us/tableDataProfiles/53234423`.
                                                                                      +   * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Required. Resource name, for example
                                                                                      +   * `organizations/12345/locations/us/tableDataProfiles/53234423`.
                                                                                      +   * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.privacy.dlp.v2.GetTableDataProfileRequest)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.GetTableDataProfileRequest other = + (com.google.privacy.dlp.v2.GetTableDataProfileRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.GetTableDataProfileRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.GetTableDataProfileRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.GetTableDataProfileRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.GetTableDataProfileRequest 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.privacy.dlp.v2.GetTableDataProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.GetTableDataProfileRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.GetTableDataProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.GetTableDataProfileRequest 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.privacy.dlp.v2.GetTableDataProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.GetTableDataProfileRequest 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.privacy.dlp.v2.GetTableDataProfileRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.GetTableDataProfileRequest 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.privacy.dlp.v2.GetTableDataProfileRequest 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 to get a table data profile.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.GetTableDataProfileRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.GetTableDataProfileRequest) + com.google.privacy.dlp.v2.GetTableDataProfileRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.GetTableDataProfileRequest.class, + com.google.privacy.dlp.v2.GetTableDataProfileRequest.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.GetTableDataProfileRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_GetTableDataProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.GetTableDataProfileRequest getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.GetTableDataProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.GetTableDataProfileRequest build() { + com.google.privacy.dlp.v2.GetTableDataProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.GetTableDataProfileRequest buildPartial() { + com.google.privacy.dlp.v2.GetTableDataProfileRequest result = + new com.google.privacy.dlp.v2.GetTableDataProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.GetTableDataProfileRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.privacy.dlp.v2.GetTableDataProfileRequest) { + return mergeFrom((com.google.privacy.dlp.v2.GetTableDataProfileRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.GetTableDataProfileRequest other) { + if (other == com.google.privacy.dlp.v2.GetTableDataProfileRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + name_ = 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 name_ = ""; + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/tableDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/tableDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/tableDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/tableDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Required. Resource name, for example
                                                                                      +     * `organizations/12345/locations/us/tableDataProfiles/53234423`.
                                                                                      +     * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 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.privacy.dlp.v2.GetTableDataProfileRequest) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.GetTableDataProfileRequest) + private static final com.google.privacy.dlp.v2.GetTableDataProfileRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.GetTableDataProfileRequest(); + } + + public static com.google.privacy.dlp.v2.GetTableDataProfileRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTableDataProfileRequest 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.privacy.dlp.v2.GetTableDataProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetTableDataProfileRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetTableDataProfileRequestOrBuilder.java new file mode 100644 index 000000000000..825ffbd7314f --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/GetTableDataProfileRequestOrBuilder.java @@ -0,0 +1,57 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +public interface GetTableDataProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.GetTableDataProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * Required. Resource name, for example
                                                                                      +   * `organizations/12345/locations/us/tableDataProfiles/53234423`.
                                                                                      +   * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                                                                      +   * Required. Resource name, for example
                                                                                      +   * `organizations/12345/locations/us/tableDataProfiles/53234423`.
                                                                                      +   * 
                                                                                      + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformations.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformations.java index 5b9e72b7074c..974d05cf3c5b 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformations.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformations.java @@ -4191,6 +4191,12 @@ public com.google.protobuf.Parser getParserForType() { private java.util.List transforms_; /** + * + * + *
                                                                                      +   * List of transforms to make.
                                                                                      +   * 
                                                                                      + * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * */ @@ -4200,6 +4206,12 @@ public com.google.protobuf.Parser getParserForType() { return transforms_; } /** + * + * + *
                                                                                      +   * List of transforms to make.
                                                                                      +   * 
                                                                                      + * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * */ @@ -4210,6 +4222,12 @@ public com.google.protobuf.Parser getParserForType() { return transforms_; } /** + * + * + *
                                                                                      +   * List of transforms to make.
                                                                                      +   * 
                                                                                      + * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * */ @@ -4218,6 +4236,12 @@ public int getTransformsCount() { return transforms_.size(); } /** + * + * + *
                                                                                      +   * List of transforms to make.
                                                                                      +   * 
                                                                                      + * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * */ @@ -4227,6 +4251,12 @@ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation getTra return transforms_.get(index); } /** + * + * + *
                                                                                      +   * List of transforms to make.
                                                                                      +   * 
                                                                                      + * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * */ @@ -4644,6 +4674,12 @@ private void ensureTransformsIsMutable() { transformsBuilder_; /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4657,6 +4693,12 @@ private void ensureTransformsIsMutable() { } } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4669,6 +4711,12 @@ public int getTransformsCount() { } } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4682,6 +4730,12 @@ public com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation getTra } } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4701,6 +4755,12 @@ public Builder setTransforms( return this; } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4719,6 +4779,12 @@ public Builder setTransforms( return this; } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4738,6 +4804,12 @@ public Builder addTransforms( return this; } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4757,6 +4829,12 @@ public Builder addTransforms( return this; } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4774,6 +4852,12 @@ public Builder addTransforms( return this; } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4792,6 +4876,12 @@ public Builder addTransforms( return this; } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4810,6 +4900,12 @@ public Builder addAllTransforms( return this; } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4825,6 +4921,12 @@ public Builder clearTransforms() { return this; } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4840,6 +4942,12 @@ public Builder removeTransforms(int index) { return this; } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4849,6 +4957,12 @@ public Builder removeTransforms(int index) { return getTransformsFieldBuilder().getBuilder(index); } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4862,6 +4976,12 @@ public Builder removeTransforms(int index) { } } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4876,6 +4996,12 @@ public Builder removeTransforms(int index) { } } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4888,6 +5014,12 @@ public Builder removeTransforms(int index) { .getDefaultInstance()); } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * @@ -4901,6 +5033,12 @@ public Builder removeTransforms(int index) { .getDefaultInstance()); } /** + * + * + *
                                                                                      +     * List of transforms to make.
                                                                                      +     * 
                                                                                      + * * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformationsOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformationsOrBuilder.java index 4dff553de71f..b6a9671796a7 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformationsOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ImageTransformationsOrBuilder.java @@ -25,22 +25,46 @@ public interface ImageTransformationsOrBuilder com.google.protobuf.MessageOrBuilder { /** + * + * + *
                                                                                      +   * List of transforms to make.
                                                                                      +   * 
                                                                                      + * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * */ java.util.List getTransformsList(); /** + * + * + *
                                                                                      +   * List of transforms to make.
                                                                                      +   * 
                                                                                      + * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * */ com.google.privacy.dlp.v2.ImageTransformations.ImageTransformation getTransforms(int index); /** + * + * + *
                                                                                      +   * List of transforms to make.
                                                                                      +   * 
                                                                                      + * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * */ int getTransformsCount(); /** + * + * + *
                                                                                      +   * List of transforms to make.
                                                                                      +   * 
                                                                                      + * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * */ @@ -48,6 +72,12 @@ public interface ImageTransformationsOrBuilder ? extends com.google.privacy.dlp.v2.ImageTransformations.ImageTransformationOrBuilder> getTransformsOrBuilderList(); /** + * + * + *
                                                                                      +   * List of transforms to make.
                                                                                      +   * 
                                                                                      + * * repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; * */ diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoType.java index 8803647d3992..5e0a8079c4d8 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoType.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoType.java @@ -75,9 +75,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                                                                                          * Name of the information type. Either a name of your choosing when
                                                                                          * creating a CustomInfoType, or one of the names listed
                                                                                      -   * at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
                                                                                      -   * a built-in type.  When sending Cloud DLP results to Data Catalog, infoType
                                                                                      -   * names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`.
                                                                                      +   * at
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
                                                                                      +   * when specifying a built-in type.  When sending Cloud DLP results to Data
                                                                                      +   * Catalog, infoType names should conform to the pattern
                                                                                      +   * `[A-Za-z0-9$_-]{1,64}`.
                                                                                          * 
                                                                                      * * string name = 1; @@ -102,9 +104,11 @@ public java.lang.String getName() { *
                                                                                          * Name of the information type. Either a name of your choosing when
                                                                                          * creating a CustomInfoType, or one of the names listed
                                                                                      -   * at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
                                                                                      -   * a built-in type.  When sending Cloud DLP results to Data Catalog, infoType
                                                                                      -   * names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`.
                                                                                      +   * at
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
                                                                                      +   * when specifying a built-in type.  When sending Cloud DLP results to Data
                                                                                      +   * Catalog, infoType names should conform to the pattern
                                                                                      +   * `[A-Za-z0-9$_-]{1,64}`.
                                                                                          * 
                                                                                      * * string name = 1; @@ -642,9 +646,11 @@ public Builder mergeFrom( *
                                                                                            * Name of the information type. Either a name of your choosing when
                                                                                            * creating a CustomInfoType, or one of the names listed
                                                                                      -     * at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
                                                                                      -     * a built-in type.  When sending Cloud DLP results to Data Catalog, infoType
                                                                                      -     * names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`.
                                                                                      +     * at
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
                                                                                      +     * when specifying a built-in type.  When sending Cloud DLP results to Data
                                                                                      +     * Catalog, infoType names should conform to the pattern
                                                                                      +     * `[A-Za-z0-9$_-]{1,64}`.
                                                                                            * 
                                                                                      * * string name = 1; @@ -668,9 +674,11 @@ public java.lang.String getName() { *
                                                                                            * Name of the information type. Either a name of your choosing when
                                                                                            * creating a CustomInfoType, or one of the names listed
                                                                                      -     * at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
                                                                                      -     * a built-in type.  When sending Cloud DLP results to Data Catalog, infoType
                                                                                      -     * names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`.
                                                                                      +     * at
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
                                                                                      +     * when specifying a built-in type.  When sending Cloud DLP results to Data
                                                                                      +     * Catalog, infoType names should conform to the pattern
                                                                                      +     * `[A-Za-z0-9$_-]{1,64}`.
                                                                                            * 
                                                                                      * * string name = 1; @@ -694,9 +702,11 @@ public com.google.protobuf.ByteString getNameBytes() { *
                                                                                            * Name of the information type. Either a name of your choosing when
                                                                                            * creating a CustomInfoType, or one of the names listed
                                                                                      -     * at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
                                                                                      -     * a built-in type.  When sending Cloud DLP results to Data Catalog, infoType
                                                                                      -     * names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`.
                                                                                      +     * at
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
                                                                                      +     * when specifying a built-in type.  When sending Cloud DLP results to Data
                                                                                      +     * Catalog, infoType names should conform to the pattern
                                                                                      +     * `[A-Za-z0-9$_-]{1,64}`.
                                                                                            * 
                                                                                      * * string name = 1; @@ -719,9 +729,11 @@ public Builder setName(java.lang.String value) { *
                                                                                            * Name of the information type. Either a name of your choosing when
                                                                                            * creating a CustomInfoType, or one of the names listed
                                                                                      -     * at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
                                                                                      -     * a built-in type.  When sending Cloud DLP results to Data Catalog, infoType
                                                                                      -     * names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`.
                                                                                      +     * at
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
                                                                                      +     * when specifying a built-in type.  When sending Cloud DLP results to Data
                                                                                      +     * Catalog, infoType names should conform to the pattern
                                                                                      +     * `[A-Za-z0-9$_-]{1,64}`.
                                                                                            * 
                                                                                      * * string name = 1; @@ -740,9 +752,11 @@ public Builder clearName() { *
                                                                                            * Name of the information type. Either a name of your choosing when
                                                                                            * creating a CustomInfoType, or one of the names listed
                                                                                      -     * at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
                                                                                      -     * a built-in type.  When sending Cloud DLP results to Data Catalog, infoType
                                                                                      -     * names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`.
                                                                                      +     * at
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
                                                                                      +     * when specifying a built-in type.  When sending Cloud DLP results to Data
                                                                                      +     * Catalog, infoType names should conform to the pattern
                                                                                      +     * `[A-Za-z0-9$_-]{1,64}`.
                                                                                            * 
                                                                                      * * string name = 1; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeOrBuilder.java index e0112d7c67bc..57bd79606ba5 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeOrBuilder.java @@ -30,9 +30,11 @@ public interface InfoTypeOrBuilder *
                                                                                          * Name of the information type. Either a name of your choosing when
                                                                                          * creating a CustomInfoType, or one of the names listed
                                                                                      -   * at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
                                                                                      -   * a built-in type.  When sending Cloud DLP results to Data Catalog, infoType
                                                                                      -   * names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`.
                                                                                      +   * at
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
                                                                                      +   * when specifying a built-in type.  When sending Cloud DLP results to Data
                                                                                      +   * Catalog, infoType names should conform to the pattern
                                                                                      +   * `[A-Za-z0-9$_-]{1,64}`.
                                                                                          * 
                                                                                      * * string name = 1; @@ -46,9 +48,11 @@ public interface InfoTypeOrBuilder *
                                                                                          * Name of the information type. Either a name of your choosing when
                                                                                          * creating a CustomInfoType, or one of the names listed
                                                                                      -   * at https://cloud.google.com/dlp/docs/infotypes-reference when specifying
                                                                                      -   * a built-in type.  When sending Cloud DLP results to Data Catalog, infoType
                                                                                      -   * names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`.
                                                                                      +   * at
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference
                                                                                      +   * when specifying a built-in type.  When sending Cloud DLP results to Data
                                                                                      +   * Catalog, infoType names should conform to the pattern
                                                                                      +   * `[A-Za-z0-9$_-]{1,64}`.
                                                                                          * 
                                                                                      * * string name = 1; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java index 21f2c2c887a7..b083d2f45297 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java @@ -120,7 +120,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=5965 + * google/privacy/dlp/v2/dlp.proto;l=6408 * @return The estimatedPrevalence. */ @java.lang.Override @@ -707,7 +707,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=5965 + * google/privacy/dlp/v2/dlp.proto;l=6408 * @return The estimatedPrevalence. */ @java.lang.Override @@ -725,7 +725,7 @@ public int getEstimatedPrevalence() { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=5965 + * google/privacy/dlp/v2/dlp.proto;l=6408 * @param value The estimatedPrevalence to set. * @return This builder for chaining. */ @@ -747,7 +747,7 @@ public Builder setEstimatedPrevalence(int value) { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=5965 + * google/privacy/dlp/v2/dlp.proto;l=6408 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java index aee030357f7b..98b1906d3310 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java @@ -69,7 +69,7 @@ public interface InfoTypeSummaryOrBuilder * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=5965 + * google/privacy/dlp/v2/dlp.proto;l=6408 * @return The estimatedPrevalence. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java index 79ff56d2faf2..ccee3a21caac 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfig.java @@ -3376,7 +3376,7 @@ public com.google.privacy.dlp.v2.InspectConfig.FindingLimits getDefaultInstanceF *
                                                                                          * Restricts what info_types to look for. The values must correspond to
                                                                                          * InfoType values returned by ListInfoTypes or listed at
                                                                                      -   * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                          *
                                                                                          * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                          * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -3399,7 +3399,7 @@ public java.util.List getInfoTypesList() {
                                                                                          * 
                                                                                          * Restricts what info_types to look for. The values must correspond to
                                                                                          * InfoType values returned by ListInfoTypes or listed at
                                                                                      -   * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                          *
                                                                                          * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                          * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -3423,7 +3423,7 @@ public java.util.List getInfoTypesList() {
                                                                                          * 
                                                                                          * Restricts what info_types to look for. The values must correspond to
                                                                                          * InfoType values returned by ListInfoTypes or listed at
                                                                                      -   * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                          *
                                                                                          * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                          * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -3446,7 +3446,7 @@ public int getInfoTypesCount() {
                                                                                          * 
                                                                                          * Restricts what info_types to look for. The values must correspond to
                                                                                          * InfoType values returned by ListInfoTypes or listed at
                                                                                      -   * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                          *
                                                                                          * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                          * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -3469,7 +3469,7 @@ public com.google.privacy.dlp.v2.InfoType getInfoTypes(int index) {
                                                                                          * 
                                                                                          * Restricts what info_types to look for. The values must correspond to
                                                                                          * InfoType values returned by ListInfoTypes or listed at
                                                                                      -   * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                          *
                                                                                          * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                          * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -3498,7 +3498,8 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypesOrBuilder(int ind
                                                                                          *
                                                                                          * In general, the highest likelihood setting yields the fewest findings in
                                                                                          * results and the lowest chance of a false positive. For more information,
                                                                                      -   * see [Match likelihood](https://cloud.google.com/dlp/docs/likelihood).
                                                                                      +   * see [Match
                                                                                      +   * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood).
                                                                                          * 
                                                                                      * * .google.privacy.dlp.v2.Likelihood min_likelihood = 2; @@ -3518,7 +3519,8 @@ public int getMinLikelihoodValue() { * * In general, the highest likelihood setting yields the fewest findings in * results and the lowest chance of a false positive. For more information, - * see [Match likelihood](https://cloud.google.com/dlp/docs/likelihood). + * see [Match + * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). *
                                                                                      * * .google.privacy.dlp.v2.Likelihood min_likelihood = 2; @@ -3774,7 +3776,8 @@ public boolean getExcludeInfoTypes() { * *
                                                                                          * CustomInfoTypes provided by the user. See
                                                                                      -   * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -3788,7 +3791,8 @@ public java.util.List getCustomInfoTyp * *
                                                                                          * CustomInfoTypes provided by the user. See
                                                                                      -   * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -3803,7 +3807,8 @@ public java.util.List getCustomInfoTyp * *
                                                                                          * CustomInfoTypes provided by the user. See
                                                                                      -   * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -3817,7 +3822,8 @@ public int getCustomInfoTypesCount() { * *
                                                                                          * CustomInfoTypes provided by the user. See
                                                                                      -   * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -3831,7 +3837,8 @@ public com.google.privacy.dlp.v2.CustomInfoType getCustomInfoTypes(int index) { * *
                                                                                          * CustomInfoTypes provided by the user. See
                                                                                      -   * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -4812,7 +4819,7 @@ private void ensureInfoTypesIsMutable() { *
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -4838,7 +4845,7 @@ public java.util.List getInfoTypesList() {
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -4864,7 +4871,7 @@ public int getInfoTypesCount() {
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -4890,7 +4897,7 @@ public com.google.privacy.dlp.v2.InfoType getInfoTypes(int index) {
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -4922,7 +4929,7 @@ public Builder setInfoTypes(int index, com.google.privacy.dlp.v2.InfoType value)
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -4952,7 +4959,7 @@ public Builder setInfoTypes(
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -4984,7 +4991,7 @@ public Builder addInfoTypes(com.google.privacy.dlp.v2.InfoType value) {
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -5016,7 +5023,7 @@ public Builder addInfoTypes(int index, com.google.privacy.dlp.v2.InfoType value)
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -5045,7 +5052,7 @@ public Builder addInfoTypes(com.google.privacy.dlp.v2.InfoType.Builder builderFo
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -5075,7 +5082,7 @@ public Builder addInfoTypes(
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -5105,7 +5112,7 @@ public Builder addAllInfoTypes(
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -5134,7 +5141,7 @@ public Builder clearInfoTypes() {
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -5163,7 +5170,7 @@ public Builder removeInfoTypes(int index) {
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -5185,7 +5192,7 @@ public com.google.privacy.dlp.v2.InfoType.Builder getInfoTypesBuilder(int index)
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -5211,7 +5218,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypesOrBuilder(int ind
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -5238,7 +5245,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypesOrBuilder(int ind
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -5261,7 +5268,7 @@ public com.google.privacy.dlp.v2.InfoType.Builder addInfoTypesBuilder() {
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -5284,7 +5291,7 @@ public com.google.privacy.dlp.v2.InfoType.Builder addInfoTypesBuilder(int index)
                                                                                            * 
                                                                                            * Restricts what info_types to look for. The values must correspond to
                                                                                            * InfoType values returned by ListInfoTypes or listed at
                                                                                      -     * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                            *
                                                                                            * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                            * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -5328,7 +5335,8 @@ public java.util.List getInfoTypesBu
                                                                                            *
                                                                                            * In general, the highest likelihood setting yields the fewest findings in
                                                                                            * results and the lowest chance of a false positive. For more information,
                                                                                      -     * see [Match likelihood](https://cloud.google.com/dlp/docs/likelihood).
                                                                                      +     * see [Match
                                                                                      +     * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood).
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.Likelihood min_likelihood = 2; @@ -5348,7 +5356,8 @@ public int getMinLikelihoodValue() { * * In general, the highest likelihood setting yields the fewest findings in * results and the lowest chance of a false positive. For more information, - * see [Match likelihood](https://cloud.google.com/dlp/docs/likelihood). + * see [Match + * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). *
                                                                                      * * .google.privacy.dlp.v2.Likelihood min_likelihood = 2; @@ -5371,7 +5380,8 @@ public Builder setMinLikelihoodValue(int value) { * * In general, the highest likelihood setting yields the fewest findings in * results and the lowest chance of a false positive. For more information, - * see [Match likelihood](https://cloud.google.com/dlp/docs/likelihood). + * see [Match + * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). *
                                                                                      * * .google.privacy.dlp.v2.Likelihood min_likelihood = 2; @@ -5393,7 +5403,8 @@ public com.google.privacy.dlp.v2.Likelihood getMinLikelihood() { * * In general, the highest likelihood setting yields the fewest findings in * results and the lowest chance of a false positive. For more information, - * see [Match likelihood](https://cloud.google.com/dlp/docs/likelihood). + * see [Match + * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). *
                                                                                      * * .google.privacy.dlp.v2.Likelihood min_likelihood = 2; @@ -5419,7 +5430,8 @@ public Builder setMinLikelihood(com.google.privacy.dlp.v2.Likelihood value) { * * In general, the highest likelihood setting yields the fewest findings in * results and the lowest chance of a false positive. For more information, - * see [Match likelihood](https://cloud.google.com/dlp/docs/likelihood). + * see [Match + * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). *
                                                                                      * * .google.privacy.dlp.v2.Likelihood min_likelihood = 2; @@ -6347,7 +6359,8 @@ private void ensureCustomInfoTypesIsMutable() { * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6364,7 +6377,8 @@ public java.util.List getCustomInfoTyp * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6381,7 +6395,8 @@ public int getCustomInfoTypesCount() { * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6398,7 +6413,8 @@ public com.google.privacy.dlp.v2.CustomInfoType getCustomInfoTypes(int index) { * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6421,7 +6437,8 @@ public Builder setCustomInfoTypes(int index, com.google.privacy.dlp.v2.CustomInf * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6442,7 +6459,8 @@ public Builder setCustomInfoTypes( * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6465,7 +6483,8 @@ public Builder addCustomInfoTypes(com.google.privacy.dlp.v2.CustomInfoType value * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6488,7 +6507,8 @@ public Builder addCustomInfoTypes(int index, com.google.privacy.dlp.v2.CustomInf * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6509,7 +6529,8 @@ public Builder addCustomInfoTypes( * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6530,7 +6551,8 @@ public Builder addCustomInfoTypes( * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6551,7 +6573,8 @@ public Builder addAllCustomInfoTypes( * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6571,7 +6594,8 @@ public Builder clearCustomInfoTypes() { * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6591,7 +6615,8 @@ public Builder removeCustomInfoTypes(int index) { * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6604,7 +6629,8 @@ public com.google.privacy.dlp.v2.CustomInfoType.Builder getCustomInfoTypesBuilde * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6622,7 +6648,8 @@ public com.google.privacy.dlp.v2.CustomInfoTypeOrBuilder getCustomInfoTypesOrBui * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6640,7 +6667,8 @@ public com.google.privacy.dlp.v2.CustomInfoTypeOrBuilder getCustomInfoTypesOrBui * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6654,7 +6682,8 @@ public com.google.privacy.dlp.v2.CustomInfoType.Builder addCustomInfoTypesBuilde * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -6668,7 +6697,8 @@ public com.google.privacy.dlp.v2.CustomInfoType.Builder addCustomInfoTypesBuilde * *
                                                                                            * CustomInfoTypes provided by the user. See
                                                                                      -     * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +     * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +     * to learn more.
                                                                                            * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java index e6b74c904cd4..abdf3dff11d0 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectConfigOrBuilder.java @@ -30,7 +30,7 @@ public interface InspectConfigOrBuilder *
                                                                                          * Restricts what info_types to look for. The values must correspond to
                                                                                          * InfoType values returned by ListInfoTypes or listed at
                                                                                      -   * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                          *
                                                                                          * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                          * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -50,7 +50,7 @@ public interface InspectConfigOrBuilder
                                                                                          * 
                                                                                          * Restricts what info_types to look for. The values must correspond to
                                                                                          * InfoType values returned by ListInfoTypes or listed at
                                                                                      -   * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                          *
                                                                                          * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                          * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -70,7 +70,7 @@ public interface InspectConfigOrBuilder
                                                                                          * 
                                                                                          * Restricts what info_types to look for. The values must correspond to
                                                                                          * InfoType values returned by ListInfoTypes or listed at
                                                                                      -   * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                          *
                                                                                          * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                          * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -90,7 +90,7 @@ public interface InspectConfigOrBuilder
                                                                                          * 
                                                                                          * Restricts what info_types to look for. The values must correspond to
                                                                                          * InfoType values returned by ListInfoTypes or listed at
                                                                                      -   * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                          *
                                                                                          * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                          * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -110,7 +110,7 @@ public interface InspectConfigOrBuilder
                                                                                          * 
                                                                                          * Restricts what info_types to look for. The values must correspond to
                                                                                          * InfoType values returned by ListInfoTypes or listed at
                                                                                      -   * https://cloud.google.com/dlp/docs/infotypes-reference.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference.
                                                                                          *
                                                                                          * When no InfoTypes or CustomInfoTypes are specified in a request, the
                                                                                          * system may automatically choose a default list of detectors to run, which
                                                                                      @@ -134,7 +134,8 @@ public interface InspectConfigOrBuilder
                                                                                          *
                                                                                          * In general, the highest likelihood setting yields the fewest findings in
                                                                                          * results and the lowest chance of a false positive. For more information,
                                                                                      -   * see [Match likelihood](https://cloud.google.com/dlp/docs/likelihood).
                                                                                      +   * see [Match
                                                                                      +   * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood).
                                                                                          * 
                                                                                      * * .google.privacy.dlp.v2.Likelihood min_likelihood = 2; @@ -151,7 +152,8 @@ public interface InspectConfigOrBuilder * * In general, the highest likelihood setting yields the fewest findings in * results and the lowest chance of a false positive. For more information, - * see [Match likelihood](https://cloud.google.com/dlp/docs/likelihood). + * see [Match + * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). *
                                                                                      * * .google.privacy.dlp.v2.Likelihood min_likelihood = 2; @@ -351,7 +353,8 @@ public interface InspectConfigOrBuilder * *
                                                                                          * CustomInfoTypes provided by the user. See
                                                                                      -   * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -362,7 +365,8 @@ public interface InspectConfigOrBuilder * *
                                                                                          * CustomInfoTypes provided by the user. See
                                                                                      -   * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -373,7 +377,8 @@ public interface InspectConfigOrBuilder * *
                                                                                          * CustomInfoTypes provided by the user. See
                                                                                      -   * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -384,7 +389,8 @@ public interface InspectConfigOrBuilder * *
                                                                                          * CustomInfoTypes provided by the user. See
                                                                                      -   * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; @@ -396,7 +402,8 @@ public interface InspectConfigOrBuilder * *
                                                                                          * CustomInfoTypes provided by the user. See
                                                                                      -   * https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequest.java index 0e002549f454..59b412d1c3ca 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequest.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -116,7 +116,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -832,7 +832,7 @@ public Builder mergeFrom( * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -869,7 +869,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -906,7 +906,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -942,7 +942,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -974,7 +974,7 @@ public Builder clearParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequestOrBuilder.java index 782a8601c011..d4e19d41f59c 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectContentRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface InspectContentRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -59,7 +59,7 @@ public interface InspectContentRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplate.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplate.java index b408b01cb280..97ab59de0500 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplate.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplate.java @@ -25,8 +25,9 @@ *
                                                                                        * The inspectTemplate contains a configuration (set of types of sensitive data
                                                                                        * to be detected) to be used anywhere you otherwise would normally specify
                                                                                      - * InspectConfig. See https://cloud.google.com/dlp/docs/concepts-templates
                                                                                      - * to learn more.
                                                                                      + * InspectConfig. See
                                                                                      + * https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to
                                                                                      + * learn more.
                                                                                        * 
                                                                                      * * Protobuf type {@code google.privacy.dlp.v2.InspectTemplate} @@ -603,8 +604,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
                                                                                          * The inspectTemplate contains a configuration (set of types of sensitive data
                                                                                          * to be detected) to be used anywhere you otherwise would normally specify
                                                                                      -   * InspectConfig. See https://cloud.google.com/dlp/docs/concepts-templates
                                                                                      -   * to learn more.
                                                                                      +   * InspectConfig. See
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to
                                                                                      +   * learn more.
                                                                                          * 
                                                                                      * * Protobuf type {@code google.privacy.dlp.v2.InspectTemplate} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTrigger.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTrigger.java index 2cf636a6d040..a6056f5d0270 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTrigger.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/JobTrigger.java @@ -24,7 +24,9 @@ * *
                                                                                        * Contains a configuration to make dlp api calls on a repeating basis.
                                                                                      - * See https://cloud.google.com/dlp/docs/concepts-job-triggers to learn more.
                                                                                      + * See
                                                                                      + * https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers
                                                                                      + * to learn more.
                                                                                        * 
                                                                                      * * Protobuf type {@code google.privacy.dlp.v2.JobTrigger} @@ -2317,7 +2319,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
                                                                                          * Contains a configuration to make dlp api calls on a repeating basis.
                                                                                      -   * See https://cloud.google.com/dlp/docs/concepts-job-triggers to learn more.
                                                                                      +   * See
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * Protobuf type {@code google.privacy.dlp.v2.JobTrigger} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/KmsWrappedCryptoKey.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/KmsWrappedCryptoKey.java index 9feb03e6b841..8f95cff973e2 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/KmsWrappedCryptoKey.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/KmsWrappedCryptoKey.java @@ -30,7 +30,7 @@ * dlp.kms.encrypt * * For more information, see [Creating a wrapped key] - * (https://cloud.google.com/dlp/docs/create-wrapped-key). + * (https://cloud.google.com/sensitive-data-protection/docs/create-wrapped-key). * * Note: When you use Cloud KMS for cryptographic operations, * [charges apply](https://cloud.google.com/kms/pricing). @@ -322,7 +322,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * dlp.kms.encrypt * * For more information, see [Creating a wrapped key] - * (https://cloud.google.com/dlp/docs/create-wrapped-key). + * (https://cloud.google.com/sensitive-data-protection/docs/create-wrapped-key). * * Note: When you use Cloud KMS for cryptographic operations, * [charges apply](https://cloud.google.com/kms/pricing). diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfig.java index e93547266c97..acd77c463576 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/LargeCustomDictionaryConfig.java @@ -25,8 +25,8 @@ *
                                                                                        * Configuration for a custom dictionary created from a data source of any size
                                                                                        * up to the maximum size defined in the
                                                                                      - * [limits](https://cloud.google.com/dlp/limits) page. The artifacts of
                                                                                      - * dictionary creation are stored in the specified Cloud Storage
                                                                                      + * [limits](https://cloud.google.com/sensitive-data-protection/limits) page. The
                                                                                      + * artifacts of dictionary creation are stored in the specified Cloud Storage
                                                                                        * location. Consider using `CustomInfoType.Dictionary` for smaller dictionaries
                                                                                        * that satisfy the size requirements.
                                                                                        * 
                                                                                      @@ -487,8 +487,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
                                                                                          * Configuration for a custom dictionary created from a data source of any size
                                                                                          * up to the maximum size defined in the
                                                                                      -   * [limits](https://cloud.google.com/dlp/limits) page. The artifacts of
                                                                                      -   * dictionary creation are stored in the specified Cloud Storage
                                                                                      +   * [limits](https://cloud.google.com/sensitive-data-protection/limits) page. The
                                                                                      +   * artifacts of dictionary creation are stored in the specified Cloud Storage
                                                                                          * location. Consider using `CustomInfoType.Dictionary` for smaller dictionaries
                                                                                          * that satisfy the size requirements.
                                                                                          * 
                                                                                      diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Likelihood.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Likelihood.java index e57e2b020808..cfe1e94f307a 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Likelihood.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Likelihood.java @@ -37,7 +37,7 @@ * * For more information about each likelihood level * and how likelihood works, see [Match - * likelihood](https://cloud.google.com/dlp/docs/likelihood). + * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). *
                                                                                      * * Protobuf enum {@code google.privacy.dlp.v2.Likelihood} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesRequest.java new file mode 100644 index 000000000000..718edbe7b336 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesRequest.java @@ -0,0 +1,1626 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +/** + * + * + *
                                                                                      + * Request to list the profiles generated for a given organization or project.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ListColumnDataProfilesRequest} + */ +public final class ListColumnDataProfilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ListColumnDataProfilesRequest) + ListColumnDataProfilesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListColumnDataProfilesRequest.newBuilder() to construct. + private ListColumnDataProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListColumnDataProfilesRequest() { + parent_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListColumnDataProfilesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest.class, + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
                                                                                      +   * Required. Resource name of the organization or project, for
                                                                                      +   * example `organizations/433245324/locations/europe` or
                                                                                      +   * `projects/project-id/locations/asia`.
                                                                                      +   * 
                                                                                      + * + * + * 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. Resource name of the organization or project, for
                                                                                      +   * example `organizations/433245324/locations/europe` or
                                                                                      +   * `projects/project-id/locations/asia`.
                                                                                      +   * 
                                                                                      + * + * + * 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 PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
                                                                                      +   * Page token to continue retrieval.
                                                                                      +   * 
                                                                                      + * + * string page_token = 2; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Page token to continue retrieval.
                                                                                      +   * 
                                                                                      + * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
                                                                                      +   * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +   * returns a page of max size 100.
                                                                                      +   * 
                                                                                      + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
                                                                                      +   * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +   * postfix. This list is case insensitive. The default sorting order is
                                                                                      +   * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +   * field at a time is allowed.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   * * `project_id asc`
                                                                                      +   * * `table_id`
                                                                                      +   * * `sensitivity_level desc`
                                                                                      +   *
                                                                                      +   * Supported fields are:
                                                                                      +   *
                                                                                      +   * - `project_id`: The Google Cloud project ID.
                                                                                      +   * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +   * - `table_id`: The ID of a BigQuery table.
                                                                                      +   * - `sensitivity_level`: How sensitive the data in a column is, at most.
                                                                                      +   * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +   * seconds.
                                                                                      +   * 
                                                                                      + * + * string order_by = 4; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +   * postfix. This list is case insensitive. The default sorting order is
                                                                                      +   * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +   * field at a time is allowed.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   * * `project_id asc`
                                                                                      +   * * `table_id`
                                                                                      +   * * `sensitivity_level desc`
                                                                                      +   *
                                                                                      +   * Supported fields are:
                                                                                      +   *
                                                                                      +   * - `project_id`: The Google Cloud project ID.
                                                                                      +   * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +   * - `table_id`: The ID of a BigQuery table.
                                                                                      +   * - `sensitivity_level`: How sensitive the data in a column is, at most.
                                                                                      +   * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +   * seconds.
                                                                                      +   * 
                                                                                      + * + * string order_by = 4; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
                                                                                      +   * Allows filtering.
                                                                                      +   *
                                                                                      +   * Supported syntax:
                                                                                      +   *
                                                                                      +   * * Filter expressions are made up of one or more restrictions.
                                                                                      +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +   * sequence of restrictions implicitly uses `AND`.
                                                                                      +   * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +   * * Supported fields/values:
                                                                                      +   *     - `table_data_profile_name` - The name of the related table data
                                                                                      +   *     profile.
                                                                                      +   *     - `project_id` - The Google Cloud project ID. (REQUIRED)
                                                                                      +   *     - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
                                                                                      +   *     - `table_id` - The BigQuery table ID. (REQUIRED)
                                                                                      +   *     - `field_id` - The ID of the BigQuery field.
                                                                                      +   *     - `info_type` - The infotype detected in the resource.
                                                                                      +   *     - `sensitivity_level` - HIGH|MEDIUM|LOW
                                                                                      +   *     - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   *     - `status_code` - an RPC status code as defined in
                                                                                      +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +   * * The operator must be `=` for project_id, dataset_id, and table_id. Other
                                                                                      +   *   filters also support `!=`.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   *
                                                                                      +   * * project_id = 12345 AND status_code = 1
                                                                                      +   * * project_id = 12345 AND sensitivity_level = HIGH
                                                                                      +   * * project_id = 12345 AND info_type = STREET_ADDRESS
                                                                                      +   *
                                                                                      +   * The length of this field should be no more than 500 characters.
                                                                                      +   * 
                                                                                      + * + * string filter = 5; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Allows filtering.
                                                                                      +   *
                                                                                      +   * Supported syntax:
                                                                                      +   *
                                                                                      +   * * Filter expressions are made up of one or more restrictions.
                                                                                      +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +   * sequence of restrictions implicitly uses `AND`.
                                                                                      +   * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +   * * Supported fields/values:
                                                                                      +   *     - `table_data_profile_name` - The name of the related table data
                                                                                      +   *     profile.
                                                                                      +   *     - `project_id` - The Google Cloud project ID. (REQUIRED)
                                                                                      +   *     - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
                                                                                      +   *     - `table_id` - The BigQuery table ID. (REQUIRED)
                                                                                      +   *     - `field_id` - The ID of the BigQuery field.
                                                                                      +   *     - `info_type` - The infotype detected in the resource.
                                                                                      +   *     - `sensitivity_level` - HIGH|MEDIUM|LOW
                                                                                      +   *     - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   *     - `status_code` - an RPC status code as defined in
                                                                                      +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +   * * The operator must be `=` for project_id, dataset_id, and table_id. Other
                                                                                      +   *   filters also support `!=`.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   *
                                                                                      +   * * project_id = 12345 AND status_code = 1
                                                                                      +   * * project_id = 12345 AND sensitivity_level = HIGH
                                                                                      +   * * project_id = 12345 AND info_type = STREET_ADDRESS
                                                                                      +   *
                                                                                      +   * The length of this field should be no more than 500 characters.
                                                                                      +   * 
                                                                                      + * + * string filter = 5; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } + 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.privacy.dlp.v2.ListColumnDataProfilesRequest)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest other = + (com.google.privacy.dlp.v2.ListColumnDataProfilesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) 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(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesRequest 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.privacy.dlp.v2.ListColumnDataProfilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesRequest 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.privacy.dlp.v2.ListColumnDataProfilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesRequest 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.privacy.dlp.v2.ListColumnDataProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesRequest 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.privacy.dlp.v2.ListColumnDataProfilesRequest 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 to list the profiles generated for a given organization or project.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ListColumnDataProfilesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ListColumnDataProfilesRequest) + com.google.privacy.dlp.v2.ListColumnDataProfilesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest.class, + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.ListColumnDataProfilesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListColumnDataProfilesRequest_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListColumnDataProfilesRequest getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ListColumnDataProfilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListColumnDataProfilesRequest build() { + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListColumnDataProfilesRequest buildPartial() { + com.google.privacy.dlp.v2.ListColumnDataProfilesRequest result = + new com.google.privacy.dlp.v2.ListColumnDataProfilesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.ListColumnDataProfilesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @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.privacy.dlp.v2.ListColumnDataProfilesRequest) { + return mergeFrom((com.google.privacy.dlp.v2.ListColumnDataProfilesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.ListColumnDataProfilesRequest other) { + if (other == com.google.privacy.dlp.v2.ListColumnDataProfilesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + /** + * + * + *
                                                                                      +     * Required. Resource name of the organization or project, for
                                                                                      +     * example `organizations/433245324/locations/europe` or
                                                                                      +     * `projects/project-id/locations/asia`.
                                                                                      +     * 
                                                                                      + * + * + * 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. Resource name of the organization or project, for
                                                                                      +     * example `organizations/433245324/locations/europe` or
                                                                                      +     * `projects/project-id/locations/asia`.
                                                                                      +     * 
                                                                                      + * + * + * 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. Resource name of the organization or project, for
                                                                                      +     * example `organizations/433245324/locations/europe` or
                                                                                      +     * `projects/project-id/locations/asia`.
                                                                                      +     * 
                                                                                      + * + * + * 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. Resource name of the organization or project, for
                                                                                      +     * example `organizations/433245324/locations/europe` or
                                                                                      +     * `projects/project-id/locations/asia`.
                                                                                      +     * 
                                                                                      + * + * + * 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. Resource name of the organization or project, for
                                                                                      +     * example `organizations/433245324/locations/europe` or
                                                                                      +     * `projects/project-id/locations/asia`.
                                                                                      +     * 
                                                                                      + * + * + * 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 java.lang.Object pageToken_ = ""; + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
                                                                                      +     * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +     * returns a page of max size 100.
                                                                                      +     * 
                                                                                      + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
                                                                                      +     * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +     * returns a page of max size 100.
                                                                                      +     * 
                                                                                      + * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +     * returns a page of max size 100.
                                                                                      +     * 
                                                                                      + * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id asc`
                                                                                      +     * * `table_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: The Google Cloud project ID.
                                                                                      +     * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +     * - `table_id`: The ID of a BigQuery table.
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a column is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id asc`
                                                                                      +     * * `table_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: The Google Cloud project ID.
                                                                                      +     * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +     * - `table_id`: The ID of a BigQuery table.
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a column is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id asc`
                                                                                      +     * * `table_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: The Google Cloud project ID.
                                                                                      +     * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +     * - `table_id`: The ID of a BigQuery table.
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a column is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id asc`
                                                                                      +     * * `table_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: The Google Cloud project ID.
                                                                                      +     * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +     * - `table_id`: The ID of a BigQuery table.
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a column is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id asc`
                                                                                      +     * * `table_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: The Google Cloud project ID.
                                                                                      +     * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +     * - `table_id`: The ID of a BigQuery table.
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a column is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `table_data_profile_name` - The name of the related table data
                                                                                      +     *     profile.
                                                                                      +     *     - `project_id` - The Google Cloud project ID. (REQUIRED)
                                                                                      +     *     - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
                                                                                      +     *     - `table_id` - The BigQuery table ID. (REQUIRED)
                                                                                      +     *     - `field_id` - The ID of the BigQuery field.
                                                                                      +     *     - `info_type` - The infotype detected in the resource.
                                                                                      +     *     - `sensitivity_level` - HIGH|MEDIUM|LOW
                                                                                      +     *     - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` for project_id, dataset_id, and table_id. Other
                                                                                      +     *   filters also support `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * project_id = 12345 AND status_code = 1
                                                                                      +     * * project_id = 12345 AND sensitivity_level = HIGH
                                                                                      +     * * project_id = 12345 AND info_type = STREET_ADDRESS
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `table_data_profile_name` - The name of the related table data
                                                                                      +     *     profile.
                                                                                      +     *     - `project_id` - The Google Cloud project ID. (REQUIRED)
                                                                                      +     *     - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
                                                                                      +     *     - `table_id` - The BigQuery table ID. (REQUIRED)
                                                                                      +     *     - `field_id` - The ID of the BigQuery field.
                                                                                      +     *     - `info_type` - The infotype detected in the resource.
                                                                                      +     *     - `sensitivity_level` - HIGH|MEDIUM|LOW
                                                                                      +     *     - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` for project_id, dataset_id, and table_id. Other
                                                                                      +     *   filters also support `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * project_id = 12345 AND status_code = 1
                                                                                      +     * * project_id = 12345 AND sensitivity_level = HIGH
                                                                                      +     * * project_id = 12345 AND info_type = STREET_ADDRESS
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `table_data_profile_name` - The name of the related table data
                                                                                      +     *     profile.
                                                                                      +     *     - `project_id` - The Google Cloud project ID. (REQUIRED)
                                                                                      +     *     - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
                                                                                      +     *     - `table_id` - The BigQuery table ID. (REQUIRED)
                                                                                      +     *     - `field_id` - The ID of the BigQuery field.
                                                                                      +     *     - `info_type` - The infotype detected in the resource.
                                                                                      +     *     - `sensitivity_level` - HIGH|MEDIUM|LOW
                                                                                      +     *     - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` for project_id, dataset_id, and table_id. Other
                                                                                      +     *   filters also support `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * project_id = 12345 AND status_code = 1
                                                                                      +     * * project_id = 12345 AND sensitivity_level = HIGH
                                                                                      +     * * project_id = 12345 AND info_type = STREET_ADDRESS
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `table_data_profile_name` - The name of the related table data
                                                                                      +     *     profile.
                                                                                      +     *     - `project_id` - The Google Cloud project ID. (REQUIRED)
                                                                                      +     *     - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
                                                                                      +     *     - `table_id` - The BigQuery table ID. (REQUIRED)
                                                                                      +     *     - `field_id` - The ID of the BigQuery field.
                                                                                      +     *     - `info_type` - The infotype detected in the resource.
                                                                                      +     *     - `sensitivity_level` - HIGH|MEDIUM|LOW
                                                                                      +     *     - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` for project_id, dataset_id, and table_id. Other
                                                                                      +     *   filters also support `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * project_id = 12345 AND status_code = 1
                                                                                      +     * * project_id = 12345 AND sensitivity_level = HIGH
                                                                                      +     * * project_id = 12345 AND info_type = STREET_ADDRESS
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `table_data_profile_name` - The name of the related table data
                                                                                      +     *     profile.
                                                                                      +     *     - `project_id` - The Google Cloud project ID. (REQUIRED)
                                                                                      +     *     - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
                                                                                      +     *     - `table_id` - The BigQuery table ID. (REQUIRED)
                                                                                      +     *     - `field_id` - The ID of the BigQuery field.
                                                                                      +     *     - `info_type` - The infotype detected in the resource.
                                                                                      +     *     - `sensitivity_level` - HIGH|MEDIUM|LOW
                                                                                      +     *     - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` for project_id, dataset_id, and table_id. Other
                                                                                      +     *   filters also support `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * project_id = 12345 AND status_code = 1
                                                                                      +     * * project_id = 12345 AND sensitivity_level = HIGH
                                                                                      +     * * project_id = 12345 AND info_type = STREET_ADDRESS
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + 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.privacy.dlp.v2.ListColumnDataProfilesRequest) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListColumnDataProfilesRequest) + private static final com.google.privacy.dlp.v2.ListColumnDataProfilesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ListColumnDataProfilesRequest(); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListColumnDataProfilesRequest 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.privacy.dlp.v2.ListColumnDataProfilesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesRequestOrBuilder.java new file mode 100644 index 000000000000..2bcd7a0aaa14 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesRequestOrBuilder.java @@ -0,0 +1,242 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +public interface ListColumnDataProfilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ListColumnDataProfilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * Required. Resource name of the organization or project, for
                                                                                      +   * example `organizations/433245324/locations/europe` or
                                                                                      +   * `projects/project-id/locations/asia`.
                                                                                      +   * 
                                                                                      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
                                                                                      +   * Required. Resource name of the organization or project, for
                                                                                      +   * example `organizations/433245324/locations/europe` or
                                                                                      +   * `projects/project-id/locations/asia`.
                                                                                      +   * 
                                                                                      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                      +   * Page token to continue retrieval.
                                                                                      +   * 
                                                                                      + * + * string page_token = 2; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
                                                                                      +   * Page token to continue retrieval.
                                                                                      +   * 
                                                                                      + * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                      +   * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +   * returns a page of max size 100.
                                                                                      +   * 
                                                                                      + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                      +   * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +   * postfix. This list is case insensitive. The default sorting order is
                                                                                      +   * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +   * field at a time is allowed.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   * * `project_id asc`
                                                                                      +   * * `table_id`
                                                                                      +   * * `sensitivity_level desc`
                                                                                      +   *
                                                                                      +   * Supported fields are:
                                                                                      +   *
                                                                                      +   * - `project_id`: The Google Cloud project ID.
                                                                                      +   * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +   * - `table_id`: The ID of a BigQuery table.
                                                                                      +   * - `sensitivity_level`: How sensitive the data in a column is, at most.
                                                                                      +   * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +   * seconds.
                                                                                      +   * 
                                                                                      + * + * string order_by = 4; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
                                                                                      +   * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +   * postfix. This list is case insensitive. The default sorting order is
                                                                                      +   * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +   * field at a time is allowed.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   * * `project_id asc`
                                                                                      +   * * `table_id`
                                                                                      +   * * `sensitivity_level desc`
                                                                                      +   *
                                                                                      +   * Supported fields are:
                                                                                      +   *
                                                                                      +   * - `project_id`: The Google Cloud project ID.
                                                                                      +   * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +   * - `table_id`: The ID of a BigQuery table.
                                                                                      +   * - `sensitivity_level`: How sensitive the data in a column is, at most.
                                                                                      +   * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +   * seconds.
                                                                                      +   * 
                                                                                      + * + * string order_by = 4; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
                                                                                      +   * Allows filtering.
                                                                                      +   *
                                                                                      +   * Supported syntax:
                                                                                      +   *
                                                                                      +   * * Filter expressions are made up of one or more restrictions.
                                                                                      +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +   * sequence of restrictions implicitly uses `AND`.
                                                                                      +   * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +   * * Supported fields/values:
                                                                                      +   *     - `table_data_profile_name` - The name of the related table data
                                                                                      +   *     profile.
                                                                                      +   *     - `project_id` - The Google Cloud project ID. (REQUIRED)
                                                                                      +   *     - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
                                                                                      +   *     - `table_id` - The BigQuery table ID. (REQUIRED)
                                                                                      +   *     - `field_id` - The ID of the BigQuery field.
                                                                                      +   *     - `info_type` - The infotype detected in the resource.
                                                                                      +   *     - `sensitivity_level` - HIGH|MEDIUM|LOW
                                                                                      +   *     - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   *     - `status_code` - an RPC status code as defined in
                                                                                      +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +   * * The operator must be `=` for project_id, dataset_id, and table_id. Other
                                                                                      +   *   filters also support `!=`.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   *
                                                                                      +   * * project_id = 12345 AND status_code = 1
                                                                                      +   * * project_id = 12345 AND sensitivity_level = HIGH
                                                                                      +   * * project_id = 12345 AND info_type = STREET_ADDRESS
                                                                                      +   *
                                                                                      +   * The length of this field should be no more than 500 characters.
                                                                                      +   * 
                                                                                      + * + * string filter = 5; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
                                                                                      +   * Allows filtering.
                                                                                      +   *
                                                                                      +   * Supported syntax:
                                                                                      +   *
                                                                                      +   * * Filter expressions are made up of one or more restrictions.
                                                                                      +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +   * sequence of restrictions implicitly uses `AND`.
                                                                                      +   * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +   * * Supported fields/values:
                                                                                      +   *     - `table_data_profile_name` - The name of the related table data
                                                                                      +   *     profile.
                                                                                      +   *     - `project_id` - The Google Cloud project ID. (REQUIRED)
                                                                                      +   *     - `dataset_id` - The BigQuery dataset ID. (REQUIRED)
                                                                                      +   *     - `table_id` - The BigQuery table ID. (REQUIRED)
                                                                                      +   *     - `field_id` - The ID of the BigQuery field.
                                                                                      +   *     - `info_type` - The infotype detected in the resource.
                                                                                      +   *     - `sensitivity_level` - HIGH|MEDIUM|LOW
                                                                                      +   *     - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   *     - `status_code` - an RPC status code as defined in
                                                                                      +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +   * * The operator must be `=` for project_id, dataset_id, and table_id. Other
                                                                                      +   *   filters also support `!=`.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   *
                                                                                      +   * * project_id = 12345 AND status_code = 1
                                                                                      +   * * project_id = 12345 AND sensitivity_level = HIGH
                                                                                      +   * * project_id = 12345 AND info_type = STREET_ADDRESS
                                                                                      +   *
                                                                                      +   * The length of this field should be no more than 500 characters.
                                                                                      +   * 
                                                                                      + * + * string filter = 5; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesResponse.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesResponse.java new file mode 100644 index 000000000000..b877a94df856 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesResponse.java @@ -0,0 +1,1133 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +/** + * + * + *
                                                                                      + * List of profiles generated for a given organization or project.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ListColumnDataProfilesResponse} + */ +public final class ListColumnDataProfilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ListColumnDataProfilesResponse) + ListColumnDataProfilesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListColumnDataProfilesResponse.newBuilder() to construct. + private ListColumnDataProfilesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListColumnDataProfilesResponse() { + columnDataProfiles_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListColumnDataProfilesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse.class, + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse.Builder.class); + } + + public static final int COLUMN_DATA_PROFILES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List columnDataProfiles_; + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + @java.lang.Override + public java.util.List getColumnDataProfilesList() { + return columnDataProfiles_; + } + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + @java.lang.Override + public java.util.List + getColumnDataProfilesOrBuilderList() { + return columnDataProfiles_; + } + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + @java.lang.Override + public int getColumnDataProfilesCount() { + return columnDataProfiles_.size(); + } + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ColumnDataProfile getColumnDataProfiles(int index) { + return columnDataProfiles_.get(index); + } + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ColumnDataProfileOrBuilder getColumnDataProfilesOrBuilder( + int index) { + return columnDataProfiles_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
                                                                                      +   * The next page token.
                                                                                      +   * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * The next page token.
                                                                                      +   * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < columnDataProfiles_.size(); i++) { + output.writeMessage(1, columnDataProfiles_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < columnDataProfiles_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, columnDataProfiles_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.privacy.dlp.v2.ListColumnDataProfilesResponse)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse other = + (com.google.privacy.dlp.v2.ListColumnDataProfilesResponse) obj; + + if (!getColumnDataProfilesList().equals(other.getColumnDataProfilesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getColumnDataProfilesCount() > 0) { + hash = (37 * hash) + COLUMN_DATA_PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getColumnDataProfilesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesResponse 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.privacy.dlp.v2.ListColumnDataProfilesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesResponse 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.privacy.dlp.v2.ListColumnDataProfilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesResponse 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.privacy.dlp.v2.ListColumnDataProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesResponse 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.privacy.dlp.v2.ListColumnDataProfilesResponse 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; + } + /** + * + * + *
                                                                                      +   * List of profiles generated for a given organization or project.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ListColumnDataProfilesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ListColumnDataProfilesResponse) + com.google.privacy.dlp.v2.ListColumnDataProfilesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse.class, + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.ListColumnDataProfilesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (columnDataProfilesBuilder_ == null) { + columnDataProfiles_ = java.util.Collections.emptyList(); + } else { + columnDataProfiles_ = null; + columnDataProfilesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListColumnDataProfilesResponse_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListColumnDataProfilesResponse getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ListColumnDataProfilesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListColumnDataProfilesResponse build() { + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListColumnDataProfilesResponse buildPartial() { + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse result = + new com.google.privacy.dlp.v2.ListColumnDataProfilesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.privacy.dlp.v2.ListColumnDataProfilesResponse result) { + if (columnDataProfilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + columnDataProfiles_ = java.util.Collections.unmodifiableList(columnDataProfiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columnDataProfiles_ = columnDataProfiles_; + } else { + result.columnDataProfiles_ = columnDataProfilesBuilder_.build(); + } + } + + private void buildPartial0(com.google.privacy.dlp.v2.ListColumnDataProfilesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.privacy.dlp.v2.ListColumnDataProfilesResponse) { + return mergeFrom((com.google.privacy.dlp.v2.ListColumnDataProfilesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.ListColumnDataProfilesResponse other) { + if (other == com.google.privacy.dlp.v2.ListColumnDataProfilesResponse.getDefaultInstance()) + return this; + if (columnDataProfilesBuilder_ == null) { + if (!other.columnDataProfiles_.isEmpty()) { + if (columnDataProfiles_.isEmpty()) { + columnDataProfiles_ = other.columnDataProfiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnDataProfilesIsMutable(); + columnDataProfiles_.addAll(other.columnDataProfiles_); + } + onChanged(); + } + } else { + if (!other.columnDataProfiles_.isEmpty()) { + if (columnDataProfilesBuilder_.isEmpty()) { + columnDataProfilesBuilder_.dispose(); + columnDataProfilesBuilder_ = null; + columnDataProfiles_ = other.columnDataProfiles_; + bitField0_ = (bitField0_ & ~0x00000001); + columnDataProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColumnDataProfilesFieldBuilder() + : null; + } else { + columnDataProfilesBuilder_.addAllMessages(other.columnDataProfiles_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.privacy.dlp.v2.ColumnDataProfile m = + input.readMessage( + com.google.privacy.dlp.v2.ColumnDataProfile.parser(), extensionRegistry); + if (columnDataProfilesBuilder_ == null) { + ensureColumnDataProfilesIsMutable(); + columnDataProfiles_.add(m); + } else { + columnDataProfilesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List columnDataProfiles_ = + java.util.Collections.emptyList(); + + private void ensureColumnDataProfilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + columnDataProfiles_ = + new java.util.ArrayList( + columnDataProfiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.ColumnDataProfile, + com.google.privacy.dlp.v2.ColumnDataProfile.Builder, + com.google.privacy.dlp.v2.ColumnDataProfileOrBuilder> + columnDataProfilesBuilder_; + + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public java.util.List getColumnDataProfilesList() { + if (columnDataProfilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(columnDataProfiles_); + } else { + return columnDataProfilesBuilder_.getMessageList(); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public int getColumnDataProfilesCount() { + if (columnDataProfilesBuilder_ == null) { + return columnDataProfiles_.size(); + } else { + return columnDataProfilesBuilder_.getCount(); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.ColumnDataProfile getColumnDataProfiles(int index) { + if (columnDataProfilesBuilder_ == null) { + return columnDataProfiles_.get(index); + } else { + return columnDataProfilesBuilder_.getMessage(index); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public Builder setColumnDataProfiles( + int index, com.google.privacy.dlp.v2.ColumnDataProfile value) { + if (columnDataProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnDataProfilesIsMutable(); + columnDataProfiles_.set(index, value); + onChanged(); + } else { + columnDataProfilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public Builder setColumnDataProfiles( + int index, com.google.privacy.dlp.v2.ColumnDataProfile.Builder builderForValue) { + if (columnDataProfilesBuilder_ == null) { + ensureColumnDataProfilesIsMutable(); + columnDataProfiles_.set(index, builderForValue.build()); + onChanged(); + } else { + columnDataProfilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public Builder addColumnDataProfiles(com.google.privacy.dlp.v2.ColumnDataProfile value) { + if (columnDataProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnDataProfilesIsMutable(); + columnDataProfiles_.add(value); + onChanged(); + } else { + columnDataProfilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public Builder addColumnDataProfiles( + int index, com.google.privacy.dlp.v2.ColumnDataProfile value) { + if (columnDataProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnDataProfilesIsMutable(); + columnDataProfiles_.add(index, value); + onChanged(); + } else { + columnDataProfilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public Builder addColumnDataProfiles( + com.google.privacy.dlp.v2.ColumnDataProfile.Builder builderForValue) { + if (columnDataProfilesBuilder_ == null) { + ensureColumnDataProfilesIsMutable(); + columnDataProfiles_.add(builderForValue.build()); + onChanged(); + } else { + columnDataProfilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public Builder addColumnDataProfiles( + int index, com.google.privacy.dlp.v2.ColumnDataProfile.Builder builderForValue) { + if (columnDataProfilesBuilder_ == null) { + ensureColumnDataProfilesIsMutable(); + columnDataProfiles_.add(index, builderForValue.build()); + onChanged(); + } else { + columnDataProfilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public Builder addAllColumnDataProfiles( + java.lang.Iterable values) { + if (columnDataProfilesBuilder_ == null) { + ensureColumnDataProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnDataProfiles_); + onChanged(); + } else { + columnDataProfilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public Builder clearColumnDataProfiles() { + if (columnDataProfilesBuilder_ == null) { + columnDataProfiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + columnDataProfilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public Builder removeColumnDataProfiles(int index) { + if (columnDataProfilesBuilder_ == null) { + ensureColumnDataProfilesIsMutable(); + columnDataProfiles_.remove(index); + onChanged(); + } else { + columnDataProfilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.ColumnDataProfile.Builder getColumnDataProfilesBuilder( + int index) { + return getColumnDataProfilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.ColumnDataProfileOrBuilder getColumnDataProfilesOrBuilder( + int index) { + if (columnDataProfilesBuilder_ == null) { + return columnDataProfiles_.get(index); + } else { + return columnDataProfilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public java.util.List + getColumnDataProfilesOrBuilderList() { + if (columnDataProfilesBuilder_ != null) { + return columnDataProfilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columnDataProfiles_); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.ColumnDataProfile.Builder addColumnDataProfilesBuilder() { + return getColumnDataProfilesFieldBuilder() + .addBuilder(com.google.privacy.dlp.v2.ColumnDataProfile.getDefaultInstance()); + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.ColumnDataProfile.Builder addColumnDataProfilesBuilder( + int index) { + return getColumnDataProfilesFieldBuilder() + .addBuilder(index, com.google.privacy.dlp.v2.ColumnDataProfile.getDefaultInstance()); + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + public java.util.List + getColumnDataProfilesBuilderList() { + return getColumnDataProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.ColumnDataProfile, + com.google.privacy.dlp.v2.ColumnDataProfile.Builder, + com.google.privacy.dlp.v2.ColumnDataProfileOrBuilder> + getColumnDataProfilesFieldBuilder() { + if (columnDataProfilesBuilder_ == null) { + columnDataProfilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.ColumnDataProfile, + com.google.privacy.dlp.v2.ColumnDataProfile.Builder, + com.google.privacy.dlp.v2.ColumnDataProfileOrBuilder>( + columnDataProfiles_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + columnDataProfiles_ = null; + } + return columnDataProfilesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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.privacy.dlp.v2.ListColumnDataProfilesResponse) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListColumnDataProfilesResponse) + private static final com.google.privacy.dlp.v2.ListColumnDataProfilesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ListColumnDataProfilesResponse(); + } + + public static com.google.privacy.dlp.v2.ListColumnDataProfilesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListColumnDataProfilesResponse 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.privacy.dlp.v2.ListColumnDataProfilesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesResponseOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesResponseOrBuilder.java new file mode 100644 index 000000000000..5de483d24a49 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListColumnDataProfilesResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +public interface ListColumnDataProfilesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ListColumnDataProfilesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + java.util.List getColumnDataProfilesList(); + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + com.google.privacy.dlp.v2.ColumnDataProfile getColumnDataProfiles(int index); + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + int getColumnDataProfilesCount(); + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + java.util.List + getColumnDataProfilesOrBuilderList(); + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; + */ + com.google.privacy.dlp.v2.ColumnDataProfileOrBuilder getColumnDataProfilesOrBuilder(int index); + + /** + * + * + *
                                                                                      +   * The next page token.
                                                                                      +   * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
                                                                                      +   * The next page token.
                                                                                      +   * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java index f65e7b6bc914..3b6abe519693 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequest.java @@ -79,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -123,7 +123,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -804,7 +804,7 @@ public Builder mergeFrom( * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -847,7 +847,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -890,7 +890,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -932,7 +932,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -970,7 +970,7 @@ public Builder clearParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java index 8fc26c2188f4..6285fccd7294 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDeidentifyTemplatesRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface ListDeidentifyTemplatesRequestOrBuilder * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -65,7 +65,7 @@ public interface ListDeidentifyTemplatesRequestOrBuilder * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java index 81ce69c737ed..1516ca9a46c9 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -120,7 +120,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -978,7 +978,7 @@ public Builder mergeFrom( * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1017,7 +1017,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1056,7 +1056,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1094,7 +1094,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1128,7 +1128,7 @@ public Builder clearParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java index e90507629551..4fd2c11e985e 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListDlpJobsRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface ListDlpJobsRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -61,7 +61,7 @@ public interface ListDlpJobsRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java index a633cda494b1..1b39472b1a2c 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequest.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -122,7 +122,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -803,7 +803,7 @@ public Builder mergeFrom( * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -846,7 +846,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -889,7 +889,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -931,7 +931,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -969,7 +969,7 @@ public Builder clearParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java index 671a990d7eee..6444f3a3075e 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListInspectTemplatesRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface ListInspectTemplatesRequestOrBuilder * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -65,7 +65,7 @@ public interface ListInspectTemplatesRequestOrBuilder * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java index 559c82c56b70..e1cd95f08e78 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -120,7 +120,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -979,7 +979,7 @@ public Builder mergeFrom( * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1018,7 +1018,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1057,7 +1057,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1095,7 +1095,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1129,7 +1129,7 @@ public Builder clearParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java index 10cc1e68d724..7da74baa9b08 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListJobTriggersRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface ListJobTriggersRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -61,7 +61,7 @@ public interface ListJobTriggersRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesRequest.java new file mode 100644 index 000000000000..80844cb115c3 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesRequest.java @@ -0,0 +1,1529 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +/** + * + * + *
                                                                                      + * Request to list the profiles generated for a given organization or project.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ListProjectDataProfilesRequest} + */ +public final class ListProjectDataProfilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ListProjectDataProfilesRequest) + ListProjectDataProfilesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListProjectDataProfilesRequest.newBuilder() to construct. + private ListProjectDataProfilesRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListProjectDataProfilesRequest() { + parent_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListProjectDataProfilesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest.class, + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
                                                                                      +   * Required. organizations/{org_id}/locations/{loc_id}
                                                                                      +   * 
                                                                                      + * + * + * 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. organizations/{org_id}/locations/{loc_id}
                                                                                      +   * 
                                                                                      + * + * + * 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 PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
                                                                                      +   * Page token to continue retrieval.
                                                                                      +   * 
                                                                                      + * + * string page_token = 2; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Page token to continue retrieval.
                                                                                      +   * 
                                                                                      + * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
                                                                                      +   * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +   * returns a page of max size 100.
                                                                                      +   * 
                                                                                      + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
                                                                                      +   * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +   * postfix. This list is case insensitive. The default sorting order is
                                                                                      +   * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +   * field at a time is allowed.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   * * `project_id`
                                                                                      +   * * `sensitivity_level desc`
                                                                                      +   *
                                                                                      +   * Supported fields are:
                                                                                      +   *
                                                                                      +   * - `project_id`: GCP project ID
                                                                                      +   * - `sensitivity_level`: How sensitive the data in a project is, at most.
                                                                                      +   * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +   * seconds.
                                                                                      +   * 
                                                                                      + * + * string order_by = 4; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +   * postfix. This list is case insensitive. The default sorting order is
                                                                                      +   * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +   * field at a time is allowed.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   * * `project_id`
                                                                                      +   * * `sensitivity_level desc`
                                                                                      +   *
                                                                                      +   * Supported fields are:
                                                                                      +   *
                                                                                      +   * - `project_id`: GCP project ID
                                                                                      +   * - `sensitivity_level`: How sensitive the data in a project is, at most.
                                                                                      +   * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +   * seconds.
                                                                                      +   * 
                                                                                      + * + * string order_by = 4; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
                                                                                      +   * Allows filtering.
                                                                                      +   *
                                                                                      +   * Supported syntax:
                                                                                      +   *
                                                                                      +   * * Filter expressions are made up of one or more restrictions.
                                                                                      +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +   * sequence of restrictions implicitly uses `AND`.
                                                                                      +   * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +   * * Supported fields/values:
                                                                                      +   *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `status_code` - an RPC status code as defined in
                                                                                      +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +   * * The operator must be `=` or `!=`.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   *
                                                                                      +   * * `project_id = 12345 AND status_code = 1`
                                                                                      +   * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +   *
                                                                                      +   * The length of this field should be no more than 500 characters.
                                                                                      +   * 
                                                                                      + * + * string filter = 5; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Allows filtering.
                                                                                      +   *
                                                                                      +   * Supported syntax:
                                                                                      +   *
                                                                                      +   * * Filter expressions are made up of one or more restrictions.
                                                                                      +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +   * sequence of restrictions implicitly uses `AND`.
                                                                                      +   * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +   * * Supported fields/values:
                                                                                      +   *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `status_code` - an RPC status code as defined in
                                                                                      +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +   * * The operator must be `=` or `!=`.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   *
                                                                                      +   * * `project_id = 12345 AND status_code = 1`
                                                                                      +   * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +   *
                                                                                      +   * The length of this field should be no more than 500 characters.
                                                                                      +   * 
                                                                                      + * + * string filter = 5; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } + 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.privacy.dlp.v2.ListProjectDataProfilesRequest)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest other = + (com.google.privacy.dlp.v2.ListProjectDataProfilesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) 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(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesRequest 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.privacy.dlp.v2.ListProjectDataProfilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesRequest 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.privacy.dlp.v2.ListProjectDataProfilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesRequest 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.privacy.dlp.v2.ListProjectDataProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesRequest 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.privacy.dlp.v2.ListProjectDataProfilesRequest 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 to list the profiles generated for a given organization or project.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ListProjectDataProfilesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ListProjectDataProfilesRequest) + com.google.privacy.dlp.v2.ListProjectDataProfilesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest.class, + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.ListProjectDataProfilesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListProjectDataProfilesRequest_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListProjectDataProfilesRequest getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ListProjectDataProfilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListProjectDataProfilesRequest build() { + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListProjectDataProfilesRequest buildPartial() { + com.google.privacy.dlp.v2.ListProjectDataProfilesRequest result = + new com.google.privacy.dlp.v2.ListProjectDataProfilesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.ListProjectDataProfilesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @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.privacy.dlp.v2.ListProjectDataProfilesRequest) { + return mergeFrom((com.google.privacy.dlp.v2.ListProjectDataProfilesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.ListProjectDataProfilesRequest other) { + if (other == com.google.privacy.dlp.v2.ListProjectDataProfilesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + /** + * + * + *
                                                                                      +     * Required. organizations/{org_id}/locations/{loc_id}
                                                                                      +     * 
                                                                                      + * + * + * 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. organizations/{org_id}/locations/{loc_id}
                                                                                      +     * 
                                                                                      + * + * + * 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. organizations/{org_id}/locations/{loc_id}
                                                                                      +     * 
                                                                                      + * + * + * 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. organizations/{org_id}/locations/{loc_id}
                                                                                      +     * 
                                                                                      + * + * + * 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. organizations/{org_id}/locations/{loc_id}
                                                                                      +     * 
                                                                                      + * + * + * 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 java.lang.Object pageToken_ = ""; + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
                                                                                      +     * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +     * returns a page of max size 100.
                                                                                      +     * 
                                                                                      + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
                                                                                      +     * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +     * returns a page of max size 100.
                                                                                      +     * 
                                                                                      + * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +     * returns a page of max size 100.
                                                                                      +     * 
                                                                                      + * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: GCP project ID
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a project is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: GCP project ID
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a project is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: GCP project ID
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a project is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: GCP project ID
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a project is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: GCP project ID
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a project is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` or `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * `project_id = 12345 AND status_code = 1`
                                                                                      +     * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` or `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * `project_id = 12345 AND status_code = 1`
                                                                                      +     * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` or `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * `project_id = 12345 AND status_code = 1`
                                                                                      +     * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` or `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * `project_id = 12345 AND status_code = 1`
                                                                                      +     * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` or `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * `project_id = 12345 AND status_code = 1`
                                                                                      +     * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + 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.privacy.dlp.v2.ListProjectDataProfilesRequest) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListProjectDataProfilesRequest) + private static final com.google.privacy.dlp.v2.ListProjectDataProfilesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ListProjectDataProfilesRequest(); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProjectDataProfilesRequest 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.privacy.dlp.v2.ListProjectDataProfilesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesRequestOrBuilder.java new file mode 100644 index 000000000000..9398e8274e98 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesRequestOrBuilder.java @@ -0,0 +1,214 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +public interface ListProjectDataProfilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ListProjectDataProfilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * Required. organizations/{org_id}/locations/{loc_id}
                                                                                      +   * 
                                                                                      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
                                                                                      +   * Required. organizations/{org_id}/locations/{loc_id}
                                                                                      +   * 
                                                                                      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                      +   * Page token to continue retrieval.
                                                                                      +   * 
                                                                                      + * + * string page_token = 2; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
                                                                                      +   * Page token to continue retrieval.
                                                                                      +   * 
                                                                                      + * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                      +   * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +   * returns a page of max size 100.
                                                                                      +   * 
                                                                                      + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                      +   * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +   * postfix. This list is case insensitive. The default sorting order is
                                                                                      +   * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +   * field at a time is allowed.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   * * `project_id`
                                                                                      +   * * `sensitivity_level desc`
                                                                                      +   *
                                                                                      +   * Supported fields are:
                                                                                      +   *
                                                                                      +   * - `project_id`: GCP project ID
                                                                                      +   * - `sensitivity_level`: How sensitive the data in a project is, at most.
                                                                                      +   * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +   * seconds.
                                                                                      +   * 
                                                                                      + * + * string order_by = 4; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
                                                                                      +   * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +   * postfix. This list is case insensitive. The default sorting order is
                                                                                      +   * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +   * field at a time is allowed.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   * * `project_id`
                                                                                      +   * * `sensitivity_level desc`
                                                                                      +   *
                                                                                      +   * Supported fields are:
                                                                                      +   *
                                                                                      +   * - `project_id`: GCP project ID
                                                                                      +   * - `sensitivity_level`: How sensitive the data in a project is, at most.
                                                                                      +   * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +   * seconds.
                                                                                      +   * 
                                                                                      + * + * string order_by = 4; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
                                                                                      +   * Allows filtering.
                                                                                      +   *
                                                                                      +   * Supported syntax:
                                                                                      +   *
                                                                                      +   * * Filter expressions are made up of one or more restrictions.
                                                                                      +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +   * sequence of restrictions implicitly uses `AND`.
                                                                                      +   * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +   * * Supported fields/values:
                                                                                      +   *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `status_code` - an RPC status code as defined in
                                                                                      +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +   * * The operator must be `=` or `!=`.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   *
                                                                                      +   * * `project_id = 12345 AND status_code = 1`
                                                                                      +   * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +   *
                                                                                      +   * The length of this field should be no more than 500 characters.
                                                                                      +   * 
                                                                                      + * + * string filter = 5; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
                                                                                      +   * Allows filtering.
                                                                                      +   *
                                                                                      +   * Supported syntax:
                                                                                      +   *
                                                                                      +   * * Filter expressions are made up of one or more restrictions.
                                                                                      +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +   * sequence of restrictions implicitly uses `AND`.
                                                                                      +   * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +   * * Supported fields/values:
                                                                                      +   *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `status_code` - an RPC status code as defined in
                                                                                      +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +   * * The operator must be `=` or `!=`.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   *
                                                                                      +   * * `project_id = 12345 AND status_code = 1`
                                                                                      +   * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +   *
                                                                                      +   * The length of this field should be no more than 500 characters.
                                                                                      +   * 
                                                                                      + * + * string filter = 5; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesResponse.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesResponse.java new file mode 100644 index 000000000000..ec0d20e421dc --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesResponse.java @@ -0,0 +1,1134 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +/** + * + * + *
                                                                                      + * List of profiles generated for a given organization or project.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ListProjectDataProfilesResponse} + */ +public final class ListProjectDataProfilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ListProjectDataProfilesResponse) + ListProjectDataProfilesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListProjectDataProfilesResponse.newBuilder() to construct. + private ListProjectDataProfilesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListProjectDataProfilesResponse() { + projectDataProfiles_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListProjectDataProfilesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse.class, + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse.Builder.class); + } + + public static final int PROJECT_DATA_PROFILES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List projectDataProfiles_; + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + @java.lang.Override + public java.util.List getProjectDataProfilesList() { + return projectDataProfiles_; + } + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + @java.lang.Override + public java.util.List + getProjectDataProfilesOrBuilderList() { + return projectDataProfiles_; + } + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + @java.lang.Override + public int getProjectDataProfilesCount() { + return projectDataProfiles_.size(); + } + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ProjectDataProfile getProjectDataProfiles(int index) { + return projectDataProfiles_.get(index); + } + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ProjectDataProfileOrBuilder getProjectDataProfilesOrBuilder( + int index) { + return projectDataProfiles_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
                                                                                      +   * The next page token.
                                                                                      +   * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * The next page token.
                                                                                      +   * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < projectDataProfiles_.size(); i++) { + output.writeMessage(1, projectDataProfiles_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < projectDataProfiles_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, projectDataProfiles_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.privacy.dlp.v2.ListProjectDataProfilesResponse)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse other = + (com.google.privacy.dlp.v2.ListProjectDataProfilesResponse) obj; + + if (!getProjectDataProfilesList().equals(other.getProjectDataProfilesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getProjectDataProfilesCount() > 0) { + hash = (37 * hash) + PROJECT_DATA_PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getProjectDataProfilesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesResponse 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.privacy.dlp.v2.ListProjectDataProfilesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesResponse 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.privacy.dlp.v2.ListProjectDataProfilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesResponse 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.privacy.dlp.v2.ListProjectDataProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesResponse 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.privacy.dlp.v2.ListProjectDataProfilesResponse 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; + } + /** + * + * + *
                                                                                      +   * List of profiles generated for a given organization or project.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ListProjectDataProfilesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ListProjectDataProfilesResponse) + com.google.privacy.dlp.v2.ListProjectDataProfilesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse.class, + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.ListProjectDataProfilesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (projectDataProfilesBuilder_ == null) { + projectDataProfiles_ = java.util.Collections.emptyList(); + } else { + projectDataProfiles_ = null; + projectDataProfilesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListProjectDataProfilesResponse_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListProjectDataProfilesResponse getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ListProjectDataProfilesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListProjectDataProfilesResponse build() { + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListProjectDataProfilesResponse buildPartial() { + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse result = + new com.google.privacy.dlp.v2.ListProjectDataProfilesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.privacy.dlp.v2.ListProjectDataProfilesResponse result) { + if (projectDataProfilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + projectDataProfiles_ = java.util.Collections.unmodifiableList(projectDataProfiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.projectDataProfiles_ = projectDataProfiles_; + } else { + result.projectDataProfiles_ = projectDataProfilesBuilder_.build(); + } + } + + private void buildPartial0(com.google.privacy.dlp.v2.ListProjectDataProfilesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.privacy.dlp.v2.ListProjectDataProfilesResponse) { + return mergeFrom((com.google.privacy.dlp.v2.ListProjectDataProfilesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.ListProjectDataProfilesResponse other) { + if (other == com.google.privacy.dlp.v2.ListProjectDataProfilesResponse.getDefaultInstance()) + return this; + if (projectDataProfilesBuilder_ == null) { + if (!other.projectDataProfiles_.isEmpty()) { + if (projectDataProfiles_.isEmpty()) { + projectDataProfiles_ = other.projectDataProfiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureProjectDataProfilesIsMutable(); + projectDataProfiles_.addAll(other.projectDataProfiles_); + } + onChanged(); + } + } else { + if (!other.projectDataProfiles_.isEmpty()) { + if (projectDataProfilesBuilder_.isEmpty()) { + projectDataProfilesBuilder_.dispose(); + projectDataProfilesBuilder_ = null; + projectDataProfiles_ = other.projectDataProfiles_; + bitField0_ = (bitField0_ & ~0x00000001); + projectDataProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getProjectDataProfilesFieldBuilder() + : null; + } else { + projectDataProfilesBuilder_.addAllMessages(other.projectDataProfiles_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.privacy.dlp.v2.ProjectDataProfile m = + input.readMessage( + com.google.privacy.dlp.v2.ProjectDataProfile.parser(), extensionRegistry); + if (projectDataProfilesBuilder_ == null) { + ensureProjectDataProfilesIsMutable(); + projectDataProfiles_.add(m); + } else { + projectDataProfilesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List projectDataProfiles_ = + java.util.Collections.emptyList(); + + private void ensureProjectDataProfilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + projectDataProfiles_ = + new java.util.ArrayList( + projectDataProfiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.ProjectDataProfile, + com.google.privacy.dlp.v2.ProjectDataProfile.Builder, + com.google.privacy.dlp.v2.ProjectDataProfileOrBuilder> + projectDataProfilesBuilder_; + + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public java.util.List + getProjectDataProfilesList() { + if (projectDataProfilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(projectDataProfiles_); + } else { + return projectDataProfilesBuilder_.getMessageList(); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public int getProjectDataProfilesCount() { + if (projectDataProfilesBuilder_ == null) { + return projectDataProfiles_.size(); + } else { + return projectDataProfilesBuilder_.getCount(); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.ProjectDataProfile getProjectDataProfiles(int index) { + if (projectDataProfilesBuilder_ == null) { + return projectDataProfiles_.get(index); + } else { + return projectDataProfilesBuilder_.getMessage(index); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public Builder setProjectDataProfiles( + int index, com.google.privacy.dlp.v2.ProjectDataProfile value) { + if (projectDataProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectDataProfilesIsMutable(); + projectDataProfiles_.set(index, value); + onChanged(); + } else { + projectDataProfilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public Builder setProjectDataProfiles( + int index, com.google.privacy.dlp.v2.ProjectDataProfile.Builder builderForValue) { + if (projectDataProfilesBuilder_ == null) { + ensureProjectDataProfilesIsMutable(); + projectDataProfiles_.set(index, builderForValue.build()); + onChanged(); + } else { + projectDataProfilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public Builder addProjectDataProfiles(com.google.privacy.dlp.v2.ProjectDataProfile value) { + if (projectDataProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectDataProfilesIsMutable(); + projectDataProfiles_.add(value); + onChanged(); + } else { + projectDataProfilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public Builder addProjectDataProfiles( + int index, com.google.privacy.dlp.v2.ProjectDataProfile value) { + if (projectDataProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProjectDataProfilesIsMutable(); + projectDataProfiles_.add(index, value); + onChanged(); + } else { + projectDataProfilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public Builder addProjectDataProfiles( + com.google.privacy.dlp.v2.ProjectDataProfile.Builder builderForValue) { + if (projectDataProfilesBuilder_ == null) { + ensureProjectDataProfilesIsMutable(); + projectDataProfiles_.add(builderForValue.build()); + onChanged(); + } else { + projectDataProfilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public Builder addProjectDataProfiles( + int index, com.google.privacy.dlp.v2.ProjectDataProfile.Builder builderForValue) { + if (projectDataProfilesBuilder_ == null) { + ensureProjectDataProfilesIsMutable(); + projectDataProfiles_.add(index, builderForValue.build()); + onChanged(); + } else { + projectDataProfilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public Builder addAllProjectDataProfiles( + java.lang.Iterable values) { + if (projectDataProfilesBuilder_ == null) { + ensureProjectDataProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, projectDataProfiles_); + onChanged(); + } else { + projectDataProfilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public Builder clearProjectDataProfiles() { + if (projectDataProfilesBuilder_ == null) { + projectDataProfiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + projectDataProfilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public Builder removeProjectDataProfiles(int index) { + if (projectDataProfilesBuilder_ == null) { + ensureProjectDataProfilesIsMutable(); + projectDataProfiles_.remove(index); + onChanged(); + } else { + projectDataProfilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.ProjectDataProfile.Builder getProjectDataProfilesBuilder( + int index) { + return getProjectDataProfilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.ProjectDataProfileOrBuilder getProjectDataProfilesOrBuilder( + int index) { + if (projectDataProfilesBuilder_ == null) { + return projectDataProfiles_.get(index); + } else { + return projectDataProfilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public java.util.List + getProjectDataProfilesOrBuilderList() { + if (projectDataProfilesBuilder_ != null) { + return projectDataProfilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(projectDataProfiles_); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.ProjectDataProfile.Builder addProjectDataProfilesBuilder() { + return getProjectDataProfilesFieldBuilder() + .addBuilder(com.google.privacy.dlp.v2.ProjectDataProfile.getDefaultInstance()); + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.ProjectDataProfile.Builder addProjectDataProfilesBuilder( + int index) { + return getProjectDataProfilesFieldBuilder() + .addBuilder(index, com.google.privacy.dlp.v2.ProjectDataProfile.getDefaultInstance()); + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + public java.util.List + getProjectDataProfilesBuilderList() { + return getProjectDataProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.ProjectDataProfile, + com.google.privacy.dlp.v2.ProjectDataProfile.Builder, + com.google.privacy.dlp.v2.ProjectDataProfileOrBuilder> + getProjectDataProfilesFieldBuilder() { + if (projectDataProfilesBuilder_ == null) { + projectDataProfilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.ProjectDataProfile, + com.google.privacy.dlp.v2.ProjectDataProfile.Builder, + com.google.privacy.dlp.v2.ProjectDataProfileOrBuilder>( + projectDataProfiles_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + projectDataProfiles_ = null; + } + return projectDataProfilesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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.privacy.dlp.v2.ListProjectDataProfilesResponse) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListProjectDataProfilesResponse) + private static final com.google.privacy.dlp.v2.ListProjectDataProfilesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ListProjectDataProfilesResponse(); + } + + public static com.google.privacy.dlp.v2.ListProjectDataProfilesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListProjectDataProfilesResponse 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.privacy.dlp.v2.ListProjectDataProfilesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesResponseOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesResponseOrBuilder.java new file mode 100644 index 000000000000..5e1cc94be90d --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListProjectDataProfilesResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +public interface ListProjectDataProfilesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ListProjectDataProfilesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + java.util.List getProjectDataProfilesList(); + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + com.google.privacy.dlp.v2.ProjectDataProfile getProjectDataProfiles(int index); + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + int getProjectDataProfilesCount(); + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + java.util.List + getProjectDataProfilesOrBuilderList(); + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; + */ + com.google.privacy.dlp.v2.ProjectDataProfileOrBuilder getProjectDataProfilesOrBuilder(int index); + + /** + * + * + *
                                                                                      +   * The next page token.
                                                                                      +   * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
                                                                                      +   * The next page token.
                                                                                      +   * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java index 087bccc292b1..a2e143846b22 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequest.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -118,7 +118,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -796,7 +796,7 @@ public Builder mergeFrom( * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -835,7 +835,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -874,7 +874,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -912,7 +912,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -946,7 +946,7 @@ public Builder clearParent() { * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java index ab84f5cf4ae7..360abf747364 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListStoredInfoTypesRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface ListStoredInfoTypesRequestOrBuilder * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -61,7 +61,7 @@ public interface ListStoredInfoTypesRequestOrBuilder * * The format of this value varies depending on the scope of the request * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequest.java new file mode 100644 index 000000000000..34163fd69828 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequest.java @@ -0,0 +1,1619 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +/** + * + * + *
                                                                                      + * Request to list the profiles generated for a given organization or project.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ListTableDataProfilesRequest} + */ +public final class ListTableDataProfilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ListTableDataProfilesRequest) + ListTableDataProfilesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTableDataProfilesRequest.newBuilder() to construct. + private ListTableDataProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTableDataProfilesRequest() { + parent_ = ""; + pageToken_ = ""; + orderBy_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTableDataProfilesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListTableDataProfilesRequest.class, + com.google.privacy.dlp.v2.ListTableDataProfilesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
                                                                                      +   * Required. Resource name of the organization or project, for
                                                                                      +   * example `organizations/433245324/locations/europe` or
                                                                                      +   * `projects/project-id/locations/asia`.
                                                                                      +   * 
                                                                                      + * + * + * 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. Resource name of the organization or project, for
                                                                                      +   * example `organizations/433245324/locations/europe` or
                                                                                      +   * `projects/project-id/locations/asia`.
                                                                                      +   * 
                                                                                      + * + * + * 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 PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
                                                                                      +   * Page token to continue retrieval.
                                                                                      +   * 
                                                                                      + * + * string page_token = 2; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Page token to continue retrieval.
                                                                                      +   * 
                                                                                      + * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
                                                                                      +   * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +   * returns a page of max size 100.
                                                                                      +   * 
                                                                                      + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
                                                                                      +   * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +   * postfix. This list is case insensitive. The default sorting order is
                                                                                      +   * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +   * field at a time is allowed.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   * * `project_id asc`
                                                                                      +   * * `table_id`
                                                                                      +   * * `sensitivity_level desc`
                                                                                      +   *
                                                                                      +   * Supported fields are:
                                                                                      +   *
                                                                                      +   * - `project_id`: The GCP project ID.
                                                                                      +   * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +   * - `table_id`: The ID of a BigQuery table.
                                                                                      +   * - `sensitivity_level`: How sensitive the data in a table is, at most.
                                                                                      +   * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +   * seconds.
                                                                                      +   * - `last_modified`: The last time the resource was modified.
                                                                                      +   * - `resource_visibility`: Visibility restriction for this resource.
                                                                                      +   * - `row_count`: Number of rows in this resource.
                                                                                      +   * 
                                                                                      + * + * string order_by = 4; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +   * postfix. This list is case insensitive. The default sorting order is
                                                                                      +   * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +   * field at a time is allowed.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   * * `project_id asc`
                                                                                      +   * * `table_id`
                                                                                      +   * * `sensitivity_level desc`
                                                                                      +   *
                                                                                      +   * Supported fields are:
                                                                                      +   *
                                                                                      +   * - `project_id`: The GCP project ID.
                                                                                      +   * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +   * - `table_id`: The ID of a BigQuery table.
                                                                                      +   * - `sensitivity_level`: How sensitive the data in a table is, at most.
                                                                                      +   * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +   * seconds.
                                                                                      +   * - `last_modified`: The last time the resource was modified.
                                                                                      +   * - `resource_visibility`: Visibility restriction for this resource.
                                                                                      +   * - `row_count`: Number of rows in this resource.
                                                                                      +   * 
                                                                                      + * + * string order_by = 4; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
                                                                                      +   * Allows filtering.
                                                                                      +   *
                                                                                      +   * Supported syntax:
                                                                                      +   *
                                                                                      +   * * Filter expressions are made up of one or more restrictions.
                                                                                      +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +   * sequence of restrictions implicitly uses `AND`.
                                                                                      +   * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +   * * Supported fields/values:
                                                                                      +   *     - `project_id` - The GCP project ID.
                                                                                      +   *     - `dataset_id` - The BigQuery dataset ID.
                                                                                      +   *     - `table_id` - The ID of the BigQuery table.
                                                                                      +   *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `resource_visibility`: PUBLIC|RESTRICTED
                                                                                      +   *     - `status_code` - an RPC status code as defined in
                                                                                      +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +   * * The operator must be `=` or `!=`.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   *
                                                                                      +   * * `project_id = 12345 AND status_code = 1`
                                                                                      +   * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +   * * `project_id = 12345 AND resource_visibility = PUBLIC`
                                                                                      +   *
                                                                                      +   * The length of this field should be no more than 500 characters.
                                                                                      +   * 
                                                                                      + * + * string filter = 5; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Allows filtering.
                                                                                      +   *
                                                                                      +   * Supported syntax:
                                                                                      +   *
                                                                                      +   * * Filter expressions are made up of one or more restrictions.
                                                                                      +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +   * sequence of restrictions implicitly uses `AND`.
                                                                                      +   * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +   * * Supported fields/values:
                                                                                      +   *     - `project_id` - The GCP project ID.
                                                                                      +   *     - `dataset_id` - The BigQuery dataset ID.
                                                                                      +   *     - `table_id` - The ID of the BigQuery table.
                                                                                      +   *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `resource_visibility`: PUBLIC|RESTRICTED
                                                                                      +   *     - `status_code` - an RPC status code as defined in
                                                                                      +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +   * * The operator must be `=` or `!=`.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   *
                                                                                      +   * * `project_id = 12345 AND status_code = 1`
                                                                                      +   * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +   * * `project_id = 12345 AND resource_visibility = PUBLIC`
                                                                                      +   *
                                                                                      +   * The length of this field should be no more than 500 characters.
                                                                                      +   * 
                                                                                      + * + * string filter = 5; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); + } + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, orderBy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); + } + 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.privacy.dlp.v2.ListTableDataProfilesRequest)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.ListTableDataProfilesRequest other = + (com.google.privacy.dlp.v2.ListTableDataProfilesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getFilter().equals(other.getFilter())) 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(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesRequest 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.privacy.dlp.v2.ListTableDataProfilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesRequest 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.privacy.dlp.v2.ListTableDataProfilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesRequest 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.privacy.dlp.v2.ListTableDataProfilesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesRequest 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.privacy.dlp.v2.ListTableDataProfilesRequest 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 to list the profiles generated for a given organization or project.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ListTableDataProfilesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ListTableDataProfilesRequest) + com.google.privacy.dlp.v2.ListTableDataProfilesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListTableDataProfilesRequest.class, + com.google.privacy.dlp.v2.ListTableDataProfilesRequest.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.ListTableDataProfilesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + orderBy_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListTableDataProfilesRequest_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListTableDataProfilesRequest getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ListTableDataProfilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListTableDataProfilesRequest build() { + com.google.privacy.dlp.v2.ListTableDataProfilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListTableDataProfilesRequest buildPartial() { + com.google.privacy.dlp.v2.ListTableDataProfilesRequest result = + new com.google.privacy.dlp.v2.ListTableDataProfilesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.ListTableDataProfilesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } + } + + @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.privacy.dlp.v2.ListTableDataProfilesRequest) { + return mergeFrom((com.google.privacy.dlp.v2.ListTableDataProfilesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.ListTableDataProfilesRequest other) { + if (other == com.google.privacy.dlp.v2.ListTableDataProfilesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + /** + * + * + *
                                                                                      +     * Required. Resource name of the organization or project, for
                                                                                      +     * example `organizations/433245324/locations/europe` or
                                                                                      +     * `projects/project-id/locations/asia`.
                                                                                      +     * 
                                                                                      + * + * + * 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. Resource name of the organization or project, for
                                                                                      +     * example `organizations/433245324/locations/europe` or
                                                                                      +     * `projects/project-id/locations/asia`.
                                                                                      +     * 
                                                                                      + * + * + * 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. Resource name of the organization or project, for
                                                                                      +     * example `organizations/433245324/locations/europe` or
                                                                                      +     * `projects/project-id/locations/asia`.
                                                                                      +     * 
                                                                                      + * + * + * 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. Resource name of the organization or project, for
                                                                                      +     * example `organizations/433245324/locations/europe` or
                                                                                      +     * `projects/project-id/locations/asia`.
                                                                                      +     * 
                                                                                      + * + * + * 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. Resource name of the organization or project, for
                                                                                      +     * example `organizations/433245324/locations/europe` or
                                                                                      +     * `projects/project-id/locations/asia`.
                                                                                      +     * 
                                                                                      + * + * + * 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 java.lang.Object pageToken_ = ""; + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Page token to continue retrieval.
                                                                                      +     * 
                                                                                      + * + * string page_token = 2; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
                                                                                      +     * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +     * returns a page of max size 100.
                                                                                      +     * 
                                                                                      + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
                                                                                      +     * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +     * returns a page of max size 100.
                                                                                      +     * 
                                                                                      + * + * int32 page_size = 3; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +     * returns a page of max size 100.
                                                                                      +     * 
                                                                                      + * + * int32 page_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id asc`
                                                                                      +     * * `table_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: The GCP project ID.
                                                                                      +     * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +     * - `table_id`: The ID of a BigQuery table.
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a table is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * - `last_modified`: The last time the resource was modified.
                                                                                      +     * - `resource_visibility`: Visibility restriction for this resource.
                                                                                      +     * - `row_count`: Number of rows in this resource.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id asc`
                                                                                      +     * * `table_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: The GCP project ID.
                                                                                      +     * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +     * - `table_id`: The ID of a BigQuery table.
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a table is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * - `last_modified`: The last time the resource was modified.
                                                                                      +     * - `resource_visibility`: Visibility restriction for this resource.
                                                                                      +     * - `row_count`: Number of rows in this resource.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id asc`
                                                                                      +     * * `table_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: The GCP project ID.
                                                                                      +     * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +     * - `table_id`: The ID of a BigQuery table.
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a table is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * - `last_modified`: The last time the resource was modified.
                                                                                      +     * - `resource_visibility`: Visibility restriction for this resource.
                                                                                      +     * - `row_count`: Number of rows in this resource.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id asc`
                                                                                      +     * * `table_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: The GCP project ID.
                                                                                      +     * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +     * - `table_id`: The ID of a BigQuery table.
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a table is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * - `last_modified`: The last time the resource was modified.
                                                                                      +     * - `resource_visibility`: Visibility restriction for this resource.
                                                                                      +     * - `row_count`: Number of rows in this resource.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +     * postfix. This list is case insensitive. The default sorting order is
                                                                                      +     * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +     * field at a time is allowed.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     * * `project_id asc`
                                                                                      +     * * `table_id`
                                                                                      +     * * `sensitivity_level desc`
                                                                                      +     *
                                                                                      +     * Supported fields are:
                                                                                      +     *
                                                                                      +     * - `project_id`: The GCP project ID.
                                                                                      +     * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +     * - `table_id`: The ID of a BigQuery table.
                                                                                      +     * - `sensitivity_level`: How sensitive the data in a table is, at most.
                                                                                      +     * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +     * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +     * seconds.
                                                                                      +     * - `last_modified`: The last time the resource was modified.
                                                                                      +     * - `resource_visibility`: Visibility restriction for this resource.
                                                                                      +     * - `row_count`: Number of rows in this resource.
                                                                                      +     * 
                                                                                      + * + * string order_by = 4; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `project_id` - The GCP project ID.
                                                                                      +     *     - `dataset_id` - The BigQuery dataset ID.
                                                                                      +     *     - `table_id` - The ID of the BigQuery table.
                                                                                      +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `resource_visibility`: PUBLIC|RESTRICTED
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` or `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * `project_id = 12345 AND status_code = 1`
                                                                                      +     * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +     * * `project_id = 12345 AND resource_visibility = PUBLIC`
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `project_id` - The GCP project ID.
                                                                                      +     *     - `dataset_id` - The BigQuery dataset ID.
                                                                                      +     *     - `table_id` - The ID of the BigQuery table.
                                                                                      +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `resource_visibility`: PUBLIC|RESTRICTED
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` or `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * `project_id = 12345 AND status_code = 1`
                                                                                      +     * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +     * * `project_id = 12345 AND resource_visibility = PUBLIC`
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `project_id` - The GCP project ID.
                                                                                      +     *     - `dataset_id` - The BigQuery dataset ID.
                                                                                      +     *     - `table_id` - The ID of the BigQuery table.
                                                                                      +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `resource_visibility`: PUBLIC|RESTRICTED
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` or `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * `project_id = 12345 AND status_code = 1`
                                                                                      +     * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +     * * `project_id = 12345 AND resource_visibility = PUBLIC`
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `project_id` - The GCP project ID.
                                                                                      +     *     - `dataset_id` - The BigQuery dataset ID.
                                                                                      +     *     - `table_id` - The ID of the BigQuery table.
                                                                                      +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `resource_visibility`: PUBLIC|RESTRICTED
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` or `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * `project_id = 12345 AND status_code = 1`
                                                                                      +     * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +     * * `project_id = 12345 AND resource_visibility = PUBLIC`
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Allows filtering.
                                                                                      +     *
                                                                                      +     * Supported syntax:
                                                                                      +     *
                                                                                      +     * * Filter expressions are made up of one or more restrictions.
                                                                                      +     * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +     * sequence of restrictions implicitly uses `AND`.
                                                                                      +     * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +     * * Supported fields/values:
                                                                                      +     *     - `project_id` - The GCP project ID.
                                                                                      +     *     - `dataset_id` - The BigQuery dataset ID.
                                                                                      +     *     - `table_id` - The ID of the BigQuery table.
                                                                                      +     *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +     *     - `resource_visibility`: PUBLIC|RESTRICTED
                                                                                      +     *     - `status_code` - an RPC status code as defined in
                                                                                      +     *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +     * * The operator must be `=` or `!=`.
                                                                                      +     *
                                                                                      +     * Examples:
                                                                                      +     *
                                                                                      +     * * `project_id = 12345 AND status_code = 1`
                                                                                      +     * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +     * * `project_id = 12345 AND resource_visibility = PUBLIC`
                                                                                      +     *
                                                                                      +     * The length of this field should be no more than 500 characters.
                                                                                      +     * 
                                                                                      + * + * string filter = 5; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + 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.privacy.dlp.v2.ListTableDataProfilesRequest) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListTableDataProfilesRequest) + private static final com.google.privacy.dlp.v2.ListTableDataProfilesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ListTableDataProfilesRequest(); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTableDataProfilesRequest 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.privacy.dlp.v2.ListTableDataProfilesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequestOrBuilder.java new file mode 100644 index 000000000000..8b71d66de99b --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesRequestOrBuilder.java @@ -0,0 +1,240 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +public interface ListTableDataProfilesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ListTableDataProfilesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * Required. Resource name of the organization or project, for
                                                                                      +   * example `organizations/433245324/locations/europe` or
                                                                                      +   * `projects/project-id/locations/asia`.
                                                                                      +   * 
                                                                                      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
                                                                                      +   * Required. Resource name of the organization or project, for
                                                                                      +   * example `organizations/433245324/locations/europe` or
                                                                                      +   * `projects/project-id/locations/asia`.
                                                                                      +   * 
                                                                                      + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
                                                                                      +   * Page token to continue retrieval.
                                                                                      +   * 
                                                                                      + * + * string page_token = 2; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
                                                                                      +   * Page token to continue retrieval.
                                                                                      +   * 
                                                                                      + * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
                                                                                      +   * Size of the page. This value can be limited by the server. If zero, server
                                                                                      +   * returns a page of max size 100.
                                                                                      +   * 
                                                                                      + * + * int32 page_size = 3; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
                                                                                      +   * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +   * postfix. This list is case insensitive. The default sorting order is
                                                                                      +   * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +   * field at a time is allowed.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   * * `project_id asc`
                                                                                      +   * * `table_id`
                                                                                      +   * * `sensitivity_level desc`
                                                                                      +   *
                                                                                      +   * Supported fields are:
                                                                                      +   *
                                                                                      +   * - `project_id`: The GCP project ID.
                                                                                      +   * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +   * - `table_id`: The ID of a BigQuery table.
                                                                                      +   * - `sensitivity_level`: How sensitive the data in a table is, at most.
                                                                                      +   * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +   * seconds.
                                                                                      +   * - `last_modified`: The last time the resource was modified.
                                                                                      +   * - `resource_visibility`: Visibility restriction for this resource.
                                                                                      +   * - `row_count`: Number of rows in this resource.
                                                                                      +   * 
                                                                                      + * + * string order_by = 4; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
                                                                                      +   * Comma separated list of fields to order by, followed by `asc` or `desc`
                                                                                      +   * postfix. This list is case insensitive. The default sorting order is
                                                                                      +   * ascending. Redundant space characters are insignificant. Only one order
                                                                                      +   * field at a time is allowed.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   * * `project_id asc`
                                                                                      +   * * `table_id`
                                                                                      +   * * `sensitivity_level desc`
                                                                                      +   *
                                                                                      +   * Supported fields are:
                                                                                      +   *
                                                                                      +   * - `project_id`: The GCP project ID.
                                                                                      +   * - `dataset_id`: The ID of a BigQuery dataset.
                                                                                      +   * - `table_id`: The ID of a BigQuery table.
                                                                                      +   * - `sensitivity_level`: How sensitive the data in a table is, at most.
                                                                                      +   * - `data_risk_level`: How much risk is associated with this data.
                                                                                      +   * - `profile_last_generated`: When the profile was last updated in epoch
                                                                                      +   * seconds.
                                                                                      +   * - `last_modified`: The last time the resource was modified.
                                                                                      +   * - `resource_visibility`: Visibility restriction for this resource.
                                                                                      +   * - `row_count`: Number of rows in this resource.
                                                                                      +   * 
                                                                                      + * + * string order_by = 4; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
                                                                                      +   * Allows filtering.
                                                                                      +   *
                                                                                      +   * Supported syntax:
                                                                                      +   *
                                                                                      +   * * Filter expressions are made up of one or more restrictions.
                                                                                      +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +   * sequence of restrictions implicitly uses `AND`.
                                                                                      +   * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +   * * Supported fields/values:
                                                                                      +   *     - `project_id` - The GCP project ID.
                                                                                      +   *     - `dataset_id` - The BigQuery dataset ID.
                                                                                      +   *     - `table_id` - The ID of the BigQuery table.
                                                                                      +   *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `resource_visibility`: PUBLIC|RESTRICTED
                                                                                      +   *     - `status_code` - an RPC status code as defined in
                                                                                      +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +   * * The operator must be `=` or `!=`.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   *
                                                                                      +   * * `project_id = 12345 AND status_code = 1`
                                                                                      +   * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +   * * `project_id = 12345 AND resource_visibility = PUBLIC`
                                                                                      +   *
                                                                                      +   * The length of this field should be no more than 500 characters.
                                                                                      +   * 
                                                                                      + * + * string filter = 5; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
                                                                                      +   * Allows filtering.
                                                                                      +   *
                                                                                      +   * Supported syntax:
                                                                                      +   *
                                                                                      +   * * Filter expressions are made up of one or more restrictions.
                                                                                      +   * * Restrictions can be combined by `AND` or `OR` logical operators. A
                                                                                      +   * sequence of restrictions implicitly uses `AND`.
                                                                                      +   * * A restriction has the form of `{field} {operator} {value}`.
                                                                                      +   * * Supported fields/values:
                                                                                      +   *     - `project_id` - The GCP project ID.
                                                                                      +   *     - `dataset_id` - The BigQuery dataset ID.
                                                                                      +   *     - `table_id` - The ID of the BigQuery table.
                                                                                      +   *     - `sensitivity_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `data_risk_level` - HIGH|MODERATE|LOW
                                                                                      +   *     - `resource_visibility`: PUBLIC|RESTRICTED
                                                                                      +   *     - `status_code` - an RPC status code as defined in
                                                                                      +   *     https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
                                                                                      +   * * The operator must be `=` or `!=`.
                                                                                      +   *
                                                                                      +   * Examples:
                                                                                      +   *
                                                                                      +   * * `project_id = 12345 AND status_code = 1`
                                                                                      +   * * `project_id = 12345 AND sensitivity_level = HIGH`
                                                                                      +   * * `project_id = 12345 AND resource_visibility = PUBLIC`
                                                                                      +   *
                                                                                      +   * The length of this field should be no more than 500 characters.
                                                                                      +   * 
                                                                                      + * + * string filter = 5; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesResponse.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesResponse.java new file mode 100644 index 000000000000..2c6accfb5dfe --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesResponse.java @@ -0,0 +1,1131 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +/** + * + * + *
                                                                                      + * List of profiles generated for a given organization or project.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ListTableDataProfilesResponse} + */ +public final class ListTableDataProfilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ListTableDataProfilesResponse) + ListTableDataProfilesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTableDataProfilesResponse.newBuilder() to construct. + private ListTableDataProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTableDataProfilesResponse() { + tableDataProfiles_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTableDataProfilesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListTableDataProfilesResponse.class, + com.google.privacy.dlp.v2.ListTableDataProfilesResponse.Builder.class); + } + + public static final int TABLE_DATA_PROFILES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List tableDataProfiles_; + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + @java.lang.Override + public java.util.List getTableDataProfilesList() { + return tableDataProfiles_; + } + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + @java.lang.Override + public java.util.List + getTableDataProfilesOrBuilderList() { + return tableDataProfiles_; + } + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + @java.lang.Override + public int getTableDataProfilesCount() { + return tableDataProfiles_.size(); + } + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.TableDataProfile getTableDataProfiles(int index) { + return tableDataProfiles_.get(index); + } + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.TableDataProfileOrBuilder getTableDataProfilesOrBuilder( + int index) { + return tableDataProfiles_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
                                                                                      +   * The next page token.
                                                                                      +   * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * The next page token.
                                                                                      +   * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < tableDataProfiles_.size(); i++) { + output.writeMessage(1, tableDataProfiles_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tableDataProfiles_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, tableDataProfiles_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.privacy.dlp.v2.ListTableDataProfilesResponse)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.ListTableDataProfilesResponse other = + (com.google.privacy.dlp.v2.ListTableDataProfilesResponse) obj; + + if (!getTableDataProfilesList().equals(other.getTableDataProfilesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getTableDataProfilesCount() > 0) { + hash = (37 * hash) + TABLE_DATA_PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getTableDataProfilesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesResponse 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.privacy.dlp.v2.ListTableDataProfilesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesResponse 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.privacy.dlp.v2.ListTableDataProfilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesResponse 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.privacy.dlp.v2.ListTableDataProfilesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesResponse 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.privacy.dlp.v2.ListTableDataProfilesResponse 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; + } + /** + * + * + *
                                                                                      +   * List of profiles generated for a given organization or project.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ListTableDataProfilesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ListTableDataProfilesResponse) + com.google.privacy.dlp.v2.ListTableDataProfilesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ListTableDataProfilesResponse.class, + com.google.privacy.dlp.v2.ListTableDataProfilesResponse.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.ListTableDataProfilesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (tableDataProfilesBuilder_ == null) { + tableDataProfiles_ = java.util.Collections.emptyList(); + } else { + tableDataProfiles_ = null; + tableDataProfilesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ListTableDataProfilesResponse_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListTableDataProfilesResponse getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ListTableDataProfilesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListTableDataProfilesResponse build() { + com.google.privacy.dlp.v2.ListTableDataProfilesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ListTableDataProfilesResponse buildPartial() { + com.google.privacy.dlp.v2.ListTableDataProfilesResponse result = + new com.google.privacy.dlp.v2.ListTableDataProfilesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.privacy.dlp.v2.ListTableDataProfilesResponse result) { + if (tableDataProfilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tableDataProfiles_ = java.util.Collections.unmodifiableList(tableDataProfiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tableDataProfiles_ = tableDataProfiles_; + } else { + result.tableDataProfiles_ = tableDataProfilesBuilder_.build(); + } + } + + private void buildPartial0(com.google.privacy.dlp.v2.ListTableDataProfilesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.privacy.dlp.v2.ListTableDataProfilesResponse) { + return mergeFrom((com.google.privacy.dlp.v2.ListTableDataProfilesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.ListTableDataProfilesResponse other) { + if (other == com.google.privacy.dlp.v2.ListTableDataProfilesResponse.getDefaultInstance()) + return this; + if (tableDataProfilesBuilder_ == null) { + if (!other.tableDataProfiles_.isEmpty()) { + if (tableDataProfiles_.isEmpty()) { + tableDataProfiles_ = other.tableDataProfiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTableDataProfilesIsMutable(); + tableDataProfiles_.addAll(other.tableDataProfiles_); + } + onChanged(); + } + } else { + if (!other.tableDataProfiles_.isEmpty()) { + if (tableDataProfilesBuilder_.isEmpty()) { + tableDataProfilesBuilder_.dispose(); + tableDataProfilesBuilder_ = null; + tableDataProfiles_ = other.tableDataProfiles_; + bitField0_ = (bitField0_ & ~0x00000001); + tableDataProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTableDataProfilesFieldBuilder() + : null; + } else { + tableDataProfilesBuilder_.addAllMessages(other.tableDataProfiles_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.privacy.dlp.v2.TableDataProfile m = + input.readMessage( + com.google.privacy.dlp.v2.TableDataProfile.parser(), extensionRegistry); + if (tableDataProfilesBuilder_ == null) { + ensureTableDataProfilesIsMutable(); + tableDataProfiles_.add(m); + } else { + tableDataProfilesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List tableDataProfiles_ = + java.util.Collections.emptyList(); + + private void ensureTableDataProfilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tableDataProfiles_ = + new java.util.ArrayList(tableDataProfiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.TableDataProfile, + com.google.privacy.dlp.v2.TableDataProfile.Builder, + com.google.privacy.dlp.v2.TableDataProfileOrBuilder> + tableDataProfilesBuilder_; + + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public java.util.List getTableDataProfilesList() { + if (tableDataProfilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(tableDataProfiles_); + } else { + return tableDataProfilesBuilder_.getMessageList(); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public int getTableDataProfilesCount() { + if (tableDataProfilesBuilder_ == null) { + return tableDataProfiles_.size(); + } else { + return tableDataProfilesBuilder_.getCount(); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.TableDataProfile getTableDataProfiles(int index) { + if (tableDataProfilesBuilder_ == null) { + return tableDataProfiles_.get(index); + } else { + return tableDataProfilesBuilder_.getMessage(index); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public Builder setTableDataProfiles( + int index, com.google.privacy.dlp.v2.TableDataProfile value) { + if (tableDataProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableDataProfilesIsMutable(); + tableDataProfiles_.set(index, value); + onChanged(); + } else { + tableDataProfilesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public Builder setTableDataProfiles( + int index, com.google.privacy.dlp.v2.TableDataProfile.Builder builderForValue) { + if (tableDataProfilesBuilder_ == null) { + ensureTableDataProfilesIsMutable(); + tableDataProfiles_.set(index, builderForValue.build()); + onChanged(); + } else { + tableDataProfilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public Builder addTableDataProfiles(com.google.privacy.dlp.v2.TableDataProfile value) { + if (tableDataProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableDataProfilesIsMutable(); + tableDataProfiles_.add(value); + onChanged(); + } else { + tableDataProfilesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public Builder addTableDataProfiles( + int index, com.google.privacy.dlp.v2.TableDataProfile value) { + if (tableDataProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableDataProfilesIsMutable(); + tableDataProfiles_.add(index, value); + onChanged(); + } else { + tableDataProfilesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public Builder addTableDataProfiles( + com.google.privacy.dlp.v2.TableDataProfile.Builder builderForValue) { + if (tableDataProfilesBuilder_ == null) { + ensureTableDataProfilesIsMutable(); + tableDataProfiles_.add(builderForValue.build()); + onChanged(); + } else { + tableDataProfilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public Builder addTableDataProfiles( + int index, com.google.privacy.dlp.v2.TableDataProfile.Builder builderForValue) { + if (tableDataProfilesBuilder_ == null) { + ensureTableDataProfilesIsMutable(); + tableDataProfiles_.add(index, builderForValue.build()); + onChanged(); + } else { + tableDataProfilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public Builder addAllTableDataProfiles( + java.lang.Iterable values) { + if (tableDataProfilesBuilder_ == null) { + ensureTableDataProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tableDataProfiles_); + onChanged(); + } else { + tableDataProfilesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public Builder clearTableDataProfiles() { + if (tableDataProfilesBuilder_ == null) { + tableDataProfiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tableDataProfilesBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public Builder removeTableDataProfiles(int index) { + if (tableDataProfilesBuilder_ == null) { + ensureTableDataProfilesIsMutable(); + tableDataProfiles_.remove(index); + onChanged(); + } else { + tableDataProfilesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.TableDataProfile.Builder getTableDataProfilesBuilder( + int index) { + return getTableDataProfilesFieldBuilder().getBuilder(index); + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.TableDataProfileOrBuilder getTableDataProfilesOrBuilder( + int index) { + if (tableDataProfilesBuilder_ == null) { + return tableDataProfiles_.get(index); + } else { + return tableDataProfilesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public java.util.List + getTableDataProfilesOrBuilderList() { + if (tableDataProfilesBuilder_ != null) { + return tableDataProfilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tableDataProfiles_); + } + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.TableDataProfile.Builder addTableDataProfilesBuilder() { + return getTableDataProfilesFieldBuilder() + .addBuilder(com.google.privacy.dlp.v2.TableDataProfile.getDefaultInstance()); + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public com.google.privacy.dlp.v2.TableDataProfile.Builder addTableDataProfilesBuilder( + int index) { + return getTableDataProfilesFieldBuilder() + .addBuilder(index, com.google.privacy.dlp.v2.TableDataProfile.getDefaultInstance()); + } + /** + * + * + *
                                                                                      +     * List of data profiles.
                                                                                      +     * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + public java.util.List + getTableDataProfilesBuilderList() { + return getTableDataProfilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.TableDataProfile, + com.google.privacy.dlp.v2.TableDataProfile.Builder, + com.google.privacy.dlp.v2.TableDataProfileOrBuilder> + getTableDataProfilesFieldBuilder() { + if (tableDataProfilesBuilder_ == null) { + tableDataProfilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.privacy.dlp.v2.TableDataProfile, + com.google.privacy.dlp.v2.TableDataProfile.Builder, + com.google.privacy.dlp.v2.TableDataProfileOrBuilder>( + tableDataProfiles_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + tableDataProfiles_ = null; + } + return tableDataProfilesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The next page token.
                                                                                      +     * 
                                                                                      + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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.privacy.dlp.v2.ListTableDataProfilesResponse) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ListTableDataProfilesResponse) + private static final com.google.privacy.dlp.v2.ListTableDataProfilesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ListTableDataProfilesResponse(); + } + + public static com.google.privacy.dlp.v2.ListTableDataProfilesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTableDataProfilesResponse 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.privacy.dlp.v2.ListTableDataProfilesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesResponseOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesResponseOrBuilder.java new file mode 100644 index 000000000000..7c88d3852b76 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ListTableDataProfilesResponseOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +public interface ListTableDataProfilesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ListTableDataProfilesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + java.util.List getTableDataProfilesList(); + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + com.google.privacy.dlp.v2.TableDataProfile getTableDataProfiles(int index); + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + int getTableDataProfilesCount(); + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + java.util.List + getTableDataProfilesOrBuilderList(); + /** + * + * + *
                                                                                      +   * List of data profiles.
                                                                                      +   * 
                                                                                      + * + * repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; + */ + com.google.privacy.dlp.v2.TableDataProfileOrBuilder getTableDataProfilesOrBuilder(int index); + + /** + * + * + *
                                                                                      +   * The next page token.
                                                                                      +   * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
                                                                                      +   * The next page token.
                                                                                      +   * 
                                                                                      + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/NullPercentageLevel.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/NullPercentageLevel.java index 9622ade291c8..8d384fbc2fd6 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/NullPercentageLevel.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/NullPercentageLevel.java @@ -60,7 +60,15 @@ public enum NullPercentageLevel implements com.google.protobuf.ProtocolMessageEn * NULL_PERCENTAGE_LOW = 2; */ NULL_PERCENTAGE_LOW(2), - /** NULL_PERCENTAGE_MEDIUM = 3; */ + /** + * + * + *
                                                                                      +   * A few null entries.
                                                                                      +   * 
                                                                                      + * + * NULL_PERCENTAGE_MEDIUM = 3; + */ NULL_PERCENTAGE_MEDIUM(3), /** * @@ -105,7 +113,15 @@ public enum NullPercentageLevel implements com.google.protobuf.ProtocolMessageEn * NULL_PERCENTAGE_LOW = 2; */ public static final int NULL_PERCENTAGE_LOW_VALUE = 2; - /** NULL_PERCENTAGE_MEDIUM = 3; */ + /** + * + * + *
                                                                                      +   * A few null entries.
                                                                                      +   * 
                                                                                      + * + * NULL_PERCENTAGE_MEDIUM = 3; + */ public static final int NULL_PERCENTAGE_MEDIUM_VALUE = 3; /** * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProfileStatus.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProfileStatus.java index a87a7599a713..e599a78b4463 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProfileStatus.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProfileStatus.java @@ -19,7 +19,15 @@ // Protobuf Java Version: 3.25.2 package com.google.privacy.dlp.v2; -/** Protobuf type {@code google.privacy.dlp.v2.ProfileStatus} */ +/** + * + * + *
                                                                                      + * Success or errors for the profile generation.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ProfileStatus} + */ public final class ProfileStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ProfileStatus) @@ -326,7 +334,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.privacy.dlp.v2.ProfileStatus} */ + /** + * + * + *
                                                                                      +   * Success or errors for the profile generation.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ProfileStatus} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ProfileStatus) diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfile.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfile.java new file mode 100644 index 000000000000..0c123b3e84d9 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfile.java @@ -0,0 +1,1904 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +/** + * + * + *
                                                                                      + * An aggregated profile for this project, based on the resources profiled
                                                                                      + * within it.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ProjectDataProfile} + */ +public final class ProjectDataProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.ProjectDataProfile) + ProjectDataProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProjectDataProfile.newBuilder() to construct. + private ProjectDataProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProjectDataProfile() { + name_ = ""; + projectId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProjectDataProfile(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ProjectDataProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ProjectDataProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ProjectDataProfile.class, + com.google.privacy.dlp.v2.ProjectDataProfile.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                                                                      +   * The resource name of the profile.
                                                                                      +   * 
                                                                                      + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * The resource name of the profile.
                                                                                      +   * 
                                                                                      + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + * + * + *
                                                                                      +   * Project ID that was profiled.
                                                                                      +   * 
                                                                                      + * + * string project_id = 2; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Project ID that was profiled.
                                                                                      +   * 
                                                                                      + * + * string project_id = 2; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROFILE_LAST_GENERATED_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp profileLastGenerated_; + /** + * + * + *
                                                                                      +   * The last time the profile was generated.
                                                                                      +   * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + * + * @return Whether the profileLastGenerated field is set. + */ + @java.lang.Override + public boolean hasProfileLastGenerated() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                                                                      +   * The last time the profile was generated.
                                                                                      +   * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + * + * @return The profileLastGenerated. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getProfileLastGenerated() { + return profileLastGenerated_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : profileLastGenerated_; + } + /** + * + * + *
                                                                                      +   * The last time the profile was generated.
                                                                                      +   * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getProfileLastGeneratedOrBuilder() { + return profileLastGenerated_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : profileLastGenerated_; + } + + public static final int SENSITIVITY_SCORE_FIELD_NUMBER = 4; + private com.google.privacy.dlp.v2.SensitivityScore sensitivityScore_; + /** + * + * + *
                                                                                      +   * The sensitivity score of this project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + * + * @return Whether the sensitivityScore field is set. + */ + @java.lang.Override + public boolean hasSensitivityScore() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                                                                      +   * The sensitivity score of this project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + * + * @return The sensitivityScore. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore() { + return sensitivityScore_ == null + ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance() + : sensitivityScore_; + } + /** + * + * + *
                                                                                      +   * The sensitivity score of this project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder() { + return sensitivityScore_ == null + ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance() + : sensitivityScore_; + } + + public static final int DATA_RISK_LEVEL_FIELD_NUMBER = 5; + private com.google.privacy.dlp.v2.DataRiskLevel dataRiskLevel_; + /** + * + * + *
                                                                                      +   * The data risk level of this project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + * + * @return Whether the dataRiskLevel field is set. + */ + @java.lang.Override + public boolean hasDataRiskLevel() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                                                                                      +   * The data risk level of this project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + * + * @return The dataRiskLevel. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataRiskLevel getDataRiskLevel() { + return dataRiskLevel_ == null + ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance() + : dataRiskLevel_; + } + /** + * + * + *
                                                                                      +   * The data risk level of this project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataRiskLevelOrBuilder getDataRiskLevelOrBuilder() { + return dataRiskLevel_ == null + ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance() + : dataRiskLevel_; + } + + public static final int PROFILE_STATUS_FIELD_NUMBER = 7; + private com.google.privacy.dlp.v2.ProfileStatus profileStatus_; + /** + * + * + *
                                                                                      +   * Success or error status of the last attempt to profile the project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + * + * @return Whether the profileStatus field is set. + */ + @java.lang.Override + public boolean hasProfileStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                                                                      +   * Success or error status of the last attempt to profile the project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + * + * @return The profileStatus. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ProfileStatus getProfileStatus() { + return profileStatus_ == null + ? com.google.privacy.dlp.v2.ProfileStatus.getDefaultInstance() + : profileStatus_; + } + /** + * + * + *
                                                                                      +   * Success or error status of the last attempt to profile the project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.ProfileStatusOrBuilder getProfileStatusOrBuilder() { + return profileStatus_ == null + ? com.google.privacy.dlp.v2.ProfileStatus.getDefaultInstance() + : profileStatus_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getProfileLastGenerated()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getSensitivityScore()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getDataRiskLevel()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(7, getProfileStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProfileLastGenerated()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSensitivityScore()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDataRiskLevel()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getProfileStatus()); + } + 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.privacy.dlp.v2.ProjectDataProfile)) { + return super.equals(obj); + } + com.google.privacy.dlp.v2.ProjectDataProfile other = + (com.google.privacy.dlp.v2.ProjectDataProfile) obj; + + if (!getName().equals(other.getName())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (hasProfileLastGenerated() != other.hasProfileLastGenerated()) return false; + if (hasProfileLastGenerated()) { + if (!getProfileLastGenerated().equals(other.getProfileLastGenerated())) return false; + } + if (hasSensitivityScore() != other.hasSensitivityScore()) return false; + if (hasSensitivityScore()) { + if (!getSensitivityScore().equals(other.getSensitivityScore())) return false; + } + if (hasDataRiskLevel() != other.hasDataRiskLevel()) return false; + if (hasDataRiskLevel()) { + if (!getDataRiskLevel().equals(other.getDataRiskLevel())) return false; + } + if (hasProfileStatus() != other.hasProfileStatus()) return false; + if (hasProfileStatus()) { + if (!getProfileStatus().equals(other.getProfileStatus())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + if (hasProfileLastGenerated()) { + hash = (37 * hash) + PROFILE_LAST_GENERATED_FIELD_NUMBER; + hash = (53 * hash) + getProfileLastGenerated().hashCode(); + } + if (hasSensitivityScore()) { + hash = (37 * hash) + SENSITIVITY_SCORE_FIELD_NUMBER; + hash = (53 * hash) + getSensitivityScore().hashCode(); + } + if (hasDataRiskLevel()) { + hash = (37 * hash) + DATA_RISK_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + getDataRiskLevel().hashCode(); + } + if (hasProfileStatus()) { + hash = (37 * hash) + PROFILE_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getProfileStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.privacy.dlp.v2.ProjectDataProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ProjectDataProfile parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ProjectDataProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ProjectDataProfile 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.privacy.dlp.v2.ProjectDataProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.privacy.dlp.v2.ProjectDataProfile parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.privacy.dlp.v2.ProjectDataProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ProjectDataProfile 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.privacy.dlp.v2.ProjectDataProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ProjectDataProfile 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.privacy.dlp.v2.ProjectDataProfile parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.privacy.dlp.v2.ProjectDataProfile 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.privacy.dlp.v2.ProjectDataProfile 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; + } + /** + * + * + *
                                                                                      +   * An aggregated profile for this project, based on the resources profiled
                                                                                      +   * within it.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.ProjectDataProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.ProjectDataProfile) + com.google.privacy.dlp.v2.ProjectDataProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ProjectDataProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ProjectDataProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.privacy.dlp.v2.ProjectDataProfile.class, + com.google.privacy.dlp.v2.ProjectDataProfile.Builder.class); + } + + // Construct using com.google.privacy.dlp.v2.ProjectDataProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getProfileLastGeneratedFieldBuilder(); + getSensitivityScoreFieldBuilder(); + getDataRiskLevelFieldBuilder(); + getProfileStatusFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + projectId_ = ""; + profileLastGenerated_ = null; + if (profileLastGeneratedBuilder_ != null) { + profileLastGeneratedBuilder_.dispose(); + profileLastGeneratedBuilder_ = null; + } + sensitivityScore_ = null; + if (sensitivityScoreBuilder_ != null) { + sensitivityScoreBuilder_.dispose(); + sensitivityScoreBuilder_ = null; + } + dataRiskLevel_ = null; + if (dataRiskLevelBuilder_ != null) { + dataRiskLevelBuilder_.dispose(); + dataRiskLevelBuilder_ = null; + } + profileStatus_ = null; + if (profileStatusBuilder_ != null) { + profileStatusBuilder_.dispose(); + profileStatusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.privacy.dlp.v2.DlpProto + .internal_static_google_privacy_dlp_v2_ProjectDataProfile_descriptor; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ProjectDataProfile getDefaultInstanceForType() { + return com.google.privacy.dlp.v2.ProjectDataProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ProjectDataProfile build() { + com.google.privacy.dlp.v2.ProjectDataProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.privacy.dlp.v2.ProjectDataProfile buildPartial() { + com.google.privacy.dlp.v2.ProjectDataProfile result = + new com.google.privacy.dlp.v2.ProjectDataProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.privacy.dlp.v2.ProjectDataProfile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.projectId_ = projectId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.profileLastGenerated_ = + profileLastGeneratedBuilder_ == null + ? profileLastGenerated_ + : profileLastGeneratedBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sensitivityScore_ = + sensitivityScoreBuilder_ == null ? sensitivityScore_ : sensitivityScoreBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dataRiskLevel_ = + dataRiskLevelBuilder_ == null ? dataRiskLevel_ : dataRiskLevelBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.profileStatus_ = + profileStatusBuilder_ == null ? profileStatus_ : profileStatusBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @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.privacy.dlp.v2.ProjectDataProfile) { + return mergeFrom((com.google.privacy.dlp.v2.ProjectDataProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.privacy.dlp.v2.ProjectDataProfile other) { + if (other == com.google.privacy.dlp.v2.ProjectDataProfile.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasProfileLastGenerated()) { + mergeProfileLastGenerated(other.getProfileLastGenerated()); + } + if (other.hasSensitivityScore()) { + mergeSensitivityScore(other.getSensitivityScore()); + } + if (other.hasDataRiskLevel()) { + mergeDataRiskLevel(other.getDataRiskLevel()); + } + if (other.hasProfileStatus()) { + mergeProfileStatus(other.getProfileStatus()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getProfileLastGeneratedFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getSensitivityScoreFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getDataRiskLevelFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 58: + { + input.readMessage(getProfileStatusFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + 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 name_ = ""; + /** + * + * + *
                                                                                      +     * The resource name of the profile.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * The resource name of the profile.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * The resource name of the profile.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The resource name of the profile.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The resource name of the profile.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object projectId_ = ""; + /** + * + * + *
                                                                                      +     * Project ID that was profiled.
                                                                                      +     * 
                                                                                      + * + * string project_id = 2; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Project ID that was profiled.
                                                                                      +     * 
                                                                                      + * + * string project_id = 2; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Project ID that was profiled.
                                                                                      +     * 
                                                                                      + * + * string project_id = 2; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Project ID that was profiled.
                                                                                      +     * 
                                                                                      + * + * string project_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Project ID that was profiled.
                                                                                      +     * 
                                                                                      + * + * string project_id = 2; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp profileLastGenerated_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + profileLastGeneratedBuilder_; + /** + * + * + *
                                                                                      +     * The last time the profile was generated.
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + * + * @return Whether the profileLastGenerated field is set. + */ + public boolean hasProfileLastGenerated() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                                                                                      +     * The last time the profile was generated.
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + * + * @return The profileLastGenerated. + */ + public com.google.protobuf.Timestamp getProfileLastGenerated() { + if (profileLastGeneratedBuilder_ == null) { + return profileLastGenerated_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : profileLastGenerated_; + } else { + return profileLastGeneratedBuilder_.getMessage(); + } + } + /** + * + * + *
                                                                                      +     * The last time the profile was generated.
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + */ + public Builder setProfileLastGenerated(com.google.protobuf.Timestamp value) { + if (profileLastGeneratedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profileLastGenerated_ = value; + } else { + profileLastGeneratedBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The last time the profile was generated.
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + */ + public Builder setProfileLastGenerated(com.google.protobuf.Timestamp.Builder builderForValue) { + if (profileLastGeneratedBuilder_ == null) { + profileLastGenerated_ = builderForValue.build(); + } else { + profileLastGeneratedBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The last time the profile was generated.
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + */ + public Builder mergeProfileLastGenerated(com.google.protobuf.Timestamp value) { + if (profileLastGeneratedBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && profileLastGenerated_ != null + && profileLastGenerated_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getProfileLastGeneratedBuilder().mergeFrom(value); + } else { + profileLastGenerated_ = value; + } + } else { + profileLastGeneratedBuilder_.mergeFrom(value); + } + if (profileLastGenerated_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * + * + *
                                                                                      +     * The last time the profile was generated.
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + */ + public Builder clearProfileLastGenerated() { + bitField0_ = (bitField0_ & ~0x00000004); + profileLastGenerated_ = null; + if (profileLastGeneratedBuilder_ != null) { + profileLastGeneratedBuilder_.dispose(); + profileLastGeneratedBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The last time the profile was generated.
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + */ + public com.google.protobuf.Timestamp.Builder getProfileLastGeneratedBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getProfileLastGeneratedFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * The last time the profile was generated.
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + */ + public com.google.protobuf.TimestampOrBuilder getProfileLastGeneratedOrBuilder() { + if (profileLastGeneratedBuilder_ != null) { + return profileLastGeneratedBuilder_.getMessageOrBuilder(); + } else { + return profileLastGenerated_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : profileLastGenerated_; + } + } + /** + * + * + *
                                                                                      +     * The last time the profile was generated.
                                                                                      +     * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getProfileLastGeneratedFieldBuilder() { + if (profileLastGeneratedBuilder_ == null) { + profileLastGeneratedBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getProfileLastGenerated(), getParentForChildren(), isClean()); + profileLastGenerated_ = null; + } + return profileLastGeneratedBuilder_; + } + + private com.google.privacy.dlp.v2.SensitivityScore sensitivityScore_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.SensitivityScore, + com.google.privacy.dlp.v2.SensitivityScore.Builder, + com.google.privacy.dlp.v2.SensitivityScoreOrBuilder> + sensitivityScoreBuilder_; + /** + * + * + *
                                                                                      +     * The sensitivity score of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + * + * @return Whether the sensitivityScore field is set. + */ + public boolean hasSensitivityScore() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                                                                      +     * The sensitivity score of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + * + * @return The sensitivityScore. + */ + public com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore() { + if (sensitivityScoreBuilder_ == null) { + return sensitivityScore_ == null + ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance() + : sensitivityScore_; + } else { + return sensitivityScoreBuilder_.getMessage(); + } + } + /** + * + * + *
                                                                                      +     * The sensitivity score of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + */ + public Builder setSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore value) { + if (sensitivityScoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sensitivityScore_ = value; + } else { + sensitivityScoreBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The sensitivity score of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + */ + public Builder setSensitivityScore( + com.google.privacy.dlp.v2.SensitivityScore.Builder builderForValue) { + if (sensitivityScoreBuilder_ == null) { + sensitivityScore_ = builderForValue.build(); + } else { + sensitivityScoreBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The sensitivity score of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + */ + public Builder mergeSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore value) { + if (sensitivityScoreBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && sensitivityScore_ != null + && sensitivityScore_ + != com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance()) { + getSensitivityScoreBuilder().mergeFrom(value); + } else { + sensitivityScore_ = value; + } + } else { + sensitivityScoreBuilder_.mergeFrom(value); + } + if (sensitivityScore_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
                                                                                      +     * The sensitivity score of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + */ + public Builder clearSensitivityScore() { + bitField0_ = (bitField0_ & ~0x00000008); + sensitivityScore_ = null; + if (sensitivityScoreBuilder_ != null) { + sensitivityScoreBuilder_.dispose(); + sensitivityScoreBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The sensitivity score of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + */ + public com.google.privacy.dlp.v2.SensitivityScore.Builder getSensitivityScoreBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getSensitivityScoreFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * The sensitivity score of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + */ + public com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder() { + if (sensitivityScoreBuilder_ != null) { + return sensitivityScoreBuilder_.getMessageOrBuilder(); + } else { + return sensitivityScore_ == null + ? com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance() + : sensitivityScore_; + } + } + /** + * + * + *
                                                                                      +     * The sensitivity score of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.SensitivityScore, + com.google.privacy.dlp.v2.SensitivityScore.Builder, + com.google.privacy.dlp.v2.SensitivityScoreOrBuilder> + getSensitivityScoreFieldBuilder() { + if (sensitivityScoreBuilder_ == null) { + sensitivityScoreBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.SensitivityScore, + com.google.privacy.dlp.v2.SensitivityScore.Builder, + com.google.privacy.dlp.v2.SensitivityScoreOrBuilder>( + getSensitivityScore(), getParentForChildren(), isClean()); + sensitivityScore_ = null; + } + return sensitivityScoreBuilder_; + } + + private com.google.privacy.dlp.v2.DataRiskLevel dataRiskLevel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataRiskLevel, + com.google.privacy.dlp.v2.DataRiskLevel.Builder, + com.google.privacy.dlp.v2.DataRiskLevelOrBuilder> + dataRiskLevelBuilder_; + /** + * + * + *
                                                                                      +     * The data risk level of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + * + * @return Whether the dataRiskLevel field is set. + */ + public boolean hasDataRiskLevel() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
                                                                                      +     * The data risk level of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + * + * @return The dataRiskLevel. + */ + public com.google.privacy.dlp.v2.DataRiskLevel getDataRiskLevel() { + if (dataRiskLevelBuilder_ == null) { + return dataRiskLevel_ == null + ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance() + : dataRiskLevel_; + } else { + return dataRiskLevelBuilder_.getMessage(); + } + } + /** + * + * + *
                                                                                      +     * The data risk level of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + */ + public Builder setDataRiskLevel(com.google.privacy.dlp.v2.DataRiskLevel value) { + if (dataRiskLevelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataRiskLevel_ = value; + } else { + dataRiskLevelBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The data risk level of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + */ + public Builder setDataRiskLevel( + com.google.privacy.dlp.v2.DataRiskLevel.Builder builderForValue) { + if (dataRiskLevelBuilder_ == null) { + dataRiskLevel_ = builderForValue.build(); + } else { + dataRiskLevelBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The data risk level of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + */ + public Builder mergeDataRiskLevel(com.google.privacy.dlp.v2.DataRiskLevel value) { + if (dataRiskLevelBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && dataRiskLevel_ != null + && dataRiskLevel_ != com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance()) { + getDataRiskLevelBuilder().mergeFrom(value); + } else { + dataRiskLevel_ = value; + } + } else { + dataRiskLevelBuilder_.mergeFrom(value); + } + if (dataRiskLevel_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * + * + *
                                                                                      +     * The data risk level of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + */ + public Builder clearDataRiskLevel() { + bitField0_ = (bitField0_ & ~0x00000010); + dataRiskLevel_ = null; + if (dataRiskLevelBuilder_ != null) { + dataRiskLevelBuilder_.dispose(); + dataRiskLevelBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The data risk level of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + */ + public com.google.privacy.dlp.v2.DataRiskLevel.Builder getDataRiskLevelBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getDataRiskLevelFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * The data risk level of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + */ + public com.google.privacy.dlp.v2.DataRiskLevelOrBuilder getDataRiskLevelOrBuilder() { + if (dataRiskLevelBuilder_ != null) { + return dataRiskLevelBuilder_.getMessageOrBuilder(); + } else { + return dataRiskLevel_ == null + ? com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance() + : dataRiskLevel_; + } + } + /** + * + * + *
                                                                                      +     * The data risk level of this project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataRiskLevel, + com.google.privacy.dlp.v2.DataRiskLevel.Builder, + com.google.privacy.dlp.v2.DataRiskLevelOrBuilder> + getDataRiskLevelFieldBuilder() { + if (dataRiskLevelBuilder_ == null) { + dataRiskLevelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataRiskLevel, + com.google.privacy.dlp.v2.DataRiskLevel.Builder, + com.google.privacy.dlp.v2.DataRiskLevelOrBuilder>( + getDataRiskLevel(), getParentForChildren(), isClean()); + dataRiskLevel_ = null; + } + return dataRiskLevelBuilder_; + } + + private com.google.privacy.dlp.v2.ProfileStatus profileStatus_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProfileStatus, + com.google.privacy.dlp.v2.ProfileStatus.Builder, + com.google.privacy.dlp.v2.ProfileStatusOrBuilder> + profileStatusBuilder_; + /** + * + * + *
                                                                                      +     * Success or error status of the last attempt to profile the project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + * + * @return Whether the profileStatus field is set. + */ + public boolean hasProfileStatus() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
                                                                                      +     * Success or error status of the last attempt to profile the project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + * + * @return The profileStatus. + */ + public com.google.privacy.dlp.v2.ProfileStatus getProfileStatus() { + if (profileStatusBuilder_ == null) { + return profileStatus_ == null + ? com.google.privacy.dlp.v2.ProfileStatus.getDefaultInstance() + : profileStatus_; + } else { + return profileStatusBuilder_.getMessage(); + } + } + /** + * + * + *
                                                                                      +     * Success or error status of the last attempt to profile the project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + */ + public Builder setProfileStatus(com.google.privacy.dlp.v2.ProfileStatus value) { + if (profileStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profileStatus_ = value; + } else { + profileStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Success or error status of the last attempt to profile the project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + */ + public Builder setProfileStatus( + com.google.privacy.dlp.v2.ProfileStatus.Builder builderForValue) { + if (profileStatusBuilder_ == null) { + profileStatus_ = builderForValue.build(); + } else { + profileStatusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Success or error status of the last attempt to profile the project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + */ + public Builder mergeProfileStatus(com.google.privacy.dlp.v2.ProfileStatus value) { + if (profileStatusBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && profileStatus_ != null + && profileStatus_ != com.google.privacy.dlp.v2.ProfileStatus.getDefaultInstance()) { + getProfileStatusBuilder().mergeFrom(value); + } else { + profileStatus_ = value; + } + } else { + profileStatusBuilder_.mergeFrom(value); + } + if (profileStatus_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
                                                                                      +     * Success or error status of the last attempt to profile the project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + */ + public Builder clearProfileStatus() { + bitField0_ = (bitField0_ & ~0x00000020); + profileStatus_ = null; + if (profileStatusBuilder_ != null) { + profileStatusBuilder_.dispose(); + profileStatusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Success or error status of the last attempt to profile the project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + */ + public com.google.privacy.dlp.v2.ProfileStatus.Builder getProfileStatusBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getProfileStatusFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * Success or error status of the last attempt to profile the project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + */ + public com.google.privacy.dlp.v2.ProfileStatusOrBuilder getProfileStatusOrBuilder() { + if (profileStatusBuilder_ != null) { + return profileStatusBuilder_.getMessageOrBuilder(); + } else { + return profileStatus_ == null + ? com.google.privacy.dlp.v2.ProfileStatus.getDefaultInstance() + : profileStatus_; + } + } + /** + * + * + *
                                                                                      +     * Success or error status of the last attempt to profile the project.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProfileStatus, + com.google.privacy.dlp.v2.ProfileStatus.Builder, + com.google.privacy.dlp.v2.ProfileStatusOrBuilder> + getProfileStatusFieldBuilder() { + if (profileStatusBuilder_ == null) { + profileStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.ProfileStatus, + com.google.privacy.dlp.v2.ProfileStatus.Builder, + com.google.privacy.dlp.v2.ProfileStatusOrBuilder>( + getProfileStatus(), getParentForChildren(), isClean()); + profileStatus_ = null; + } + return profileStatusBuilder_; + } + + @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.privacy.dlp.v2.ProjectDataProfile) + } + + // @@protoc_insertion_point(class_scope:google.privacy.dlp.v2.ProjectDataProfile) + private static final com.google.privacy.dlp.v2.ProjectDataProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.privacy.dlp.v2.ProjectDataProfile(); + } + + public static com.google.privacy.dlp.v2.ProjectDataProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectDataProfile 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.privacy.dlp.v2.ProjectDataProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfileName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfileName.java new file mode 100644 index 000000000000..79c9eea40bff --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfileName.java @@ -0,0 +1,365 @@ +/* + * 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. + */ + +package com.google.privacy.dlp.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ProjectDataProfileName implements ResourceName { + private static final PathTemplate ORGANIZATION_LOCATION_PROJECT_DATA_PROFILE = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}"); + private static final PathTemplate PROJECT_LOCATION_PROJECT_DATA_PROFILE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String organization; + private final String location; + private final String projectDataProfile; + private final String project; + + @Deprecated + protected ProjectDataProfileName() { + organization = null; + location = null; + projectDataProfile = null; + project = null; + } + + private ProjectDataProfileName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + projectDataProfile = Preconditions.checkNotNull(builder.getProjectDataProfile()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_PROJECT_DATA_PROFILE; + } + + private ProjectDataProfileName(ProjectLocationProjectDataProfileBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + projectDataProfile = Preconditions.checkNotNull(builder.getProjectDataProfile()); + organization = null; + pathTemplate = PROJECT_LOCATION_PROJECT_DATA_PROFILE; + } + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getProjectDataProfile() { + return projectDataProfile; + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newOrganizationLocationProjectDataProfileBuilder() { + return new Builder(); + } + + public static ProjectLocationProjectDataProfileBuilder + newProjectLocationProjectDataProfileBuilder() { + return new ProjectLocationProjectDataProfileBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ProjectDataProfileName of( + String organization, String location, String projectDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setProjectDataProfile(projectDataProfile) + .build(); + } + + public static ProjectDataProfileName ofOrganizationLocationProjectDataProfileName( + String organization, String location, String projectDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setProjectDataProfile(projectDataProfile) + .build(); + } + + public static ProjectDataProfileName ofProjectLocationProjectDataProfileName( + String project, String location, String projectDataProfile) { + return newProjectLocationProjectDataProfileBuilder() + .setProject(project) + .setLocation(location) + .setProjectDataProfile(projectDataProfile) + .build(); + } + + public static String format(String organization, String location, String projectDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setProjectDataProfile(projectDataProfile) + .build() + .toString(); + } + + public static String formatOrganizationLocationProjectDataProfileName( + String organization, String location, String projectDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setProjectDataProfile(projectDataProfile) + .build() + .toString(); + } + + public static String formatProjectLocationProjectDataProfileName( + String project, String location, String projectDataProfile) { + return newProjectLocationProjectDataProfileBuilder() + .setProject(project) + .setLocation(location) + .setProjectDataProfile(projectDataProfile) + .build() + .toString(); + } + + public static ProjectDataProfileName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (ORGANIZATION_LOCATION_PROJECT_DATA_PROFILE.matches(formattedString)) { + Map matchMap = + ORGANIZATION_LOCATION_PROJECT_DATA_PROFILE.match(formattedString); + return ofOrganizationLocationProjectDataProfileName( + matchMap.get("organization"), + matchMap.get("location"), + matchMap.get("project_data_profile")); + } else if (PROJECT_LOCATION_PROJECT_DATA_PROFILE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_PROJECT_DATA_PROFILE.match(formattedString); + return ofProjectLocationProjectDataProfileName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("project_data_profile")); + } + throw new ValidationException( + "ProjectDataProfileName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ProjectDataProfileName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_LOCATION_PROJECT_DATA_PROFILE.matches(formattedString) + || PROJECT_LOCATION_PROJECT_DATA_PROFILE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (projectDataProfile != null) { + fieldMapBuilder.put("project_data_profile", projectDataProfile); + } + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ProjectDataProfileName that = ((ProjectDataProfileName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.location, that.location) + && Objects.equals(this.projectDataProfile, that.projectDataProfile) + && Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(projectDataProfile); + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** + * Builder for + * organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}. + */ + public static class Builder { + private String organization; + private String location; + private String projectDataProfile; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getProjectDataProfile() { + return projectDataProfile; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setProjectDataProfile(String projectDataProfile) { + this.projectDataProfile = projectDataProfile; + return this; + } + + private Builder(ProjectDataProfileName projectDataProfileName) { + Preconditions.checkArgument( + Objects.equals( + projectDataProfileName.pathTemplate, ORGANIZATION_LOCATION_PROJECT_DATA_PROFILE), + "toBuilder is only supported when ProjectDataProfileName has the pattern of organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}"); + this.organization = projectDataProfileName.organization; + this.location = projectDataProfileName.location; + this.projectDataProfile = projectDataProfileName.projectDataProfile; + } + + public ProjectDataProfileName build() { + return new ProjectDataProfileName(this); + } + } + + /** + * Builder for projects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}. + */ + public static class ProjectLocationProjectDataProfileBuilder { + private String project; + private String location; + private String projectDataProfile; + + protected ProjectLocationProjectDataProfileBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getProjectDataProfile() { + return projectDataProfile; + } + + public ProjectLocationProjectDataProfileBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationProjectDataProfileBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationProjectDataProfileBuilder setProjectDataProfile( + String projectDataProfile) { + this.projectDataProfile = projectDataProfile; + return this; + } + + public ProjectDataProfileName build() { + return new ProjectDataProfileName(this); + } + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfileOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfileOrBuilder.java new file mode 100644 index 000000000000..1931e6a774e5 --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ProjectDataProfileOrBuilder.java @@ -0,0 +1,216 @@ +/* + * 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/privacy/dlp/v2/dlp.proto + +// Protobuf Java Version: 3.25.2 +package com.google.privacy.dlp.v2; + +public interface ProjectDataProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.ProjectDataProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * The resource name of the profile.
                                                                                      +   * 
                                                                                      + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                                                                      +   * The resource name of the profile.
                                                                                      +   * 
                                                                                      + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                      +   * Project ID that was profiled.
                                                                                      +   * 
                                                                                      + * + * string project_id = 2; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + /** + * + * + *
                                                                                      +   * Project ID that was profiled.
                                                                                      +   * 
                                                                                      + * + * string project_id = 2; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
                                                                                      +   * The last time the profile was generated.
                                                                                      +   * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + * + * @return Whether the profileLastGenerated field is set. + */ + boolean hasProfileLastGenerated(); + /** + * + * + *
                                                                                      +   * The last time the profile was generated.
                                                                                      +   * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + * + * @return The profileLastGenerated. + */ + com.google.protobuf.Timestamp getProfileLastGenerated(); + /** + * + * + *
                                                                                      +   * The last time the profile was generated.
                                                                                      +   * 
                                                                                      + * + * .google.protobuf.Timestamp profile_last_generated = 3; + */ + com.google.protobuf.TimestampOrBuilder getProfileLastGeneratedOrBuilder(); + + /** + * + * + *
                                                                                      +   * The sensitivity score of this project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + * + * @return Whether the sensitivityScore field is set. + */ + boolean hasSensitivityScore(); + /** + * + * + *
                                                                                      +   * The sensitivity score of this project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + * + * @return The sensitivityScore. + */ + com.google.privacy.dlp.v2.SensitivityScore getSensitivityScore(); + /** + * + * + *
                                                                                      +   * The sensitivity score of this project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; + */ + com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOrBuilder(); + + /** + * + * + *
                                                                                      +   * The data risk level of this project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + * + * @return Whether the dataRiskLevel field is set. + */ + boolean hasDataRiskLevel(); + /** + * + * + *
                                                                                      +   * The data risk level of this project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + * + * @return The dataRiskLevel. + */ + com.google.privacy.dlp.v2.DataRiskLevel getDataRiskLevel(); + /** + * + * + *
                                                                                      +   * The data risk level of this project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; + */ + com.google.privacy.dlp.v2.DataRiskLevelOrBuilder getDataRiskLevelOrBuilder(); + + /** + * + * + *
                                                                                      +   * Success or error status of the last attempt to profile the project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + * + * @return Whether the profileStatus field is set. + */ + boolean hasProfileStatus(); + /** + * + * + *
                                                                                      +   * Success or error status of the last attempt to profile the project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + * + * @return The profileStatus. + */ + com.google.privacy.dlp.v2.ProfileStatus getProfileStatus(); + /** + * + * + *
                                                                                      +   * Success or error status of the last attempt to profile the project.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.ProfileStatus profile_status = 7; + */ + com.google.privacy.dlp.v2.ProfileStatusOrBuilder getProfileStatusOrBuilder(); +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKey.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKey.java index f9a49c1e153c..a165e7278e22 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKey.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKey.java @@ -114,6 +114,12 @@ public TypeCase getTypeCase() { public static final int DATASTORE_KEY_FIELD_NUMBER = 2; /** + * + * + *
                                                                                      +   * BigQuery key
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; * * @return Whether the datastoreKey field is set. @@ -123,6 +129,12 @@ public boolean hasDatastoreKey() { return typeCase_ == 2; } /** + * + * + *
                                                                                      +   * BigQuery key
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; * * @return The datastoreKey. @@ -134,7 +146,15 @@ public com.google.privacy.dlp.v2.DatastoreKey getDatastoreKey() { } return com.google.privacy.dlp.v2.DatastoreKey.getDefaultInstance(); } - /** .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; */ + /** + * + * + *
                                                                                      +   * BigQuery key
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; + */ @java.lang.Override public com.google.privacy.dlp.v2.DatastoreKeyOrBuilder getDatastoreKeyOrBuilder() { if (typeCase_ == 2) { @@ -145,6 +165,12 @@ public com.google.privacy.dlp.v2.DatastoreKeyOrBuilder getDatastoreKeyOrBuilder( public static final int BIG_QUERY_KEY_FIELD_NUMBER = 3; /** + * + * + *
                                                                                      +   * Datastore key
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; * * @return Whether the bigQueryKey field is set. @@ -154,6 +180,12 @@ public boolean hasBigQueryKey() { return typeCase_ == 3; } /** + * + * + *
                                                                                      +   * Datastore key
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; * * @return The bigQueryKey. @@ -165,7 +197,15 @@ public com.google.privacy.dlp.v2.BigQueryKey getBigQueryKey() { } return com.google.privacy.dlp.v2.BigQueryKey.getDefaultInstance(); } - /** .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; */ + /** + * + * + *
                                                                                      +   * Datastore key
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; + */ @java.lang.Override public com.google.privacy.dlp.v2.BigQueryKeyOrBuilder getBigQueryKeyOrBuilder() { if (typeCase_ == 3) { @@ -701,6 +741,12 @@ public Builder clearType() { com.google.privacy.dlp.v2.DatastoreKeyOrBuilder> datastoreKeyBuilder_; /** + * + * + *
                                                                                      +     * BigQuery key
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; * * @return Whether the datastoreKey field is set. @@ -710,6 +756,12 @@ public boolean hasDatastoreKey() { return typeCase_ == 2; } /** + * + * + *
                                                                                      +     * BigQuery key
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; * * @return The datastoreKey. @@ -728,7 +780,15 @@ public com.google.privacy.dlp.v2.DatastoreKey getDatastoreKey() { return com.google.privacy.dlp.v2.DatastoreKey.getDefaultInstance(); } } - /** .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; */ + /** + * + * + *
                                                                                      +     * BigQuery key
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; + */ public Builder setDatastoreKey(com.google.privacy.dlp.v2.DatastoreKey value) { if (datastoreKeyBuilder_ == null) { if (value == null) { @@ -742,7 +802,15 @@ public Builder setDatastoreKey(com.google.privacy.dlp.v2.DatastoreKey value) { typeCase_ = 2; return this; } - /** .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; */ + /** + * + * + *
                                                                                      +     * BigQuery key
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; + */ public Builder setDatastoreKey(com.google.privacy.dlp.v2.DatastoreKey.Builder builderForValue) { if (datastoreKeyBuilder_ == null) { type_ = builderForValue.build(); @@ -753,7 +821,15 @@ public Builder setDatastoreKey(com.google.privacy.dlp.v2.DatastoreKey.Builder bu typeCase_ = 2; return this; } - /** .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; */ + /** + * + * + *
                                                                                      +     * BigQuery key
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; + */ public Builder mergeDatastoreKey(com.google.privacy.dlp.v2.DatastoreKey value) { if (datastoreKeyBuilder_ == null) { if (typeCase_ == 2 @@ -777,7 +853,15 @@ public Builder mergeDatastoreKey(com.google.privacy.dlp.v2.DatastoreKey value) { typeCase_ = 2; return this; } - /** .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; */ + /** + * + * + *
                                                                                      +     * BigQuery key
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; + */ public Builder clearDatastoreKey() { if (datastoreKeyBuilder_ == null) { if (typeCase_ == 2) { @@ -794,11 +878,27 @@ public Builder clearDatastoreKey() { } return this; } - /** .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; */ + /** + * + * + *
                                                                                      +     * BigQuery key
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; + */ public com.google.privacy.dlp.v2.DatastoreKey.Builder getDatastoreKeyBuilder() { return getDatastoreKeyFieldBuilder().getBuilder(); } - /** .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; */ + /** + * + * + *
                                                                                      +     * BigQuery key
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; + */ @java.lang.Override public com.google.privacy.dlp.v2.DatastoreKeyOrBuilder getDatastoreKeyOrBuilder() { if ((typeCase_ == 2) && (datastoreKeyBuilder_ != null)) { @@ -810,7 +910,15 @@ public com.google.privacy.dlp.v2.DatastoreKeyOrBuilder getDatastoreKeyOrBuilder( return com.google.privacy.dlp.v2.DatastoreKey.getDefaultInstance(); } } - /** .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; */ + /** + * + * + *
                                                                                      +     * BigQuery key
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; + */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.DatastoreKey, com.google.privacy.dlp.v2.DatastoreKey.Builder, @@ -839,6 +947,12 @@ public com.google.privacy.dlp.v2.DatastoreKeyOrBuilder getDatastoreKeyOrBuilder( com.google.privacy.dlp.v2.BigQueryKeyOrBuilder> bigQueryKeyBuilder_; /** + * + * + *
                                                                                      +     * Datastore key
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; * * @return Whether the bigQueryKey field is set. @@ -848,6 +962,12 @@ public boolean hasBigQueryKey() { return typeCase_ == 3; } /** + * + * + *
                                                                                      +     * Datastore key
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; * * @return The bigQueryKey. @@ -866,7 +986,15 @@ public com.google.privacy.dlp.v2.BigQueryKey getBigQueryKey() { return com.google.privacy.dlp.v2.BigQueryKey.getDefaultInstance(); } } - /** .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; */ + /** + * + * + *
                                                                                      +     * Datastore key
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; + */ public Builder setBigQueryKey(com.google.privacy.dlp.v2.BigQueryKey value) { if (bigQueryKeyBuilder_ == null) { if (value == null) { @@ -880,7 +1008,15 @@ public Builder setBigQueryKey(com.google.privacy.dlp.v2.BigQueryKey value) { typeCase_ = 3; return this; } - /** .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; */ + /** + * + * + *
                                                                                      +     * Datastore key
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; + */ public Builder setBigQueryKey(com.google.privacy.dlp.v2.BigQueryKey.Builder builderForValue) { if (bigQueryKeyBuilder_ == null) { type_ = builderForValue.build(); @@ -891,7 +1027,15 @@ public Builder setBigQueryKey(com.google.privacy.dlp.v2.BigQueryKey.Builder buil typeCase_ = 3; return this; } - /** .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; */ + /** + * + * + *
                                                                                      +     * Datastore key
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; + */ public Builder mergeBigQueryKey(com.google.privacy.dlp.v2.BigQueryKey value) { if (bigQueryKeyBuilder_ == null) { if (typeCase_ == 3 && type_ != com.google.privacy.dlp.v2.BigQueryKey.getDefaultInstance()) { @@ -914,7 +1058,15 @@ public Builder mergeBigQueryKey(com.google.privacy.dlp.v2.BigQueryKey value) { typeCase_ = 3; return this; } - /** .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; */ + /** + * + * + *
                                                                                      +     * Datastore key
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; + */ public Builder clearBigQueryKey() { if (bigQueryKeyBuilder_ == null) { if (typeCase_ == 3) { @@ -931,11 +1083,27 @@ public Builder clearBigQueryKey() { } return this; } - /** .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; */ + /** + * + * + *
                                                                                      +     * Datastore key
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; + */ public com.google.privacy.dlp.v2.BigQueryKey.Builder getBigQueryKeyBuilder() { return getBigQueryKeyFieldBuilder().getBuilder(); } - /** .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; */ + /** + * + * + *
                                                                                      +     * Datastore key
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; + */ @java.lang.Override public com.google.privacy.dlp.v2.BigQueryKeyOrBuilder getBigQueryKeyOrBuilder() { if ((typeCase_ == 3) && (bigQueryKeyBuilder_ != null)) { @@ -947,7 +1115,15 @@ public com.google.privacy.dlp.v2.BigQueryKeyOrBuilder getBigQueryKeyOrBuilder() return com.google.privacy.dlp.v2.BigQueryKey.getDefaultInstance(); } } - /** .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; */ + /** + * + * + *
                                                                                      +     * Datastore key
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; + */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.BigQueryKey, com.google.privacy.dlp.v2.BigQueryKey.Builder, diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKeyOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKeyOrBuilder.java index 13f5c61f0c4e..9abaca6ac691 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKeyOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordKeyOrBuilder.java @@ -25,33 +25,73 @@ public interface RecordKeyOrBuilder com.google.protobuf.MessageOrBuilder { /** + * + * + *
                                                                                      +   * BigQuery key
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; * * @return Whether the datastoreKey field is set. */ boolean hasDatastoreKey(); /** + * + * + *
                                                                                      +   * BigQuery key
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; * * @return The datastoreKey. */ com.google.privacy.dlp.v2.DatastoreKey getDatastoreKey(); - /** .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; */ + /** + * + * + *
                                                                                      +   * BigQuery key
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; + */ com.google.privacy.dlp.v2.DatastoreKeyOrBuilder getDatastoreKeyOrBuilder(); /** + * + * + *
                                                                                      +   * Datastore key
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; * * @return Whether the bigQueryKey field is set. */ boolean hasBigQueryKey(); /** + * + * + *
                                                                                      +   * Datastore key
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; * * @return The bigQueryKey. */ com.google.privacy.dlp.v2.BigQueryKey getBigQueryKey(); - /** .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; */ + /** + * + * + *
                                                                                      +   * Datastore key
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; + */ com.google.privacy.dlp.v2.BigQueryKeyOrBuilder getBigQueryKeyOrBuilder(); /** diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformation.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformation.java index 5febed65dc82..1056d1e4a62b 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformation.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RecordTransformation.java @@ -19,7 +19,15 @@ // Protobuf Java Version: 3.25.2 package com.google.privacy.dlp.v2; -/** Protobuf type {@code google.privacy.dlp.v2.RecordTransformation} */ +/** + * + * + *
                                                                                      + * The field in a record to transform.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.RecordTransformation} + */ public final class RecordTransformation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.RecordTransformation) @@ -390,7 +398,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.privacy.dlp.v2.RecordTransformation} */ + /** + * + * + *
                                                                                      +   * The field in a record to transform.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.RecordTransformation} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.RecordTransformation) diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequest.java index 0968b9a65ae9..4d13ae31bacb 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequest.java @@ -1477,7 +1477,7 @@ public com.google.protobuf.Parser getParserForType() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1515,7 +1515,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -2351,7 +2351,7 @@ public Builder mergeFrom( * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -2388,7 +2388,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -2425,7 +2425,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -2461,7 +2461,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -2493,7 +2493,7 @@ public Builder clearParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequestOrBuilder.java index 779602b943de..2ba0460d6fde 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RedactImageRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface RedactImageRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -59,7 +59,7 @@ public interface RedactImageRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequest.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequest.java index 03e7f435d316..203898881549 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequest.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequest.java @@ -79,7 +79,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -119,7 +119,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1033,7 +1033,7 @@ public Builder mergeFrom( * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1072,7 +1072,7 @@ public java.lang.String getParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1111,7 +1111,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1149,7 +1149,7 @@ public Builder setParent(java.lang.String value) { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -1183,7 +1183,7 @@ public Builder clearParent() { * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequestOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequestOrBuilder.java index 8b1646750448..fd3046675d9e 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequestOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReidentifyContentRequestOrBuilder.java @@ -32,7 +32,7 @@ public interface ReidentifyContentRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> @@ -61,7 +61,7 @@ public interface ReidentifyContentRequestOrBuilder * * The format of this value varies depending on whether you have [specified a * processing - * location](https://cloud.google.com/dlp/docs/specifying-location): + * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): * * + Projects scope, location specified:<br/> * `projects/`<var>PROJECT_ID</var>`/locations/`<var>LOCATION_ID</var> diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReplaceDictionaryConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReplaceDictionaryConfig.java index ba1ec20da7dc..126ecec5786b 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReplaceDictionaryConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReplaceDictionaryConfig.java @@ -113,8 +113,8 @@ public TypeCase getTypeCase() { * *
                                                                                          * A list of words to select from for random replacement. The
                                                                                      -   * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -   * the size limits of dictionaries.
                                                                                      +   * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +   * contains details about the size limits of dictionaries.
                                                                                          * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; @@ -130,8 +130,8 @@ public boolean hasWordList() { * *
                                                                                          * A list of words to select from for random replacement. The
                                                                                      -   * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -   * the size limits of dictionaries.
                                                                                      +   * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +   * contains details about the size limits of dictionaries.
                                                                                          * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; @@ -150,8 +150,8 @@ public com.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList getWordList( * *
                                                                                          * A list of words to select from for random replacement. The
                                                                                      -   * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -   * the size limits of dictionaries.
                                                                                      +   * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +   * contains details about the size limits of dictionaries.
                                                                                          * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; @@ -562,8 +562,8 @@ public Builder clearType() { * *
                                                                                            * A list of words to select from for random replacement. The
                                                                                      -     * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -     * the size limits of dictionaries.
                                                                                      +     * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +     * contains details about the size limits of dictionaries.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; @@ -579,8 +579,8 @@ public boolean hasWordList() { * *
                                                                                            * A list of words to select from for random replacement. The
                                                                                      -     * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -     * the size limits of dictionaries.
                                                                                      +     * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +     * contains details about the size limits of dictionaries.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; @@ -606,8 +606,8 @@ public com.google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList getWordList( * *
                                                                                            * A list of words to select from for random replacement. The
                                                                                      -     * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -     * the size limits of dictionaries.
                                                                                      +     * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +     * contains details about the size limits of dictionaries.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; @@ -630,8 +630,8 @@ public Builder setWordList(com.google.privacy.dlp.v2.CustomInfoType.Dictionary.W * *
                                                                                            * A list of words to select from for random replacement. The
                                                                                      -     * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -     * the size limits of dictionaries.
                                                                                      +     * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +     * contains details about the size limits of dictionaries.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; @@ -652,8 +652,8 @@ public Builder setWordList( * *
                                                                                            * A list of words to select from for random replacement. The
                                                                                      -     * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -     * the size limits of dictionaries.
                                                                                      +     * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +     * contains details about the size limits of dictionaries.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; @@ -689,8 +689,8 @@ public Builder mergeWordList( * *
                                                                                            * A list of words to select from for random replacement. The
                                                                                      -     * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -     * the size limits of dictionaries.
                                                                                      +     * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +     * contains details about the size limits of dictionaries.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; @@ -716,8 +716,8 @@ public Builder clearWordList() { * *
                                                                                            * A list of words to select from for random replacement. The
                                                                                      -     * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -     * the size limits of dictionaries.
                                                                                      +     * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +     * contains details about the size limits of dictionaries.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; @@ -731,8 +731,8 @@ public Builder clearWordList() { * *
                                                                                            * A list of words to select from for random replacement. The
                                                                                      -     * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -     * the size limits of dictionaries.
                                                                                      +     * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +     * contains details about the size limits of dictionaries.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; @@ -754,8 +754,8 @@ public Builder clearWordList() { * *
                                                                                            * A list of words to select from for random replacement. The
                                                                                      -     * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -     * the size limits of dictionaries.
                                                                                      +     * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +     * contains details about the size limits of dictionaries.
                                                                                            * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReplaceDictionaryConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReplaceDictionaryConfigOrBuilder.java index d56760110611..6d8051999322 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReplaceDictionaryConfigOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ReplaceDictionaryConfigOrBuilder.java @@ -29,8 +29,8 @@ public interface ReplaceDictionaryConfigOrBuilder * *
                                                                                          * A list of words to select from for random replacement. The
                                                                                      -   * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -   * the size limits of dictionaries.
                                                                                      +   * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +   * contains details about the size limits of dictionaries.
                                                                                          * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; @@ -43,8 +43,8 @@ public interface ReplaceDictionaryConfigOrBuilder * *
                                                                                          * A list of words to select from for random replacement. The
                                                                                      -   * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -   * the size limits of dictionaries.
                                                                                      +   * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +   * contains details about the size limits of dictionaries.
                                                                                          * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; @@ -57,8 +57,8 @@ public interface ReplaceDictionaryConfigOrBuilder * *
                                                                                          * A list of words to select from for random replacement. The
                                                                                      -   * [limits](https://cloud.google.com/dlp/limits) page contains details about
                                                                                      -   * the size limits of dictionaries.
                                                                                      +   * [limits](https://cloud.google.com/sensitive-data-protection/limits) page
                                                                                      +   * contains details about the size limits of dictionaries.
                                                                                          * 
                                                                                      * * .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java index 5c5d137b46d6..84509e40c230 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ResourceVisibility.java @@ -23,8 +23,8 @@ * * *
                                                                                      - * How broadly a resource has been shared. New items may be added over time.
                                                                                      - * A higher number means more restricted.
                                                                                      + * How broadly the data in the resource has been shared. New items may be added
                                                                                      + * over time. A higher number means more restricted.
                                                                                        * 
                                                                                      * * Protobuf enum {@code google.privacy.dlp.v2.ResourceVisibility} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RiskAnalysisJobConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RiskAnalysisJobConfig.java index 27b82297971a..02c74d16c617 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RiskAnalysisJobConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/RiskAnalysisJobConfig.java @@ -24,7 +24,8 @@ * *
                                                                                        * Configuration for a risk analysis job. See
                                                                                      - * https://cloud.google.com/dlp/docs/concepts-risk-analysis to learn more.
                                                                                      + * https://cloud.google.com/sensitive-data-protection/docs/concepts-risk-analysis
                                                                                      + * to learn more.
                                                                                        * 
                                                                                      * * Protobuf type {@code google.privacy.dlp.v2.RiskAnalysisJobConfig} @@ -435,7 +436,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
                                                                                          * Configuration for a risk analysis job. See
                                                                                      -   * https://cloud.google.com/dlp/docs/concepts-risk-analysis to learn more.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/concepts-risk-analysis
                                                                                      +   * to learn more.
                                                                                          * 
                                                                                      * * Protobuf type {@code google.privacy.dlp.v2.RiskAnalysisJobConfig} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java index 9d3f28cd306d..e2a5228502be 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfig.java @@ -178,7 +178,8 @@ public interface TimespanConfigOrBuilder * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -223,7 +224,8 @@ public interface TimespanConfigOrBuilder * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -268,7 +270,8 @@ public interface TimespanConfigOrBuilder * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -473,7 +476,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -521,7 +525,8 @@ public boolean hasTimestampField() { * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -571,7 +576,8 @@ public com.google.privacy.dlp.v2.FieldId getTimestampField() { * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -1494,7 +1500,8 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -1541,7 +1548,8 @@ public boolean hasTimestampField() { * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -1594,7 +1602,8 @@ public com.google.privacy.dlp.v2.FieldId getTimestampField() { * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -1649,7 +1658,8 @@ public Builder setTimestampField(com.google.privacy.dlp.v2.FieldId value) { * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -1701,7 +1711,8 @@ public Builder setTimestampField(com.google.privacy.dlp.v2.FieldId.Builder build * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -1761,7 +1772,8 @@ public Builder mergeTimestampField(com.google.privacy.dlp.v2.FieldId value) { * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -1813,7 +1825,8 @@ public Builder clearTimestampField() { * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -1860,7 +1873,8 @@ public com.google.privacy.dlp.v2.FieldId.Builder getTimestampFieldBuilder() { * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -1911,7 +1925,8 @@ public com.google.privacy.dlp.v2.FieldIdOrBuilder getTimestampFieldOrBuilder() { * Valid data types of the provided timestamp property are: `TIMESTAMP`. * * See the - * [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + * [known + * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) * related to this operation. *
                                                                                      * @@ -2326,6 +2341,12 @@ public com.google.privacy.dlp.v2.HybridOptionsOrBuilder getHybridOptionsOrBuilde public static final int TIMESPAN_CONFIG_FIELD_NUMBER = 6; private com.google.privacy.dlp.v2.StorageConfig.TimespanConfig timespanConfig_; /** + * + * + *
                                                                                      +   * Configuration of the timespan of the items to include in scanning.
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; * * @return Whether the timespanConfig field is set. @@ -2335,6 +2356,12 @@ public boolean hasTimespanConfig() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * + *
                                                                                      +   * Configuration of the timespan of the items to include in scanning.
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; * * @return The timespanConfig. @@ -2345,7 +2372,15 @@ public com.google.privacy.dlp.v2.StorageConfig.TimespanConfig getTimespanConfig( ? com.google.privacy.dlp.v2.StorageConfig.TimespanConfig.getDefaultInstance() : timespanConfig_; } - /** .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; */ + /** + * + * + *
                                                                                      +   * Configuration of the timespan of the items to include in scanning.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; + */ @java.lang.Override public com.google.privacy.dlp.v2.StorageConfig.TimespanConfigOrBuilder getTimespanConfigOrBuilder() { @@ -3723,6 +3758,12 @@ public com.google.privacy.dlp.v2.HybridOptionsOrBuilder getHybridOptionsOrBuilde com.google.privacy.dlp.v2.StorageConfig.TimespanConfigOrBuilder> timespanConfigBuilder_; /** + * + * + *
                                                                                      +     * Configuration of the timespan of the items to include in scanning.
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; * * @return Whether the timespanConfig field is set. @@ -3731,6 +3772,12 @@ public boolean hasTimespanConfig() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * + *
                                                                                      +     * Configuration of the timespan of the items to include in scanning.
                                                                                      +     * 
                                                                                      + * * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; * * @return The timespanConfig. @@ -3744,7 +3791,15 @@ public com.google.privacy.dlp.v2.StorageConfig.TimespanConfig getTimespanConfig( return timespanConfigBuilder_.getMessage(); } } - /** .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; */ + /** + * + * + *
                                                                                      +     * Configuration of the timespan of the items to include in scanning.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; + */ public Builder setTimespanConfig(com.google.privacy.dlp.v2.StorageConfig.TimespanConfig value) { if (timespanConfigBuilder_ == null) { if (value == null) { @@ -3758,7 +3813,15 @@ public Builder setTimespanConfig(com.google.privacy.dlp.v2.StorageConfig.Timespa onChanged(); return this; } - /** .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; */ + /** + * + * + *
                                                                                      +     * Configuration of the timespan of the items to include in scanning.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; + */ public Builder setTimespanConfig( com.google.privacy.dlp.v2.StorageConfig.TimespanConfig.Builder builderForValue) { if (timespanConfigBuilder_ == null) { @@ -3770,7 +3833,15 @@ public Builder setTimespanConfig( onChanged(); return this; } - /** .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; */ + /** + * + * + *
                                                                                      +     * Configuration of the timespan of the items to include in scanning.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; + */ public Builder mergeTimespanConfig( com.google.privacy.dlp.v2.StorageConfig.TimespanConfig value) { if (timespanConfigBuilder_ == null) { @@ -3791,7 +3862,15 @@ public Builder mergeTimespanConfig( } return this; } - /** .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; */ + /** + * + * + *
                                                                                      +     * Configuration of the timespan of the items to include in scanning.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; + */ public Builder clearTimespanConfig() { bitField0_ = (bitField0_ & ~0x00000010); timespanConfig_ = null; @@ -3802,14 +3881,30 @@ public Builder clearTimespanConfig() { onChanged(); return this; } - /** .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; */ + /** + * + * + *
                                                                                      +     * Configuration of the timespan of the items to include in scanning.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; + */ public com.google.privacy.dlp.v2.StorageConfig.TimespanConfig.Builder getTimespanConfigBuilder() { bitField0_ |= 0x00000010; onChanged(); return getTimespanConfigFieldBuilder().getBuilder(); } - /** .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; */ + /** + * + * + *
                                                                                      +     * Configuration of the timespan of the items to include in scanning.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; + */ public com.google.privacy.dlp.v2.StorageConfig.TimespanConfigOrBuilder getTimespanConfigOrBuilder() { if (timespanConfigBuilder_ != null) { @@ -3820,7 +3915,15 @@ public Builder clearTimespanConfig() { : timespanConfig_; } } - /** .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; */ + /** + * + * + *
                                                                                      +     * Configuration of the timespan of the items to include in scanning.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; + */ private com.google.protobuf.SingleFieldBuilderV3< com.google.privacy.dlp.v2.StorageConfig.TimespanConfig, com.google.privacy.dlp.v2.StorageConfig.TimespanConfig.Builder, diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfigOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfigOrBuilder.java index eadcc14c9903..12c19d82f9f0 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfigOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageConfigOrBuilder.java @@ -165,18 +165,38 @@ public interface StorageConfigOrBuilder com.google.privacy.dlp.v2.HybridOptionsOrBuilder getHybridOptionsOrBuilder(); /** + * + * + *
                                                                                      +   * Configuration of the timespan of the items to include in scanning.
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; * * @return Whether the timespanConfig field is set. */ boolean hasTimespanConfig(); /** + * + * + *
                                                                                      +   * Configuration of the timespan of the items to include in scanning.
                                                                                      +   * 
                                                                                      + * * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; * * @return The timespanConfig. */ com.google.privacy.dlp.v2.StorageConfig.TimespanConfig getTimespanConfig(); - /** .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; */ + /** + * + * + *
                                                                                      +   * Configuration of the timespan of the items to include in scanning.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; + */ com.google.privacy.dlp.v2.StorageConfig.TimespanConfigOrBuilder getTimespanConfigOrBuilder(); com.google.privacy.dlp.v2.StorageConfig.TypeCase getTypeCase(); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageMetadataLabel.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageMetadataLabel.java index 20d3fdc648ba..4d0baffeccf1 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageMetadataLabel.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageMetadataLabel.java @@ -68,6 +68,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @SuppressWarnings("serial") private volatile java.lang.Object key_ = ""; /** + * + * + *
                                                                                      +   * Label name.
                                                                                      +   * 
                                                                                      + * * string key = 1; * * @return The key. @@ -85,6 +91,12 @@ public java.lang.String getKey() { } } /** + * + * + *
                                                                                      +   * Label name.
                                                                                      +   * 
                                                                                      + * * string key = 1; * * @return The bytes for key. @@ -445,6 +457,12 @@ public Builder mergeFrom( private java.lang.Object key_ = ""; /** + * + * + *
                                                                                      +     * Label name.
                                                                                      +     * 
                                                                                      + * * string key = 1; * * @return The key. @@ -461,6 +479,12 @@ public java.lang.String getKey() { } } /** + * + * + *
                                                                                      +     * Label name.
                                                                                      +     * 
                                                                                      + * * string key = 1; * * @return The bytes for key. @@ -477,6 +501,12 @@ public com.google.protobuf.ByteString getKeyBytes() { } } /** + * + * + *
                                                                                      +     * Label name.
                                                                                      +     * 
                                                                                      + * * string key = 1; * * @param value The key to set. @@ -492,6 +522,12 @@ public Builder setKey(java.lang.String value) { return this; } /** + * + * + *
                                                                                      +     * Label name.
                                                                                      +     * 
                                                                                      + * * string key = 1; * * @return This builder for chaining. @@ -503,6 +539,12 @@ public Builder clearKey() { return this; } /** + * + * + *
                                                                                      +     * Label name.
                                                                                      +     * 
                                                                                      + * * string key = 1; * * @param value The bytes for key to set. diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageMetadataLabelOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageMetadataLabelOrBuilder.java index cc225a3a1829..7a8941aecd8e 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageMetadataLabelOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StorageMetadataLabelOrBuilder.java @@ -25,12 +25,24 @@ public interface StorageMetadataLabelOrBuilder com.google.protobuf.MessageOrBuilder { /** + * + * + *
                                                                                      +   * Label name.
                                                                                      +   * 
                                                                                      + * * string key = 1; * * @return The key. */ java.lang.String getKey(); /** + * + * + *
                                                                                      +   * Label name.
                                                                                      +   * 
                                                                                      + * * string key = 1; * * @return The bytes for key. diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeConfig.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeConfig.java index 36aef3018b5c..19a155d6c5d0 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeConfig.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/StoredInfoTypeConfig.java @@ -25,7 +25,7 @@ *
                                                                                        * Configuration for stored infoTypes. All fields and subfield are provided
                                                                                        * by the user. For more information, see
                                                                                      - * https://cloud.google.com/dlp/docs/creating-custom-infotypes.
                                                                                      + * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes.
                                                                                        * 
                                                                                      * * Protobuf type {@code google.privacy.dlp.v2.StoredInfoTypeConfig} @@ -602,7 +602,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
                                                                                          * Configuration for stored infoTypes. All fields and subfield are provided
                                                                                          * by the user. For more information, see
                                                                                      -   * https://cloud.google.com/dlp/docs/creating-custom-infotypes.
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes.
                                                                                          * 
                                                                                      * * Protobuf type {@code google.privacy.dlp.v2.StoredInfoTypeConfig} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Table.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Table.java index 28c08af724a3..b3ae693c8bde 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Table.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Table.java @@ -24,7 +24,7 @@ * *
                                                                                        * Structured content to inspect. Up to 50,000 `Value`s per request allowed. See
                                                                                      - * https://cloud.google.com/dlp/docs/inspecting-structured-text#inspecting_a_table
                                                                                      + * https://cloud.google.com/sensitive-data-protection/docs/inspecting-structured-text#inspecting_a_table
                                                                                        * to learn more.
                                                                                        * 
                                                                                      * @@ -1352,7 +1352,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
                                                                                          * Structured content to inspect. Up to 50,000 `Value`s per request allowed. See
                                                                                      -   * https://cloud.google.com/dlp/docs/inspecting-structured-text#inspecting_a_table
                                                                                      +   * https://cloud.google.com/sensitive-data-protection/docs/inspecting-structured-text#inspecting_a_table
                                                                                          * to learn more.
                                                                                          * 
                                                                                      * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java index 81beea0d6029..c7592e7c0b58 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfile.java @@ -301,6 +301,56 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int DATA_SOURCE_TYPE_FIELD_NUMBER = 36; + private com.google.privacy.dlp.v2.DataSourceType dataSourceType_; + /** + * + * + *
                                                                                      +   * The resource type that was profiled.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + * + * @return Whether the dataSourceType field is set. + */ + @java.lang.Override + public boolean hasDataSourceType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                                                                      +   * The resource type that was profiled.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + * + * @return The dataSourceType. + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataSourceType getDataSourceType() { + return dataSourceType_ == null + ? com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance() + : dataSourceType_; + } + /** + * + * + *
                                                                                      +   * The resource type that was profiled.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + */ + @java.lang.Override + public com.google.privacy.dlp.v2.DataSourceTypeOrBuilder getDataSourceTypeOrBuilder() { + return dataSourceType_ == null + ? com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance() + : dataSourceType_; + } + public static final int PROJECT_DATA_PROFILE_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -360,7 +410,7 @@ public com.google.protobuf.ByteString getProjectDataProfileBytes() { * * *
                                                                                      -   * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +   * The Google Cloud project ID that owns the resource.
                                                                                          * 
                                                                                      * * string dataset_project_id = 24; @@ -383,7 +433,7 @@ public java.lang.String getDatasetProjectId() { * * *
                                                                                      -   * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +   * The Google Cloud project ID that owns the resource.
                                                                                          * 
                                                                                      * * string dataset_project_id = 24; @@ -411,7 +461,7 @@ public com.google.protobuf.ByteString getDatasetProjectIdBytes() { * * *
                                                                                      -   * The BigQuery location where the dataset's data is stored.
                                                                                      +   * If supported, the location where the dataset's data is stored.
                                                                                          * See https://cloud.google.com/bigquery/docs/locations for supported
                                                                                          * locations.
                                                                                          * 
                                                                                      @@ -436,7 +486,7 @@ public java.lang.String getDatasetLocation() { * * *
                                                                                      -   * The BigQuery location where the dataset's data is stored.
                                                                                      +   * If supported, the location where the dataset's data is stored.
                                                                                          * See https://cloud.google.com/bigquery/docs/locations for supported
                                                                                          * locations.
                                                                                          * 
                                                                                      @@ -466,7 +516,7 @@ public com.google.protobuf.ByteString getDatasetLocationBytes() { * * *
                                                                                      -   * The BigQuery dataset ID.
                                                                                      +   * If the resource is BigQuery, the  dataset ID.
                                                                                          * 
                                                                                      * * string dataset_id = 25; @@ -489,7 +539,7 @@ public java.lang.String getDatasetId() { * * *
                                                                                      -   * The BigQuery dataset ID.
                                                                                      +   * If the resource is BigQuery, the  dataset ID.
                                                                                          * 
                                                                                      * * string dataset_id = 25; @@ -517,7 +567,7 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { * * *
                                                                                      -   * The BigQuery table ID.
                                                                                      +   * If the resource is BigQuery, the BigQuery table ID.
                                                                                          * 
                                                                                      * * string table_id = 26; @@ -540,7 +590,7 @@ public java.lang.String getTableId() { * * *
                                                                                      -   * The BigQuery table ID.
                                                                                      +   * If the resource is BigQuery, the BigQuery table ID.
                                                                                          * 
                                                                                      * * string table_id = 26; @@ -568,7 +618,7 @@ public com.google.protobuf.ByteString getTableIdBytes() { * * *
                                                                                      -   * The resource name of the table.
                                                                                      +   * The resource name of the resource profiled.
                                                                                          * https://cloud.google.com/apis/design/resource_names#full_resource_name
                                                                                          * 
                                                                                      * @@ -592,7 +642,7 @@ public java.lang.String getFullResource() { * * *
                                                                                      -   * The resource name of the table.
                                                                                      +   * The resource name of the resource profiled.
                                                                                          * https://cloud.google.com/apis/design/resource_names#full_resource_name
                                                                                          * 
                                                                                      * @@ -629,7 +679,7 @@ public com.google.protobuf.ByteString getFullResourceBytes() { */ @java.lang.Override public boolean hasProfileStatus() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -716,7 +766,7 @@ public com.google.privacy.dlp.v2.TableDataProfile.State getState() { */ @java.lang.Override public boolean hasSensitivityScore() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -766,7 +816,7 @@ public com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOr */ @java.lang.Override public boolean hasDataRiskLevel() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -960,7 +1010,7 @@ public com.google.privacy.dlp.v2.OtherInfoTypeSummaryOrBuilder getOtherInfoTypes */ @java.lang.Override public boolean hasConfigSnapshot() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1010,7 +1060,7 @@ public com.google.privacy.dlp.v2.DataProfileConfigSnapshotOrBuilder getConfigSna */ @java.lang.Override public boolean hasLastModifiedTime() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1060,7 +1110,7 @@ public com.google.protobuf.TimestampOrBuilder getLastModifiedTimeOrBuilder() { */ @java.lang.Override public boolean hasExpirationTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1253,7 +1303,7 @@ public com.google.privacy.dlp.v2.ResourceVisibility getResourceVisibility() { */ @java.lang.Override public boolean hasProfileLastGenerated() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -1407,7 +1457,7 @@ public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { */ @java.lang.Override public boolean hasCreateTime() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -1461,19 +1511,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, fullResource_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getSensitivityScore()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(6, getDataRiskLevel()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(7, getConfigSnapshot()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(8, getLastModifiedTime()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(9, getExpirationTime()); } if (scannedColumnCount_ != 0L) { @@ -1497,18 +1547,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(15, resourceVisibility_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(16, getProfileLastGenerated()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetResourceLabels(), ResourceLabelsDefaultEntryHolder.defaultEntry, 17); - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(21, getProfileStatus()); } if (state_ != com.google.privacy.dlp.v2.TableDataProfile.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(22, state_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(23, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetProjectId_)) { @@ -1529,6 +1579,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetLocation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 29, datasetLocation_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(36, getDataSourceType()); + } getUnknownFields().writeTo(output); } @@ -1547,19 +1600,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, fullResource_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSensitivityScore()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDataRiskLevel()); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getConfigSnapshot()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLastModifiedTime()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExpirationTime()); } if (scannedColumnCount_ != 0L) { @@ -1583,7 +1636,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, resourceVisibility_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getProfileLastGenerated()); } @@ -1597,13 +1650,13 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, resourceLabels__); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getProfileStatus()); } if (state_ != com.google.privacy.dlp.v2.TableDataProfile.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, state_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetProjectId_)) { @@ -1625,6 +1678,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetLocation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, datasetLocation_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(36, getDataSourceType()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1642,6 +1698,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.privacy.dlp.v2.TableDataProfile) obj; if (!getName().equals(other.getName())) return false; + if (hasDataSourceType() != other.hasDataSourceType()) return false; + if (hasDataSourceType()) { + if (!getDataSourceType().equals(other.getDataSourceType())) return false; + } if (!getProjectDataProfile().equals(other.getProjectDataProfile())) return false; if (!getDatasetProjectId().equals(other.getDatasetProjectId())) return false; if (!getDatasetLocation().equals(other.getDatasetLocation())) return false; @@ -1703,6 +1763,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + if (hasDataSourceType()) { + hash = (37 * hash) + DATA_SOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDataSourceType().hashCode(); + } hash = (37 * hash) + PROJECT_DATA_PROFILE_FIELD_NUMBER; hash = (53 * hash) + getProjectDataProfile().hashCode(); hash = (37 * hash) + DATASET_PROJECT_ID_FIELD_NUMBER; @@ -1935,6 +1999,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDataSourceTypeFieldBuilder(); getProfileStatusFieldBuilder(); getSensitivityScoreFieldBuilder(); getDataRiskLevelFieldBuilder(); @@ -1953,6 +2018,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + dataSourceType_ = null; + if (dataSourceTypeBuilder_ != null) { + dataSourceTypeBuilder_.dispose(); + dataSourceTypeBuilder_ = null; + } projectDataProfile_ = ""; datasetProjectId_ = ""; datasetLocation_ = ""; @@ -1981,14 +2051,14 @@ public Builder clear() { predictedInfoTypes_ = null; predictedInfoTypesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); if (otherInfoTypesBuilder_ == null) { otherInfoTypes_ = java.util.Collections.emptyList(); } else { otherInfoTypes_ = null; otherInfoTypesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); configSnapshot_ = null; if (configSnapshotBuilder_ != null) { configSnapshotBuilder_.dispose(); @@ -2058,18 +2128,18 @@ public com.google.privacy.dlp.v2.TableDataProfile buildPartial() { private void buildPartialRepeatedFields(com.google.privacy.dlp.v2.TableDataProfile result) { if (predictedInfoTypesBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { predictedInfoTypes_ = java.util.Collections.unmodifiableList(predictedInfoTypes_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } result.predictedInfoTypes_ = predictedInfoTypes_; } else { result.predictedInfoTypes_ = predictedInfoTypesBuilder_.build(); } if (otherInfoTypesBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { otherInfoTypes_ = java.util.Collections.unmodifiableList(otherInfoTypes_); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } result.otherInfoTypes_ = otherInfoTypes_; } else { @@ -2082,90 +2152,95 @@ private void buildPartial0(com.google.privacy.dlp.v2.TableDataProfile result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.projectDataProfile_ = projectDataProfile_; + result.dataSourceType_ = + dataSourceTypeBuilder_ == null ? dataSourceType_ : dataSourceTypeBuilder_.build(); + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.datasetProjectId_ = datasetProjectId_; + result.projectDataProfile_ = projectDataProfile_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.datasetLocation_ = datasetLocation_; + result.datasetProjectId_ = datasetProjectId_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.datasetId_ = datasetId_; + result.datasetLocation_ = datasetLocation_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.tableId_ = tableId_; + result.datasetId_ = datasetId_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.fullResource_ = fullResource_; + result.tableId_ = tableId_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000080) != 0)) { + result.fullResource_ = fullResource_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.profileStatus_ = profileStatusBuilder_ == null ? profileStatus_ : profileStatusBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.state_ = state_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.sensitivityScore_ = sensitivityScoreBuilder_ == null ? sensitivityScore_ : sensitivityScoreBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.dataRiskLevel_ = dataRiskLevelBuilder_ == null ? dataRiskLevel_ : dataRiskLevelBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.configSnapshot_ = configSnapshotBuilder_ == null ? configSnapshot_ : configSnapshotBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.lastModifiedTime_ = lastModifiedTimeBuilder_ == null ? lastModifiedTime_ : lastModifiedTimeBuilder_.build(); - to_bitField0_ |= 0x00000010; + to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.expirationTime_ = expirationTimeBuilder_ == null ? expirationTime_ : expirationTimeBuilder_.build(); - to_bitField0_ |= 0x00000020; + to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.scannedColumnCount_ = scannedColumnCount_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.failedColumnCount_ = failedColumnCount_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.tableSizeBytes_ = tableSizeBytes_; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.rowCount_ = rowCount_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.encryptionStatus_ = encryptionStatus_; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { result.resourceVisibility_ = resourceVisibility_; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.profileLastGenerated_ = profileLastGeneratedBuilder_ == null ? profileLastGenerated_ : profileLastGeneratedBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.resourceLabels_ = internalGetResourceLabels(); result.resourceLabels_.makeImmutable(); } - if (((from_bitField0_ & 0x01000000) != 0)) { + if (((from_bitField0_ & 0x02000000) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000100; } result.bitField0_ |= to_bitField0_; } @@ -2220,34 +2295,37 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.TableDataProfile other) { bitField0_ |= 0x00000001; onChanged(); } + if (other.hasDataSourceType()) { + mergeDataSourceType(other.getDataSourceType()); + } if (!other.getProjectDataProfile().isEmpty()) { projectDataProfile_ = other.projectDataProfile_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getDatasetProjectId().isEmpty()) { datasetProjectId_ = other.datasetProjectId_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getDatasetLocation().isEmpty()) { datasetLocation_ = other.datasetLocation_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getDatasetId().isEmpty()) { datasetId_ = other.datasetId_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getTableId().isEmpty()) { tableId_ = other.tableId_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getFullResource().isEmpty()) { fullResource_ = other.fullResource_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasProfileStatus()) { @@ -2266,7 +2344,7 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.TableDataProfile other) { if (!other.predictedInfoTypes_.isEmpty()) { if (predictedInfoTypes_.isEmpty()) { predictedInfoTypes_ = other.predictedInfoTypes_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensurePredictedInfoTypesIsMutable(); predictedInfoTypes_.addAll(other.predictedInfoTypes_); @@ -2279,7 +2357,7 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.TableDataProfile other) { predictedInfoTypesBuilder_.dispose(); predictedInfoTypesBuilder_ = null; predictedInfoTypes_ = other.predictedInfoTypes_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); predictedInfoTypesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPredictedInfoTypesFieldBuilder() @@ -2293,7 +2371,7 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.TableDataProfile other) { if (!other.otherInfoTypes_.isEmpty()) { if (otherInfoTypes_.isEmpty()) { otherInfoTypes_ = other.otherInfoTypes_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } else { ensureOtherInfoTypesIsMutable(); otherInfoTypes_.addAll(other.otherInfoTypes_); @@ -2306,7 +2384,7 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.TableDataProfile other) { otherInfoTypesBuilder_.dispose(); otherInfoTypesBuilder_ = null; otherInfoTypes_ = other.otherInfoTypes_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); otherInfoTypesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOtherInfoTypesFieldBuilder() @@ -2347,7 +2425,7 @@ public Builder mergeFrom(com.google.privacy.dlp.v2.TableDataProfile other) { mergeProfileLastGenerated(other.getProfileLastGenerated()); } internalGetMutableResourceLabels().mergeFrom(other.internalGetResourceLabels()); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -2386,88 +2464,88 @@ public Builder mergeFrom( case 18: { projectDataProfile_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 26: { fullResource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 26 case 42: { input.readMessage( getSensitivityScoreFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 42 case 50: { input.readMessage(getDataRiskLevelFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 50 case 58: { input.readMessage(getConfigSnapshotFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 58 case 66: { input.readMessage( getLastModifiedTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 66 case 74: { input.readMessage(getExpirationTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 74 case 80: { scannedColumnCount_ = input.readInt64(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 80 case 88: { failedColumnCount_ = input.readInt64(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 88 case 96: { tableSizeBytes_ = input.readInt64(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 96 case 104: { rowCount_ = input.readInt64(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 104 case 112: { encryptionStatus_ = input.readEnum(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 112 case 120: { resourceVisibility_ = input.readEnum(); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 120 case 130: { input.readMessage( getProfileLastGeneratedFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 130 case 138: @@ -2479,43 +2557,43 @@ public Builder mergeFrom( internalGetMutableResourceLabels() .getMutableMap() .put(resourceLabels__.getKey(), resourceLabels__.getValue()); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 138 case 170: { input.readMessage(getProfileStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 170 case 176: { state_ = input.readEnum(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 176 case 186: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; break; } // case 186 case 194: { datasetProjectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 194 case 202: { datasetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 202 case 210: { tableId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 210 case 218: @@ -2547,9 +2625,15 @@ public Builder mergeFrom( case 234: { datasetLocation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 234 + case 290: + { + input.readMessage(getDataSourceTypeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 290 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2675,6 +2759,192 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.privacy.dlp.v2.DataSourceType dataSourceType_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataSourceType, + com.google.privacy.dlp.v2.DataSourceType.Builder, + com.google.privacy.dlp.v2.DataSourceTypeOrBuilder> + dataSourceTypeBuilder_; + /** + * + * + *
                                                                                      +     * The resource type that was profiled.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + * + * @return Whether the dataSourceType field is set. + */ + public boolean hasDataSourceType() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                                                                      +     * The resource type that was profiled.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + * + * @return The dataSourceType. + */ + public com.google.privacy.dlp.v2.DataSourceType getDataSourceType() { + if (dataSourceTypeBuilder_ == null) { + return dataSourceType_ == null + ? com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance() + : dataSourceType_; + } else { + return dataSourceTypeBuilder_.getMessage(); + } + } + /** + * + * + *
                                                                                      +     * The resource type that was profiled.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + */ + public Builder setDataSourceType(com.google.privacy.dlp.v2.DataSourceType value) { + if (dataSourceTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSourceType_ = value; + } else { + dataSourceTypeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The resource type that was profiled.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + */ + public Builder setDataSourceType( + com.google.privacy.dlp.v2.DataSourceType.Builder builderForValue) { + if (dataSourceTypeBuilder_ == null) { + dataSourceType_ = builderForValue.build(); + } else { + dataSourceTypeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The resource type that was profiled.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + */ + public Builder mergeDataSourceType(com.google.privacy.dlp.v2.DataSourceType value) { + if (dataSourceTypeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && dataSourceType_ != null + && dataSourceType_ != com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance()) { + getDataSourceTypeBuilder().mergeFrom(value); + } else { + dataSourceType_ = value; + } + } else { + dataSourceTypeBuilder_.mergeFrom(value); + } + if (dataSourceType_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                                                                                      +     * The resource type that was profiled.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + */ + public Builder clearDataSourceType() { + bitField0_ = (bitField0_ & ~0x00000002); + dataSourceType_ = null; + if (dataSourceTypeBuilder_ != null) { + dataSourceTypeBuilder_.dispose(); + dataSourceTypeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The resource type that was profiled.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + */ + public com.google.privacy.dlp.v2.DataSourceType.Builder getDataSourceTypeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDataSourceTypeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * The resource type that was profiled.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + */ + public com.google.privacy.dlp.v2.DataSourceTypeOrBuilder getDataSourceTypeOrBuilder() { + if (dataSourceTypeBuilder_ != null) { + return dataSourceTypeBuilder_.getMessageOrBuilder(); + } else { + return dataSourceType_ == null + ? com.google.privacy.dlp.v2.DataSourceType.getDefaultInstance() + : dataSourceType_; + } + } + /** + * + * + *
                                                                                      +     * The resource type that was profiled.
                                                                                      +     * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataSourceType, + com.google.privacy.dlp.v2.DataSourceType.Builder, + com.google.privacy.dlp.v2.DataSourceTypeOrBuilder> + getDataSourceTypeFieldBuilder() { + if (dataSourceTypeBuilder_ == null) { + dataSourceTypeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.privacy.dlp.v2.DataSourceType, + com.google.privacy.dlp.v2.DataSourceType.Builder, + com.google.privacy.dlp.v2.DataSourceTypeOrBuilder>( + getDataSourceType(), getParentForChildren(), isClean()); + dataSourceType_ = null; + } + return dataSourceTypeBuilder_; + } + private java.lang.Object projectDataProfile_ = ""; /** * @@ -2737,7 +3007,7 @@ public Builder setProjectDataProfile(java.lang.String value) { throw new NullPointerException(); } projectDataProfile_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2754,7 +3024,7 @@ public Builder setProjectDataProfile(java.lang.String value) { */ public Builder clearProjectDataProfile() { projectDataProfile_ = getDefaultInstance().getProjectDataProfile(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2776,7 +3046,7 @@ public Builder setProjectDataProfileBytes(com.google.protobuf.ByteString value) } checkByteStringIsUtf8(value); projectDataProfile_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2786,7 +3056,7 @@ public Builder setProjectDataProfileBytes(com.google.protobuf.ByteString value) * * *
                                                                                      -     * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +     * The Google Cloud project ID that owns the resource.
                                                                                            * 
                                                                                      * * string dataset_project_id = 24; @@ -2808,7 +3078,7 @@ public java.lang.String getDatasetProjectId() { * * *
                                                                                      -     * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +     * The Google Cloud project ID that owns the resource.
                                                                                            * 
                                                                                      * * string dataset_project_id = 24; @@ -2830,7 +3100,7 @@ public com.google.protobuf.ByteString getDatasetProjectIdBytes() { * * *
                                                                                      -     * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +     * The Google Cloud project ID that owns the resource.
                                                                                            * 
                                                                                      * * string dataset_project_id = 24; @@ -2843,7 +3113,7 @@ public Builder setDatasetProjectId(java.lang.String value) { throw new NullPointerException(); } datasetProjectId_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2851,7 +3121,7 @@ public Builder setDatasetProjectId(java.lang.String value) { * * *
                                                                                      -     * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +     * The Google Cloud project ID that owns the resource.
                                                                                            * 
                                                                                      * * string dataset_project_id = 24; @@ -2860,7 +3130,7 @@ public Builder setDatasetProjectId(java.lang.String value) { */ public Builder clearDatasetProjectId() { datasetProjectId_ = getDefaultInstance().getDatasetProjectId(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2868,7 +3138,7 @@ public Builder clearDatasetProjectId() { * * *
                                                                                      -     * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +     * The Google Cloud project ID that owns the resource.
                                                                                            * 
                                                                                      * * string dataset_project_id = 24; @@ -2882,7 +3152,7 @@ public Builder setDatasetProjectIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); datasetProjectId_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2892,7 +3162,7 @@ public Builder setDatasetProjectIdBytes(com.google.protobuf.ByteString value) { * * *
                                                                                      -     * The BigQuery location where the dataset's data is stored.
                                                                                      +     * If supported, the location where the dataset's data is stored.
                                                                                            * See https://cloud.google.com/bigquery/docs/locations for supported
                                                                                            * locations.
                                                                                            * 
                                                                                      @@ -2916,7 +3186,7 @@ public java.lang.String getDatasetLocation() { * * *
                                                                                      -     * The BigQuery location where the dataset's data is stored.
                                                                                      +     * If supported, the location where the dataset's data is stored.
                                                                                            * See https://cloud.google.com/bigquery/docs/locations for supported
                                                                                            * locations.
                                                                                            * 
                                                                                      @@ -2940,7 +3210,7 @@ public com.google.protobuf.ByteString getDatasetLocationBytes() { * * *
                                                                                      -     * The BigQuery location where the dataset's data is stored.
                                                                                      +     * If supported, the location where the dataset's data is stored.
                                                                                            * See https://cloud.google.com/bigquery/docs/locations for supported
                                                                                            * locations.
                                                                                            * 
                                                                                      @@ -2955,7 +3225,7 @@ public Builder setDatasetLocation(java.lang.String value) { throw new NullPointerException(); } datasetLocation_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2963,7 +3233,7 @@ public Builder setDatasetLocation(java.lang.String value) { * * *
                                                                                      -     * The BigQuery location where the dataset's data is stored.
                                                                                      +     * If supported, the location where the dataset's data is stored.
                                                                                            * See https://cloud.google.com/bigquery/docs/locations for supported
                                                                                            * locations.
                                                                                            * 
                                                                                      @@ -2974,7 +3244,7 @@ public Builder setDatasetLocation(java.lang.String value) { */ public Builder clearDatasetLocation() { datasetLocation_ = getDefaultInstance().getDatasetLocation(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2982,7 +3252,7 @@ public Builder clearDatasetLocation() { * * *
                                                                                      -     * The BigQuery location where the dataset's data is stored.
                                                                                      +     * If supported, the location where the dataset's data is stored.
                                                                                            * See https://cloud.google.com/bigquery/docs/locations for supported
                                                                                            * locations.
                                                                                            * 
                                                                                      @@ -2998,7 +3268,7 @@ public Builder setDatasetLocationBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); datasetLocation_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3008,7 +3278,7 @@ public Builder setDatasetLocationBytes(com.google.protobuf.ByteString value) { * * *
                                                                                      -     * The BigQuery dataset ID.
                                                                                      +     * If the resource is BigQuery, the  dataset ID.
                                                                                            * 
                                                                                      * * string dataset_id = 25; @@ -3030,7 +3300,7 @@ public java.lang.String getDatasetId() { * * *
                                                                                      -     * The BigQuery dataset ID.
                                                                                      +     * If the resource is BigQuery, the  dataset ID.
                                                                                            * 
                                                                                      * * string dataset_id = 25; @@ -3052,7 +3322,7 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { * * *
                                                                                      -     * The BigQuery dataset ID.
                                                                                      +     * If the resource is BigQuery, the  dataset ID.
                                                                                            * 
                                                                                      * * string dataset_id = 25; @@ -3065,7 +3335,7 @@ public Builder setDatasetId(java.lang.String value) { throw new NullPointerException(); } datasetId_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3073,7 +3343,7 @@ public Builder setDatasetId(java.lang.String value) { * * *
                                                                                      -     * The BigQuery dataset ID.
                                                                                      +     * If the resource is BigQuery, the  dataset ID.
                                                                                            * 
                                                                                      * * string dataset_id = 25; @@ -3082,7 +3352,7 @@ public Builder setDatasetId(java.lang.String value) { */ public Builder clearDatasetId() { datasetId_ = getDefaultInstance().getDatasetId(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3090,7 +3360,7 @@ public Builder clearDatasetId() { * * *
                                                                                      -     * The BigQuery dataset ID.
                                                                                      +     * If the resource is BigQuery, the  dataset ID.
                                                                                            * 
                                                                                      * * string dataset_id = 25; @@ -3104,7 +3374,7 @@ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); datasetId_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3114,7 +3384,7 @@ public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { * * *
                                                                                      -     * The BigQuery table ID.
                                                                                      +     * If the resource is BigQuery, the BigQuery table ID.
                                                                                            * 
                                                                                      * * string table_id = 26; @@ -3136,7 +3406,7 @@ public java.lang.String getTableId() { * * *
                                                                                      -     * The BigQuery table ID.
                                                                                      +     * If the resource is BigQuery, the BigQuery table ID.
                                                                                            * 
                                                                                      * * string table_id = 26; @@ -3158,7 +3428,7 @@ public com.google.protobuf.ByteString getTableIdBytes() { * * *
                                                                                      -     * The BigQuery table ID.
                                                                                      +     * If the resource is BigQuery, the BigQuery table ID.
                                                                                            * 
                                                                                      * * string table_id = 26; @@ -3171,7 +3441,7 @@ public Builder setTableId(java.lang.String value) { throw new NullPointerException(); } tableId_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3179,7 +3449,7 @@ public Builder setTableId(java.lang.String value) { * * *
                                                                                      -     * The BigQuery table ID.
                                                                                      +     * If the resource is BigQuery, the BigQuery table ID.
                                                                                            * 
                                                                                      * * string table_id = 26; @@ -3188,7 +3458,7 @@ public Builder setTableId(java.lang.String value) { */ public Builder clearTableId() { tableId_ = getDefaultInstance().getTableId(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -3196,7 +3466,7 @@ public Builder clearTableId() { * * *
                                                                                      -     * The BigQuery table ID.
                                                                                      +     * If the resource is BigQuery, the BigQuery table ID.
                                                                                            * 
                                                                                      * * string table_id = 26; @@ -3210,7 +3480,7 @@ public Builder setTableIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); tableId_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3220,7 +3490,7 @@ public Builder setTableIdBytes(com.google.protobuf.ByteString value) { * * *
                                                                                      -     * The resource name of the table.
                                                                                      +     * The resource name of the resource profiled.
                                                                                            * https://cloud.google.com/apis/design/resource_names#full_resource_name
                                                                                            * 
                                                                                      * @@ -3243,7 +3513,7 @@ public java.lang.String getFullResource() { * * *
                                                                                      -     * The resource name of the table.
                                                                                      +     * The resource name of the resource profiled.
                                                                                            * https://cloud.google.com/apis/design/resource_names#full_resource_name
                                                                                            * 
                                                                                      * @@ -3266,7 +3536,7 @@ public com.google.protobuf.ByteString getFullResourceBytes() { * * *
                                                                                      -     * The resource name of the table.
                                                                                      +     * The resource name of the resource profiled.
                                                                                            * https://cloud.google.com/apis/design/resource_names#full_resource_name
                                                                                            * 
                                                                                      * @@ -3280,7 +3550,7 @@ public Builder setFullResource(java.lang.String value) { throw new NullPointerException(); } fullResource_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3288,7 +3558,7 @@ public Builder setFullResource(java.lang.String value) { * * *
                                                                                      -     * The resource name of the table.
                                                                                      +     * The resource name of the resource profiled.
                                                                                            * https://cloud.google.com/apis/design/resource_names#full_resource_name
                                                                                            * 
                                                                                      * @@ -3298,7 +3568,7 @@ public Builder setFullResource(java.lang.String value) { */ public Builder clearFullResource() { fullResource_ = getDefaultInstance().getFullResource(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -3306,7 +3576,7 @@ public Builder clearFullResource() { * * *
                                                                                      -     * The resource name of the table.
                                                                                      +     * The resource name of the resource profiled.
                                                                                            * https://cloud.google.com/apis/design/resource_names#full_resource_name
                                                                                            * 
                                                                                      * @@ -3321,7 +3591,7 @@ public Builder setFullResourceBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); fullResource_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3345,7 +3615,7 @@ public Builder setFullResourceBytes(com.google.protobuf.ByteString value) { * @return Whether the profileStatus field is set. */ public boolean hasProfileStatus() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -3387,7 +3657,7 @@ public Builder setProfileStatus(com.google.privacy.dlp.v2.ProfileStatus value) { } else { profileStatusBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3408,7 +3678,7 @@ public Builder setProfileStatus( } else { profileStatusBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3424,7 +3694,7 @@ public Builder setProfileStatus( */ public Builder mergeProfileStatus(com.google.privacy.dlp.v2.ProfileStatus value) { if (profileStatusBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && profileStatus_ != null && profileStatus_ != com.google.privacy.dlp.v2.ProfileStatus.getDefaultInstance()) { getProfileStatusBuilder().mergeFrom(value); @@ -3435,7 +3705,7 @@ public Builder mergeProfileStatus(com.google.privacy.dlp.v2.ProfileStatus value) profileStatusBuilder_.mergeFrom(value); } if (profileStatus_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -3451,7 +3721,7 @@ public Builder mergeProfileStatus(com.google.privacy.dlp.v2.ProfileStatus value) * .google.privacy.dlp.v2.ProfileStatus profile_status = 21; */ public Builder clearProfileStatus() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); profileStatus_ = null; if (profileStatusBuilder_ != null) { profileStatusBuilder_.dispose(); @@ -3471,7 +3741,7 @@ public Builder clearProfileStatus() { * .google.privacy.dlp.v2.ProfileStatus profile_status = 21; */ public com.google.privacy.dlp.v2.ProfileStatus.Builder getProfileStatusBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getProfileStatusFieldBuilder().getBuilder(); } @@ -3551,7 +3821,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3590,7 +3860,7 @@ public Builder setState(com.google.privacy.dlp.v2.TableDataProfile.State value) if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; state_ = value.getNumber(); onChanged(); return this; @@ -3607,7 +3877,7 @@ public Builder setState(com.google.privacy.dlp.v2.TableDataProfile.State value) * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); state_ = 0; onChanged(); return this; @@ -3631,7 +3901,7 @@ public Builder clearState() { * @return Whether the sensitivityScore field is set. */ public boolean hasSensitivityScore() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3671,7 +3941,7 @@ public Builder setSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore va } else { sensitivityScoreBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3691,7 +3961,7 @@ public Builder setSensitivityScore( } else { sensitivityScoreBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3706,7 +3976,7 @@ public Builder setSensitivityScore( */ public Builder mergeSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore value) { if (sensitivityScoreBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && sensitivityScore_ != null && sensitivityScore_ != com.google.privacy.dlp.v2.SensitivityScore.getDefaultInstance()) { @@ -3718,7 +3988,7 @@ public Builder mergeSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore sensitivityScoreBuilder_.mergeFrom(value); } if (sensitivityScore_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -3733,7 +4003,7 @@ public Builder mergeSensitivityScore(com.google.privacy.dlp.v2.SensitivityScore * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5; */ public Builder clearSensitivityScore() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); sensitivityScore_ = null; if (sensitivityScoreBuilder_ != null) { sensitivityScoreBuilder_.dispose(); @@ -3752,7 +4022,7 @@ public Builder clearSensitivityScore() { * .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5; */ public com.google.privacy.dlp.v2.SensitivityScore.Builder getSensitivityScoreBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return getSensitivityScoreFieldBuilder().getBuilder(); } @@ -3818,7 +4088,7 @@ public com.google.privacy.dlp.v2.SensitivityScoreOrBuilder getSensitivityScoreOr * @return Whether the dataRiskLevel field is set. */ public boolean hasDataRiskLevel() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -3858,7 +4128,7 @@ public Builder setDataRiskLevel(com.google.privacy.dlp.v2.DataRiskLevel value) { } else { dataRiskLevelBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3878,7 +4148,7 @@ public Builder setDataRiskLevel( } else { dataRiskLevelBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3893,7 +4163,7 @@ public Builder setDataRiskLevel( */ public Builder mergeDataRiskLevel(com.google.privacy.dlp.v2.DataRiskLevel value) { if (dataRiskLevelBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && dataRiskLevel_ != null && dataRiskLevel_ != com.google.privacy.dlp.v2.DataRiskLevel.getDefaultInstance()) { getDataRiskLevelBuilder().mergeFrom(value); @@ -3904,7 +4174,7 @@ public Builder mergeDataRiskLevel(com.google.privacy.dlp.v2.DataRiskLevel value) dataRiskLevelBuilder_.mergeFrom(value); } if (dataRiskLevel_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -3919,7 +4189,7 @@ public Builder mergeDataRiskLevel(com.google.privacy.dlp.v2.DataRiskLevel value) * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6; */ public Builder clearDataRiskLevel() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); dataRiskLevel_ = null; if (dataRiskLevelBuilder_ != null) { dataRiskLevelBuilder_.dispose(); @@ -3938,7 +4208,7 @@ public Builder clearDataRiskLevel() { * .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6; */ public com.google.privacy.dlp.v2.DataRiskLevel.Builder getDataRiskLevelBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return getDataRiskLevelFieldBuilder().getBuilder(); } @@ -3990,10 +4260,10 @@ public com.google.privacy.dlp.v2.DataRiskLevelOrBuilder getDataRiskLevelOrBuilde java.util.Collections.emptyList(); private void ensurePredictedInfoTypesIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { predictedInfoTypes_ = new java.util.ArrayList(predictedInfoTypes_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } @@ -4211,7 +4481,7 @@ public Builder addAllPredictedInfoTypes( public Builder clearPredictedInfoTypes() { if (predictedInfoTypesBuilder_ == null) { predictedInfoTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { predictedInfoTypesBuilder_.clear(); @@ -4337,7 +4607,7 @@ public com.google.privacy.dlp.v2.InfoTypeSummary.Builder addPredictedInfoTypesBu com.google.privacy.dlp.v2.InfoTypeSummary.Builder, com.google.privacy.dlp.v2.InfoTypeSummaryOrBuilder>( predictedInfoTypes_, - ((bitField0_ & 0x00000800) != 0), + ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); predictedInfoTypes_ = null; @@ -4349,11 +4619,11 @@ public com.google.privacy.dlp.v2.InfoTypeSummary.Builder addPredictedInfoTypesBu java.util.Collections.emptyList(); private void ensureOtherInfoTypesIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { + if (!((bitField0_ & 0x00002000) != 0)) { otherInfoTypes_ = new java.util.ArrayList( otherInfoTypes_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } } @@ -4571,7 +4841,7 @@ public Builder addAllOtherInfoTypes( public Builder clearOtherInfoTypes() { if (otherInfoTypesBuilder_ == null) { otherInfoTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); } else { otherInfoTypesBuilder_.clear(); @@ -4697,7 +4967,7 @@ public com.google.privacy.dlp.v2.OtherInfoTypeSummary.Builder addOtherInfoTypesB com.google.privacy.dlp.v2.OtherInfoTypeSummary.Builder, com.google.privacy.dlp.v2.OtherInfoTypeSummaryOrBuilder>( otherInfoTypes_, - ((bitField0_ & 0x00001000) != 0), + ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); otherInfoTypes_ = null; @@ -4723,7 +4993,7 @@ public com.google.privacy.dlp.v2.OtherInfoTypeSummary.Builder addOtherInfoTypesB * @return Whether the configSnapshot field is set. */ public boolean hasConfigSnapshot() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -4763,7 +5033,7 @@ public Builder setConfigSnapshot(com.google.privacy.dlp.v2.DataProfileConfigSnap } else { configSnapshotBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4783,7 +5053,7 @@ public Builder setConfigSnapshot( } else { configSnapshotBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4798,7 +5068,7 @@ public Builder setConfigSnapshot( */ public Builder mergeConfigSnapshot(com.google.privacy.dlp.v2.DataProfileConfigSnapshot value) { if (configSnapshotBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && configSnapshot_ != null && configSnapshot_ != com.google.privacy.dlp.v2.DataProfileConfigSnapshot.getDefaultInstance()) { @@ -4810,7 +5080,7 @@ public Builder mergeConfigSnapshot(com.google.privacy.dlp.v2.DataProfileConfigSn configSnapshotBuilder_.mergeFrom(value); } if (configSnapshot_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -4825,7 +5095,7 @@ public Builder mergeConfigSnapshot(com.google.privacy.dlp.v2.DataProfileConfigSn * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; */ public Builder clearConfigSnapshot() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); configSnapshot_ = null; if (configSnapshotBuilder_ != null) { configSnapshotBuilder_.dispose(); @@ -4844,7 +5114,7 @@ public Builder clearConfigSnapshot() { * .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; */ public com.google.privacy.dlp.v2.DataProfileConfigSnapshot.Builder getConfigSnapshotBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return getConfigSnapshotFieldBuilder().getBuilder(); } @@ -4911,7 +5181,7 @@ public com.google.privacy.dlp.v2.DataProfileConfigSnapshot.Builder getConfigSnap * @return Whether the lastModifiedTime field is set. */ public boolean hasLastModifiedTime() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -4951,7 +5221,7 @@ public Builder setLastModifiedTime(com.google.protobuf.Timestamp value) { } else { lastModifiedTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4970,7 +5240,7 @@ public Builder setLastModifiedTime(com.google.protobuf.Timestamp.Builder builder } else { lastModifiedTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4985,7 +5255,7 @@ public Builder setLastModifiedTime(com.google.protobuf.Timestamp.Builder builder */ public Builder mergeLastModifiedTime(com.google.protobuf.Timestamp value) { if (lastModifiedTimeBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && lastModifiedTime_ != null && lastModifiedTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastModifiedTimeBuilder().mergeFrom(value); @@ -4996,7 +5266,7 @@ public Builder mergeLastModifiedTime(com.google.protobuf.Timestamp value) { lastModifiedTimeBuilder_.mergeFrom(value); } if (lastModifiedTime_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -5011,7 +5281,7 @@ public Builder mergeLastModifiedTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp last_modified_time = 8; */ public Builder clearLastModifiedTime() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); lastModifiedTime_ = null; if (lastModifiedTimeBuilder_ != null) { lastModifiedTimeBuilder_.dispose(); @@ -5030,7 +5300,7 @@ public Builder clearLastModifiedTime() { * .google.protobuf.Timestamp last_modified_time = 8; */ public com.google.protobuf.Timestamp.Builder getLastModifiedTimeBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getLastModifiedTimeFieldBuilder().getBuilder(); } @@ -5096,7 +5366,7 @@ public com.google.protobuf.TimestampOrBuilder getLastModifiedTimeOrBuilder() { * @return Whether the expirationTime field is set. */ public boolean hasExpirationTime() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** * @@ -5136,7 +5406,7 @@ public Builder setExpirationTime(com.google.protobuf.Timestamp value) { } else { expirationTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5155,7 +5425,7 @@ public Builder setExpirationTime(com.google.protobuf.Timestamp.Builder builderFo } else { expirationTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5170,7 +5440,7 @@ public Builder setExpirationTime(com.google.protobuf.Timestamp.Builder builderFo */ public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) { if (expirationTimeBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && expirationTime_ != null && expirationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpirationTimeBuilder().mergeFrom(value); @@ -5181,7 +5451,7 @@ public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) { expirationTimeBuilder_.mergeFrom(value); } if (expirationTime_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -5196,7 +5466,7 @@ public Builder mergeExpirationTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp expiration_time = 9; */ public Builder clearExpirationTime() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); expirationTime_ = null; if (expirationTimeBuilder_ != null) { expirationTimeBuilder_.dispose(); @@ -5215,7 +5485,7 @@ public Builder clearExpirationTime() { * .google.protobuf.Timestamp expiration_time = 9; */ public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return getExpirationTimeFieldBuilder().getBuilder(); } @@ -5294,7 +5564,7 @@ public long getScannedColumnCount() { public Builder setScannedColumnCount(long value) { scannedColumnCount_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5310,7 +5580,7 @@ public Builder setScannedColumnCount(long value) { * @return This builder for chaining. */ public Builder clearScannedColumnCount() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); scannedColumnCount_ = 0L; onChanged(); return this; @@ -5347,7 +5617,7 @@ public long getFailedColumnCount() { public Builder setFailedColumnCount(long value) { failedColumnCount_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5363,7 +5633,7 @@ public Builder setFailedColumnCount(long value) { * @return This builder for chaining. */ public Builder clearFailedColumnCount() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); failedColumnCount_ = 0L; onChanged(); return this; @@ -5400,7 +5670,7 @@ public long getTableSizeBytes() { public Builder setTableSizeBytes(long value) { tableSizeBytes_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -5416,7 +5686,7 @@ public Builder setTableSizeBytes(long value) { * @return This builder for chaining. */ public Builder clearTableSizeBytes() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); tableSizeBytes_ = 0L; onChanged(); return this; @@ -5455,7 +5725,7 @@ public long getRowCount() { public Builder setRowCount(long value) { rowCount_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -5472,7 +5742,7 @@ public Builder setRowCount(long value) { * @return This builder for chaining. */ public Builder clearRowCount() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); rowCount_ = 0L; onChanged(); return this; @@ -5508,7 +5778,7 @@ public int getEncryptionStatusValue() { */ public Builder setEncryptionStatusValue(int value) { encryptionStatus_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -5545,7 +5815,7 @@ public Builder setEncryptionStatus(com.google.privacy.dlp.v2.EncryptionStatus va if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; encryptionStatus_ = value.getNumber(); onChanged(); return this; @@ -5562,7 +5832,7 @@ public Builder setEncryptionStatus(com.google.privacy.dlp.v2.EncryptionStatus va * @return This builder for chaining. */ public Builder clearEncryptionStatus() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); encryptionStatus_ = 0; onChanged(); return this; @@ -5598,7 +5868,7 @@ public int getResourceVisibilityValue() { */ public Builder setResourceVisibilityValue(int value) { resourceVisibility_ = value; - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -5635,7 +5905,7 @@ public Builder setResourceVisibility(com.google.privacy.dlp.v2.ResourceVisibilit if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; resourceVisibility_ = value.getNumber(); onChanged(); return this; @@ -5652,7 +5922,7 @@ public Builder setResourceVisibility(com.google.privacy.dlp.v2.ResourceVisibilit * @return This builder for chaining. */ public Builder clearResourceVisibility() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); resourceVisibility_ = 0; onChanged(); return this; @@ -5676,7 +5946,7 @@ public Builder clearResourceVisibility() { * @return Whether the profileLastGenerated field is set. */ public boolean hasProfileLastGenerated() { - return ((bitField0_ & 0x00400000) != 0); + return ((bitField0_ & 0x00800000) != 0); } /** * @@ -5716,7 +5986,7 @@ public Builder setProfileLastGenerated(com.google.protobuf.Timestamp value) { } else { profileLastGeneratedBuilder_.setMessage(value); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -5735,7 +6005,7 @@ public Builder setProfileLastGenerated(com.google.protobuf.Timestamp.Builder bui } else { profileLastGeneratedBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -5750,7 +6020,7 @@ public Builder setProfileLastGenerated(com.google.protobuf.Timestamp.Builder bui */ public Builder mergeProfileLastGenerated(com.google.protobuf.Timestamp value) { if (profileLastGeneratedBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) + if (((bitField0_ & 0x00800000) != 0) && profileLastGenerated_ != null && profileLastGenerated_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getProfileLastGeneratedBuilder().mergeFrom(value); @@ -5761,7 +6031,7 @@ public Builder mergeProfileLastGenerated(com.google.protobuf.Timestamp value) { profileLastGeneratedBuilder_.mergeFrom(value); } if (profileLastGenerated_ != null) { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } return this; @@ -5776,7 +6046,7 @@ public Builder mergeProfileLastGenerated(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp profile_last_generated = 16; */ public Builder clearProfileLastGenerated() { - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); profileLastGenerated_ = null; if (profileLastGeneratedBuilder_ != null) { profileLastGeneratedBuilder_.dispose(); @@ -5795,7 +6065,7 @@ public Builder clearProfileLastGenerated() { * .google.protobuf.Timestamp profile_last_generated = 16; */ public com.google.protobuf.Timestamp.Builder getProfileLastGeneratedBuilder() { - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return getProfileLastGeneratedFieldBuilder().getBuilder(); } @@ -5863,7 +6133,7 @@ public com.google.protobuf.TimestampOrBuilder getProfileLastGeneratedOrBuilder() if (!resourceLabels_.isMutable()) { resourceLabels_ = resourceLabels_.copy(); } - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return resourceLabels_; } @@ -5948,7 +6218,7 @@ public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { } public Builder clearResourceLabels() { - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); internalGetMutableResourceLabels().getMutableMap().clear(); return this; } @@ -5971,7 +6241,7 @@ public Builder removeResourceLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableResourceLabels() { - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; return internalGetMutableResourceLabels().getMutableMap(); } /** @@ -5991,7 +6261,7 @@ public Builder putResourceLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableResourceLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; return this; } /** @@ -6005,7 +6275,7 @@ public Builder putResourceLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllResourceLabels(java.util.Map values) { internalGetMutableResourceLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; return this; } @@ -6027,7 +6297,7 @@ public Builder putAllResourceLabels(java.util.Map.google.protobuf.Timestamp create_time = 23;
                                                                                      */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -6146,7 +6416,7 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 23; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileName.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileName.java new file mode 100644 index 000000000000..0ecd78174abe --- /dev/null +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileName.java @@ -0,0 +1,361 @@ +/* + * 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. + */ + +package com.google.privacy.dlp.v2; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class TableDataProfileName implements ResourceName { + private static final PathTemplate ORGANIZATION_LOCATION_TABLE_DATA_PROFILE = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}"); + private static final PathTemplate PROJECT_LOCATION_TABLE_DATA_PROFILE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/tableDataProfiles/{table_data_profile}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String organization; + private final String location; + private final String tableDataProfile; + private final String project; + + @Deprecated + protected TableDataProfileName() { + organization = null; + location = null; + tableDataProfile = null; + project = null; + } + + private TableDataProfileName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + tableDataProfile = Preconditions.checkNotNull(builder.getTableDataProfile()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_TABLE_DATA_PROFILE; + } + + private TableDataProfileName(ProjectLocationTableDataProfileBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + tableDataProfile = Preconditions.checkNotNull(builder.getTableDataProfile()); + organization = null; + pathTemplate = PROJECT_LOCATION_TABLE_DATA_PROFILE; + } + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getTableDataProfile() { + return tableDataProfile; + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newOrganizationLocationTableDataProfileBuilder() { + return new Builder(); + } + + public static ProjectLocationTableDataProfileBuilder newProjectLocationTableDataProfileBuilder() { + return new ProjectLocationTableDataProfileBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TableDataProfileName of( + String organization, String location, String tableDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setTableDataProfile(tableDataProfile) + .build(); + } + + public static TableDataProfileName ofOrganizationLocationTableDataProfileName( + String organization, String location, String tableDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setTableDataProfile(tableDataProfile) + .build(); + } + + public static TableDataProfileName ofProjectLocationTableDataProfileName( + String project, String location, String tableDataProfile) { + return newProjectLocationTableDataProfileBuilder() + .setProject(project) + .setLocation(location) + .setTableDataProfile(tableDataProfile) + .build(); + } + + public static String format(String organization, String location, String tableDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setTableDataProfile(tableDataProfile) + .build() + .toString(); + } + + public static String formatOrganizationLocationTableDataProfileName( + String organization, String location, String tableDataProfile) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setTableDataProfile(tableDataProfile) + .build() + .toString(); + } + + public static String formatProjectLocationTableDataProfileName( + String project, String location, String tableDataProfile) { + return newProjectLocationTableDataProfileBuilder() + .setProject(project) + .setLocation(location) + .setTableDataProfile(tableDataProfile) + .build() + .toString(); + } + + public static TableDataProfileName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (ORGANIZATION_LOCATION_TABLE_DATA_PROFILE.matches(formattedString)) { + Map matchMap = + ORGANIZATION_LOCATION_TABLE_DATA_PROFILE.match(formattedString); + return ofOrganizationLocationTableDataProfileName( + matchMap.get("organization"), + matchMap.get("location"), + matchMap.get("table_data_profile")); + } else if (PROJECT_LOCATION_TABLE_DATA_PROFILE.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_TABLE_DATA_PROFILE.match(formattedString); + return ofProjectLocationTableDataProfileName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("table_data_profile")); + } + throw new ValidationException( + "TableDataProfileName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (TableDataProfileName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_LOCATION_TABLE_DATA_PROFILE.matches(formattedString) + || PROJECT_LOCATION_TABLE_DATA_PROFILE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (tableDataProfile != null) { + fieldMapBuilder.put("table_data_profile", tableDataProfile); + } + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + TableDataProfileName that = ((TableDataProfileName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.location, that.location) + && Objects.equals(this.tableDataProfile, that.tableDataProfile) + && Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(tableDataProfile); + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** + * Builder for + * organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}. + */ + public static class Builder { + private String organization; + private String location; + private String tableDataProfile; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getTableDataProfile() { + return tableDataProfile; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setTableDataProfile(String tableDataProfile) { + this.tableDataProfile = tableDataProfile; + return this; + } + + private Builder(TableDataProfileName tableDataProfileName) { + Preconditions.checkArgument( + Objects.equals( + tableDataProfileName.pathTemplate, ORGANIZATION_LOCATION_TABLE_DATA_PROFILE), + "toBuilder is only supported when TableDataProfileName has the pattern of organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}"); + this.organization = tableDataProfileName.organization; + this.location = tableDataProfileName.location; + this.tableDataProfile = tableDataProfileName.tableDataProfile; + } + + public TableDataProfileName build() { + return new TableDataProfileName(this); + } + } + + /** Builder for projects/{project}/locations/{location}/tableDataProfiles/{table_data_profile}. */ + public static class ProjectLocationTableDataProfileBuilder { + private String project; + private String location; + private String tableDataProfile; + + protected ProjectLocationTableDataProfileBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTableDataProfile() { + return tableDataProfile; + } + + public ProjectLocationTableDataProfileBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationTableDataProfileBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationTableDataProfileBuilder setTableDataProfile(String tableDataProfile) { + this.tableDataProfile = tableDataProfile; + return this; + } + + public TableDataProfileName build() { + return new TableDataProfileName(this); + } + } +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java index 927f474d7798..daea3e88c48d 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TableDataProfileOrBuilder.java @@ -49,6 +49,41 @@ public interface TableDataProfileOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
                                                                                      +   * The resource type that was profiled.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + * + * @return Whether the dataSourceType field is set. + */ + boolean hasDataSourceType(); + /** + * + * + *
                                                                                      +   * The resource type that was profiled.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + * + * @return The dataSourceType. + */ + com.google.privacy.dlp.v2.DataSourceType getDataSourceType(); + /** + * + * + *
                                                                                      +   * The resource type that was profiled.
                                                                                      +   * 
                                                                                      + * + * .google.privacy.dlp.v2.DataSourceType data_source_type = 36; + */ + com.google.privacy.dlp.v2.DataSourceTypeOrBuilder getDataSourceTypeOrBuilder(); + /** * * @@ -78,7 +113,7 @@ public interface TableDataProfileOrBuilder * * *
                                                                                      -   * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +   * The Google Cloud project ID that owns the resource.
                                                                                          * 
                                                                                      * * string dataset_project_id = 24; @@ -90,7 +125,7 @@ public interface TableDataProfileOrBuilder * * *
                                                                                      -   * The Google Cloud project ID that owns the BigQuery dataset.
                                                                                      +   * The Google Cloud project ID that owns the resource.
                                                                                          * 
                                                                                      * * string dataset_project_id = 24; @@ -103,7 +138,7 @@ public interface TableDataProfileOrBuilder * * *
                                                                                      -   * The BigQuery location where the dataset's data is stored.
                                                                                      +   * If supported, the location where the dataset's data is stored.
                                                                                          * See https://cloud.google.com/bigquery/docs/locations for supported
                                                                                          * locations.
                                                                                          * 
                                                                                      @@ -117,7 +152,7 @@ public interface TableDataProfileOrBuilder * * *
                                                                                      -   * The BigQuery location where the dataset's data is stored.
                                                                                      +   * If supported, the location where the dataset's data is stored.
                                                                                          * See https://cloud.google.com/bigquery/docs/locations for supported
                                                                                          * locations.
                                                                                          * 
                                                                                      @@ -132,7 +167,7 @@ public interface TableDataProfileOrBuilder * * *
                                                                                      -   * The BigQuery dataset ID.
                                                                                      +   * If the resource is BigQuery, the  dataset ID.
                                                                                          * 
                                                                                      * * string dataset_id = 25; @@ -144,7 +179,7 @@ public interface TableDataProfileOrBuilder * * *
                                                                                      -   * The BigQuery dataset ID.
                                                                                      +   * If the resource is BigQuery, the  dataset ID.
                                                                                          * 
                                                                                      * * string dataset_id = 25; @@ -157,7 +192,7 @@ public interface TableDataProfileOrBuilder * * *
                                                                                      -   * The BigQuery table ID.
                                                                                      +   * If the resource is BigQuery, the BigQuery table ID.
                                                                                          * 
                                                                                      * * string table_id = 26; @@ -169,7 +204,7 @@ public interface TableDataProfileOrBuilder * * *
                                                                                      -   * The BigQuery table ID.
                                                                                      +   * If the resource is BigQuery, the BigQuery table ID.
                                                                                          * 
                                                                                      * * string table_id = 26; @@ -182,7 +217,7 @@ public interface TableDataProfileOrBuilder * * *
                                                                                      -   * The resource name of the table.
                                                                                      +   * The resource name of the resource profiled.
                                                                                          * https://cloud.google.com/apis/design/resource_names#full_resource_name
                                                                                          * 
                                                                                      * @@ -195,7 +230,7 @@ public interface TableDataProfileOrBuilder * * *
                                                                                      -   * The resource name of the table.
                                                                                      +   * The resource name of the resource profiled.
                                                                                          * https://cloud.google.com/apis/design/resource_names#full_resource_name
                                                                                          * 
                                                                                      * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationContainerType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationContainerType.java index 13f994d5926f..5695948a9bcc 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationContainerType.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationContainerType.java @@ -29,24 +29,88 @@ * Protobuf enum {@code google.privacy.dlp.v2.TransformationContainerType} */ public enum TransformationContainerType implements com.google.protobuf.ProtocolMessageEnum { - /** TRANSFORM_UNKNOWN_CONTAINER = 0; */ + /** + * + * + *
                                                                                      +   * Unused.
                                                                                      +   * 
                                                                                      + * + * TRANSFORM_UNKNOWN_CONTAINER = 0; + */ TRANSFORM_UNKNOWN_CONTAINER(0), - /** TRANSFORM_BODY = 1; */ + /** + * + * + *
                                                                                      +   * Body of a file.
                                                                                      +   * 
                                                                                      + * + * TRANSFORM_BODY = 1; + */ TRANSFORM_BODY(1), - /** TRANSFORM_METADATA = 2; */ + /** + * + * + *
                                                                                      +   * Metadata for a file.
                                                                                      +   * 
                                                                                      + * + * TRANSFORM_METADATA = 2; + */ TRANSFORM_METADATA(2), - /** TRANSFORM_TABLE = 3; */ + /** + * + * + *
                                                                                      +   * A table.
                                                                                      +   * 
                                                                                      + * + * TRANSFORM_TABLE = 3; + */ TRANSFORM_TABLE(3), UNRECOGNIZED(-1), ; - /** TRANSFORM_UNKNOWN_CONTAINER = 0; */ + /** + * + * + *
                                                                                      +   * Unused.
                                                                                      +   * 
                                                                                      + * + * TRANSFORM_UNKNOWN_CONTAINER = 0; + */ public static final int TRANSFORM_UNKNOWN_CONTAINER_VALUE = 0; - /** TRANSFORM_BODY = 1; */ + /** + * + * + *
                                                                                      +   * Body of a file.
                                                                                      +   * 
                                                                                      + * + * TRANSFORM_BODY = 1; + */ public static final int TRANSFORM_BODY_VALUE = 1; - /** TRANSFORM_METADATA = 2; */ + /** + * + * + *
                                                                                      +   * Metadata for a file.
                                                                                      +   * 
                                                                                      + * + * TRANSFORM_METADATA = 2; + */ public static final int TRANSFORM_METADATA_VALUE = 2; - /** TRANSFORM_TABLE = 3; */ + /** + * + * + *
                                                                                      +   * A table.
                                                                                      +   * 
                                                                                      + * + * TRANSFORM_TABLE = 3; + */ public static final int TRANSFORM_TABLE_VALUE = 3; public final int getNumber() { diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatus.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatus.java index 1db8105cb38c..b25768abb1dd 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatus.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatus.java @@ -19,7 +19,15 @@ // Protobuf Java Version: 3.25.2 package com.google.privacy.dlp.v2; -/** Protobuf type {@code google.privacy.dlp.v2.TransformationResultStatus} */ +/** + * + * + *
                                                                                      + * The outcome of a transformation.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.TransformationResultStatus} + */ public final class TransformationResultStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.privacy.dlp.v2.TransformationResultStatus) @@ -318,7 +326,15 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.privacy.dlp.v2.TransformationResultStatus} */ + /** + * + * + *
                                                                                      +   * The outcome of a transformation.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.privacy.dlp.v2.TransformationResultStatus} + */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.privacy.dlp.v2.TransformationResultStatus) diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusType.java index 5c46744a145d..b79e7e46f431 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusType.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/TransformationResultStatusType.java @@ -31,7 +31,15 @@ * Protobuf enum {@code google.privacy.dlp.v2.TransformationResultStatusType} */ public enum TransformationResultStatusType implements com.google.protobuf.ProtocolMessageEnum { - /** STATE_TYPE_UNSPECIFIED = 0; */ + /** + * + * + *
                                                                                      +   * Unused.
                                                                                      +   * 
                                                                                      + * + * STATE_TYPE_UNSPECIFIED = 0; + */ STATE_TYPE_UNSPECIFIED(0), /** * @@ -81,7 +89,15 @@ public enum TransformationResultStatusType implements com.google.protobuf.Protoc UNRECOGNIZED(-1), ; - /** STATE_TYPE_UNSPECIFIED = 0; */ + /** + * + * + *
                                                                                      +   * Unused.
                                                                                      +   * 
                                                                                      + * + * STATE_TYPE_UNSPECIFIED = 0; + */ public static final int STATE_TYPE_UNSPECIFIED_VALUE = 0; /** * diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto index 3f1a1f66735e..5022524852a0 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto @@ -55,7 +55,7 @@ option (google.api.resource_definition) = { // scheduling of data scans on Google Cloud Platform based data sets. // // To learn more about concepts and find how-to guides see -// https://cloud.google.com/dlp/docs/. +// https://cloud.google.com/sensitive-data-protection/docs/. service DlpService { option (google.api.default_host) = "dlp.googleapis.com"; option (google.api.oauth_scopes) = @@ -68,8 +68,10 @@ service DlpService { // system will automatically choose what detectors to run. By default this may // be all types, but may change over time as detectors are updated. // - // For how to guides, see https://cloud.google.com/dlp/docs/inspecting-images - // and https://cloud.google.com/dlp/docs/inspecting-text, + // For how to guides, see + // https://cloud.google.com/sensitive-data-protection/docs/inspecting-images + // and + // https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, rpc InspectContent(InspectContentRequest) returns (InspectContentResponse) { option (google.api.http) = { post: "/v2/{parent=projects/*}/content:inspect" @@ -83,8 +85,9 @@ service DlpService { // Redacts potentially sensitive info from an image. // This method has limits on input size, processing time, and output size. - // See https://cloud.google.com/dlp/docs/redacting-sensitive-data-images to - // learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images + // to learn more. // // When no InfoTypes or CustomInfoTypes are specified in this request, the // system will automatically choose what detectors to run. By default this may @@ -102,8 +105,9 @@ service DlpService { // De-identifies potentially sensitive info from a ContentItem. // This method has limits on input size and output size. - // See https://cloud.google.com/dlp/docs/deidentify-sensitive-data to - // learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data + // to learn more. // // When no InfoTypes or CustomInfoTypes are specified in this request, the // system will automatically choose what detectors to run. By default this may @@ -122,7 +126,7 @@ service DlpService { // Re-identifies content that has been de-identified. // See - // https://cloud.google.com/dlp/docs/pseudonymization#re-identification_in_free_text_code_example + // https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example // to learn more. rpc ReidentifyContent(ReidentifyContentRequest) returns (ReidentifyContentResponse) { @@ -137,8 +141,9 @@ service DlpService { } // Returns a list of the sensitive information types that DLP API - // supports. See https://cloud.google.com/dlp/docs/infotypes-reference to - // learn more. + // supports. See + // https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference + // to learn more. rpc ListInfoTypes(ListInfoTypesRequest) returns (ListInfoTypesResponse) { option (google.api.http) = { get: "/v2/infoTypes" @@ -149,7 +154,9 @@ service DlpService { // Creates an InspectTemplate for reusing frequently used configuration // for inspecting content, images, and storage. - // See https://cloud.google.com/dlp/docs/creating-templates to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-templates + // to learn more. rpc CreateInspectTemplate(CreateInspectTemplateRequest) returns (InspectTemplate) { option (google.api.http) = { @@ -172,7 +179,9 @@ service DlpService { } // Updates the InspectTemplate. - // See https://cloud.google.com/dlp/docs/creating-templates to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-templates + // to learn more. rpc UpdateInspectTemplate(UpdateInspectTemplateRequest) returns (InspectTemplate) { option (google.api.http) = { @@ -195,7 +204,9 @@ service DlpService { } // Gets an InspectTemplate. - // See https://cloud.google.com/dlp/docs/creating-templates to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-templates + // to learn more. rpc GetInspectTemplate(GetInspectTemplateRequest) returns (InspectTemplate) { option (google.api.http) = { get: "/v2/{name=organizations/*/inspectTemplates/*}" @@ -211,7 +222,9 @@ service DlpService { } // Lists InspectTemplates. - // See https://cloud.google.com/dlp/docs/creating-templates to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-templates + // to learn more. rpc ListInspectTemplates(ListInspectTemplatesRequest) returns (ListInspectTemplatesResponse) { option (google.api.http) = { @@ -228,7 +241,9 @@ service DlpService { } // Deletes an InspectTemplate. - // See https://cloud.google.com/dlp/docs/creating-templates to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-templates + // to learn more. rpc DeleteInspectTemplate(DeleteInspectTemplateRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -246,8 +261,9 @@ service DlpService { // Creates a DeidentifyTemplate for reusing frequently used configuration // for de-identifying content, images, and storage. - // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - // more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid + // to learn more. rpc CreateDeidentifyTemplate(CreateDeidentifyTemplateRequest) returns (DeidentifyTemplate) { option (google.api.http) = { @@ -270,8 +286,9 @@ service DlpService { } // Updates the DeidentifyTemplate. - // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - // more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid + // to learn more. rpc UpdateDeidentifyTemplate(UpdateDeidentifyTemplateRequest) returns (DeidentifyTemplate) { option (google.api.http) = { @@ -295,8 +312,9 @@ service DlpService { } // Gets a DeidentifyTemplate. - // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - // more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid + // to learn more. rpc GetDeidentifyTemplate(GetDeidentifyTemplateRequest) returns (DeidentifyTemplate) { option (google.api.http) = { @@ -313,8 +331,9 @@ service DlpService { } // Lists DeidentifyTemplates. - // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - // more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid + // to learn more. rpc ListDeidentifyTemplates(ListDeidentifyTemplatesRequest) returns (ListDeidentifyTemplatesResponse) { option (google.api.http) = { @@ -331,8 +350,9 @@ service DlpService { } // Deletes a DeidentifyTemplate. - // See https://cloud.google.com/dlp/docs/creating-templates-deid to learn - // more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid + // to learn more. rpc DeleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -352,7 +372,9 @@ service DlpService { // Creates a job trigger to run DLP actions such as scanning storage for // sensitive information on a set schedule. - // See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers + // to learn more. rpc CreateJobTrigger(CreateJobTriggerRequest) returns (JobTrigger) { option (google.api.http) = { post: "/v2/{parent=projects/*}/jobTriggers" @@ -370,7 +392,9 @@ service DlpService { } // Updates a job trigger. - // See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers + // to learn more. rpc UpdateJobTrigger(UpdateJobTriggerRequest) returns (JobTrigger) { option (google.api.http) = { patch: "/v2/{name=projects/*/jobTriggers/*}" @@ -400,7 +424,9 @@ service DlpService { } // Gets a job trigger. - // See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers + // to learn more. rpc GetJobTrigger(GetJobTriggerRequest) returns (JobTrigger) { option (google.api.http) = { get: "/v2/{name=projects/*/jobTriggers/*}" @@ -415,7 +441,9 @@ service DlpService { } // Lists job triggers. - // See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers + // to learn more. rpc ListJobTriggers(ListJobTriggersRequest) returns (ListJobTriggersResponse) { option (google.api.http) = { @@ -431,7 +459,9 @@ service DlpService { } // Deletes a job trigger. - // See https://cloud.google.com/dlp/docs/creating-job-triggers to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers + // to learn more. rpc DeleteJobTrigger(DeleteJobTriggerRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -523,8 +553,11 @@ service DlpService { } // Creates a new job to inspect storage or calculate risk metrics. - // See https://cloud.google.com/dlp/docs/inspecting-storage and - // https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + // and + // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + // to learn more. // // When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the // system will automatically choose what detectors to run. By default this may @@ -543,8 +576,11 @@ service DlpService { } // Lists DlpJobs that match the specified filter in the request. - // See https://cloud.google.com/dlp/docs/inspecting-storage and - // https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + // and + // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + // to learn more. rpc ListDlpJobs(ListDlpJobsRequest) returns (ListDlpJobsResponse) { option (google.api.http) = { get: "/v2/{parent=projects/*}/dlpJobs" @@ -557,8 +593,11 @@ service DlpService { } // Gets the latest state of a long-running DlpJob. - // See https://cloud.google.com/dlp/docs/inspecting-storage and - // https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + // and + // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + // to learn more. rpc GetDlpJob(GetDlpJobRequest) returns (DlpJob) { option (google.api.http) = { get: "/v2/{name=projects/*/dlpJobs/*}" @@ -570,8 +609,11 @@ service DlpService { // Deletes a long-running DlpJob. This method indicates that the client is // no longer interested in the DlpJob result. The job will be canceled if // possible. - // See https://cloud.google.com/dlp/docs/inspecting-storage and - // https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + // and + // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + // to learn more. rpc DeleteDlpJob(DeleteDlpJobRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=projects/*/dlpJobs/*}" @@ -585,8 +627,11 @@ service DlpService { // Starts asynchronous cancellation on a long-running DlpJob. The server // makes a best effort to cancel the DlpJob, but success is not // guaranteed. - // See https://cloud.google.com/dlp/docs/inspecting-storage and - // https://cloud.google.com/dlp/docs/compute-risk-analysis to learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage + // and + // https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis + // to learn more. rpc CancelDlpJob(CancelDlpJobRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v2/{name=projects/*/dlpJobs/*}:cancel" @@ -599,8 +644,9 @@ service DlpService { } // Creates a pre-built stored infoType to be used for inspection. - // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - // learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes + // to learn more. rpc CreateStoredInfoType(CreateStoredInfoTypeRequest) returns (StoredInfoType) { option (google.api.http) = { @@ -624,8 +670,9 @@ service DlpService { // Updates the stored infoType by creating a new version. The existing version // will continue to be used until the new version is ready. - // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - // learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes + // to learn more. rpc UpdateStoredInfoType(UpdateStoredInfoTypeRequest) returns (StoredInfoType) { option (google.api.http) = { @@ -648,8 +695,9 @@ service DlpService { } // Gets a stored infoType. - // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - // learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes + // to learn more. rpc GetStoredInfoType(GetStoredInfoTypeRequest) returns (StoredInfoType) { option (google.api.http) = { get: "/v2/{name=organizations/*/storedInfoTypes/*}" @@ -665,8 +713,9 @@ service DlpService { } // Lists stored infoTypes. - // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - // learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes + // to learn more. rpc ListStoredInfoTypes(ListStoredInfoTypesRequest) returns (ListStoredInfoTypesResponse) { option (google.api.http) = { @@ -683,8 +732,9 @@ service DlpService { } // Deletes a stored infoType. - // See https://cloud.google.com/dlp/docs/creating-stored-infotypes to - // learn more. + // See + // https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes + // to learn more. rpc DeleteStoredInfoType(DeleteStoredInfoTypeRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -700,6 +750,78 @@ service DlpService { option (google.api.method_signature) = "name"; } + // Lists data profiles for an organization. + rpc ListProjectDataProfiles(ListProjectDataProfilesRequest) + returns (ListProjectDataProfilesResponse) { + option (google.api.http) = { + get: "/v2/{parent=organizations/*/locations/*}/projectDataProfiles" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*}/projectDataProfiles" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Lists data profiles for an organization. + rpc ListTableDataProfiles(ListTableDataProfilesRequest) + returns (ListTableDataProfilesResponse) { + option (google.api.http) = { + get: "/v2/{parent=organizations/*/locations/*}/tableDataProfiles" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*}/tableDataProfiles" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Lists data profiles for an organization. + rpc ListColumnDataProfiles(ListColumnDataProfilesRequest) + returns (ListColumnDataProfilesResponse) { + option (google.api.http) = { + get: "/v2/{parent=organizations/*/locations/*}/columnDataProfiles" + additional_bindings { + get: "/v2/{parent=projects/*/locations/*}/columnDataProfiles" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Gets a project data profile. + rpc GetProjectDataProfile(GetProjectDataProfileRequest) + returns (ProjectDataProfile) { + option (google.api.http) = { + get: "/v2/{name=organizations/*/locations/*/projectDataProfiles/*}" + additional_bindings { + get: "/v2/{name=projects/*/locations/*/projectDataProfiles/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Gets a table data profile. + rpc GetTableDataProfile(GetTableDataProfileRequest) + returns (TableDataProfile) { + option (google.api.http) = { + get: "/v2/{name=organizations/*/locations/*/tableDataProfiles/*}" + additional_bindings { + get: "/v2/{name=projects/*/locations/*/tableDataProfiles/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Gets a column data profile. + rpc GetColumnDataProfile(GetColumnDataProfileRequest) + returns (ColumnDataProfile) { + option (google.api.http) = { + get: "/v2/{name=organizations/*/locations/*/columnDataProfiles/*}" + additional_bindings { + get: "/v2/{name=projects/*/locations/*/columnDataProfiles/*}" + } + }; + option (google.api.method_signature) = "name"; + } + // Inspect hybrid content and store findings to a job. // To review the findings, inspect the job. Inspection will occur // asynchronously. @@ -869,7 +991,7 @@ message InspectConfig { // Restricts what info_types to look for. The values must correspond to // InfoType values returned by ListInfoTypes or listed at - // https://cloud.google.com/dlp/docs/infotypes-reference. + // https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference. // // When no InfoTypes or CustomInfoTypes are specified in a request, the // system may automatically choose a default list of detectors to run, which @@ -885,7 +1007,8 @@ message InspectConfig { // // In general, the highest likelihood setting yields the fewest findings in // results and the lowest chance of a false positive. For more information, - // see [Match likelihood](https://cloud.google.com/dlp/docs/likelihood). + // see [Match + // likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). Likelihood min_likelihood = 2; // Minimum likelihood per infotype. For each infotype, a user can specify a @@ -922,7 +1045,8 @@ message InspectConfig { bool exclude_info_types = 5; // CustomInfoTypes provided by the user. See - // https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more. + // https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes + // to learn more. repeated CustomInfoType custom_info_types = 6; // Deprecated and unused. @@ -938,7 +1062,7 @@ message InspectConfig { message ByteContentItem { // The type of data being sent for inspection. To learn more, see // [Supported file - // types](https://cloud.google.com/dlp/docs/supported-file-types). + // types](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types). enum BytesType { // Unused BYTES_TYPE_UNSPECIFIED = 0; @@ -990,6 +1114,7 @@ message ByteContentItem { bytes data = 2; } +// Type of content to inspect. message ContentItem { // Data of the item either in the byte array or UTF-8 string form, or table. oneof data_item { @@ -997,8 +1122,8 @@ message ContentItem { string value = 3; // Structured content for inspection. See - // https://cloud.google.com/dlp/docs/inspecting-text#inspecting_a_table to - // learn more. + // https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table + // to learn more. Table table = 4; // Content data to inspect or redact. Replaces `type` and `data`. @@ -1007,7 +1132,7 @@ message ContentItem { } // Structured content to inspect. Up to 50,000 `Value`s per request allowed. See -// https://cloud.google.com/dlp/docs/inspecting-structured-text#inspecting_a_table +// https://cloud.google.com/sensitive-data-protection/docs/inspecting-structured-text#inspecting_a_table // to learn more. message Table { // Values of the row. @@ -1187,6 +1312,7 @@ message MetadataLocation { // Storage metadata label to indicate which metadata entry contains findings. message StorageMetadataLabel { + // Label name. string key = 1; } @@ -1322,7 +1448,7 @@ message RedactImageRequest { // // The format of this value varies depending on whether you have [specified a // processing - // location](https://cloud.google.com/dlp/docs/specifying-location): + // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // // + Projects scope, location specified:
                                                                                      // `projects/`PROJECT_ID`/locations/`LOCATION_ID @@ -1387,7 +1513,7 @@ message DeidentifyContentRequest { // // The format of this value varies depending on whether you have [specified a // processing - // location](https://cloud.google.com/dlp/docs/specifying-location): + // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // // + Projects scope, location specified:
                                                                                      // `projects/`PROJECT_ID`/locations/`LOCATION_ID @@ -1456,7 +1582,7 @@ message ReidentifyContentRequest { // // The format of this value varies depending on whether you have [specified a // processing - // location](https://cloud.google.com/dlp/docs/specifying-location): + // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // // + Projects scope, location specified:
                                                                                      // `projects/`PROJECT_ID`/locations/`LOCATION_ID @@ -1528,7 +1654,7 @@ message InspectContentRequest { // // The format of this value varies depending on whether you have [specified a // processing - // location](https://cloud.google.com/dlp/docs/specifying-location): + // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // // + Projects scope, location specified:
                                                                                      // `projects/`PROJECT_ID`/locations/`LOCATION_ID @@ -1672,6 +1798,7 @@ message InspectDataSourceDetails { // The schema of data to be saved to the BigQuery table when the // `DataProfileAction` is enabled. message DataProfileBigQueryRowSchema { + // Data profile type. oneof data_profile { // Table data profile column TableDataProfile table_profile = 1; @@ -1958,6 +2085,7 @@ message InfoTypeCategory { CONTEXTUAL_INFORMATION = 7; } + // Categories of infotypes. oneof category { // The region or country that issued the ID or document represented by the // infoType. @@ -2009,7 +2137,8 @@ message ListInfoTypesResponse { } // Configuration for a risk analysis job. See -// https://cloud.google.com/dlp/docs/concepts-risk-analysis to learn more. +// https://cloud.google.com/sensitive-data-protection/docs/concepts-risk-analysis +// to learn more. message RiskAnalysisJobConfig { // Privacy metric to compute. PrivacyMetric privacy_metric = 1; @@ -2600,6 +2729,7 @@ message DateTime { // The configuration that controls how the data will change. message DeidentifyConfig { + // Type of transformation oneof transformation { // Treat the dataset as free-form text and apply the same free text // transformation everywhere. @@ -2636,6 +2766,7 @@ message ImageTransformations { // Apply to all text. message AllText {} + // Part of the image to transform. oneof target { // Apply transformation to the selected info_types. SelectedInfoTypes selected_info_types = 4; @@ -2655,6 +2786,7 @@ message ImageTransformations { Color redaction_color = 3; } + // List of transforms to make. repeated ImageTransformation transforms = 2; } @@ -2688,6 +2820,7 @@ message TransformationErrorHandling { // A rule for transforming a value. message PrimitiveTransformation { + // Type of transformation. oneof transformation { // Replace with a specified value. ReplaceValueConfig replace_config = 1; @@ -2764,7 +2897,8 @@ message TimePartConfig { // Outputs a base64 encoded representation of the hashed output // (for example, L7k0BHmF1ha5U3NfGykjro4xWi1MPVQPjhMAZbSV9mM=). // Currently, only string and integer values can be hashed. -// See https://cloud.google.com/dlp/docs/pseudonymization to learn more. +// See https://cloud.google.com/sensitive-data-protection/docs/pseudonymization +// to learn more. message CryptoHashConfig { // The key used by the hash function. CryptoKey crypto_key = 1; @@ -2842,10 +2976,11 @@ message ReplaceValueConfig { // Replace each input value with a value randomly selected from the dictionary. message ReplaceDictionaryConfig { + // Type of dictionary. oneof type { // A list of words to select from for random replacement. The - // [limits](https://cloud.google.com/dlp/limits) page contains details about - // the size limits of dictionaries. + // [limits](https://cloud.google.com/sensitive-data-protection/limits) page + // contains details about the size limits of dictionaries. CustomInfoType.Dictionary.WordList word_list = 1; } } @@ -2882,6 +3017,7 @@ message CharsToIgnore { WHITESPACE = 5; } + // Type of characters to skip. oneof characters { // Characters to not transform when masking. string characters_to_skip = 1; @@ -2953,7 +3089,9 @@ message CharacterMaskConfig { // being transformed, we will first attempt converting the type of the data to // be transformed to match the type of the bound before comparing. // -// See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more. +// See +// https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to +// learn more. message FixedSizeBucketingConfig { // Required. Lower bound value of buckets. All values less than `lower_bound` // are grouped together into a single bucket; for example if `lower_bound` = @@ -2980,7 +3118,9 @@ message FixedSizeBucketingConfig { // If the bound `Value` type differs from the type of data being transformed, we // will first attempt converting the type of the data to be transformed to match // the type of the bound before comparing. -// See https://cloud.google.com/dlp/docs/concepts-bucketing to learn more. +// See +// https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to +// learn more. message BucketingConfig { // Bucket is represented as a range, along with replacement values. message Bucket { @@ -3006,8 +3146,9 @@ message BucketingConfig { // encoded as ASCII. For a given crypto key and context, the same identifier // will be replaced with the same surrogate. Identifiers must be at least two // characters long. In the case that the identifier is the empty string, it will -// be skipped. See https://cloud.google.com/dlp/docs/pseudonymization to learn -// more. +// be skipped. See +// https://cloud.google.com/sensitive-data-protection/docs/pseudonymization to +// learn more. // // Note: We recommend using CryptoDeterministicConfig for all use cases which // do not require preserving the input alphabet space and size, plus warrant @@ -3091,7 +3232,7 @@ message CryptoReplaceFfxFpeConfig { // // This annotation identifies the surrogate when inspecting content using the // custom infoType - // [`SurrogateType`](https://cloud.google.com/dlp/docs/reference/rest/v2/InspectConfig#surrogatetype). + // [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). // This facilitates reversal of the surrogate when it occurs in free text. // // In order for inspection to work properly, the name of this infoType must @@ -3153,7 +3294,7 @@ message UnwrappedCryptoKey { // dlp.kms.encrypt // // For more information, see [Creating a wrapped key] -// (https://cloud.google.com/dlp/docs/create-wrapped-key). +// (https://cloud.google.com/sensitive-data-protection/docs/create-wrapped-key). // // Note: When you use Cloud KMS for cryptographic operations, // [charges apply](https://cloud.google.com/kms/pricing). @@ -3166,7 +3307,8 @@ message KmsWrappedCryptoKey { } // Shifts dates by random number of days, with option to be consistent for the -// same context. See https://cloud.google.com/dlp/docs/concepts-date-shifting +// same context. See +// https://cloud.google.com/sensitive-data-protection/docs/concepts-date-shifting // to learn more. message DateShiftConfig { // Required. Range of shift in days. Actual shift will be selected at random @@ -3459,6 +3601,7 @@ message TransformationDetails { // Specifies the location of a transformation. message TransformationLocation { + // Location type. oneof location_type { // For infotype transformations, link to the corresponding findings ID so // that location information does not need to be duplicated. Each findings @@ -3476,6 +3619,7 @@ message TransformationLocation { TransformationContainerType container_type = 3; } +// The field in a record to transform. message RecordTransformation { // For record transformations, provide a field. FieldId field_id = 1; @@ -3487,6 +3631,7 @@ message RecordTransformation { string container_version = 3; } +// The outcome of a transformation. message TransformationResultStatus { // Transformation result status type, this will be either SUCCESS, or it will // be the reason for why the transformation was not completely successful. @@ -3500,6 +3645,7 @@ message TransformationResultStatus { // storing of transformation was successful, otherwise, reason for not // transforming. enum TransformationResultStatusType { + // Unused. STATE_TYPE_UNSPECIFIED = 0; // This will be set when a finding could not be transformed (i.e. outside user @@ -3522,12 +3668,16 @@ enum TransformationResultStatusType { // Describes functionality of a given container in its original format. enum TransformationContainerType { + // Unused. TRANSFORM_UNKNOWN_CONTAINER = 0; + // Body of a file. TRANSFORM_BODY = 1; + // Metadata for a file. TRANSFORM_METADATA = 2; + // A table. TRANSFORM_TABLE = 3; } @@ -3597,6 +3747,7 @@ message TransformationDetailsStorageConfig { // Schedule for inspect job triggers. message Schedule { + // Type of schedule. oneof option { // With this option a job is started on a regular periodic basis. For // example: every day (86400 seconds). @@ -3616,8 +3767,9 @@ message Manual {} // The inspectTemplate contains a configuration (set of types of sensitive data // to be detected) to be used anywhere you otherwise would normally specify -// InspectConfig. See https://cloud.google.com/dlp/docs/concepts-templates -// to learn more. +// InspectConfig. See +// https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to +// learn more. message InspectTemplate { option (google.api.resource) = { type: "dlp.googleapis.com/InspectTemplate" @@ -3653,7 +3805,9 @@ message InspectTemplate { } // DeidentifyTemplates contains instructions on how to de-identify content. -// See https://cloud.google.com/dlp/docs/concepts-templates to learn more. +// See +// https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to +// learn more. message DeidentifyTemplate { option (google.api.resource) = { type: "dlp.googleapis.com/DeidentifyTemplate" @@ -3700,7 +3854,9 @@ message Error { } // Contains a configuration to make dlp api calls on a repeating basis. -// See https://cloud.google.com/dlp/docs/concepts-job-triggers to learn more. +// See +// https://cloud.google.com/sensitive-data-protection/docs/concepts-job-triggers +// to learn more. message JobTrigger { option (google.api.resource) = { type: "dlp.googleapis.com/JobTrigger" @@ -3710,6 +3866,7 @@ message JobTrigger { // What event needs to occur for a new job to be started. message Trigger { + // What event needs to occur for a new job to be started. oneof trigger { // Create a job on a repeating basis based on the elapse of time. Schedule schedule = 1; @@ -3782,7 +3939,8 @@ message JobTrigger { } // A task to execute on the completion of a job. -// See https://cloud.google.com/dlp/docs/concepts-actions to learn more. +// See https://cloud.google.com/sensitive-data-protection/docs/concepts-actions +// to learn more. message Action { // If set, the detailed findings will be persisted to the specified // OutputStorageConfig. Only a single instance of this action can be @@ -3796,7 +3954,7 @@ message Action { // Publish a message into a given Pub/Sub topic when DlpJob has completed. The // message contains a single field, `DlpJobName`, which is equal to the // finished job's - // [`DlpJob.name`](https://cloud.google.com/dlp/docs/reference/rest/v2/projects.dlpJobs#DlpJob). + // [`DlpJob.name`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/projects.dlpJobs#DlpJob). // Compatible with: Inspect, Risk message PublishToPubSub { // Cloud Pub/Sub topic to send notifications to. The topic must have given @@ -3865,6 +4023,7 @@ message Action { TransformationDetailsStorageConfig transformation_details_storage_config = 3; + // Where to store the output. oneof output { // Required. User settable Cloud Storage bucket and folders to store // de-identified files. This field must be set for cloud storage @@ -3897,6 +4056,7 @@ message Action { // as 'Custom' under the Stackdriver label 'info_type'. message PublishToStackdriver {} + // Extra events to execute after the job has finished. oneof action { // Save resulting findings in a provided location. SaveFindings save_findings = 1; @@ -3958,7 +4118,7 @@ message CreateInspectTemplateRequest { // // The format of this value varies depending on the scope of the request // (project or organization) and whether you have [specified a processing - // location](https://cloud.google.com/dlp/docs/specifying-location): + // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // // + Projects scope, location specified:
                                                                                      // `projects/`PROJECT_ID`/locations/`LOCATION_ID @@ -4032,7 +4192,7 @@ message ListInspectTemplatesRequest { // // The format of this value varies depending on the scope of the request // (project or organization) and whether you have [specified a processing - // location](https://cloud.google.com/dlp/docs/specifying-location): + // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // // + Projects scope, location specified:
                                                                                      // `projects/`PROJECT_ID`/locations/`LOCATION_ID @@ -4111,7 +4271,7 @@ message CreateJobTriggerRequest { // // The format of this value varies depending on whether you have [specified a // processing - // location](https://cloud.google.com/dlp/docs/specifying-location): + // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // // + Projects scope, location specified:
                                                                                      // `projects/`PROJECT_ID`/locations/`LOCATION_ID @@ -4310,7 +4470,7 @@ message CreateDlpJobRequest { // // The format of this value varies depending on whether you have [specified a // processing - // location](https://cloud.google.com/dlp/docs/specifying-location): + // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // // + Projects scope, location specified:
                                                                                      // `projects/`PROJECT_ID`/locations/`LOCATION_ID @@ -4355,7 +4515,7 @@ message ListJobTriggersRequest { // // The format of this value varies depending on whether you have [specified a // processing - // location](https://cloud.google.com/dlp/docs/specifying-location): + // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // // + Projects scope, location specified:
                                                                                      // `projects/`PROJECT_ID`/locations/`LOCATION_ID @@ -4538,6 +4698,7 @@ message DataProfileAction { ERROR_CHANGED = 4; } + // Type of action to execute when a profile is generated. oneof action { // Export data profiles into a provided location. Export export_data = 1; @@ -4553,7 +4714,7 @@ message DataProfileAction { // // The generated data profiles are retained according to the // [data retention policy] -// (https://cloud.google.com/dlp/docs/data-profiles#retention). +// (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention). message DataProfileJobConfig { // The data to scan. DataProfileLocation location = 1; @@ -4578,7 +4739,7 @@ message DataProfileJobConfig { // scanned. // // For more information, see - // https://cloud.google.com/dlp/docs/data-profiles#data-residency. + // https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. repeated string inspect_templates = 7; // Actions to execute at the completion of the job. @@ -4685,7 +4846,7 @@ message DataProfileLocation { // // The generated data profiles are retained according to the // [data retention policy] -// (https://cloud.google.com/dlp/docs/data-profiles#retention). +// (https://cloud.google.com/sensitive-data-protection/docs/data-profiles#retention). message DiscoveryConfig { option (google.api.resource) = { type: "dlp.googleapis.com/DiscoveryConfig" @@ -4742,7 +4903,7 @@ message DiscoveryConfig { // scanned. // // For more information, see - // https://cloud.google.com/dlp/docs/data-profiles#data-residency. + // https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. repeated string inspect_templates = 3; // Actions to execute at the completion of scanning. @@ -5001,6 +5162,7 @@ message DlpJob { // State of a job. JobState state = 3; + // Job details. oneof details { // Results from analyzing risk of a data source. AnalyzeDataSourceRiskDetails risk_details = 4; @@ -5047,7 +5209,7 @@ message ListDlpJobsRequest { // // The format of this value varies depending on whether you have [specified a // processing - // location](https://cloud.google.com/dlp/docs/specifying-location): + // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // // + Projects scope, location specified:
                                                                                      // `projects/`PROJECT_ID`/locations/`LOCATION_ID @@ -5144,7 +5306,7 @@ message CancelDlpJobRequest { // The request message for finishing a DLP hybrid job. message FinishDlpJobRequest { - // Required. The name of the DlpJob resource to be cancelled. + // Required. The name of the DlpJob resource to be finished. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { type: "dlp.googleapis.com/DlpJob" } @@ -5166,7 +5328,7 @@ message CreateDeidentifyTemplateRequest { // // The format of this value varies depending on the scope of the request // (project or organization) and whether you have [specified a processing - // location](https://cloud.google.com/dlp/docs/specifying-location): + // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // // + Projects scope, location specified:
                                                                                      // `projects/`PROJECT_ID`/locations/`LOCATION_ID @@ -5242,7 +5404,7 @@ message ListDeidentifyTemplatesRequest { // // The format of this value varies depending on the scope of the request // (project or organization) and whether you have [specified a processing - // location](https://cloud.google.com/dlp/docs/specifying-location): + // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // // + Projects scope, location specified:
                                                                                      // `projects/`PROJECT_ID`/locations/`LOCATION_ID @@ -5319,8 +5481,8 @@ message DeleteDeidentifyTemplateRequest { // Configuration for a custom dictionary created from a data source of any size // up to the maximum size defined in the -// [limits](https://cloud.google.com/dlp/limits) page. The artifacts of -// dictionary creation are stored in the specified Cloud Storage +// [limits](https://cloud.google.com/sensitive-data-protection/limits) page. The +// artifacts of dictionary creation are stored in the specified Cloud Storage // location. Consider using `CustomInfoType.Dictionary` for smaller dictionaries // that satisfy the size requirements. message LargeCustomDictionaryConfig { @@ -5330,6 +5492,7 @@ message LargeCustomDictionaryConfig { // longer be used. CloudStoragePath output_path = 1; + // Source of the dictionary. oneof source { // Set of files containing newline-delimited lists of dictionary phrases. CloudStorageFileSet cloud_storage_file_set = 2; @@ -5347,7 +5510,7 @@ message LargeCustomDictionaryStats { // Configuration for stored infoTypes. All fields and subfield are provided // by the user. For more information, see -// https://cloud.google.com/dlp/docs/creating-custom-infotypes. +// https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes. message StoredInfoTypeConfig { // Display name of the StoredInfoType (max 256 characters). string display_name = 1; @@ -5438,7 +5601,7 @@ message CreateStoredInfoTypeRequest { // // The format of this value varies depending on the scope of the request // (project or organization) and whether you have [specified a processing - // location](https://cloud.google.com/dlp/docs/specifying-location): + // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // // + Projects scope, location specified:
                                                                                      // `projects/`PROJECT_ID`/locations/`LOCATION_ID @@ -5514,7 +5677,7 @@ message ListStoredInfoTypesRequest { // // The format of this value varies depending on the scope of the request // (project or organization) and whether you have [specified a processing - // location](https://cloud.google.com/dlp/docs/specifying-location): + // location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): // // + Projects scope, location specified:
                                                                                      // `projects/`PROJECT_ID`/locations/`LOCATION_ID @@ -5787,6 +5950,237 @@ enum StoredInfoTypeState { INVALID = 4; } +// Request to list the profiles generated for a given organization or project. +message ListProjectDataProfilesRequest { + // Required. organizations/{org_id}/locations/{loc_id} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dlp.googleapis.com/ProjectDataProfile" + } + ]; + + // Page token to continue retrieval. + string page_token = 2; + + // Size of the page. This value can be limited by the server. If zero, server + // returns a page of max size 100. + int32 page_size = 3; + + // Comma separated list of fields to order by, followed by `asc` or `desc` + // postfix. This list is case insensitive. The default sorting order is + // ascending. Redundant space characters are insignificant. Only one order + // field at a time is allowed. + // + // Examples: + // * `project_id` + // * `sensitivity_level desc` + // + // Supported fields are: + // + // - `project_id`: GCP project ID + // - `sensitivity_level`: How sensitive the data in a project is, at most. + // - `data_risk_level`: How much risk is associated with this data. + // - `profile_last_generated`: When the profile was last updated in epoch + // seconds. + string order_by = 4; + + // Allows filtering. + // + // Supported syntax: + // + // * Filter expressions are made up of one or more restrictions. + // * Restrictions can be combined by `AND` or `OR` logical operators. A + // sequence of restrictions implicitly uses `AND`. + // * A restriction has the form of `{field} {operator} {value}`. + // * Supported fields/values: + // - `sensitivity_level` - HIGH|MODERATE|LOW + // - `data_risk_level` - HIGH|MODERATE|LOW + // - `status_code` - an RPC status code as defined in + // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + // * The operator must be `=` or `!=`. + // + // Examples: + // + // * `project_id = 12345 AND status_code = 1` + // * `project_id = 12345 AND sensitivity_level = HIGH` + // + // The length of this field should be no more than 500 characters. + string filter = 5; +} + +// List of profiles generated for a given organization or project. +message ListProjectDataProfilesResponse { + // List of data profiles. + repeated ProjectDataProfile project_data_profiles = 1; + + // The next page token. + string next_page_token = 2; +} + +// Request to list the profiles generated for a given organization or project. +message ListTableDataProfilesRequest { + // Required. Resource name of the organization or project, for + // example `organizations/433245324/locations/europe` or + // `projects/project-id/locations/asia`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dlp.googleapis.com/TableDataProfile" + } + ]; + + // Page token to continue retrieval. + string page_token = 2; + + // Size of the page. This value can be limited by the server. If zero, server + // returns a page of max size 100. + int32 page_size = 3; + + // Comma separated list of fields to order by, followed by `asc` or `desc` + // postfix. This list is case insensitive. The default sorting order is + // ascending. Redundant space characters are insignificant. Only one order + // field at a time is allowed. + // + // Examples: + // * `project_id asc` + // * `table_id` + // * `sensitivity_level desc` + // + // Supported fields are: + // + // - `project_id`: The GCP project ID. + // - `dataset_id`: The ID of a BigQuery dataset. + // - `table_id`: The ID of a BigQuery table. + // - `sensitivity_level`: How sensitive the data in a table is, at most. + // - `data_risk_level`: How much risk is associated with this data. + // - `profile_last_generated`: When the profile was last updated in epoch + // seconds. + // - `last_modified`: The last time the resource was modified. + // - `resource_visibility`: Visibility restriction for this resource. + // - `row_count`: Number of rows in this resource. + string order_by = 4; + + // Allows filtering. + // + // Supported syntax: + // + // * Filter expressions are made up of one or more restrictions. + // * Restrictions can be combined by `AND` or `OR` logical operators. A + // sequence of restrictions implicitly uses `AND`. + // * A restriction has the form of `{field} {operator} {value}`. + // * Supported fields/values: + // - `project_id` - The GCP project ID. + // - `dataset_id` - The BigQuery dataset ID. + // - `table_id` - The ID of the BigQuery table. + // - `sensitivity_level` - HIGH|MODERATE|LOW + // - `data_risk_level` - HIGH|MODERATE|LOW + // - `resource_visibility`: PUBLIC|RESTRICTED + // - `status_code` - an RPC status code as defined in + // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + // * The operator must be `=` or `!=`. + // + // Examples: + // + // * `project_id = 12345 AND status_code = 1` + // * `project_id = 12345 AND sensitivity_level = HIGH` + // * `project_id = 12345 AND resource_visibility = PUBLIC` + // + // The length of this field should be no more than 500 characters. + string filter = 5; +} + +// List of profiles generated for a given organization or project. +message ListTableDataProfilesResponse { + // List of data profiles. + repeated TableDataProfile table_data_profiles = 1; + + // The next page token. + string next_page_token = 2; +} + +// Request to list the profiles generated for a given organization or project. +message ListColumnDataProfilesRequest { + // Required. Resource name of the organization or project, for + // example `organizations/433245324/locations/europe` or + // `projects/project-id/locations/asia`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "dlp.googleapis.com/ColumnDataProfile" + } + ]; + + // Page token to continue retrieval. + string page_token = 2; + + // Size of the page. This value can be limited by the server. If zero, server + // returns a page of max size 100. + int32 page_size = 3; + + // Comma separated list of fields to order by, followed by `asc` or `desc` + // postfix. This list is case insensitive. The default sorting order is + // ascending. Redundant space characters are insignificant. Only one order + // field at a time is allowed. + // + // Examples: + // * `project_id asc` + // * `table_id` + // * `sensitivity_level desc` + // + // Supported fields are: + // + // - `project_id`: The Google Cloud project ID. + // - `dataset_id`: The ID of a BigQuery dataset. + // - `table_id`: The ID of a BigQuery table. + // - `sensitivity_level`: How sensitive the data in a column is, at most. + // - `data_risk_level`: How much risk is associated with this data. + // - `profile_last_generated`: When the profile was last updated in epoch + // seconds. + string order_by = 4; + + // Allows filtering. + // + // Supported syntax: + // + // * Filter expressions are made up of one or more restrictions. + // * Restrictions can be combined by `AND` or `OR` logical operators. A + // sequence of restrictions implicitly uses `AND`. + // * A restriction has the form of `{field} {operator} {value}`. + // * Supported fields/values: + // - `table_data_profile_name` - The name of the related table data + // profile. + // - `project_id` - The Google Cloud project ID. (REQUIRED) + // - `dataset_id` - The BigQuery dataset ID. (REQUIRED) + // - `table_id` - The BigQuery table ID. (REQUIRED) + // - `field_id` - The ID of the BigQuery field. + // - `info_type` - The infotype detected in the resource. + // - `sensitivity_level` - HIGH|MEDIUM|LOW + // - `data_risk_level`: How much risk is associated with this data. + // - `status_code` - an RPC status code as defined in + // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto + // * The operator must be `=` for project_id, dataset_id, and table_id. Other + // filters also support `!=`. + // + // Examples: + // + // * project_id = 12345 AND status_code = 1 + // * project_id = 12345 AND sensitivity_level = HIGH + // * project_id = 12345 AND info_type = STREET_ADDRESS + // + // The length of this field should be no more than 500 characters. + string filter = 5; +} + +// List of profiles generated for a given organization or project. +message ListColumnDataProfilesResponse { + // List of data profiles. + repeated ColumnDataProfile column_data_profiles = 1; + + // The next page token. + string next_page_token = 2; +} + // Score is a summary of all elements in the data profile. // A higher number means more risk. message DataRiskLevel { @@ -5815,8 +6209,35 @@ message DataRiskLevel { DataRiskLevelScore score = 1; } -// How broadly a resource has been shared. New items may be added over time. -// A higher number means more restricted. +// An aggregated profile for this project, based on the resources profiled +// within it. +message ProjectDataProfile { + option (google.api.resource) = { + type: "dlp.googleapis.com/ProjectDataProfile" + pattern: "organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}" + pattern: "projects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}" + }; + // The resource name of the profile. + string name = 1; + + // Project ID that was profiled. + string project_id = 2; + + // The last time the profile was generated. + google.protobuf.Timestamp profile_last_generated = 3; + + // The sensitivity score of this project. + SensitivityScore sensitivity_score = 4; + + // The data risk level of this project. + DataRiskLevel data_risk_level = 5; + + // Success or error status of the last attempt to profile the project. + ProfileStatus profile_status = 7; +} + +// How broadly the data in the resource has been shared. New items may be added +// over time. A higher number means more restricted. enum ResourceVisibility { // Unused. RESOURCE_VISIBILITY_UNSPECIFIED = 0; @@ -5834,12 +6255,30 @@ message DataProfileConfigSnapshot { // is a copy of the inspect_template specified in `DataProfileJobConfig`. InspectConfig inspect_config = 2; + // A copy of the configuration used to generate this profile. This is + // deprecated, and the DiscoveryConfig field is preferred moving forward. + // DataProfileJobConfig will still be written here for Discovery in BigQuery + // for backwards compatibility, but will not be updated with new fields, while + // DiscoveryConfig will. + DataProfileJobConfig data_profile_job = 3 [deprecated = true]; + // A copy of the configuration used to generate this profile. - DataProfileJobConfig data_profile_job = 3; + DiscoveryConfig discovery_config = 4; + + // Name of the inspection template used to generate this profile + string inspect_template_name = 5; + + // Timestamp when the template was modified + google.protobuf.Timestamp inspect_template_modified_time = 6; } // The profile for a scanned table. message TableDataProfile { + option (google.api.resource) = { + type: "dlp.googleapis.com/TableDataProfile" + pattern: "organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}" + pattern: "projects/{project}/locations/{location}/tableDataProfiles/{table_data_profile}" + }; // Possible states of a profile. New items may be added. enum State { // Unused. @@ -5858,24 +6297,27 @@ message TableDataProfile { // The name of the profile. string name = 1; + // The resource type that was profiled. + DataSourceType data_source_type = 36; + // The resource name to the project data profile for this table. string project_data_profile = 2; - // The Google Cloud project ID that owns the BigQuery dataset. + // The Google Cloud project ID that owns the resource. string dataset_project_id = 24; - // The BigQuery location where the dataset's data is stored. + // If supported, the location where the dataset's data is stored. // See https://cloud.google.com/bigquery/docs/locations for supported // locations. string dataset_location = 29; - // The BigQuery dataset ID. + // If the resource is BigQuery, the dataset ID. string dataset_id = 25; - // The BigQuery table ID. + // If the resource is BigQuery, the BigQuery table ID. string table_id = 26; - // The resource name of the table. + // The resource name of the resource profiled. // https://cloud.google.com/apis/design/resource_names#full_resource_name string full_resource = 3; @@ -5936,6 +6378,7 @@ message TableDataProfile { google.protobuf.Timestamp create_time = 23; } +// Success or errors for the profile generation. message ProfileStatus { // Profiling status code and optional message. The `status.code` value is 0 // (default value) for OK. @@ -5992,6 +6435,7 @@ enum NullPercentageLevel { // Some null entries. NULL_PERCENTAGE_LOW = 2; + // A few null entries. NULL_PERCENTAGE_MEDIUM = 3; // A lot of null entries. @@ -6019,6 +6463,11 @@ enum UniquenessScoreLevel { // The profile for a scanned column within a table. message ColumnDataProfile { + option (google.api.resource) = { + type: "dlp.googleapis.com/ColumnDataProfile" + pattern: "organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}" + pattern: "projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}" + }; // Possible states of a profile. New items may be added. enum State { // Unused. @@ -6108,10 +6557,10 @@ message ColumnDataProfile { // The resource name of the table data profile. string table_data_profile = 4; - // The resource name of the table this column is within. + // The resource name of the resource this column is within. string table_full_resource = 5; - // The Google Cloud project ID that owns the BigQuery dataset. + // The Google Cloud project ID that owns the profiled resource. string dataset_project_id = 19; // The BigQuery location where the dataset's data is stored. @@ -6161,6 +6610,42 @@ message ColumnDataProfile { ColumnPolicyState policy_state = 15; } +// Request to get a project data profile. +message GetProjectDataProfileRequest { + // Required. Resource name, for example + // `organizations/12345/locations/us/projectDataProfiles/53234423`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dlp.googleapis.com/ProjectDataProfile" + } + ]; +} + +// Request to get a table data profile. +message GetTableDataProfileRequest { + // Required. Resource name, for example + // `organizations/12345/locations/us/tableDataProfiles/53234423`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dlp.googleapis.com/TableDataProfile" + } + ]; +} + +// Request to get a column data profile. +message GetColumnDataProfileRequest { + // Required. Resource name, for example + // `organizations/12345/locations/us/columnDataProfiles/53234423`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dlp.googleapis.com/ColumnDataProfile" + } + ]; +} + // A condition for determining whether a Pub/Sub should be triggered. message DataProfilePubSubCondition { // Various score levels for resources. @@ -6224,3 +6709,10 @@ message DataProfilePubSubMessage { // The event that caused the Pub/Sub message to be sent. DataProfileAction.EventType event = 2; } + +// Message used to identify the type of resource being profiled. +message DataSourceType { + // Output only. An identifying string to the type of resource being profiled. + // Current values: google/bigquery/table, google/project + string data_source = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto index 4a39d183ac8c..4c240841d389 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/storage.proto @@ -31,9 +31,11 @@ option ruby_package = "Google::Cloud::Dlp::V2"; message InfoType { // Name of the information type. Either a name of your choosing when // creating a CustomInfoType, or one of the names listed - // at https://cloud.google.com/dlp/docs/infotypes-reference when specifying - // a built-in type. When sending Cloud DLP results to Data Catalog, infoType - // names should conform to the pattern `[A-Za-z0-9$_-]{1,64}`. + // at + // https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference + // when specifying a built-in type. When sending Cloud DLP results to Data + // Catalog, infoType names should conform to the pattern + // `[A-Za-z0-9$_-]{1,64}`. string name = 1; // Optional version name for this InfoType. @@ -87,7 +89,7 @@ message SensitivityScore { // // For more information about each likelihood level // and how likelihood works, see [Match -// likelihood](https://cloud.google.com/dlp/docs/likelihood). +// likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). enum Likelihood { // Default value; same as POSSIBLE. LIKELIHOOD_UNSPECIFIED = 0; @@ -142,10 +144,10 @@ message CustomInfoType { // Dictionary words containing a large number of characters that are not // letters or digits may result in unexpected findings because such characters // are treated as whitespace. The - // [limits](https://cloud.google.com/dlp/limits) page contains details about - // the size limits of dictionaries. For dictionaries that do not fit within - // these constraints, consider using `LargeCustomDictionaryConfig` in the - // `StoredInfoType` API. + // [limits](https://cloud.google.com/sensitive-data-protection/limits) page + // contains details about the size limits of dictionaries. For dictionaries + // that do not fit within these constraints, consider using + // `LargeCustomDictionaryConfig` in the `StoredInfoType` API. message Dictionary { // Message defining a list of words or phrases to search for in the data. message WordList { @@ -155,6 +157,7 @@ message CustomInfoType { repeated string words = 1; } + // The potential places the data can be read from. oneof source { // List of words or phrases to search for. WordList word_list = 1; @@ -179,7 +182,7 @@ message CustomInfoType { // Message for detecting output from deidentification transformations // such as - // [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/dlp/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig). + // [`CryptoReplaceFfxFpeConfig`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/organizations.deidentifyTemplates#cryptoreplaceffxfpeconfig). // These types of transformations are // those that perform pseudonymization, thereby producing a "surrogate" as // output. This should be used in conjunction with a field on the @@ -199,7 +202,7 @@ message CustomInfoType { // if you want to modify the likelihood of an entire column of findngs, // set this to 1. For more information, see // [Hotword example: Set the match likelihood of a table column] - // (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + // (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). int32 window_before = 1; // Number of characters after the finding to consider. @@ -209,6 +212,7 @@ message CustomInfoType { // Message for specifying an adjustment to the likelihood of a finding as // part of a detection rule. message LikelihoodAdjustment { + // How the likelihood will be modified. oneof adjustment { // Set the likelihood of a finding to a fixed value. Likelihood fixed_likelihood = 1; @@ -243,19 +247,21 @@ message CustomInfoType { // For tabular data, if you want to modify the likelihood of an entire // column of findngs, see // [Hotword example: Set the match likelihood of a table column] - // (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values). + // (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). Proximity proximity = 2; // Likelihood adjustment to apply to all matching findings. LikelihoodAdjustment likelihood_adjustment = 3; } + // Type of hotword rule. oneof type { // Hotword-based detection rule. HotwordRule hotword_rule = 1; } } + // Type of exclusion rule. enum ExclusionType { // A finding of this custom info type will not be excluded from results. EXCLUSION_TYPE_UNSPECIFIED = 0; @@ -278,6 +284,7 @@ message CustomInfoType { // the rule. Defaults to `VERY_LIKELY` if not specified. Likelihood likelihood = 6; + // Type of custom detector. oneof type { // A list of phrases to detect as a CustomInfoType. Dictionary dictionary = 2; @@ -365,8 +372,9 @@ enum FileType { // dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, // mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, // properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, - // shtml, shtm, xhtml, lhs, ics, ini, java, js, json, kix, kml, ocaml, md, - // txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, yml, yaml. + // shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, + // ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, + // yml, yaml. TEXT_FILE = 2; // Included file extensions: @@ -498,6 +506,7 @@ message CloudStorageOptions { // in conjunction with bytes_limit_per_file. If not specified, scanning would // start from the top. enum SampleMethod { + // No sampling. SAMPLE_METHOD_UNSPECIFIED = 0; // Scan from the top (default). @@ -517,7 +526,7 @@ message CloudStorageOptions { // This field can't be set if de-identification is requested. For certain file // types, setting this field has no effect. For more information, see [Limits // on bytes scanned per - // file](https://cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file). + // file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). int64 bytes_limit_per_file = 4; // Max percentage of bytes to scan from a file. The rest are omitted. The @@ -527,7 +536,7 @@ message CloudStorageOptions { // This field can't be set if de-identification is requested. For certain file // types, setting this field has no effect. For more information, see [Limits // on bytes scanned per - // file](https://cloud.google.com/dlp/docs/supported-file-types#max-byte-size-per-file). + // file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). int32 bytes_limit_per_file_percent = 8; // List of file type groups to include in the scan. @@ -539,6 +548,7 @@ message CloudStorageOptions { // Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. repeated FileType file_types = 5; + // How to sample the data. SampleMethod sample_method = 6; // Limits the number of files to scan to this percentage of the input FileSet. @@ -556,8 +566,8 @@ message CloudStorageFileSet { // Message representing a single file or path in Cloud Storage. message CloudStoragePath { - // A url representing a file or path (no wildcards) in Cloud Storage. - // Example: gs://[BUCKET_NAME]/dictionary.txt + // A URL representing a file or path (no wildcards) in Cloud Storage. + // Example: `gs://[BUCKET_NAME]/dictionary.txt` string path = 1; } @@ -567,6 +577,7 @@ message BigQueryOptions { // in conjunction with either rows_limit or rows_limit_percent. If not // specified, rows are scanned in the order BigQuery reads them. enum SampleMethod { + // No sampling. SAMPLE_METHOD_UNSPECIFIED = 0; // Scan groups of rows in the order BigQuery provides (default). Multiple @@ -599,8 +610,14 @@ message BigQueryOptions { // 100 means no limit. Defaults to 0. Only one of rows_limit and // rows_limit_percent can be specified. Cannot be used in conjunction with // TimespanConfig. + // + // Caution: A [known + // issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) + // is causing the `rowsLimitPercent` field to behave unexpectedly. We + // recommend using `rowsLimit` instead. int32 rows_limit_percent = 6; + // How to sample the data. SampleMethod sample_method = 4; // References to fields excluded from scanning. This allows you to skip @@ -662,7 +679,8 @@ message StorageConfig { // Valid data types of the provided timestamp property are: `TIMESTAMP`. // // See the - // [known issue](https://cloud.google.com/dlp/docs/known-issues#bq-timespan) + // [known + // issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) // related to this operation. FieldId timestamp_field = 3; @@ -674,6 +692,7 @@ message StorageConfig { bool enable_auto_population_of_timespan_config = 4; } + // Type of storage system to inspect. oneof type { // Google Cloud Datastore options. DatastoreOptions datastore_options = 2; @@ -688,6 +707,7 @@ message StorageConfig { HybridOptions hybrid_options = 9; } + // Configuration of the timespan of the items to include in scanning. TimespanConfig timespan_config = 6; } @@ -797,9 +817,12 @@ message Key { // Message for a unique key indicating a record that contains a finding. message RecordKey { + // Type of key oneof type { + // BigQuery key DatastoreKey datastore_key = 2; + // Datastore key BigQueryKey big_query_key = 3; } diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getcolumndataprofile/AsyncGetColumnDataProfile.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getcolumndataprofile/AsyncGetColumnDataProfile.java new file mode 100644 index 000000000000..e711e1ee9085 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getcolumndataprofile/AsyncGetColumnDataProfile.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetColumnDataProfile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ColumnDataProfile; +import com.google.privacy.dlp.v2.ColumnDataProfileName; +import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; + +public class AsyncGetColumnDataProfile { + + public static void main(String[] args) throws Exception { + asyncGetColumnDataProfile(); + } + + public static void asyncGetColumnDataProfile() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + GetColumnDataProfileRequest request = + GetColumnDataProfileRequest.newBuilder() + .setName( + ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]") + .toString()) + .build(); + ApiFuture future = + dlpServiceClient.getColumnDataProfileCallable().futureCall(request); + // Do something. + ColumnDataProfile response = future.get(); + } + } +} +// [END dlp_v2_generated_DlpService_GetColumnDataProfile_async] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getcolumndataprofile/SyncGetColumnDataProfile.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getcolumndataprofile/SyncGetColumnDataProfile.java new file mode 100644 index 000000000000..3196ce8ed850 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getcolumndataprofile/SyncGetColumnDataProfile.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetColumnDataProfile_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ColumnDataProfile; +import com.google.privacy.dlp.v2.ColumnDataProfileName; +import com.google.privacy.dlp.v2.GetColumnDataProfileRequest; + +public class SyncGetColumnDataProfile { + + public static void main(String[] args) throws Exception { + syncGetColumnDataProfile(); + } + + public static void syncGetColumnDataProfile() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + GetColumnDataProfileRequest request = + GetColumnDataProfileRequest.newBuilder() + .setName( + ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]") + .toString()) + .build(); + ColumnDataProfile response = dlpServiceClient.getColumnDataProfile(request); + } + } +} +// [END dlp_v2_generated_DlpService_GetColumnDataProfile_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getcolumndataprofile/SyncGetColumnDataProfileColumndataprofilename.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getcolumndataprofile/SyncGetColumnDataProfileColumndataprofilename.java new file mode 100644 index 000000000000..c428afcbd246 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getcolumndataprofile/SyncGetColumnDataProfileColumndataprofilename.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetColumnDataProfile_Columndataprofilename_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ColumnDataProfile; +import com.google.privacy.dlp.v2.ColumnDataProfileName; + +public class SyncGetColumnDataProfileColumndataprofilename { + + public static void main(String[] args) throws Exception { + syncGetColumnDataProfileColumndataprofilename(); + } + + public static void syncGetColumnDataProfileColumndataprofilename() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ColumnDataProfileName name = + ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]"); + ColumnDataProfile response = dlpServiceClient.getColumnDataProfile(name); + } + } +} +// [END dlp_v2_generated_DlpService_GetColumnDataProfile_Columndataprofilename_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getcolumndataprofile/SyncGetColumnDataProfileString.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getcolumndataprofile/SyncGetColumnDataProfileString.java new file mode 100644 index 000000000000..ffeb0d3d62aa --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getcolumndataprofile/SyncGetColumnDataProfileString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetColumnDataProfile_String_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ColumnDataProfile; +import com.google.privacy.dlp.v2.ColumnDataProfileName; + +public class SyncGetColumnDataProfileString { + + public static void main(String[] args) throws Exception { + syncGetColumnDataProfileString(); + } + + public static void syncGetColumnDataProfileString() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + String name = + ColumnDataProfileName.ofOrganizationLocationColumnDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[COLUMN_DATA_PROFILE]") + .toString(); + ColumnDataProfile response = dlpServiceClient.getColumnDataProfile(name); + } + } +} +// [END dlp_v2_generated_DlpService_GetColumnDataProfile_String_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getprojectdataprofile/AsyncGetProjectDataProfile.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getprojectdataprofile/AsyncGetProjectDataProfile.java new file mode 100644 index 000000000000..51ca4f6bccbe --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getprojectdataprofile/AsyncGetProjectDataProfile.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetProjectDataProfile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; +import com.google.privacy.dlp.v2.ProjectDataProfile; +import com.google.privacy.dlp.v2.ProjectDataProfileName; + +public class AsyncGetProjectDataProfile { + + public static void main(String[] args) throws Exception { + asyncGetProjectDataProfile(); + } + + public static void asyncGetProjectDataProfile() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + GetProjectDataProfileRequest request = + GetProjectDataProfileRequest.newBuilder() + .setName( + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]") + .toString()) + .build(); + ApiFuture future = + dlpServiceClient.getProjectDataProfileCallable().futureCall(request); + // Do something. + ProjectDataProfile response = future.get(); + } + } +} +// [END dlp_v2_generated_DlpService_GetProjectDataProfile_async] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getprojectdataprofile/SyncGetProjectDataProfile.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getprojectdataprofile/SyncGetProjectDataProfile.java new file mode 100644 index 000000000000..654072d93208 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getprojectdataprofile/SyncGetProjectDataProfile.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetProjectDataProfile_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.GetProjectDataProfileRequest; +import com.google.privacy.dlp.v2.ProjectDataProfile; +import com.google.privacy.dlp.v2.ProjectDataProfileName; + +public class SyncGetProjectDataProfile { + + public static void main(String[] args) throws Exception { + syncGetProjectDataProfile(); + } + + public static void syncGetProjectDataProfile() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + GetProjectDataProfileRequest request = + GetProjectDataProfileRequest.newBuilder() + .setName( + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]") + .toString()) + .build(); + ProjectDataProfile response = dlpServiceClient.getProjectDataProfile(request); + } + } +} +// [END dlp_v2_generated_DlpService_GetProjectDataProfile_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getprojectdataprofile/SyncGetProjectDataProfileProjectdataprofilename.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getprojectdataprofile/SyncGetProjectDataProfileProjectdataprofilename.java new file mode 100644 index 000000000000..11f61107f379 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getprojectdataprofile/SyncGetProjectDataProfileProjectdataprofilename.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetProjectDataProfile_Projectdataprofilename_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ProjectDataProfile; +import com.google.privacy.dlp.v2.ProjectDataProfileName; + +public class SyncGetProjectDataProfileProjectdataprofilename { + + public static void main(String[] args) throws Exception { + syncGetProjectDataProfileProjectdataprofilename(); + } + + public static void syncGetProjectDataProfileProjectdataprofilename() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ProjectDataProfileName name = + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]"); + ProjectDataProfile response = dlpServiceClient.getProjectDataProfile(name); + } + } +} +// [END dlp_v2_generated_DlpService_GetProjectDataProfile_Projectdataprofilename_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getprojectdataprofile/SyncGetProjectDataProfileString.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getprojectdataprofile/SyncGetProjectDataProfileString.java new file mode 100644 index 000000000000..33b491e19d22 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/getprojectdataprofile/SyncGetProjectDataProfileString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetProjectDataProfile_String_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ProjectDataProfile; +import com.google.privacy.dlp.v2.ProjectDataProfileName; + +public class SyncGetProjectDataProfileString { + + public static void main(String[] args) throws Exception { + syncGetProjectDataProfileString(); + } + + public static void syncGetProjectDataProfileString() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + String name = + ProjectDataProfileName.ofOrganizationLocationProjectDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[PROJECT_DATA_PROFILE]") + .toString(); + ProjectDataProfile response = dlpServiceClient.getProjectDataProfile(name); + } + } +} +// [END dlp_v2_generated_DlpService_GetProjectDataProfile_String_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/gettabledataprofile/AsyncGetTableDataProfile.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/gettabledataprofile/AsyncGetTableDataProfile.java new file mode 100644 index 000000000000..eab2711d54c3 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/gettabledataprofile/AsyncGetTableDataProfile.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetTableDataProfile_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.GetTableDataProfileRequest; +import com.google.privacy.dlp.v2.TableDataProfile; +import com.google.privacy.dlp.v2.TableDataProfileName; + +public class AsyncGetTableDataProfile { + + public static void main(String[] args) throws Exception { + asyncGetTableDataProfile(); + } + + public static void asyncGetTableDataProfile() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + GetTableDataProfileRequest request = + GetTableDataProfileRequest.newBuilder() + .setName( + TableDataProfileName.ofOrganizationLocationTableDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]") + .toString()) + .build(); + ApiFuture future = + dlpServiceClient.getTableDataProfileCallable().futureCall(request); + // Do something. + TableDataProfile response = future.get(); + } + } +} +// [END dlp_v2_generated_DlpService_GetTableDataProfile_async] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/gettabledataprofile/SyncGetTableDataProfile.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/gettabledataprofile/SyncGetTableDataProfile.java new file mode 100644 index 000000000000..c419b81a645b --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/gettabledataprofile/SyncGetTableDataProfile.java @@ -0,0 +1,49 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetTableDataProfile_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.GetTableDataProfileRequest; +import com.google.privacy.dlp.v2.TableDataProfile; +import com.google.privacy.dlp.v2.TableDataProfileName; + +public class SyncGetTableDataProfile { + + public static void main(String[] args) throws Exception { + syncGetTableDataProfile(); + } + + public static void syncGetTableDataProfile() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + GetTableDataProfileRequest request = + GetTableDataProfileRequest.newBuilder() + .setName( + TableDataProfileName.ofOrganizationLocationTableDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]") + .toString()) + .build(); + TableDataProfile response = dlpServiceClient.getTableDataProfile(request); + } + } +} +// [END dlp_v2_generated_DlpService_GetTableDataProfile_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/gettabledataprofile/SyncGetTableDataProfileString.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/gettabledataprofile/SyncGetTableDataProfileString.java new file mode 100644 index 000000000000..2ffad6ff4469 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/gettabledataprofile/SyncGetTableDataProfileString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetTableDataProfile_String_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.TableDataProfile; +import com.google.privacy.dlp.v2.TableDataProfileName; + +public class SyncGetTableDataProfileString { + + public static void main(String[] args) throws Exception { + syncGetTableDataProfileString(); + } + + public static void syncGetTableDataProfileString() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + String name = + TableDataProfileName.ofOrganizationLocationTableDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]") + .toString(); + TableDataProfile response = dlpServiceClient.getTableDataProfile(name); + } + } +} +// [END dlp_v2_generated_DlpService_GetTableDataProfile_String_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/gettabledataprofile/SyncGetTableDataProfileTabledataprofilename.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/gettabledataprofile/SyncGetTableDataProfileTabledataprofilename.java new file mode 100644 index 000000000000..2d683e456abe --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/gettabledataprofile/SyncGetTableDataProfileTabledataprofilename.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_GetTableDataProfile_Tabledataprofilename_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.TableDataProfile; +import com.google.privacy.dlp.v2.TableDataProfileName; + +public class SyncGetTableDataProfileTabledataprofilename { + + public static void main(String[] args) throws Exception { + syncGetTableDataProfileTabledataprofilename(); + } + + public static void syncGetTableDataProfileTabledataprofilename() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + TableDataProfileName name = + TableDataProfileName.ofOrganizationLocationTableDataProfileName( + "[ORGANIZATION]", "[LOCATION]", "[TABLE_DATA_PROFILE]"); + TableDataProfile response = dlpServiceClient.getTableDataProfile(name); + } + } +} +// [END dlp_v2_generated_DlpService_GetTableDataProfile_Tabledataprofilename_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/AsyncListColumnDataProfiles.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/AsyncListColumnDataProfiles.java new file mode 100644 index 000000000000..37a3edac0262 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/AsyncListColumnDataProfiles.java @@ -0,0 +1,56 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListColumnDataProfiles_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ColumnDataProfile; +import com.google.privacy.dlp.v2.ListColumnDataProfilesRequest; +import com.google.privacy.dlp.v2.OrganizationLocationName; + +public class AsyncListColumnDataProfiles { + + public static void main(String[] args) throws Exception { + asyncListColumnDataProfiles(); + } + + public static void asyncListColumnDataProfiles() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ListColumnDataProfilesRequest request = + ListColumnDataProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dlpServiceClient.listColumnDataProfilesPagedCallable().futureCall(request); + // Do something. + for (ColumnDataProfile element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListColumnDataProfiles_async] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/AsyncListColumnDataProfilesPaged.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/AsyncListColumnDataProfilesPaged.java new file mode 100644 index 000000000000..c3c62ced1006 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/AsyncListColumnDataProfilesPaged.java @@ -0,0 +1,64 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListColumnDataProfiles_Paged_async] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.common.base.Strings; +import com.google.privacy.dlp.v2.ColumnDataProfile; +import com.google.privacy.dlp.v2.ListColumnDataProfilesRequest; +import com.google.privacy.dlp.v2.ListColumnDataProfilesResponse; +import com.google.privacy.dlp.v2.OrganizationLocationName; + +public class AsyncListColumnDataProfilesPaged { + + public static void main(String[] args) throws Exception { + asyncListColumnDataProfilesPaged(); + } + + public static void asyncListColumnDataProfilesPaged() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ListColumnDataProfilesRequest request = + ListColumnDataProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListColumnDataProfilesResponse response = + dlpServiceClient.listColumnDataProfilesCallable().call(request); + for (ColumnDataProfile element : response.getColumnDataProfilesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dlp_v2_generated_DlpService_ListColumnDataProfiles_Paged_async] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/SyncListColumnDataProfiles.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/SyncListColumnDataProfiles.java new file mode 100644 index 000000000000..e60155333044 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/SyncListColumnDataProfiles.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListColumnDataProfiles_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ColumnDataProfile; +import com.google.privacy.dlp.v2.ListColumnDataProfilesRequest; +import com.google.privacy.dlp.v2.OrganizationLocationName; + +public class SyncListColumnDataProfiles { + + public static void main(String[] args) throws Exception { + syncListColumnDataProfiles(); + } + + public static void syncListColumnDataProfiles() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ListColumnDataProfilesRequest request = + ListColumnDataProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (ColumnDataProfile element : + dlpServiceClient.listColumnDataProfiles(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListColumnDataProfiles_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/SyncListColumnDataProfilesLocationname.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/SyncListColumnDataProfilesLocationname.java new file mode 100644 index 000000000000..40bf31d01e38 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/SyncListColumnDataProfilesLocationname.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListColumnDataProfiles_Locationname_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ColumnDataProfile; +import com.google.privacy.dlp.v2.LocationName; + +public class SyncListColumnDataProfilesLocationname { + + public static void main(String[] args) throws Exception { + syncListColumnDataProfilesLocationname(); + } + + public static void syncListColumnDataProfilesLocationname() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (ColumnDataProfile element : + dlpServiceClient.listColumnDataProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListColumnDataProfiles_Locationname_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/SyncListColumnDataProfilesOrganizationlocationname.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/SyncListColumnDataProfilesOrganizationlocationname.java new file mode 100644 index 000000000000..6cca0a7f62b0 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/SyncListColumnDataProfilesOrganizationlocationname.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListColumnDataProfiles_Organizationlocationname_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ColumnDataProfile; +import com.google.privacy.dlp.v2.OrganizationLocationName; + +public class SyncListColumnDataProfilesOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListColumnDataProfilesOrganizationlocationname(); + } + + public static void syncListColumnDataProfilesOrganizationlocationname() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (ColumnDataProfile element : + dlpServiceClient.listColumnDataProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListColumnDataProfiles_Organizationlocationname_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/SyncListColumnDataProfilesString.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/SyncListColumnDataProfilesString.java new file mode 100644 index 000000000000..eea97851436f --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listcolumndataprofiles/SyncListColumnDataProfilesString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListColumnDataProfiles_String_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ColumnDataProfile; +import com.google.privacy.dlp.v2.OrganizationLocationName; + +public class SyncListColumnDataProfilesString { + + public static void main(String[] args) throws Exception { + syncListColumnDataProfilesString(); + } + + public static void syncListColumnDataProfilesString() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + for (ColumnDataProfile element : + dlpServiceClient.listColumnDataProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListColumnDataProfiles_String_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/AsyncListProjectDataProfiles.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/AsyncListProjectDataProfiles.java new file mode 100644 index 000000000000..9ac03cf3a2f6 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/AsyncListProjectDataProfiles.java @@ -0,0 +1,56 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListProjectDataProfiles_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ListProjectDataProfilesRequest; +import com.google.privacy.dlp.v2.OrganizationLocationName; +import com.google.privacy.dlp.v2.ProjectDataProfile; + +public class AsyncListProjectDataProfiles { + + public static void main(String[] args) throws Exception { + asyncListProjectDataProfiles(); + } + + public static void asyncListProjectDataProfiles() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ListProjectDataProfilesRequest request = + ListProjectDataProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dlpServiceClient.listProjectDataProfilesPagedCallable().futureCall(request); + // Do something. + for (ProjectDataProfile element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListProjectDataProfiles_async] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/AsyncListProjectDataProfilesPaged.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/AsyncListProjectDataProfilesPaged.java new file mode 100644 index 000000000000..fb09fa2e1469 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/AsyncListProjectDataProfilesPaged.java @@ -0,0 +1,64 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListProjectDataProfiles_Paged_async] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.common.base.Strings; +import com.google.privacy.dlp.v2.ListProjectDataProfilesRequest; +import com.google.privacy.dlp.v2.ListProjectDataProfilesResponse; +import com.google.privacy.dlp.v2.OrganizationLocationName; +import com.google.privacy.dlp.v2.ProjectDataProfile; + +public class AsyncListProjectDataProfilesPaged { + + public static void main(String[] args) throws Exception { + asyncListProjectDataProfilesPaged(); + } + + public static void asyncListProjectDataProfilesPaged() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ListProjectDataProfilesRequest request = + ListProjectDataProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListProjectDataProfilesResponse response = + dlpServiceClient.listProjectDataProfilesCallable().call(request); + for (ProjectDataProfile element : response.getProjectDataProfilesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dlp_v2_generated_DlpService_ListProjectDataProfiles_Paged_async] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/SyncListProjectDataProfiles.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/SyncListProjectDataProfiles.java new file mode 100644 index 000000000000..9d4264f42c9b --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/SyncListProjectDataProfiles.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListProjectDataProfiles_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ListProjectDataProfilesRequest; +import com.google.privacy.dlp.v2.OrganizationLocationName; +import com.google.privacy.dlp.v2.ProjectDataProfile; + +public class SyncListProjectDataProfiles { + + public static void main(String[] args) throws Exception { + syncListProjectDataProfiles(); + } + + public static void syncListProjectDataProfiles() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ListProjectDataProfilesRequest request = + ListProjectDataProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (ProjectDataProfile element : + dlpServiceClient.listProjectDataProfiles(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListProjectDataProfiles_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/SyncListProjectDataProfilesLocationname.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/SyncListProjectDataProfilesLocationname.java new file mode 100644 index 000000000000..297e65735369 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/SyncListProjectDataProfilesLocationname.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListProjectDataProfiles_Locationname_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.LocationName; +import com.google.privacy.dlp.v2.ProjectDataProfile; + +public class SyncListProjectDataProfilesLocationname { + + public static void main(String[] args) throws Exception { + syncListProjectDataProfilesLocationname(); + } + + public static void syncListProjectDataProfilesLocationname() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (ProjectDataProfile element : + dlpServiceClient.listProjectDataProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListProjectDataProfiles_Locationname_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/SyncListProjectDataProfilesOrganizationlocationname.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/SyncListProjectDataProfilesOrganizationlocationname.java new file mode 100644 index 000000000000..71493eaee5f9 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/SyncListProjectDataProfilesOrganizationlocationname.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListProjectDataProfiles_Organizationlocationname_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.OrganizationLocationName; +import com.google.privacy.dlp.v2.ProjectDataProfile; + +public class SyncListProjectDataProfilesOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListProjectDataProfilesOrganizationlocationname(); + } + + public static void syncListProjectDataProfilesOrganizationlocationname() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (ProjectDataProfile element : + dlpServiceClient.listProjectDataProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListProjectDataProfiles_Organizationlocationname_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/SyncListProjectDataProfilesString.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/SyncListProjectDataProfilesString.java new file mode 100644 index 000000000000..2f19a9b5707d --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listprojectdataprofiles/SyncListProjectDataProfilesString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListProjectDataProfiles_String_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.OrganizationLocationName; +import com.google.privacy.dlp.v2.ProjectDataProfile; + +public class SyncListProjectDataProfilesString { + + public static void main(String[] args) throws Exception { + syncListProjectDataProfilesString(); + } + + public static void syncListProjectDataProfilesString() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + for (ProjectDataProfile element : + dlpServiceClient.listProjectDataProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListProjectDataProfiles_String_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/AsyncListTableDataProfiles.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/AsyncListTableDataProfiles.java new file mode 100644 index 000000000000..9cc5589c1a97 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/AsyncListTableDataProfiles.java @@ -0,0 +1,56 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListTableDataProfiles_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ListTableDataProfilesRequest; +import com.google.privacy.dlp.v2.OrganizationLocationName; +import com.google.privacy.dlp.v2.TableDataProfile; + +public class AsyncListTableDataProfiles { + + public static void main(String[] args) throws Exception { + asyncListTableDataProfiles(); + } + + public static void asyncListTableDataProfiles() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ListTableDataProfilesRequest request = + ListTableDataProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + dlpServiceClient.listTableDataProfilesPagedCallable().futureCall(request); + // Do something. + for (TableDataProfile element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListTableDataProfiles_async] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/AsyncListTableDataProfilesPaged.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/AsyncListTableDataProfilesPaged.java new file mode 100644 index 000000000000..9073f4971a7d --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/AsyncListTableDataProfilesPaged.java @@ -0,0 +1,64 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListTableDataProfiles_Paged_async] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.common.base.Strings; +import com.google.privacy.dlp.v2.ListTableDataProfilesRequest; +import com.google.privacy.dlp.v2.ListTableDataProfilesResponse; +import com.google.privacy.dlp.v2.OrganizationLocationName; +import com.google.privacy.dlp.v2.TableDataProfile; + +public class AsyncListTableDataProfilesPaged { + + public static void main(String[] args) throws Exception { + asyncListTableDataProfilesPaged(); + } + + public static void asyncListTableDataProfilesPaged() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ListTableDataProfilesRequest request = + ListTableDataProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListTableDataProfilesResponse response = + dlpServiceClient.listTableDataProfilesCallable().call(request); + for (TableDataProfile element : response.getTableDataProfilesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END dlp_v2_generated_DlpService_ListTableDataProfiles_Paged_async] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/SyncListTableDataProfiles.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/SyncListTableDataProfiles.java new file mode 100644 index 000000000000..763ff46c5b45 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/SyncListTableDataProfiles.java @@ -0,0 +1,53 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListTableDataProfiles_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.ListTableDataProfilesRequest; +import com.google.privacy.dlp.v2.OrganizationLocationName; +import com.google.privacy.dlp.v2.TableDataProfile; + +public class SyncListTableDataProfiles { + + public static void main(String[] args) throws Exception { + syncListTableDataProfiles(); + } + + public static void syncListTableDataProfiles() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + ListTableDataProfilesRequest request = + ListTableDataProfilesRequest.newBuilder() + .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setOrderBy("orderBy-1207110587") + .setFilter("filter-1274492040") + .build(); + for (TableDataProfile element : + dlpServiceClient.listTableDataProfiles(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListTableDataProfiles_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/SyncListTableDataProfilesLocationname.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/SyncListTableDataProfilesLocationname.java new file mode 100644 index 000000000000..cc3ede482785 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/SyncListTableDataProfilesLocationname.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListTableDataProfiles_Locationname_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.LocationName; +import com.google.privacy.dlp.v2.TableDataProfile; + +public class SyncListTableDataProfilesLocationname { + + public static void main(String[] args) throws Exception { + syncListTableDataProfilesLocationname(); + } + + public static void syncListTableDataProfilesLocationname() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (TableDataProfile element : dlpServiceClient.listTableDataProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListTableDataProfiles_Locationname_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/SyncListTableDataProfilesOrganizationlocationname.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/SyncListTableDataProfilesOrganizationlocationname.java new file mode 100644 index 000000000000..2ac95d5af0f9 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/SyncListTableDataProfilesOrganizationlocationname.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListTableDataProfiles_Organizationlocationname_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.OrganizationLocationName; +import com.google.privacy.dlp.v2.TableDataProfile; + +public class SyncListTableDataProfilesOrganizationlocationname { + + public static void main(String[] args) throws Exception { + syncListTableDataProfilesOrganizationlocationname(); + } + + public static void syncListTableDataProfilesOrganizationlocationname() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + for (TableDataProfile element : dlpServiceClient.listTableDataProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListTableDataProfiles_Organizationlocationname_sync] diff --git a/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/SyncListTableDataProfilesString.java b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/SyncListTableDataProfilesString.java new file mode 100644 index 000000000000..2eec07a695e3 --- /dev/null +++ b/java-dlp/samples/snippets/generated/com/google/cloud/dlp/v2/dlpservice/listtabledataprofiles/SyncListTableDataProfilesString.java @@ -0,0 +1,44 @@ +/* + * 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. + */ + +package com.google.cloud.dlp.v2.samples; + +// [START dlp_v2_generated_DlpService_ListTableDataProfiles_String_sync] +import com.google.cloud.dlp.v2.DlpServiceClient; +import com.google.privacy.dlp.v2.OrganizationLocationName; +import com.google.privacy.dlp.v2.TableDataProfile; + +public class SyncListTableDataProfilesString { + + public static void main(String[] args) throws Exception { + syncListTableDataProfilesString(); + } + + public static void syncListTableDataProfilesString() throws Exception { + // 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 (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { + String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString(); + for (TableDataProfile element : dlpServiceClient.listTableDataProfiles(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END dlp_v2_generated_DlpService_ListTableDataProfiles_String_sync] diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectory.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectory.java index 5991714d5113..3f846663f9e5 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectory.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectory.java @@ -868,10 +868,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { * * *
                                                                                      -   * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +   * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +   * directory group.
                                                                                          * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the backupOperators. */ @@ -882,10 +883,11 @@ public com.google.protobuf.ProtocolStringList getBackupOperatorsList() { * * *
                                                                                      -   * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +   * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +   * directory group.
                                                                                          * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of backupOperators. */ @@ -896,10 +898,11 @@ public int getBackupOperatorsCount() { * * *
                                                                                      -   * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +   * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +   * directory group.
                                                                                          * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The backupOperators at the given index. @@ -911,10 +914,11 @@ public java.lang.String getBackupOperators(int index) { * * *
                                                                                      -   * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +   * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +   * directory group.
                                                                                          * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the backupOperators at the given index. @@ -932,10 +936,10 @@ public com.google.protobuf.ByteString getBackupOperatorsBytes(int index) { * * *
                                                                                      -   * Domain users to be given the SeSecurityPrivilege.
                                                                                      +   * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                          * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the securityOperators. */ @@ -946,10 +950,10 @@ public com.google.protobuf.ProtocolStringList getSecurityOperatorsList() { * * *
                                                                                      -   * Domain users to be given the SeSecurityPrivilege.
                                                                                      +   * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                          * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of securityOperators. */ @@ -960,10 +964,10 @@ public int getSecurityOperatorsCount() { * * *
                                                                                      -   * Domain users to be given the SeSecurityPrivilege.
                                                                                      +   * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                          * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The securityOperators at the given index. @@ -975,10 +979,10 @@ public java.lang.String getSecurityOperators(int index) { * * *
                                                                                      -   * Domain users to be given the SeSecurityPrivilege.
                                                                                      +   * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                          * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the securityOperators at the given index. @@ -3487,10 +3491,11 @@ private void ensureBackupOperatorsIsMutable() { * * *
                                                                                      -     * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +     * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +     * directory group.
                                                                                            * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the backupOperators. */ @@ -3502,10 +3507,11 @@ public com.google.protobuf.ProtocolStringList getBackupOperatorsList() { * * *
                                                                                      -     * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +     * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +     * directory group.
                                                                                            * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of backupOperators. */ @@ -3516,10 +3522,11 @@ public int getBackupOperatorsCount() { * * *
                                                                                      -     * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +     * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +     * directory group.
                                                                                            * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The backupOperators at the given index. @@ -3531,10 +3538,11 @@ public java.lang.String getBackupOperators(int index) { * * *
                                                                                      -     * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +     * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +     * directory group.
                                                                                            * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the backupOperators at the given index. @@ -3546,10 +3554,11 @@ public com.google.protobuf.ByteString getBackupOperatorsBytes(int index) { * * *
                                                                                      -     * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +     * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +     * directory group.
                                                                                            * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The backupOperators to set. @@ -3569,10 +3578,11 @@ public Builder setBackupOperators(int index, java.lang.String value) { * * *
                                                                                      -     * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +     * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +     * directory group.
                                                                                            * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The backupOperators to add. * @return This builder for chaining. @@ -3591,10 +3601,11 @@ public Builder addBackupOperators(java.lang.String value) { * * *
                                                                                      -     * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +     * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +     * directory group.
                                                                                            * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The backupOperators to add. * @return This builder for chaining. @@ -3610,10 +3621,11 @@ public Builder addAllBackupOperators(java.lang.Iterable values * * *
                                                                                      -     * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +     * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +     * directory group.
                                                                                            * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3628,10 +3640,11 @@ public Builder clearBackupOperators() { * * *
                                                                                      -     * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +     * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +     * directory group.
                                                                                            * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the backupOperators to add. * @return This builder for chaining. @@ -3661,10 +3674,11 @@ private void ensureSecurityOperatorsIsMutable() { * * *
                                                                                      -     * Domain users to be given the SeSecurityPrivilege.
                                                                                      +     * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                            * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return A list containing the securityOperators. */ @@ -3676,10 +3690,11 @@ public com.google.protobuf.ProtocolStringList getSecurityOperatorsList() { * * *
                                                                                      -     * Domain users to be given the SeSecurityPrivilege.
                                                                                      +     * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                            * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The count of securityOperators. */ @@ -3690,10 +3705,11 @@ public int getSecurityOperatorsCount() { * * *
                                                                                      -     * Domain users to be given the SeSecurityPrivilege.
                                                                                      +     * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                            * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the element to return. * @return The securityOperators at the given index. @@ -3705,10 +3721,11 @@ public java.lang.String getSecurityOperators(int index) { * * *
                                                                                      -     * Domain users to be given the SeSecurityPrivilege.
                                                                                      +     * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                            * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index of the value to return. * @return The bytes of the securityOperators at the given index. @@ -3720,10 +3737,11 @@ public com.google.protobuf.ByteString getSecurityOperatorsBytes(int index) { * * *
                                                                                      -     * Domain users to be given the SeSecurityPrivilege.
                                                                                      +     * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                            * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param index The index to set the value at. * @param value The securityOperators to set. @@ -3743,10 +3761,11 @@ public Builder setSecurityOperators(int index, java.lang.String value) { * * *
                                                                                      -     * Domain users to be given the SeSecurityPrivilege.
                                                                                      +     * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                            * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The securityOperators to add. * @return This builder for chaining. @@ -3765,10 +3784,11 @@ public Builder addSecurityOperators(java.lang.String value) { * * *
                                                                                      -     * Domain users to be given the SeSecurityPrivilege.
                                                                                      +     * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                            * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param values The securityOperators to add. * @return This builder for chaining. @@ -3784,10 +3804,11 @@ public Builder addAllSecurityOperators(java.lang.Iterable valu * * *
                                                                                      -     * Domain users to be given the SeSecurityPrivilege.
                                                                                      +     * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                            * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ @@ -3802,10 +3823,11 @@ public Builder clearSecurityOperators() { * * *
                                                                                      -     * Domain users to be given the SeSecurityPrivilege.
                                                                                      +     * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                            * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The bytes of the securityOperators to add. * @return This builder for chaining. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryOrBuilder.java index 1e057c119813..17798e990330 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryOrBuilder.java @@ -318,10 +318,11 @@ public interface ActiveDirectoryOrBuilder * * *
                                                                                      -   * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +   * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +   * directory group.
                                                                                          * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the backupOperators. */ @@ -330,10 +331,11 @@ public interface ActiveDirectoryOrBuilder * * *
                                                                                      -   * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +   * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +   * directory group.
                                                                                          * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of backupOperators. */ @@ -342,10 +344,11 @@ public interface ActiveDirectoryOrBuilder * * *
                                                                                      -   * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +   * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +   * directory group.
                                                                                          * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The backupOperators at the given index. @@ -355,10 +358,11 @@ public interface ActiveDirectoryOrBuilder * * *
                                                                                      -   * Users to be added to the Built-in Backup Operator active directory group.
                                                                                      +   * Optional. Users to be added to the Built-in Backup Operator active
                                                                                      +   * directory group.
                                                                                          * 
                                                                                      * - * repeated string backup_operators = 12; + * repeated string backup_operators = 12 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the backupOperators at the given index. @@ -369,10 +373,10 @@ public interface ActiveDirectoryOrBuilder * * *
                                                                                      -   * Domain users to be given the SeSecurityPrivilege.
                                                                                      +   * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                          * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the securityOperators. */ @@ -381,10 +385,10 @@ public interface ActiveDirectoryOrBuilder * * *
                                                                                      -   * Domain users to be given the SeSecurityPrivilege.
                                                                                      +   * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                          * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of securityOperators. */ @@ -393,10 +397,10 @@ public interface ActiveDirectoryOrBuilder * * *
                                                                                      -   * Domain users to be given the SeSecurityPrivilege.
                                                                                      +   * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                          * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The securityOperators at the given index. @@ -406,10 +410,10 @@ public interface ActiveDirectoryOrBuilder * * *
                                                                                      -   * Domain users to be given the SeSecurityPrivilege.
                                                                                      +   * Optional. Domain users to be given the SeSecurityPrivilege.
                                                                                          * 
                                                                                      * - * repeated string security_operators = 13; + * repeated string security_operators = 13 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the securityOperators at the given index. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryProto.java index 44f1c1791214..346677e74098 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ActiveDirectoryProto.java @@ -95,7 +95,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\0132\'.google.cloud.netapp.v1.ActiveDirecto" + "ryB\003\340A\002\"[\n\034DeleteActiveDirectoryRequest\022" + ";\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%netapp.googleapis" - + ".com/ActiveDirectory\"\263\007\n\017ActiveDirectory" + + ".com/ActiveDirectory\"\275\007\n\017ActiveDirectory" + "\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013create_time\030\002 \001(\013" + "2\032.google.protobuf.TimestampB\003\340A\003\022A\n\005sta" + "te\030\003 \001(\0162-.google.cloud.netapp.v1.Active" @@ -104,27 +104,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_bios_prefix\030\007 \001(\tB\003\340A\002\022\033\n\023organizationa" + "l_unit\030\010 \001(\t\022\026\n\016aes_encryption\030\t \001(\010\022\025\n\010" + "username\030\n \001(\tB\003\340A\002\022\025\n\010password\030\013 \001(\tB\003\340" - + "A\002\022\030\n\020backup_operators\030\014 \003(\t\022\032\n\022security" - + "_operators\030\r \003(\t\022\024\n\014kdc_hostname\030\016 \001(\t\022\016" - + "\n\006kdc_ip\030\017 \001(\t\022\033\n\023nfs_users_with_ldap\030\020 " - + "\001(\010\022\023\n\013description\030\021 \001(\t\022\024\n\014ldap_signing" - + "\030\022 \001(\010\022\036\n\026encrypt_dc_connections\030\023 \001(\010\022C" - + "\n\006labels\030\024 \003(\01323.google.cloud.netapp.v1." - + "ActiveDirectory.LabelsEntry\022\032\n\rstate_det" - + "ails\030\025 \001(\tB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"j\n\005State\022\025\n\021STATE" - + "_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022" - + "\014\n\010UPDATING\020\003\022\n\n\006IN_USE\020\004\022\014\n\010DELETING\020\005\022" - + "\t\n\005ERROR\020\006:\235\001\352A\231\001\n%netapp.googleapis.com" - + "/ActiveDirectory\022Lprojects/{project}/loc" - + "ations/{location}/activeDirectories/{act" - + "ive_directory}*\021activeDirectories2\017activ" - + "eDirectoryB\266\001\n\032com.google.cloud.netapp.v" - + "1B\024ActiveDirectoryProtoP\001Z2cloud.google." - + "com/go/netapp/apiv1/netapppb;netapppb\252\002\026" - + "Google.Cloud.NetApp.V1\312\002\026Google\\Cloud\\Ne" - + "tApp\\V1\352\002\031Google::Cloud::NetApp::V1b\006pro" - + "to3" + + "A\002\022\035\n\020backup_operators\030\014 \003(\tB\003\340A\001\022\037\n\022sec" + + "urity_operators\030\r \003(\tB\003\340A\001\022\024\n\014kdc_hostna" + + "me\030\016 \001(\t\022\016\n\006kdc_ip\030\017 \001(\t\022\033\n\023nfs_users_wi" + + "th_ldap\030\020 \001(\010\022\023\n\013description\030\021 \001(\t\022\024\n\014ld" + + "ap_signing\030\022 \001(\010\022\036\n\026encrypt_dc_connectio" + + "ns\030\023 \001(\010\022C\n\006labels\030\024 \003(\01323.google.cloud." + + "netapp.v1.ActiveDirectory.LabelsEntry\022\032\n" + + "\rstate_details\030\025 \001(\tB\003\340A\003\032-\n\013LabelsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"j\n\005Stat" + + "e\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t" + + "\n\005READY\020\002\022\014\n\010UPDATING\020\003\022\n\n\006IN_USE\020\004\022\014\n\010D" + + "ELETING\020\005\022\t\n\005ERROR\020\006:\235\001\352A\231\001\n%netapp.goog" + + "leapis.com/ActiveDirectory\022Lprojects/{pr" + + "oject}/locations/{location}/activeDirect" + + "ories/{active_directory}*\021activeDirector" + + "ies2\017activeDirectoryB\266\001\n\032com.google.clou" + + "d.netapp.v1B\024ActiveDirectoryProtoP\001Z2clo" + + "ud.google.com/go/netapp/apiv1/netapppb;n" + + "etapppb\252\002\026Google.Cloud.NetApp.V1\312\002\026Googl" + + "e\\Cloud\\NetApp\\V1\352\002\031Google::Cloud::NetAp" + + "p::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EncryptionType.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EncryptionType.java index 534a1155392a..79ef35be4798 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EncryptionType.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/EncryptionType.java @@ -23,7 +23,7 @@ * * *
                                                                                      - * Defined the current volume encryption key source.
                                                                                      + * The volume encryption key source.
                                                                                        * 
                                                                                      * * Protobuf enum {@code google.cloud.netapp.v1.EncryptionType} @@ -33,7 +33,7 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                                                                      -   * The source of encryption key is not specified.
                                                                                      +   * The source of the encryption key is not specified.
                                                                                          * 
                                                                                      * * ENCRYPTION_TYPE_UNSPECIFIED = 0; @@ -66,7 +66,7 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum { * * *
                                                                                      -   * The source of encryption key is not specified.
                                                                                      +   * The source of the encryption key is not specified.
                                                                                          * 
                                                                                      * * ENCRYPTION_TYPE_UNSPECIFIED = 0; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListStoragePoolsRequest.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListStoragePoolsRequest.java index 638bb2f29420..a7f6ce2d62ac 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListStoragePoolsRequest.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListStoragePoolsRequest.java @@ -127,10 +127,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                                                                                      -   * The maximum number of items to return.
                                                                                      +   * Optional. The maximum number of items to return.
                                                                                          * 
                                                                                      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -147,11 +147,11 @@ public int getPageSize() { * * *
                                                                                      -   * The next_page_token value to use if there are additional
                                                                                      +   * Optional. The next_page_token value to use if there are additional
                                                                                          * results to retrieve for this list request.
                                                                                          * 
                                                                                      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -171,11 +171,11 @@ public java.lang.String getPageToken() { * * *
                                                                                      -   * The next_page_token value to use if there are additional
                                                                                      +   * Optional. The next_page_token value to use if there are additional
                                                                                          * results to retrieve for this list request.
                                                                                          * 
                                                                                      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -200,10 +200,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                                                                                      -   * Sort results. Supported values are "name", "name desc" or "" (unsorted).
                                                                                      +   * Optional. Sort results. Supported values are "name", "name desc" or ""
                                                                                      +   * (unsorted).
                                                                                          * 
                                                                                      * - * string order_by = 4; + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -223,10 +224,11 @@ public java.lang.String getOrderBy() { * * *
                                                                                      -   * Sort results. Supported values are "name", "name desc" or "" (unsorted).
                                                                                      +   * Optional. Sort results. Supported values are "name", "name desc" or ""
                                                                                      +   * (unsorted).
                                                                                          * 
                                                                                      * - * string order_by = 4; + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -251,10 +253,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
                                                                                      -   * List filter.
                                                                                      +   * Optional. List filter.
                                                                                          * 
                                                                                      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -274,10 +276,10 @@ public java.lang.String getFilter() { * * *
                                                                                      -   * List filter.
                                                                                      +   * Optional. List filter.
                                                                                          * 
                                                                                      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -851,10 +853,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
                                                                                      -     * The maximum number of items to return.
                                                                                      +     * Optional. The maximum number of items to return.
                                                                                            * 
                                                                                      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -866,10 +868,10 @@ public int getPageSize() { * * *
                                                                                      -     * The maximum number of items to return.
                                                                                      +     * Optional. The maximum number of items to return.
                                                                                            * 
                                                                                      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -885,10 +887,10 @@ public Builder setPageSize(int value) { * * *
                                                                                      -     * The maximum number of items to return.
                                                                                      +     * Optional. The maximum number of items to return.
                                                                                            * 
                                                                                      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -904,11 +906,11 @@ public Builder clearPageSize() { * * *
                                                                                      -     * The next_page_token value to use if there are additional
                                                                                      +     * Optional. The next_page_token value to use if there are additional
                                                                                            * results to retrieve for this list request.
                                                                                            * 
                                                                                      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -927,11 +929,11 @@ public java.lang.String getPageToken() { * * *
                                                                                      -     * The next_page_token value to use if there are additional
                                                                                      +     * Optional. The next_page_token value to use if there are additional
                                                                                            * results to retrieve for this list request.
                                                                                            * 
                                                                                      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -950,11 +952,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
                                                                                      -     * The next_page_token value to use if there are additional
                                                                                      +     * Optional. The next_page_token value to use if there are additional
                                                                                            * results to retrieve for this list request.
                                                                                            * 
                                                                                      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -972,11 +974,11 @@ public Builder setPageToken(java.lang.String value) { * * *
                                                                                      -     * The next_page_token value to use if there are additional
                                                                                      +     * Optional. The next_page_token value to use if there are additional
                                                                                            * results to retrieve for this list request.
                                                                                            * 
                                                                                      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -990,11 +992,11 @@ public Builder clearPageToken() { * * *
                                                                                      -     * The next_page_token value to use if there are additional
                                                                                      +     * Optional. The next_page_token value to use if there are additional
                                                                                            * results to retrieve for this list request.
                                                                                            * 
                                                                                      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. @@ -1015,10 +1017,11 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
                                                                                      -     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
                                                                                      +     * Optional. Sort results. Supported values are "name", "name desc" or ""
                                                                                      +     * (unsorted).
                                                                                            * 
                                                                                      * - * string order_by = 4; + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -1037,10 +1040,11 @@ public java.lang.String getOrderBy() { * * *
                                                                                      -     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
                                                                                      +     * Optional. Sort results. Supported values are "name", "name desc" or ""
                                                                                      +     * (unsorted).
                                                                                            * 
                                                                                      * - * string order_by = 4; + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -1059,10 +1063,11 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
                                                                                      -     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
                                                                                      +     * Optional. Sort results. Supported values are "name", "name desc" or ""
                                                                                      +     * (unsorted).
                                                                                            * 
                                                                                      * - * string order_by = 4; + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The orderBy to set. * @return This builder for chaining. @@ -1080,10 +1085,11 @@ public Builder setOrderBy(java.lang.String value) { * * *
                                                                                      -     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
                                                                                      +     * Optional. Sort results. Supported values are "name", "name desc" or ""
                                                                                      +     * (unsorted).
                                                                                            * 
                                                                                      * - * string order_by = 4; + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1097,10 +1103,11 @@ public Builder clearOrderBy() { * * *
                                                                                      -     * Sort results. Supported values are "name", "name desc" or "" (unsorted).
                                                                                      +     * Optional. Sort results. Supported values are "name", "name desc" or ""
                                                                                      +     * (unsorted).
                                                                                            * 
                                                                                      * - * string order_by = 4; + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for orderBy to set. * @return This builder for chaining. @@ -1121,10 +1128,10 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * * *
                                                                                      -     * List filter.
                                                                                      +     * Optional. List filter.
                                                                                            * 
                                                                                      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -1143,10 +1150,10 @@ public java.lang.String getFilter() { * * *
                                                                                      -     * List filter.
                                                                                      +     * Optional. List filter.
                                                                                            * 
                                                                                      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -1165,10 +1172,10 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
                                                                                      -     * List filter.
                                                                                      +     * Optional. List filter.
                                                                                            * 
                                                                                      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -1186,10 +1193,10 @@ public Builder setFilter(java.lang.String value) { * * *
                                                                                      -     * List filter.
                                                                                      +     * Optional. List filter.
                                                                                            * 
                                                                                      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1203,10 +1210,10 @@ public Builder clearFilter() { * * *
                                                                                      -     * List filter.
                                                                                      +     * Optional. List filter.
                                                                                            * 
                                                                                      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListStoragePoolsRequestOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListStoragePoolsRequestOrBuilder.java index 8d3515beea37..b96f59065d75 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListStoragePoolsRequestOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ListStoragePoolsRequestOrBuilder.java @@ -57,10 +57,10 @@ public interface ListStoragePoolsRequestOrBuilder * * *
                                                                                      -   * The maximum number of items to return.
                                                                                      +   * Optional. The maximum number of items to return.
                                                                                          * 
                                                                                      * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -70,11 +70,11 @@ public interface ListStoragePoolsRequestOrBuilder * * *
                                                                                      -   * The next_page_token value to use if there are additional
                                                                                      +   * Optional. The next_page_token value to use if there are additional
                                                                                          * results to retrieve for this list request.
                                                                                          * 
                                                                                      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -83,11 +83,11 @@ public interface ListStoragePoolsRequestOrBuilder * * *
                                                                                      -   * The next_page_token value to use if there are additional
                                                                                      +   * Optional. The next_page_token value to use if there are additional
                                                                                          * results to retrieve for this list request.
                                                                                          * 
                                                                                      * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -97,10 +97,11 @@ public interface ListStoragePoolsRequestOrBuilder * * *
                                                                                      -   * Sort results. Supported values are "name", "name desc" or "" (unsorted).
                                                                                      +   * Optional. Sort results. Supported values are "name", "name desc" or ""
                                                                                      +   * (unsorted).
                                                                                          * 
                                                                                      * - * string order_by = 4; + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The orderBy. */ @@ -109,10 +110,11 @@ public interface ListStoragePoolsRequestOrBuilder * * *
                                                                                      -   * Sort results. Supported values are "name", "name desc" or "" (unsorted).
                                                                                      +   * Optional. Sort results. Supported values are "name", "name desc" or ""
                                                                                      +   * (unsorted).
                                                                                          * 
                                                                                      * - * string order_by = 4; + * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for orderBy. */ @@ -122,10 +124,10 @@ public interface ListStoragePoolsRequestOrBuilder * * *
                                                                                      -   * List filter.
                                                                                      +   * Optional. List filter.
                                                                                          * 
                                                                                      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -134,10 +136,10 @@ public interface ListStoragePoolsRequestOrBuilder * * *
                                                                                      -   * List filter.
                                                                                      +   * Optional. List filter.
                                                                                          * 
                                                                                      * - * string filter = 5; + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ServiceLevel.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ServiceLevel.java index ee066c9c6479..6591f379cf12 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ServiceLevel.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ServiceLevel.java @@ -23,7 +23,7 @@ * * *
                                                                                      - * The service levels - Storage Pool, Volumes
                                                                                      + * The service level of a storage pool and its volumes.
                                                                                        * 
                                                                                      * * Protobuf enum {@code google.cloud.netapp.v1.ServiceLevel} @@ -63,7 +63,7 @@ public enum ServiceLevel implements com.google.protobuf.ProtocolMessageEnum { * * *
                                                                                      -   * Standard (Software offering)
                                                                                      +   * Standard service level.
                                                                                          * 
                                                                                      * * STANDARD = 3; @@ -106,7 +106,7 @@ public enum ServiceLevel implements com.google.protobuf.ProtocolMessageEnum { * * *
                                                                                      -   * Standard (Software offering)
                                                                                      +   * Standard service level.
                                                                                          * 
                                                                                      * * STANDARD = 3; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java index 608d84e3c0e2..58c0b760273e 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java @@ -645,10 +645,10 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
                                                                                      -   * Description of the storage pool
                                                                                      +   * Optional. Description of the storage pool
                                                                                          * 
                                                                                      * - * string description = 9; + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -668,10 +668,10 @@ public java.lang.String getDescription() { * * *
                                                                                      -   * Description of the storage pool
                                                                                      +   * Optional. Description of the storage pool
                                                                                          * 
                                                                                      * - * string description = 9; + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -718,10 +718,10 @@ public int getLabelsCount() { * * *
                                                                                      -   * Labels as key value pairs
                                                                                      +   * Optional. Labels as key value pairs
                                                                                          * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -740,10 +740,10 @@ public java.util.Map getLabels() { * * *
                                                                                      -   * Labels as key value pairs
                                                                                      +   * Optional. Labels as key value pairs
                                                                                          * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -753,10 +753,10 @@ public java.util.Map getLabelsMap() { * * *
                                                                                      -   * Labels as key value pairs
                                                                                      +   * Optional. Labels as key value pairs
                                                                                          * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -773,10 +773,10 @@ public java.util.Map getLabelsMap() { * * *
                                                                                      -   * Labels as key value pairs
                                                                                      +   * Optional. Labels as key value pairs
                                                                                          * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -855,10 +855,13 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * *
                                                                                      -   * Specifies the Active Directory to be used for creating a SMB volume.
                                                                                      +   * Optional. Specifies the Active Directory to be used for creating a SMB
                                                                                      +   * volume.
                                                                                          * 
                                                                                      * - * string active_directory = 12 [(.google.api.resource_reference) = { ... } + * + * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The activeDirectory. */ @@ -878,10 +881,13 @@ public java.lang.String getActiveDirectory() { * * *
                                                                                      -   * Specifies the Active Directory to be used for creating a SMB volume.
                                                                                      +   * Optional. Specifies the Active Directory to be used for creating a SMB
                                                                                      +   * volume.
                                                                                          * 
                                                                                      * - * string active_directory = 12 [(.google.api.resource_reference) = { ... } + * + * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for activeDirectory. */ @@ -906,10 +912,12 @@ public com.google.protobuf.ByteString getActiveDirectoryBytes() { * * *
                                                                                      -   * Specifies the KMS config to be used for volume encryption.
                                                                                      +   * Optional. Specifies the KMS config to be used for volume encryption.
                                                                                          * 
                                                                                      * - * string kms_config = 13 [(.google.api.resource_reference) = { ... } + * + * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The kmsConfig. */ @@ -929,10 +937,12 @@ public java.lang.String getKmsConfig() { * * *
                                                                                      -   * Specifies the KMS config to be used for volume encryption.
                                                                                      +   * Optional. Specifies the KMS config to be used for volume encryption.
                                                                                          * 
                                                                                      * - * string kms_config = 13 [(.google.api.resource_reference) = { ... } + * + * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for kmsConfig. */ @@ -955,10 +965,10 @@ public com.google.protobuf.ByteString getKmsConfigBytes() { * * *
                                                                                      -   * Flag indicating if the pool is NFS LDAP enabled or not.
                                                                                      +   * Optional. Flag indicating if the pool is NFS LDAP enabled or not.
                                                                                          * 
                                                                                      * - * bool ldap_enabled = 14; + * bool ldap_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ldapEnabled. */ @@ -975,11 +985,11 @@ public boolean getLdapEnabled() { * * *
                                                                                      -   * Name of the Private Service Access allocated range. If
                                                                                      -   * not provided, any available range will be chosen.
                                                                                      +   * Optional. This field is currently not implemented. Currently values
                                                                                      +   * provided in this field will be ignored.
                                                                                          * 
                                                                                      * - * string psa_range = 15; + * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The psaRange. */ @@ -999,11 +1009,11 @@ public java.lang.String getPsaRange() { * * *
                                                                                      -   * Name of the Private Service Access allocated range. If
                                                                                      -   * not provided, any available range will be chosen.
                                                                                      +   * Optional. This field is currently not implemented. Currently values
                                                                                      +   * provided in this field will be ignored.
                                                                                          * 
                                                                                      * - * string psa_range = 15; + * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for psaRange. */ @@ -1072,7 +1082,7 @@ public com.google.cloud.netapp.v1.EncryptionType getEncryptionType() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=222 + * google/cloud/netapp/v1/storage_pool.proto;l=230 * @return Whether the globalAccessAllowed field is set. */ @java.lang.Override @@ -1091,7 +1101,7 @@ public boolean hasGlobalAccessAllowed() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=222 + * google/cloud/netapp/v1/storage_pool.proto;l=230 * @return The globalAccessAllowed. */ @java.lang.Override @@ -2652,10 +2662,10 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
                                                                                      -     * Description of the storage pool
                                                                                      +     * Optional. Description of the storage pool
                                                                                            * 
                                                                                      * - * string description = 9; + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -2674,10 +2684,10 @@ public java.lang.String getDescription() { * * *
                                                                                      -     * Description of the storage pool
                                                                                      +     * Optional. Description of the storage pool
                                                                                            * 
                                                                                      * - * string description = 9; + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -2696,10 +2706,10 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
                                                                                      -     * Description of the storage pool
                                                                                      +     * Optional. Description of the storage pool
                                                                                            * 
                                                                                      * - * string description = 9; + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The description to set. * @return This builder for chaining. @@ -2717,10 +2727,10 @@ public Builder setDescription(java.lang.String value) { * * *
                                                                                      -     * Description of the storage pool
                                                                                      +     * Optional. Description of the storage pool
                                                                                            * 
                                                                                      * - * string description = 9; + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2734,10 +2744,10 @@ public Builder clearDescription() { * * *
                                                                                      -     * Description of the storage pool
                                                                                      +     * Optional. Description of the storage pool
                                                                                            * 
                                                                                      * - * string description = 9; + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for description to set. * @return This builder for chaining. @@ -2782,10 +2792,10 @@ public int getLabelsCount() { * * *
                                                                                      -     * Labels as key value pairs
                                                                                      +     * Optional. Labels as key value pairs
                                                                                            * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public boolean containsLabels(java.lang.String key) { @@ -2804,10 +2814,10 @@ public java.util.Map getLabels() { * * *
                                                                                      -     * Labels as key value pairs
                                                                                      +     * Optional. Labels as key value pairs
                                                                                            * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.util.Map getLabelsMap() { @@ -2817,10 +2827,10 @@ public java.util.Map getLabelsMap() { * * *
                                                                                      -     * Labels as key value pairs
                                                                                      +     * Optional. Labels as key value pairs
                                                                                            * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public /* nullable */ java.lang.String getLabelsOrDefault( @@ -2837,10 +2847,10 @@ public java.util.Map getLabelsMap() { * * *
                                                                                      -     * Labels as key value pairs
                                                                                      +     * Optional. Labels as key value pairs
                                                                                            * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public java.lang.String getLabelsOrThrow(java.lang.String key) { @@ -2863,10 +2873,10 @@ public Builder clearLabels() { * * *
                                                                                      -     * Labels as key value pairs
                                                                                      +     * Optional. Labels as key value pairs
                                                                                            * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder removeLabels(java.lang.String key) { if (key == null) { @@ -2885,10 +2895,10 @@ public java.util.Map getMutableLabels() { * * *
                                                                                      -     * Labels as key value pairs
                                                                                      +     * Optional. Labels as key value pairs
                                                                                            * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putLabels(java.lang.String key, java.lang.String value) { if (key == null) { @@ -2905,10 +2915,10 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
                                                                                      -     * Labels as key value pairs
                                                                                      +     * Optional. Labels as key value pairs
                                                                                            * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); @@ -3042,10 +3052,13 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * * *
                                                                                      -     * Specifies the Active Directory to be used for creating a SMB volume.
                                                                                      +     * Optional. Specifies the Active Directory to be used for creating a SMB
                                                                                      +     * volume.
                                                                                            * 
                                                                                      * - * string active_directory = 12 [(.google.api.resource_reference) = { ... } + * + * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The activeDirectory. */ @@ -3064,10 +3077,13 @@ public java.lang.String getActiveDirectory() { * * *
                                                                                      -     * Specifies the Active Directory to be used for creating a SMB volume.
                                                                                      +     * Optional. Specifies the Active Directory to be used for creating a SMB
                                                                                      +     * volume.
                                                                                            * 
                                                                                      * - * string active_directory = 12 [(.google.api.resource_reference) = { ... } + * + * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for activeDirectory. */ @@ -3086,10 +3102,13 @@ public com.google.protobuf.ByteString getActiveDirectoryBytes() { * * *
                                                                                      -     * Specifies the Active Directory to be used for creating a SMB volume.
                                                                                      +     * Optional. Specifies the Active Directory to be used for creating a SMB
                                                                                      +     * volume.
                                                                                            * 
                                                                                      * - * string active_directory = 12 [(.google.api.resource_reference) = { ... } + * + * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The activeDirectory to set. * @return This builder for chaining. @@ -3107,10 +3126,13 @@ public Builder setActiveDirectory(java.lang.String value) { * * *
                                                                                      -     * Specifies the Active Directory to be used for creating a SMB volume.
                                                                                      +     * Optional. Specifies the Active Directory to be used for creating a SMB
                                                                                      +     * volume.
                                                                                            * 
                                                                                      * - * string active_directory = 12 [(.google.api.resource_reference) = { ... } + * + * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -3124,10 +3146,13 @@ public Builder clearActiveDirectory() { * * *
                                                                                      -     * Specifies the Active Directory to be used for creating a SMB volume.
                                                                                      +     * Optional. Specifies the Active Directory to be used for creating a SMB
                                                                                      +     * volume.
                                                                                            * 
                                                                                      * - * string active_directory = 12 [(.google.api.resource_reference) = { ... } + * + * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for activeDirectory to set. * @return This builder for chaining. @@ -3148,10 +3173,12 @@ public Builder setActiveDirectoryBytes(com.google.protobuf.ByteString value) { * * *
                                                                                      -     * Specifies the KMS config to be used for volume encryption.
                                                                                      +     * Optional. Specifies the KMS config to be used for volume encryption.
                                                                                            * 
                                                                                      * - * string kms_config = 13 [(.google.api.resource_reference) = { ... } + * + * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The kmsConfig. */ @@ -3170,10 +3197,12 @@ public java.lang.String getKmsConfig() { * * *
                                                                                      -     * Specifies the KMS config to be used for volume encryption.
                                                                                      +     * Optional. Specifies the KMS config to be used for volume encryption.
                                                                                            * 
                                                                                      * - * string kms_config = 13 [(.google.api.resource_reference) = { ... } + * + * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for kmsConfig. */ @@ -3192,10 +3221,12 @@ public com.google.protobuf.ByteString getKmsConfigBytes() { * * *
                                                                                      -     * Specifies the KMS config to be used for volume encryption.
                                                                                      +     * Optional. Specifies the KMS config to be used for volume encryption.
                                                                                            * 
                                                                                      * - * string kms_config = 13 [(.google.api.resource_reference) = { ... } + * + * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The kmsConfig to set. * @return This builder for chaining. @@ -3213,10 +3244,12 @@ public Builder setKmsConfig(java.lang.String value) { * * *
                                                                                      -     * Specifies the KMS config to be used for volume encryption.
                                                                                      +     * Optional. Specifies the KMS config to be used for volume encryption.
                                                                                            * 
                                                                                      * - * string kms_config = 13 [(.google.api.resource_reference) = { ... } + * + * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -3230,10 +3263,12 @@ public Builder clearKmsConfig() { * * *
                                                                                      -     * Specifies the KMS config to be used for volume encryption.
                                                                                      +     * Optional. Specifies the KMS config to be used for volume encryption.
                                                                                            * 
                                                                                      * - * string kms_config = 13 [(.google.api.resource_reference) = { ... } + * + * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for kmsConfig to set. * @return This builder for chaining. @@ -3254,10 +3289,10 @@ public Builder setKmsConfigBytes(com.google.protobuf.ByteString value) { * * *
                                                                                      -     * Flag indicating if the pool is NFS LDAP enabled or not.
                                                                                      +     * Optional. Flag indicating if the pool is NFS LDAP enabled or not.
                                                                                            * 
                                                                                      * - * bool ldap_enabled = 14; + * bool ldap_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ldapEnabled. */ @@ -3269,10 +3304,10 @@ public boolean getLdapEnabled() { * * *
                                                                                      -     * Flag indicating if the pool is NFS LDAP enabled or not.
                                                                                      +     * Optional. Flag indicating if the pool is NFS LDAP enabled or not.
                                                                                            * 
                                                                                      * - * bool ldap_enabled = 14; + * bool ldap_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The ldapEnabled to set. * @return This builder for chaining. @@ -3288,10 +3323,10 @@ public Builder setLdapEnabled(boolean value) { * * *
                                                                                      -     * Flag indicating if the pool is NFS LDAP enabled or not.
                                                                                      +     * Optional. Flag indicating if the pool is NFS LDAP enabled or not.
                                                                                            * 
                                                                                      * - * bool ldap_enabled = 14; + * bool ldap_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3307,11 +3342,11 @@ public Builder clearLdapEnabled() { * * *
                                                                                      -     * Name of the Private Service Access allocated range. If
                                                                                      -     * not provided, any available range will be chosen.
                                                                                      +     * Optional. This field is currently not implemented. Currently values
                                                                                      +     * provided in this field will be ignored.
                                                                                            * 
                                                                                      * - * string psa_range = 15; + * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The psaRange. */ @@ -3330,11 +3365,11 @@ public java.lang.String getPsaRange() { * * *
                                                                                      -     * Name of the Private Service Access allocated range. If
                                                                                      -     * not provided, any available range will be chosen.
                                                                                      +     * Optional. This field is currently not implemented. Currently values
                                                                                      +     * provided in this field will be ignored.
                                                                                            * 
                                                                                      * - * string psa_range = 15; + * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for psaRange. */ @@ -3353,11 +3388,11 @@ public com.google.protobuf.ByteString getPsaRangeBytes() { * * *
                                                                                      -     * Name of the Private Service Access allocated range. If
                                                                                      -     * not provided, any available range will be chosen.
                                                                                      +     * Optional. This field is currently not implemented. Currently values
                                                                                      +     * provided in this field will be ignored.
                                                                                            * 
                                                                                      * - * string psa_range = 15; + * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The psaRange to set. * @return This builder for chaining. @@ -3375,11 +3410,11 @@ public Builder setPsaRange(java.lang.String value) { * * *
                                                                                      -     * Name of the Private Service Access allocated range. If
                                                                                      -     * not provided, any available range will be chosen.
                                                                                      +     * Optional. This field is currently not implemented. Currently values
                                                                                      +     * provided in this field will be ignored.
                                                                                            * 
                                                                                      * - * string psa_range = 15; + * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -3393,11 +3428,11 @@ public Builder clearPsaRange() { * * *
                                                                                      -     * Name of the Private Service Access allocated range. If
                                                                                      -     * not provided, any available range will be chosen.
                                                                                      +     * Optional. This field is currently not implemented. Currently values
                                                                                      +     * provided in this field will be ignored.
                                                                                            * 
                                                                                      * - * string psa_range = 15; + * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for psaRange to set. * @return This builder for chaining. @@ -3525,7 +3560,7 @@ public Builder clearEncryptionType() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=222 + * google/cloud/netapp/v1/storage_pool.proto;l=230 * @return Whether the globalAccessAllowed field is set. */ @java.lang.Override @@ -3544,7 +3579,7 @@ public boolean hasGlobalAccessAllowed() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=222 + * google/cloud/netapp/v1/storage_pool.proto;l=230 * @return The globalAccessAllowed. */ @java.lang.Override @@ -3563,7 +3598,7 @@ public boolean getGlobalAccessAllowed() { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=222 + * google/cloud/netapp/v1/storage_pool.proto;l=230 * @param value The globalAccessAllowed to set. * @return This builder for chaining. */ @@ -3586,7 +3621,7 @@ public Builder setGlobalAccessAllowed(boolean value) { * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=222 + * google/cloud/netapp/v1/storage_pool.proto;l=230 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java index 246e460a9e63..6bfbcf6a04af 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java @@ -213,10 +213,10 @@ public interface StoragePoolOrBuilder * * *
                                                                                      -   * Description of the storage pool
                                                                                      +   * Optional. Description of the storage pool
                                                                                          * 
                                                                                      * - * string description = 9; + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The description. */ @@ -225,10 +225,10 @@ public interface StoragePoolOrBuilder * * *
                                                                                      -   * Description of the storage pool
                                                                                      +   * Optional. Description of the storage pool
                                                                                          * 
                                                                                      * - * string description = 9; + * string description = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for description. */ @@ -238,20 +238,20 @@ public interface StoragePoolOrBuilder * * *
                                                                                      -   * Labels as key value pairs
                                                                                      +   * Optional. Labels as key value pairs
                                                                                          * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** * * *
                                                                                      -   * Labels as key value pairs
                                                                                      +   * Optional. Labels as key value pairs
                                                                                          * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ boolean containsLabels(java.lang.String key); /** Use {@link #getLabelsMap()} instead. */ @@ -261,20 +261,20 @@ public interface StoragePoolOrBuilder * * *
                                                                                      -   * Labels as key value pairs
                                                                                      +   * Optional. Labels as key value pairs
                                                                                          * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map getLabelsMap(); /** * * *
                                                                                      -   * Labels as key value pairs
                                                                                      +   * Optional. Labels as key value pairs
                                                                                          * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ /* nullable */ java.lang.String getLabelsOrDefault( @@ -285,10 +285,10 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                      -   * Labels as key value pairs
                                                                                      +   * Optional. Labels as key value pairs
                                                                                          * 
                                                                                      * - * map<string, string> labels = 10; + * map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL]; */ java.lang.String getLabelsOrThrow(java.lang.String key); @@ -327,10 +327,13 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                      -   * Specifies the Active Directory to be used for creating a SMB volume.
                                                                                      +   * Optional. Specifies the Active Directory to be used for creating a SMB
                                                                                      +   * volume.
                                                                                          * 
                                                                                      * - * string active_directory = 12 [(.google.api.resource_reference) = { ... } + * + * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The activeDirectory. */ @@ -339,10 +342,13 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                      -   * Specifies the Active Directory to be used for creating a SMB volume.
                                                                                      +   * Optional. Specifies the Active Directory to be used for creating a SMB
                                                                                      +   * volume.
                                                                                          * 
                                                                                      * - * string active_directory = 12 [(.google.api.resource_reference) = { ... } + * + * string active_directory = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for activeDirectory. */ @@ -352,10 +358,12 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                      -   * Specifies the KMS config to be used for volume encryption.
                                                                                      +   * Optional. Specifies the KMS config to be used for volume encryption.
                                                                                          * 
                                                                                      * - * string kms_config = 13 [(.google.api.resource_reference) = { ... } + * + * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The kmsConfig. */ @@ -364,10 +372,12 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                      -   * Specifies the KMS config to be used for volume encryption.
                                                                                      +   * Optional. Specifies the KMS config to be used for volume encryption.
                                                                                          * 
                                                                                      * - * string kms_config = 13 [(.google.api.resource_reference) = { ... } + * + * string kms_config = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for kmsConfig. */ @@ -377,10 +387,10 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                      -   * Flag indicating if the pool is NFS LDAP enabled or not.
                                                                                      +   * Optional. Flag indicating if the pool is NFS LDAP enabled or not.
                                                                                          * 
                                                                                      * - * bool ldap_enabled = 14; + * bool ldap_enabled = 14 [(.google.api.field_behavior) = OPTIONAL]; * * @return The ldapEnabled. */ @@ -390,11 +400,11 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                      -   * Name of the Private Service Access allocated range. If
                                                                                      -   * not provided, any available range will be chosen.
                                                                                      +   * Optional. This field is currently not implemented. Currently values
                                                                                      +   * provided in this field will be ignored.
                                                                                          * 
                                                                                      * - * string psa_range = 15; + * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The psaRange. */ @@ -403,11 +413,11 @@ java.lang.String getLabelsOrDefault( * * *
                                                                                      -   * Name of the Private Service Access allocated range. If
                                                                                      -   * not provided, any available range will be chosen.
                                                                                      +   * Optional. This field is currently not implemented. Currently values
                                                                                      +   * provided in this field will be ignored.
                                                                                          * 
                                                                                      * - * string psa_range = 15; + * string psa_range = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for psaRange. */ @@ -453,7 +463,7 @@ java.lang.String getLabelsOrDefault( * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=222 + * google/cloud/netapp/v1/storage_pool.proto;l=230 * @return Whether the globalAccessAllowed field is set. */ @java.lang.Deprecated @@ -469,7 +479,7 @@ java.lang.String getLabelsOrDefault( * optional bool global_access_allowed = 17 [deprecated = true]; * * @deprecated google.cloud.netapp.v1.StoragePool.global_access_allowed is deprecated. See - * google/cloud/netapp/v1/storage_pool.proto;l=222 + * google/cloud/netapp/v1/storage_pool.proto;l=230 * @return The globalAccessAllowed. */ @java.lang.Deprecated diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java index d1916a321614..2a5714fd47dd 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java @@ -76,57 +76,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "roto\032 google/protobuf/field_mask.proto\032\037" + "google/protobuf/timestamp.proto\"P\n\025GetSt" + "oragePoolRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!" - + "netapp.googleapis.com/StoragePool\"\235\001\n\027Li" + + "netapp.googleapis.com/StoragePool\"\261\001\n\027Li" + "stStoragePoolsRequest\0229\n\006parent\030\001 \001(\tB)\340" + "A\002\372A#\022!netapp.googleapis.com/StoragePool" - + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022" - + "\020\n\010order_by\030\004 \001(\t\022\016\n\006filter\030\005 \001(\t\"\204\001\n\030Li" - + "stStoragePoolsResponse\022:\n\rstorage_pools\030" - + "\001 \003(\0132#.google.cloud.netapp.v1.StoragePo" - + "ol\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachab" - + "le\030\003 \003(\t\"\263\001\n\030CreateStoragePoolRequest\0229\n" - + "\006parent\030\001 \001(\tB)\340A\002\372A#\022!netapp.googleapis" - + ".com/StoragePool\022\034\n\017storage_pool_id\030\002 \001(" - + "\tB\003\340A\002\022>\n\014storage_pool\030\003 \001(\0132#.google.cl" - + "oud.netapp.v1.StoragePoolB\003\340A\002\"\220\001\n\030Updat" - + "eStoragePoolRequest\0224\n\013update_mask\030\001 \001(\013" - + "2\032.google.protobuf.FieldMaskB\003\340A\002\022>\n\014sto" - + "rage_pool\030\002 \001(\0132#.google.cloud.netapp.v1" - + ".StoragePoolB\003\340A\002\"S\n\030DeleteStoragePoolRe" - + "quest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!netapp.goog" - + "leapis.com/StoragePool\"\301\010\n\013StoragePool\022\021" - + "\n\004name\030\001 \001(\tB\003\340A\010\022@\n\rservice_level\030\002 \001(\016" - + "2$.google.cloud.netapp.v1.ServiceLevelB\003" - + "\340A\002\022\031\n\014capacity_gib\030\003 \001(\003B\003\340A\002\022 \n\023volume" - + "_capacity_gib\030\004 \001(\003B\003\340A\003\022\031\n\014volume_count" - + "\030\005 \001(\005B\003\340A\003\022=\n\005state\030\006 \001(\0162).google.clou" - + "d.netapp.v1.StoragePool.StateB\003\340A\003\022\032\n\rst" - + "ate_details\030\007 \001(\tB\003\340A\003\0224\n\013create_time\030\010 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\013" - + "description\030\t \001(\t\022?\n\006labels\030\n \003(\0132/.goog" - + "le.cloud.netapp.v1.StoragePool.LabelsEnt" - + "ry\0227\n\007network\030\013 \001(\tB&\340A\002\372A \n\036compute.goo" - + "gleapis.com/Network\022D\n\020active_directory\030" - + "\014 \001(\tB*\372A\'\n%netapp.googleapis.com/Active" - + "Directory\0228\n\nkms_config\030\r \001(\tB$\372A!\n\037neta" - + "pp.googleapis.com/KmsConfig\022\024\n\014ldap_enab" - + "led\030\016 \001(\010\022\021\n\tpsa_range\030\017 \001(\t\022D\n\017encrypti" - + "on_type\030\020 \001(\0162&.google.cloud.netapp.v1.E" - + "ncryptionTypeB\003\340A\003\022&\n\025global_access_allo" - + "wed\030\021 \001(\010B\002\030\001H\000\210\001\001\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"{\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING" - + "\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDATING\020\004\022\r\n\tRESTOR" - + "ING\020\005\022\014\n\010DISABLED\020\006\022\t\n\005ERROR\020\007:\207\001\352A\203\001\n!n" - + "etapp.googleapis.com/StoragePool\022Cprojec" - + "ts/{project}/locations/{location}/storag" - + "ePools/{storage_pool}*\014storagePools2\013sto" - + "ragePoolB\030\n\026_global_access_allowedB\262\001\n\032c" - + "om.google.cloud.netapp.v1B\020StoragePoolPr" - + "otoP\001Z2cloud.google.com/go/netapp/apiv1/" - + "netapppb;netapppb\252\002\026Google.Cloud.NetApp." - + "V1\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031Google::Cl" - + "oud::NetApp::V1b\006proto3" + + "\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003" + + " \001(\tB\003\340A\001\022\025\n\010order_by\030\004 \001(\tB\003\340A\001\022\023\n\006filt" + + "er\030\005 \001(\tB\003\340A\001\"\204\001\n\030ListStoragePoolsRespon" + + "se\022:\n\rstorage_pools\030\001 \003(\0132#.google.cloud" + + ".netapp.v1.StoragePool\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\263\001\n\030CreateS" + + "toragePoolRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A" + + "#\022!netapp.googleapis.com/StoragePool\022\034\n\017" + + "storage_pool_id\030\002 \001(\tB\003\340A\002\022>\n\014storage_po" + + "ol\030\003 \001(\0132#.google.cloud.netapp.v1.Storag" + + "ePoolB\003\340A\002\"\220\001\n\030UpdateStoragePoolRequest\022" + + "4\n\013update_mask\030\001 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\003\340A\002\022>\n\014storage_pool\030\002 \001(\0132#.go" + + "ogle.cloud.netapp.v1.StoragePoolB\003\340A\002\"S\n" + + "\030DeleteStoragePoolRequest\0227\n\004name\030\001 \001(\tB" + + ")\340A\002\372A#\n!netapp.googleapis.com/StoragePo" + + "ol\"\333\010\n\013StoragePool\022\021\n\004name\030\001 \001(\tB\003\340A\010\022@\n" + + "\rservice_level\030\002 \001(\0162$.google.cloud.neta" + + "pp.v1.ServiceLevelB\003\340A\002\022\031\n\014capacity_gib\030" + + "\003 \001(\003B\003\340A\002\022 \n\023volume_capacity_gib\030\004 \001(\003B" + + "\003\340A\003\022\031\n\014volume_count\030\005 \001(\005B\003\340A\003\022=\n\005state" + + "\030\006 \001(\0162).google.cloud.netapp.v1.StorageP" + + "ool.StateB\003\340A\003\022\032\n\rstate_details\030\007 \001(\tB\003\340" + + "A\003\0224\n\013create_time\030\010 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022\030\n\013description\030\t \001(\tB\003\340" + + "A\001\022D\n\006labels\030\n \003(\0132/.google.cloud.netapp" + + ".v1.StoragePool.LabelsEntryB\003\340A\001\0227\n\007netw" + + "ork\030\013 \001(\tB&\340A\002\372A \n\036compute.googleapis.co" + + "m/Network\022G\n\020active_directory\030\014 \001(\tB-\340A\001" + + "\372A\'\n%netapp.googleapis.com/ActiveDirecto" + + "ry\022;\n\nkms_config\030\r \001(\tB\'\340A\001\372A!\n\037netapp.g" + + "oogleapis.com/KmsConfig\022\031\n\014ldap_enabled\030" + + "\016 \001(\010B\003\340A\001\022\026\n\tpsa_range\030\017 \001(\tB\003\340A\001\022D\n\017en" + + "cryption_type\030\020 \001(\0162&.google.cloud.netap" + + "p.v1.EncryptionTypeB\003\340A\003\022&\n\025global_acces" + + "s_allowed\030\021 \001(\010B\002\030\001H\000\210\001\001\032-\n\013LabelsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"{\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\t\n\005READY\020\001\022\014\n\010CR" + + "EATING\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDATING\020\004\022\r\n\t" + + "RESTORING\020\005\022\014\n\010DISABLED\020\006\022\t\n\005ERROR\020\007:\207\001\352" + + "A\203\001\n!netapp.googleapis.com/StoragePool\022C" + + "projects/{project}/locations/{location}/" + + "storagePools/{storage_pool}*\014storagePool" + + "s2\013storagePoolB\030\n\026_global_access_allowed" + + "B\262\001\n\032com.google.cloud.netapp.v1B\020Storage" + + "PoolProtoP\001Z2cloud.google.com/go/netapp/" + + "apiv1/netapppb;netapppb\252\002\026Google.Cloud.N" + + "etApp.V1\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031Goog" + + "le::Cloud::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java index 487ed596624d..441c07ab9130 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java @@ -609,8 +609,8 @@ public com.google.protobuf.ByteString getShareNameBytes() { * * *
                                                                                      -   * Output only. Name of the Private Service Access allocated range. This is
                                                                                      -   * optional. If not provided, any available range will be chosen.
                                                                                      +   * Output only. This field is currently not implemented. Currently values
                                                                                      +   * provided in this field will be ignored.
                                                                                          * 
                                                                                      * * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -633,8 +633,8 @@ public java.lang.String getPsaRange() { * * *
                                                                                      -   * Output only. Name of the Private Service Access allocated range. This is
                                                                                      -   * optional. If not provided, any available range will be chosen.
                                                                                      +   * Output only. This field is currently not implemented. Currently values
                                                                                      +   * provided in this field will be ignored.
                                                                                          * 
                                                                                      * * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3881,8 +3881,8 @@ public Builder setShareNameBytes(com.google.protobuf.ByteString value) { * * *
                                                                                      -     * Output only. Name of the Private Service Access allocated range. This is
                                                                                      -     * optional. If not provided, any available range will be chosen.
                                                                                      +     * Output only. This field is currently not implemented. Currently values
                                                                                      +     * provided in this field will be ignored.
                                                                                            * 
                                                                                      * * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3904,8 +3904,8 @@ public java.lang.String getPsaRange() { * * *
                                                                                      -     * Output only. Name of the Private Service Access allocated range. This is
                                                                                      -     * optional. If not provided, any available range will be chosen.
                                                                                      +     * Output only. This field is currently not implemented. Currently values
                                                                                      +     * provided in this field will be ignored.
                                                                                            * 
                                                                                      * * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3927,8 +3927,8 @@ public com.google.protobuf.ByteString getPsaRangeBytes() { * * *
                                                                                      -     * Output only. Name of the Private Service Access allocated range. This is
                                                                                      -     * optional. If not provided, any available range will be chosen.
                                                                                      +     * Output only. This field is currently not implemented. Currently values
                                                                                      +     * provided in this field will be ignored.
                                                                                            * 
                                                                                      * * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3949,8 +3949,8 @@ public Builder setPsaRange(java.lang.String value) { * * *
                                                                                      -     * Output only. Name of the Private Service Access allocated range. This is
                                                                                      -     * optional. If not provided, any available range will be chosen.
                                                                                      +     * Output only. This field is currently not implemented. Currently values
                                                                                      +     * provided in this field will be ignored.
                                                                                            * 
                                                                                      * * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3967,8 +3967,8 @@ public Builder clearPsaRange() { * * *
                                                                                      -     * Output only. Name of the Private Service Access allocated range. This is
                                                                                      -     * optional. If not provided, any available range will be chosen.
                                                                                      +     * Output only. This field is currently not implemented. Currently values
                                                                                      +     * provided in this field will be ignored.
                                                                                            * 
                                                                                      * * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java index fa9beffabd63..8a7cc37ae6b7 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java @@ -170,8 +170,8 @@ public interface VolumeOrBuilder * * *
                                                                                      -   * Output only. Name of the Private Service Access allocated range. This is
                                                                                      -   * optional. If not provided, any available range will be chosen.
                                                                                      +   * Output only. This field is currently not implemented. Currently values
                                                                                      +   * provided in this field will be ignored.
                                                                                          * 
                                                                                      * * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -183,8 +183,8 @@ public interface VolumeOrBuilder * * *
                                                                                      -   * Output only. Name of the Private Service Access allocated range. This is
                                                                                      -   * optional. If not provided, any available range will be chosen.
                                                                                      +   * Output only. This field is currently not implemented. Currently values
                                                                                      +   * provided in this field will be ignored.
                                                                                          * 
                                                                                      * * string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/active_directory.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/active_directory.proto index 19b5e3d91525..58484c96c389 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/active_directory.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/active_directory.proto @@ -190,11 +190,14 @@ message ActiveDirectory { // Required. Password of the Active Directory domain administrator. string password = 11 [(google.api.field_behavior) = REQUIRED]; - // Users to be added to the Built-in Backup Operator active directory group. - repeated string backup_operators = 12; - - // Domain users to be given the SeSecurityPrivilege. - repeated string security_operators = 13; + // Optional. Users to be added to the Built-in Backup Operator active + // directory group. + repeated string backup_operators = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Domain users to be given the SeSecurityPrivilege. + repeated string security_operators = 13 + [(google.api.field_behavior) = OPTIONAL]; // Name of the active directory machine. This optional parameter is used only // while creating kerberos volume diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto index 66b1525940a8..c82df8ac1e30 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto @@ -24,7 +24,7 @@ option java_package = "com.google.cloud.netapp.v1"; option php_namespace = "Google\\Cloud\\NetApp\\V1"; option ruby_package = "Google::Cloud::NetApp::V1"; -// The service levels - Storage Pool, Volumes +// The service level of a storage pool and its volumes. enum ServiceLevel { // Unspecified service level. SERVICE_LEVEL_UNSPECIFIED = 0; @@ -35,13 +35,13 @@ enum ServiceLevel { // Extreme service level. EXTREME = 2; - // Standard (Software offering) + // Standard service level. STANDARD = 3; } -// Defined the current volume encryption key source. +// The volume encryption key source. enum EncryptionType { - // The source of encryption key is not specified. + // The source of the encryption key is not specified. ENCRYPTION_TYPE_UNSPECIFIED = 0; // Google managed encryption key. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto index 8d49f3586d7e..f659333fc056 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto @@ -51,18 +51,19 @@ message ListStoragePoolsRequest { } ]; - // The maximum number of items to return. - int32 page_size = 2; + // Optional. The maximum number of items to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // The next_page_token value to use if there are additional + // Optional. The next_page_token value to use if there are additional // results to retrieve for this list request. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Sort results. Supported values are "name", "name desc" or "" (unsorted). - string order_by = 4; + // Optional. Sort results. Supported values are "name", "name desc" or "" + // (unsorted). + string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; - // List filter. - string filter = 5; + // Optional. List filter. + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; } // ListStoragePoolsResponse is the response to a ListStoragePoolsRequest. @@ -184,11 +185,11 @@ message StoragePool { google.protobuf.Timestamp create_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Description of the storage pool - string description = 9; + // Optional. Description of the storage pool + string description = 9 [(google.api.field_behavior) = OPTIONAL]; - // Labels as key value pairs - map labels = 10; + // Optional. Labels as key value pairs + map labels = 10 [(google.api.field_behavior) = OPTIONAL]; // Required. VPC Network name. // Format: projects/{project}/global/networks/{network} @@ -197,22 +198,29 @@ message StoragePool { (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; - // Specifies the Active Directory to be used for creating a SMB volume. - string active_directory = 12 [(google.api.resource_reference) = { - type: "netapp.googleapis.com/ActiveDirectory" - }]; + // Optional. Specifies the Active Directory to be used for creating a SMB + // volume. + string active_directory = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "netapp.googleapis.com/ActiveDirectory" + } + ]; - // Specifies the KMS config to be used for volume encryption. - string kms_config = 13 [(google.api.resource_reference) = { - type: "netapp.googleapis.com/KmsConfig" - }]; + // Optional. Specifies the KMS config to be used for volume encryption. + string kms_config = 13 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "netapp.googleapis.com/KmsConfig" + } + ]; - // Flag indicating if the pool is NFS LDAP enabled or not. - bool ldap_enabled = 14; + // Optional. Flag indicating if the pool is NFS LDAP enabled or not. + bool ldap_enabled = 14 [(google.api.field_behavior) = OPTIONAL]; - // Name of the Private Service Access allocated range. If - // not provided, any available range will be chosen. - string psa_range = 15; + // Optional. This field is currently not implemented. Currently values + // provided in this field will be ignored. + string psa_range = 15 [(google.api.field_behavior) = OPTIONAL]; // Output only. Specifies the current pool encryption key source. EncryptionType encryption_type = 16 diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto index f727d027291a..a7f6cc9d838a 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto @@ -274,8 +274,8 @@ message Volume { // Required. Share name of the volume string share_name = 5 [(google.api.field_behavior) = REQUIRED]; - // Output only. Name of the Private Service Access allocated range. This is - // optional. If not provided, any available range will be chosen. + // Output only. This field is currently not implemented. Currently values + // provided in this field will be ignored. string psa_range = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. StoragePool name of the volume diff --git a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json index 6f40e186d352..3bcf5c48dd0e 100644 --- a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json +++ b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1/reflect-config.json @@ -944,6 +944,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo$HealthCheckFirewallsConfigState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.LoadBalancerInfo", "queryAllDeclaredConstructors": true, @@ -989,6 +1016,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.NatInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.NatInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.NatInfo$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.NetworkInfo", "queryAllDeclaredConstructors": true, @@ -1079,6 +1133,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.ProxyConnectionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.ProxyConnectionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.ReachabilityDetails", "queryAllDeclaredConstructors": true, @@ -1196,6 +1268,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.StorageBucketInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.StorageBucketInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.Trace", "queryAllDeclaredConstructors": true, diff --git a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json index 6cda227dcf7a..18212883a798 100644 --- a/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json +++ b/java-network-management/google-cloud-network-management/src/main/resources/META-INF/native-image/com.google.cloud.networkmanagement.v1beta1/reflect-config.json @@ -944,6 +944,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo$HealthCheckFirewallsConfigState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.LoadBalancerInfo", "queryAllDeclaredConstructors": true, @@ -989,6 +1016,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.NatInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.NatInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.NatInfo$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.NetworkInfo", "queryAllDeclaredConstructors": true, @@ -1079,6 +1133,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.ReachabilityDetails", "queryAllDeclaredConstructors": true, @@ -1196,6 +1268,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.Trace", "queryAllDeclaredConstructors": true, diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java index 5c4b8e6d1d83..f4f1e50134f7 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java @@ -177,6 +177,16 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * SERVERLESS_NEG = 9; */ SERVERLESS_NEG(9), + /** + * + * + *
                                                                                      +     * Target is a Cloud Storage bucket.
                                                                                      +     * 
                                                                                      + * + * STORAGE_BUCKET = 10; + */ + STORAGE_BUCKET(10), UNRECOGNIZED(-1), ; @@ -283,6 +293,16 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * SERVERLESS_NEG = 9; */ public static final int SERVERLESS_NEG_VALUE = 9; + /** + * + * + *
                                                                                      +     * Target is a Cloud Storage bucket.
                                                                                      +     * 
                                                                                      + * + * STORAGE_BUCKET = 10; + */ + public static final int STORAGE_BUCKET_VALUE = 10; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -328,6 +348,8 @@ public static Target forNumber(int value) { return PSC_VPC_SC; case 9: return SERVERLESS_NEG; + case 10: + return STORAGE_BUCKET; default: return null; } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java index 871917661ed7..4e62c58ce54f 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfo.java @@ -454,7 +454,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=268 + * google/cloud/networkmanagement/v1/trace.proto;l=285 * @return The serviceAccount. */ @java.lang.Override @@ -480,7 +480,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=268 + * google/cloud/networkmanagement/v1/trace.proto;l=285 * @return The bytes for serviceAccount. */ @java.lang.Override @@ -1842,7 +1842,7 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=268 + * google/cloud/networkmanagement/v1/trace.proto;l=285 * @return The serviceAccount. */ @java.lang.Deprecated @@ -1867,7 +1867,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=268 + * google/cloud/networkmanagement/v1/trace.proto;l=285 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -1892,7 +1892,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=268 + * google/cloud/networkmanagement/v1/trace.proto;l=285 * @param value The serviceAccount to set. * @return This builder for chaining. */ @@ -1916,7 +1916,7 @@ public Builder setServiceAccount(java.lang.String value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=268 + * google/cloud/networkmanagement/v1/trace.proto;l=285 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1936,7 +1936,7 @@ public Builder clearServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=268 + * google/cloud/networkmanagement/v1/trace.proto;l=285 * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java index 6180cd385154..6cb04ae9f05c 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/InstanceInfoOrBuilder.java @@ -235,7 +235,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=268 + * google/cloud/networkmanagement/v1/trace.proto;l=285 * @return The serviceAccount. */ @java.lang.Deprecated @@ -250,7 +250,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.service_account is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=268 + * google/cloud/networkmanagement/v1/trace.proto;l=285 * @return The bytes for serviceAccount. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerBackendInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerBackendInfo.java new file mode 100644 index 000000000000..01ad18bd1e83 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerBackendInfo.java @@ -0,0 +1,2559 @@ +/* + * 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/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
                                                                                      + * For display only. Metadata associated with the load balancer backend.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1.LoadBalancerBackendInfo} + */ +public final class LoadBalancerBackendInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.LoadBalancerBackendInfo) + LoadBalancerBackendInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use LoadBalancerBackendInfo.newBuilder() to construct. + private LoadBalancerBackendInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LoadBalancerBackendInfo() { + name_ = ""; + instanceUri_ = ""; + backendServiceUri_ = ""; + instanceGroupUri_ = ""; + networkEndpointGroupUri_ = ""; + backendBucketUri_ = ""; + pscServiceAttachmentUri_ = ""; + pscGoogleApiTarget_ = ""; + healthCheckUri_ = ""; + healthCheckFirewallsConfigState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LoadBalancerBackendInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.class, + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.Builder.class); + } + + /** + * + * + *
                                                                                      +   * Health check firewalls configuration state enum.
                                                                                      +   * 
                                                                                      + * + * Protobuf enum {@code + * google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState} + */ + public enum HealthCheckFirewallsConfigState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                      +     * Configuration state unspecified. It usually means that the backend has
                                                                                      +     * no health check attached, or there was an unexpected configuration error
                                                                                      +     * preventing Connectivity tests from verifying health check configuration.
                                                                                      +     * 
                                                                                      + * + * HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED = 0; + */ + HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                      +     * Firewall rules (policies) allowing health check traffic from all required
                                                                                      +     * IP ranges to the backend are configured.
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_CONFIGURED = 1; + */ + FIREWALLS_CONFIGURED(1), + /** + * + * + *
                                                                                      +     * Firewall rules (policies) allow health check traffic only from a part of
                                                                                      +     * required IP ranges.
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_PARTIALLY_CONFIGURED = 2; + */ + FIREWALLS_PARTIALLY_CONFIGURED(2), + /** + * + * + *
                                                                                      +     * Firewall rules (policies) deny health check traffic from all required
                                                                                      +     * IP ranges to the backend.
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_NOT_CONFIGURED = 3; + */ + FIREWALLS_NOT_CONFIGURED(3), + /** + * + * + *
                                                                                      +     * The network contains firewall rules of unsupported types, so Connectivity
                                                                                      +     * tests were not able to verify health check configuration status. Please
                                                                                      +     * refer to the documentation for the list of unsupported configurations:
                                                                                      +     * https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/concepts/overview#unsupported-configs
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_UNSUPPORTED = 4; + */ + FIREWALLS_UNSUPPORTED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                                                                      +     * Configuration state unspecified. It usually means that the backend has
                                                                                      +     * no health check attached, or there was an unexpected configuration error
                                                                                      +     * preventing Connectivity tests from verifying health check configuration.
                                                                                      +     * 
                                                                                      + * + * HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED = 0; + */ + public static final int HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
                                                                                      +     * Firewall rules (policies) allowing health check traffic from all required
                                                                                      +     * IP ranges to the backend are configured.
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_CONFIGURED = 1; + */ + public static final int FIREWALLS_CONFIGURED_VALUE = 1; + /** + * + * + *
                                                                                      +     * Firewall rules (policies) allow health check traffic only from a part of
                                                                                      +     * required IP ranges.
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_PARTIALLY_CONFIGURED = 2; + */ + public static final int FIREWALLS_PARTIALLY_CONFIGURED_VALUE = 2; + /** + * + * + *
                                                                                      +     * Firewall rules (policies) deny health check traffic from all required
                                                                                      +     * IP ranges to the backend.
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_NOT_CONFIGURED = 3; + */ + public static final int FIREWALLS_NOT_CONFIGURED_VALUE = 3; + /** + * + * + *
                                                                                      +     * The network contains firewall rules of unsupported types, so Connectivity
                                                                                      +     * tests were not able to verify health check configuration status. Please
                                                                                      +     * refer to the documentation for the list of unsupported configurations:
                                                                                      +     * https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/concepts/overview#unsupported-configs
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_UNSUPPORTED = 4; + */ + public static final int FIREWALLS_UNSUPPORTED_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 HealthCheckFirewallsConfigState 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 HealthCheckFirewallsConfigState forNumber(int value) { + switch (value) { + case 0: + return HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED; + case 1: + return FIREWALLS_CONFIGURED; + case 2: + return FIREWALLS_PARTIALLY_CONFIGURED; + case 3: + return FIREWALLS_NOT_CONFIGURED; + case 4: + return FIREWALLS_UNSUPPORTED; + 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 HealthCheckFirewallsConfigState findValueByNumber(int number) { + return HealthCheckFirewallsConfigState.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.networkmanagement.v1.LoadBalancerBackendInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final HealthCheckFirewallsConfigState[] VALUES = values(); + + public static HealthCheckFirewallsConfigState 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 HealthCheckFirewallsConfigState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                                                                      +   * Display name of the backend. For example, it might be an instance name for
                                                                                      +   * the instance group backends, or an IP address and port for zonal network
                                                                                      +   * endpoint group backends.
                                                                                      +   * 
                                                                                      + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Display name of the backend. For example, it might be an instance name for
                                                                                      +   * the instance group backends, or an IP address and port for zonal network
                                                                                      +   * endpoint group backends.
                                                                                      +   * 
                                                                                      + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +   * backends, and zonal NEG backends.
                                                                                      +   * 
                                                                                      + * + * string instance_uri = 2; + * + * @return The instanceUri. + */ + @java.lang.Override + public java.lang.String getInstanceUri() { + java.lang.Object ref = instanceUri_; + 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(); + instanceUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +   * backends, and zonal NEG backends.
                                                                                      +   * 
                                                                                      + * + * string instance_uri = 2; + * + * @return The bytes for instanceUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceUriBytes() { + java.lang.Object ref = instanceUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKEND_SERVICE_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object backendServiceUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the backend service this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @return The backendServiceUri. + */ + @java.lang.Override + public java.lang.String getBackendServiceUri() { + java.lang.Object ref = backendServiceUri_; + 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(); + backendServiceUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the backend service this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @return The bytes for backendServiceUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackendServiceUriBytes() { + java.lang.Object ref = backendServiceUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendServiceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_URI_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the instance group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @return The instanceGroupUri. + */ + @java.lang.Override + public java.lang.String getInstanceGroupUri() { + java.lang.Object ref = instanceGroupUri_; + 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(); + instanceGroupUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the instance group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @return The bytes for instanceGroupUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupUriBytes() { + java.lang.Object ref = instanceGroupUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_ENDPOINT_GROUP_URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkEndpointGroupUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @return The networkEndpointGroupUri. + */ + @java.lang.Override + public java.lang.String getNetworkEndpointGroupUri() { + java.lang.Object ref = networkEndpointGroupUri_; + 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(); + networkEndpointGroupUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @return The bytes for networkEndpointGroupUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkEndpointGroupUriBytes() { + java.lang.Object ref = networkEndpointGroupUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkEndpointGroupUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKEND_BUCKET_URI_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object backendBucketUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the backend bucket this backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @return The backendBucketUri. + */ + @java.lang.Override + public java.lang.String getBackendBucketUri() { + java.lang.Object ref = backendBucketUri_; + 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(); + backendBucketUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the backend bucket this backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @return The bytes for backendBucketUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackendBucketUriBytes() { + java.lang.Object ref = backendBucketUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendBucketUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_SERVICE_ATTACHMENT_URI_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscServiceAttachmentUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +   * applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @return The pscServiceAttachmentUri. + */ + @java.lang.Override + public java.lang.String getPscServiceAttachmentUri() { + java.lang.Object ref = pscServiceAttachmentUri_; + 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(); + pscServiceAttachmentUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +   * applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @return The bytes for pscServiceAttachmentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscServiceAttachmentUriBytes() { + java.lang.Object ref = pscServiceAttachmentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscServiceAttachmentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_GOOGLE_API_TARGET_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscGoogleApiTarget_ = ""; + /** + * + * + *
                                                                                      +   * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @return The pscGoogleApiTarget. + */ + @java.lang.Override + public java.lang.String getPscGoogleApiTarget() { + java.lang.Object ref = pscGoogleApiTarget_; + 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(); + pscGoogleApiTarget_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @return The bytes for pscGoogleApiTarget. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscGoogleApiTargetBytes() { + java.lang.Object ref = pscGoogleApiTarget_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscGoogleApiTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEALTH_CHECK_URI_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object healthCheckUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the health check attached to this backend (if applicable).
                                                                                      +   * 
                                                                                      + * + * string health_check_uri = 6; + * + * @return The healthCheckUri. + */ + @java.lang.Override + public java.lang.String getHealthCheckUri() { + java.lang.Object ref = healthCheckUri_; + 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(); + healthCheckUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the health check attached to this backend (if applicable).
                                                                                      +   * 
                                                                                      + * + * string health_check_uri = 6; + * + * @return The bytes for healthCheckUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHealthCheckUriBytes() { + java.lang.Object ref = healthCheckUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + healthCheckUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEALTH_CHECK_FIREWALLS_CONFIG_STATE_FIELD_NUMBER = 7; + private int healthCheckFirewallsConfigState_ = 0; + /** + * + * + *
                                                                                      +   * Health check firewalls configuration state for the backend. This is a
                                                                                      +   * result of the static firewall analysis (verifying that health check traffic
                                                                                      +   * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +   * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +   * refer to the documentation for more information:
                                                                                      +   * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for healthCheckFirewallsConfigState. + */ + @java.lang.Override + public int getHealthCheckFirewallsConfigStateValue() { + return healthCheckFirewallsConfigState_; + } + /** + * + * + *
                                                                                      +   * Health check firewalls configuration state for the backend. This is a
                                                                                      +   * result of the static firewall analysis (verifying that health check traffic
                                                                                      +   * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +   * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +   * refer to the documentation for more information:
                                                                                      +   * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The healthCheckFirewallsConfigState. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState + getHealthCheckFirewallsConfigState() { + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState + result = + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState.forNumber(healthCheckFirewallsConfigState_); + return result == null + ? com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backendServiceUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, backendServiceUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, instanceGroupUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkEndpointGroupUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, networkEndpointGroupUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthCheckUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, healthCheckUri_); + } + if (healthCheckFirewallsConfigState_ + != com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState.HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, healthCheckFirewallsConfigState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backendBucketUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, backendBucketUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscServiceAttachmentUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pscServiceAttachmentUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, pscGoogleApiTarget_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backendServiceUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backendServiceUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, instanceGroupUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkEndpointGroupUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, networkEndpointGroupUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthCheckUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, healthCheckUri_); + } + if (healthCheckFirewallsConfigState_ + != com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState.HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 7, healthCheckFirewallsConfigState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backendBucketUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, backendBucketUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscServiceAttachmentUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pscServiceAttachmentUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pscGoogleApiTarget_); + } + 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.networkmanagement.v1.LoadBalancerBackendInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo other = + (com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo) obj; + + if (!getName().equals(other.getName())) return false; + if (!getInstanceUri().equals(other.getInstanceUri())) return false; + if (!getBackendServiceUri().equals(other.getBackendServiceUri())) return false; + if (!getInstanceGroupUri().equals(other.getInstanceGroupUri())) return false; + if (!getNetworkEndpointGroupUri().equals(other.getNetworkEndpointGroupUri())) return false; + if (!getBackendBucketUri().equals(other.getBackendBucketUri())) return false; + if (!getPscServiceAttachmentUri().equals(other.getPscServiceAttachmentUri())) return false; + if (!getPscGoogleApiTarget().equals(other.getPscGoogleApiTarget())) return false; + if (!getHealthCheckUri().equals(other.getHealthCheckUri())) return false; + if (healthCheckFirewallsConfigState_ != other.healthCheckFirewallsConfigState_) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + INSTANCE_URI_FIELD_NUMBER; + hash = (53 * hash) + getInstanceUri().hashCode(); + hash = (37 * hash) + BACKEND_SERVICE_URI_FIELD_NUMBER; + hash = (53 * hash) + getBackendServiceUri().hashCode(); + hash = (37 * hash) + INSTANCE_GROUP_URI_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupUri().hashCode(); + hash = (37 * hash) + NETWORK_ENDPOINT_GROUP_URI_FIELD_NUMBER; + hash = (53 * hash) + getNetworkEndpointGroupUri().hashCode(); + hash = (37 * hash) + BACKEND_BUCKET_URI_FIELD_NUMBER; + hash = (53 * hash) + getBackendBucketUri().hashCode(); + hash = (37 * hash) + PSC_SERVICE_ATTACHMENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getPscServiceAttachmentUri().hashCode(); + hash = (37 * hash) + PSC_GOOGLE_API_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getPscGoogleApiTarget().hashCode(); + hash = (37 * hash) + HEALTH_CHECK_URI_FIELD_NUMBER; + hash = (53 * hash) + getHealthCheckUri().hashCode(); + hash = (37 * hash) + HEALTH_CHECK_FIREWALLS_CONFIG_STATE_FIELD_NUMBER; + hash = (53 * hash) + healthCheckFirewallsConfigState_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo 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.networkmanagement.v1.LoadBalancerBackendInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo 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.networkmanagement.v1.LoadBalancerBackendInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo 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.networkmanagement.v1.LoadBalancerBackendInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo 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.networkmanagement.v1.LoadBalancerBackendInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo 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.networkmanagement.v1.LoadBalancerBackendInfo 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; + } + /** + * + * + *
                                                                                      +   * For display only. Metadata associated with the load balancer backend.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1.LoadBalancerBackendInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.LoadBalancerBackendInfo) + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.class, + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + instanceUri_ = ""; + backendServiceUri_ = ""; + instanceGroupUri_ = ""; + networkEndpointGroupUri_ = ""; + backendBucketUri_ = ""; + pscServiceAttachmentUri_ = ""; + pscGoogleApiTarget_ = ""; + healthCheckUri_ = ""; + healthCheckFirewallsConfigState_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo build() { + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo buildPartial() { + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo result = + new com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instanceUri_ = instanceUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.backendServiceUri_ = backendServiceUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.instanceGroupUri_ = instanceGroupUri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.networkEndpointGroupUri_ = networkEndpointGroupUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.backendBucketUri_ = backendBucketUri_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pscServiceAttachmentUri_ = pscServiceAttachmentUri_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.pscGoogleApiTarget_ = pscGoogleApiTarget_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.healthCheckUri_ = healthCheckUri_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.healthCheckFirewallsConfigState_ = healthCheckFirewallsConfigState_; + } + } + + @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.networkmanagement.v1.LoadBalancerBackendInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo other) { + if (other + == com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInstanceUri().isEmpty()) { + instanceUri_ = other.instanceUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getBackendServiceUri().isEmpty()) { + backendServiceUri_ = other.backendServiceUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getInstanceGroupUri().isEmpty()) { + instanceGroupUri_ = other.instanceGroupUri_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getNetworkEndpointGroupUri().isEmpty()) { + networkEndpointGroupUri_ = other.networkEndpointGroupUri_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getBackendBucketUri().isEmpty()) { + backendBucketUri_ = other.backendBucketUri_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getPscServiceAttachmentUri().isEmpty()) { + pscServiceAttachmentUri_ = other.pscServiceAttachmentUri_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getPscGoogleApiTarget().isEmpty()) { + pscGoogleApiTarget_ = other.pscGoogleApiTarget_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getHealthCheckUri().isEmpty()) { + healthCheckUri_ = other.healthCheckUri_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.healthCheckFirewallsConfigState_ != 0) { + setHealthCheckFirewallsConfigStateValue(other.getHealthCheckFirewallsConfigStateValue()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + instanceUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + backendServiceUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + instanceGroupUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + networkEndpointGroupUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + healthCheckUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 50 + case 56: + { + healthCheckFirewallsConfigState_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 56 + case 66: + { + backendBucketUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 74: + { + pscServiceAttachmentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + case 82: + { + pscGoogleApiTarget_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 82 + 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 name_ = ""; + /** + * + * + *
                                                                                      +     * Display name of the backend. For example, it might be an instance name for
                                                                                      +     * the instance group backends, or an IP address and port for zonal network
                                                                                      +     * endpoint group backends.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Display name of the backend. For example, it might be an instance name for
                                                                                      +     * the instance group backends, or an IP address and port for zonal network
                                                                                      +     * endpoint group backends.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Display name of the backend. For example, it might be an instance name for
                                                                                      +     * the instance group backends, or an IP address and port for zonal network
                                                                                      +     * endpoint group backends.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Display name of the backend. For example, it might be an instance name for
                                                                                      +     * the instance group backends, or an IP address and port for zonal network
                                                                                      +     * endpoint group backends.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Display name of the backend. For example, it might be an instance name for
                                                                                      +     * the instance group backends, or an IP address and port for zonal network
                                                                                      +     * endpoint group backends.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object instanceUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +     * backends, and zonal NEG backends.
                                                                                      +     * 
                                                                                      + * + * string instance_uri = 2; + * + * @return The instanceUri. + */ + public java.lang.String getInstanceUri() { + java.lang.Object ref = instanceUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +     * backends, and zonal NEG backends.
                                                                                      +     * 
                                                                                      + * + * string instance_uri = 2; + * + * @return The bytes for instanceUri. + */ + public com.google.protobuf.ByteString getInstanceUriBytes() { + java.lang.Object ref = instanceUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +     * backends, and zonal NEG backends.
                                                                                      +     * 
                                                                                      + * + * string instance_uri = 2; + * + * @param value The instanceUri to set. + * @return This builder for chaining. + */ + public Builder setInstanceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +     * backends, and zonal NEG backends.
                                                                                      +     * 
                                                                                      + * + * string instance_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearInstanceUri() { + instanceUri_ = getDefaultInstance().getInstanceUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +     * backends, and zonal NEG backends.
                                                                                      +     * 
                                                                                      + * + * string instance_uri = 2; + * + * @param value The bytes for instanceUri to set. + * @return This builder for chaining. + */ + public Builder setInstanceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object backendServiceUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the backend service this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @return The backendServiceUri. + */ + public java.lang.String getBackendServiceUri() { + java.lang.Object ref = backendServiceUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backendServiceUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the backend service this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @return The bytes for backendServiceUri. + */ + public com.google.protobuf.ByteString getBackendServiceUriBytes() { + java.lang.Object ref = backendServiceUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendServiceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the backend service this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @param value The backendServiceUri to set. + * @return This builder for chaining. + */ + public Builder setBackendServiceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backendServiceUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the backend service this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearBackendServiceUri() { + backendServiceUri_ = getDefaultInstance().getBackendServiceUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the backend service this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @param value The bytes for backendServiceUri to set. + * @return This builder for chaining. + */ + public Builder setBackendServiceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backendServiceUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object instanceGroupUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the instance group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @return The instanceGroupUri. + */ + public java.lang.String getInstanceGroupUri() { + java.lang.Object ref = instanceGroupUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the instance group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @return The bytes for instanceGroupUri. + */ + public com.google.protobuf.ByteString getInstanceGroupUriBytes() { + java.lang.Object ref = instanceGroupUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the instance group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @param value The instanceGroupUri to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the instance group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupUri() { + instanceGroupUri_ = getDefaultInstance().getInstanceGroupUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the instance group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @param value The bytes for instanceGroupUri to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object networkEndpointGroupUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @return The networkEndpointGroupUri. + */ + public java.lang.String getNetworkEndpointGroupUri() { + java.lang.Object ref = networkEndpointGroupUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkEndpointGroupUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @return The bytes for networkEndpointGroupUri. + */ + public com.google.protobuf.ByteString getNetworkEndpointGroupUriBytes() { + java.lang.Object ref = networkEndpointGroupUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkEndpointGroupUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @param value The networkEndpointGroupUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkEndpointGroupUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkEndpointGroupUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearNetworkEndpointGroupUri() { + networkEndpointGroupUri_ = getDefaultInstance().getNetworkEndpointGroupUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @param value The bytes for networkEndpointGroupUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkEndpointGroupUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkEndpointGroupUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object backendBucketUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the backend bucket this backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @return The backendBucketUri. + */ + public java.lang.String getBackendBucketUri() { + java.lang.Object ref = backendBucketUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backendBucketUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the backend bucket this backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @return The bytes for backendBucketUri. + */ + public com.google.protobuf.ByteString getBackendBucketUriBytes() { + java.lang.Object ref = backendBucketUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendBucketUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the backend bucket this backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @param value The backendBucketUri to set. + * @return This builder for chaining. + */ + public Builder setBackendBucketUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backendBucketUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the backend bucket this backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @return This builder for chaining. + */ + public Builder clearBackendBucketUri() { + backendBucketUri_ = getDefaultInstance().getBackendBucketUri(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the backend bucket this backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @param value The bytes for backendBucketUri to set. + * @return This builder for chaining. + */ + public Builder setBackendBucketUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backendBucketUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object pscServiceAttachmentUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +     * applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @return The pscServiceAttachmentUri. + */ + public java.lang.String getPscServiceAttachmentUri() { + java.lang.Object ref = pscServiceAttachmentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscServiceAttachmentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +     * applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @return The bytes for pscServiceAttachmentUri. + */ + public com.google.protobuf.ByteString getPscServiceAttachmentUriBytes() { + java.lang.Object ref = pscServiceAttachmentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscServiceAttachmentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +     * applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @param value The pscServiceAttachmentUri to set. + * @return This builder for chaining. + */ + public Builder setPscServiceAttachmentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscServiceAttachmentUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +     * applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @return This builder for chaining. + */ + public Builder clearPscServiceAttachmentUri() { + pscServiceAttachmentUri_ = getDefaultInstance().getPscServiceAttachmentUri(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +     * applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @param value The bytes for pscServiceAttachmentUri to set. + * @return This builder for chaining. + */ + public Builder setPscServiceAttachmentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscServiceAttachmentUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object pscGoogleApiTarget_ = ""; + /** + * + * + *
                                                                                      +     * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @return The pscGoogleApiTarget. + */ + public java.lang.String getPscGoogleApiTarget() { + java.lang.Object ref = pscGoogleApiTarget_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscGoogleApiTarget_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @return The bytes for pscGoogleApiTarget. + */ + public com.google.protobuf.ByteString getPscGoogleApiTargetBytes() { + java.lang.Object ref = pscGoogleApiTarget_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscGoogleApiTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @param value The pscGoogleApiTarget to set. + * @return This builder for chaining. + */ + public Builder setPscGoogleApiTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscGoogleApiTarget_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @return This builder for chaining. + */ + public Builder clearPscGoogleApiTarget() { + pscGoogleApiTarget_ = getDefaultInstance().getPscGoogleApiTarget(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @param value The bytes for pscGoogleApiTarget to set. + * @return This builder for chaining. + */ + public Builder setPscGoogleApiTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscGoogleApiTarget_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object healthCheckUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the health check attached to this backend (if applicable).
                                                                                      +     * 
                                                                                      + * + * string health_check_uri = 6; + * + * @return The healthCheckUri. + */ + public java.lang.String getHealthCheckUri() { + java.lang.Object ref = healthCheckUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + healthCheckUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the health check attached to this backend (if applicable).
                                                                                      +     * 
                                                                                      + * + * string health_check_uri = 6; + * + * @return The bytes for healthCheckUri. + */ + public com.google.protobuf.ByteString getHealthCheckUriBytes() { + java.lang.Object ref = healthCheckUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + healthCheckUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the health check attached to this backend (if applicable).
                                                                                      +     * 
                                                                                      + * + * string health_check_uri = 6; + * + * @param value The healthCheckUri to set. + * @return This builder for chaining. + */ + public Builder setHealthCheckUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + healthCheckUri_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the health check attached to this backend (if applicable).
                                                                                      +     * 
                                                                                      + * + * string health_check_uri = 6; + * + * @return This builder for chaining. + */ + public Builder clearHealthCheckUri() { + healthCheckUri_ = getDefaultInstance().getHealthCheckUri(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the health check attached to this backend (if applicable).
                                                                                      +     * 
                                                                                      + * + * string health_check_uri = 6; + * + * @param value The bytes for healthCheckUri to set. + * @return This builder for chaining. + */ + public Builder setHealthCheckUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + healthCheckUri_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private int healthCheckFirewallsConfigState_ = 0; + /** + * + * + *
                                                                                      +     * Health check firewalls configuration state for the backend. This is a
                                                                                      +     * result of the static firewall analysis (verifying that health check traffic
                                                                                      +     * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +     * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +     * refer to the documentation for more information:
                                                                                      +     * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for healthCheckFirewallsConfigState. + */ + @java.lang.Override + public int getHealthCheckFirewallsConfigStateValue() { + return healthCheckFirewallsConfigState_; + } + /** + * + * + *
                                                                                      +     * Health check firewalls configuration state for the backend. This is a
                                                                                      +     * result of the static firewall analysis (verifying that health check traffic
                                                                                      +     * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +     * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +     * refer to the documentation for more information:
                                                                                      +     * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for healthCheckFirewallsConfigState to set. + * @return This builder for chaining. + */ + public Builder setHealthCheckFirewallsConfigStateValue(int value) { + healthCheckFirewallsConfigState_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Health check firewalls configuration state for the backend. This is a
                                                                                      +     * result of the static firewall analysis (verifying that health check traffic
                                                                                      +     * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +     * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +     * refer to the documentation for more information:
                                                                                      +     * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The healthCheckFirewallsConfigState. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState + getHealthCheckFirewallsConfigState() { + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState + result = + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState.forNumber(healthCheckFirewallsConfigState_); + return result == null + ? com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState.UNRECOGNIZED + : result; + } + /** + * + * + *
                                                                                      +     * Health check firewalls configuration state for the backend. This is a
                                                                                      +     * result of the static firewall analysis (verifying that health check traffic
                                                                                      +     * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +     * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +     * refer to the documentation for more information:
                                                                                      +     * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The healthCheckFirewallsConfigState to set. + * @return This builder for chaining. + */ + public Builder setHealthCheckFirewallsConfigState( + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + healthCheckFirewallsConfigState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Health check firewalls configuration state for the backend. This is a
                                                                                      +     * result of the static firewall analysis (verifying that health check traffic
                                                                                      +     * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +     * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +     * refer to the documentation for more information:
                                                                                      +     * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearHealthCheckFirewallsConfigState() { + bitField0_ = (bitField0_ & ~0x00000200); + healthCheckFirewallsConfigState_ = 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.networkmanagement.v1.LoadBalancerBackendInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.LoadBalancerBackendInfo) + private static final com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo(); + } + + public static com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoadBalancerBackendInfo 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.networkmanagement.v1.LoadBalancerBackendInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerBackendInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerBackendInfoOrBuilder.java new file mode 100644 index 000000000000..09aa702e157e --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/LoadBalancerBackendInfoOrBuilder.java @@ -0,0 +1,299 @@ +/* + * 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/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1; + +public interface LoadBalancerBackendInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.LoadBalancerBackendInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * Display name of the backend. For example, it might be an instance name for
                                                                                      +   * the instance group backends, or an IP address and port for zonal network
                                                                                      +   * endpoint group backends.
                                                                                      +   * 
                                                                                      + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                                                                      +   * Display name of the backend. For example, it might be an instance name for
                                                                                      +   * the instance group backends, or an IP address and port for zonal network
                                                                                      +   * endpoint group backends.
                                                                                      +   * 
                                                                                      + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                      +   * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +   * backends, and zonal NEG backends.
                                                                                      +   * 
                                                                                      + * + * string instance_uri = 2; + * + * @return The instanceUri. + */ + java.lang.String getInstanceUri(); + /** + * + * + *
                                                                                      +   * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +   * backends, and zonal NEG backends.
                                                                                      +   * 
                                                                                      + * + * string instance_uri = 2; + * + * @return The bytes for instanceUri. + */ + com.google.protobuf.ByteString getInstanceUriBytes(); + + /** + * + * + *
                                                                                      +   * URI of the backend service this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @return The backendServiceUri. + */ + java.lang.String getBackendServiceUri(); + /** + * + * + *
                                                                                      +   * URI of the backend service this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @return The bytes for backendServiceUri. + */ + com.google.protobuf.ByteString getBackendServiceUriBytes(); + + /** + * + * + *
                                                                                      +   * URI of the instance group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @return The instanceGroupUri. + */ + java.lang.String getInstanceGroupUri(); + /** + * + * + *
                                                                                      +   * URI of the instance group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @return The bytes for instanceGroupUri. + */ + com.google.protobuf.ByteString getInstanceGroupUriBytes(); + + /** + * + * + *
                                                                                      +   * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @return The networkEndpointGroupUri. + */ + java.lang.String getNetworkEndpointGroupUri(); + /** + * + * + *
                                                                                      +   * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @return The bytes for networkEndpointGroupUri. + */ + com.google.protobuf.ByteString getNetworkEndpointGroupUriBytes(); + + /** + * + * + *
                                                                                      +   * URI of the backend bucket this backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @return The backendBucketUri. + */ + java.lang.String getBackendBucketUri(); + /** + * + * + *
                                                                                      +   * URI of the backend bucket this backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @return The bytes for backendBucketUri. + */ + com.google.protobuf.ByteString getBackendBucketUriBytes(); + + /** + * + * + *
                                                                                      +   * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +   * applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @return The pscServiceAttachmentUri. + */ + java.lang.String getPscServiceAttachmentUri(); + /** + * + * + *
                                                                                      +   * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +   * applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @return The bytes for pscServiceAttachmentUri. + */ + com.google.protobuf.ByteString getPscServiceAttachmentUriBytes(); + + /** + * + * + *
                                                                                      +   * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @return The pscGoogleApiTarget. + */ + java.lang.String getPscGoogleApiTarget(); + /** + * + * + *
                                                                                      +   * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @return The bytes for pscGoogleApiTarget. + */ + com.google.protobuf.ByteString getPscGoogleApiTargetBytes(); + + /** + * + * + *
                                                                                      +   * URI of the health check attached to this backend (if applicable).
                                                                                      +   * 
                                                                                      + * + * string health_check_uri = 6; + * + * @return The healthCheckUri. + */ + java.lang.String getHealthCheckUri(); + /** + * + * + *
                                                                                      +   * URI of the health check attached to this backend (if applicable).
                                                                                      +   * 
                                                                                      + * + * string health_check_uri = 6; + * + * @return The bytes for healthCheckUri. + */ + com.google.protobuf.ByteString getHealthCheckUriBytes(); + + /** + * + * + *
                                                                                      +   * Health check firewalls configuration state for the backend. This is a
                                                                                      +   * result of the static firewall analysis (verifying that health check traffic
                                                                                      +   * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +   * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +   * refer to the documentation for more information:
                                                                                      +   * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for healthCheckFirewallsConfigState. + */ + int getHealthCheckFirewallsConfigStateValue(); + /** + * + * + *
                                                                                      +   * Health check firewalls configuration state for the backend. This is a
                                                                                      +   * result of the static firewall analysis (verifying that health check traffic
                                                                                      +   * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +   * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +   * refer to the documentation for more information:
                                                                                      +   * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The healthCheckFirewallsConfigState. + */ + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState + getHealthCheckFirewallsConfigState(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NatInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NatInfo.java new file mode 100644 index 000000000000..51f9542e3ff9 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NatInfo.java @@ -0,0 +1,2631 @@ +/* + * 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/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
                                                                                      + * For display only. Metadata associated with NAT.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1.NatInfo} + */ +public final class NatInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.NatInfo) + NatInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use NatInfo.newBuilder() to construct. + private NatInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NatInfo() { + type_ = 0; + protocol_ = ""; + networkUri_ = ""; + oldSourceIp_ = ""; + newSourceIp_ = ""; + oldDestinationIp_ = ""; + newDestinationIp_ = ""; + routerUri_ = ""; + natGatewayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NatInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_NatInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_NatInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.NatInfo.class, + com.google.cloud.networkmanagement.v1.NatInfo.Builder.class); + } + + /** + * + * + *
                                                                                      +   * Types of NAT.
                                                                                      +   * 
                                                                                      + * + * Protobuf enum {@code google.cloud.networkmanagement.v1.NatInfo.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                      +     * Type is unspecified.
                                                                                      +     * 
                                                                                      + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
                                                                                      +     * From Compute Engine instance's internal address to external address.
                                                                                      +     * 
                                                                                      + * + * INTERNAL_TO_EXTERNAL = 1; + */ + INTERNAL_TO_EXTERNAL(1), + /** + * + * + *
                                                                                      +     * From Compute Engine instance's external address to internal address.
                                                                                      +     * 
                                                                                      + * + * EXTERNAL_TO_INTERNAL = 2; + */ + EXTERNAL_TO_INTERNAL(2), + /** + * + * + *
                                                                                      +     * Cloud NAT Gateway.
                                                                                      +     * 
                                                                                      + * + * CLOUD_NAT = 3; + */ + CLOUD_NAT(3), + /** + * + * + *
                                                                                      +     * Private service connect NAT.
                                                                                      +     * 
                                                                                      + * + * PRIVATE_SERVICE_CONNECT = 4; + */ + PRIVATE_SERVICE_CONNECT(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                                                                      +     * Type is unspecified.
                                                                                      +     * 
                                                                                      + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
                                                                                      +     * From Compute Engine instance's internal address to external address.
                                                                                      +     * 
                                                                                      + * + * INTERNAL_TO_EXTERNAL = 1; + */ + public static final int INTERNAL_TO_EXTERNAL_VALUE = 1; + /** + * + * + *
                                                                                      +     * From Compute Engine instance's external address to internal address.
                                                                                      +     * 
                                                                                      + * + * EXTERNAL_TO_INTERNAL = 2; + */ + public static final int EXTERNAL_TO_INTERNAL_VALUE = 2; + /** + * + * + *
                                                                                      +     * Cloud NAT Gateway.
                                                                                      +     * 
                                                                                      + * + * CLOUD_NAT = 3; + */ + public static final int CLOUD_NAT_VALUE = 3; + /** + * + * + *
                                                                                      +     * Private service connect NAT.
                                                                                      +     * 
                                                                                      + * + * PRIVATE_SERVICE_CONNECT = 4; + */ + public static final int PRIVATE_SERVICE_CONNECT_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 Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return INTERNAL_TO_EXTERNAL; + case 2: + return EXTERNAL_TO_INTERNAL; + case 3: + return CLOUD_NAT; + case 4: + return PRIVATE_SERVICE_CONNECT; + 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 Type findValueByNumber(int number) { + return Type.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.networkmanagement.v1.NatInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1.NatInfo.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + /** + * + * + *
                                                                                      +   * Type of NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
                                                                                      +   * Type of NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.NatInfo.Type getType() { + com.google.cloud.networkmanagement.v1.NatInfo.Type result = + com.google.cloud.networkmanagement.v1.NatInfo.Type.forNumber(type_); + return result == null + ? com.google.cloud.networkmanagement.v1.NatInfo.Type.UNRECOGNIZED + : result; + } + + public static final int PROTOCOL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object protocol_ = ""; + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 2; + * + * @return The protocol. + */ + @java.lang.Override + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + 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(); + protocol_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 2; + * + * @return The bytes for protocol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the network where NAT translation takes place.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 3; + * + * @return The networkUri. + */ + @java.lang.Override + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + 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(); + networkUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the network where NAT translation takes place.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OLD_SOURCE_IP_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object oldSourceIp_ = ""; + /** + * + * + *
                                                                                      +   * Source IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 4; + * + * @return The oldSourceIp. + */ + @java.lang.Override + public java.lang.String getOldSourceIp() { + java.lang.Object ref = oldSourceIp_; + 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(); + oldSourceIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Source IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 4; + * + * @return The bytes for oldSourceIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOldSourceIpBytes() { + java.lang.Object ref = oldSourceIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEW_SOURCE_IP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object newSourceIp_ = ""; + /** + * + * + *
                                                                                      +   * Source IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 5; + * + * @return The newSourceIp. + */ + @java.lang.Override + public java.lang.String getNewSourceIp() { + java.lang.Object ref = newSourceIp_; + 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(); + newSourceIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Source IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 5; + * + * @return The bytes for newSourceIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewSourceIpBytes() { + java.lang.Object ref = newSourceIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OLD_DESTINATION_IP_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object oldDestinationIp_ = ""; + /** + * + * + *
                                                                                      +   * Destination IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @return The oldDestinationIp. + */ + @java.lang.Override + public java.lang.String getOldDestinationIp() { + java.lang.Object ref = oldDestinationIp_; + 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(); + oldDestinationIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Destination IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @return The bytes for oldDestinationIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOldDestinationIpBytes() { + java.lang.Object ref = oldDestinationIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEW_DESTINATION_IP_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object newDestinationIp_ = ""; + /** + * + * + *
                                                                                      +   * Destination IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @return The newDestinationIp. + */ + @java.lang.Override + public java.lang.String getNewDestinationIp() { + java.lang.Object ref = newDestinationIp_; + 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(); + newDestinationIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Destination IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @return The bytes for newDestinationIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewDestinationIpBytes() { + java.lang.Object ref = newDestinationIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OLD_SOURCE_PORT_FIELD_NUMBER = 8; + private int oldSourcePort_ = 0; + /** + * + * + *
                                                                                      +   * Source port before NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_source_port = 8; + * + * @return The oldSourcePort. + */ + @java.lang.Override + public int getOldSourcePort() { + return oldSourcePort_; + } + + public static final int NEW_SOURCE_PORT_FIELD_NUMBER = 9; + private int newSourcePort_ = 0; + /** + * + * + *
                                                                                      +   * Source port after NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_source_port = 9; + * + * @return The newSourcePort. + */ + @java.lang.Override + public int getNewSourcePort() { + return newSourcePort_; + } + + public static final int OLD_DESTINATION_PORT_FIELD_NUMBER = 10; + private int oldDestinationPort_ = 0; + /** + * + * + *
                                                                                      +   * Destination port before NAT translation. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_destination_port = 10; + * + * @return The oldDestinationPort. + */ + @java.lang.Override + public int getOldDestinationPort() { + return oldDestinationPort_; + } + + public static final int NEW_DESTINATION_PORT_FIELD_NUMBER = 11; + private int newDestinationPort_ = 0; + /** + * + * + *
                                                                                      +   * Destination port after NAT translation. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_destination_port = 11; + * + * @return The newDestinationPort. + */ + @java.lang.Override + public int getNewDestinationPort() { + return newDestinationPort_; + } + + public static final int ROUTER_URI_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object routerUri_ = ""; + /** + * + * + *
                                                                                      +   * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string router_uri = 12; + * + * @return The routerUri. + */ + @java.lang.Override + public java.lang.String getRouterUri() { + java.lang.Object ref = routerUri_; + 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(); + routerUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string router_uri = 12; + * + * @return The bytes for routerUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRouterUriBytes() { + java.lang.Object ref = routerUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routerUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAT_GATEWAY_NAME_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object natGatewayName_ = ""; + /** + * + * + *
                                                                                      +   * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @return The natGatewayName. + */ + @java.lang.Override + public java.lang.String getNatGatewayName() { + java.lang.Object ref = natGatewayName_; + 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(); + natGatewayName_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @return The bytes for natGatewayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNatGatewayNameBytes() { + java.lang.Object ref = natGatewayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + natGatewayName_ = 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 (type_ != com.google.cloud.networkmanagement.v1.NatInfo.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, protocol_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, networkUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldSourceIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, oldSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newSourceIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, newSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldDestinationIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, oldDestinationIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newDestinationIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, newDestinationIp_); + } + if (oldSourcePort_ != 0) { + output.writeInt32(8, oldSourcePort_); + } + if (newSourcePort_ != 0) { + output.writeInt32(9, newSourcePort_); + } + if (oldDestinationPort_ != 0) { + output.writeInt32(10, oldDestinationPort_); + } + if (newDestinationPort_ != 0) { + output.writeInt32(11, newDestinationPort_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routerUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, routerUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(natGatewayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, natGatewayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != com.google.cloud.networkmanagement.v1.NatInfo.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, protocol_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, networkUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldSourceIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, oldSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newSourceIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, newSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldDestinationIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, oldDestinationIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newDestinationIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, newDestinationIp_); + } + if (oldSourcePort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, oldSourcePort_); + } + if (newSourcePort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, newSourcePort_); + } + if (oldDestinationPort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, oldDestinationPort_); + } + if (newDestinationPort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, newDestinationPort_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routerUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, routerUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(natGatewayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, natGatewayName_); + } + 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.networkmanagement.v1.NatInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.NatInfo other = + (com.google.cloud.networkmanagement.v1.NatInfo) obj; + + if (type_ != other.type_) return false; + if (!getProtocol().equals(other.getProtocol())) return false; + if (!getNetworkUri().equals(other.getNetworkUri())) return false; + if (!getOldSourceIp().equals(other.getOldSourceIp())) return false; + if (!getNewSourceIp().equals(other.getNewSourceIp())) return false; + if (!getOldDestinationIp().equals(other.getOldDestinationIp())) return false; + if (!getNewDestinationIp().equals(other.getNewDestinationIp())) return false; + if (getOldSourcePort() != other.getOldSourcePort()) return false; + if (getNewSourcePort() != other.getNewSourcePort()) return false; + if (getOldDestinationPort() != other.getOldDestinationPort()) return false; + if (getNewDestinationPort() != other.getNewDestinationPort()) return false; + if (!getRouterUri().equals(other.getRouterUri())) return false; + if (!getNatGatewayName().equals(other.getNatGatewayName())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getProtocol().hashCode(); + hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; + hash = (53 * hash) + getNetworkUri().hashCode(); + hash = (37 * hash) + OLD_SOURCE_IP_FIELD_NUMBER; + hash = (53 * hash) + getOldSourceIp().hashCode(); + hash = (37 * hash) + NEW_SOURCE_IP_FIELD_NUMBER; + hash = (53 * hash) + getNewSourceIp().hashCode(); + hash = (37 * hash) + OLD_DESTINATION_IP_FIELD_NUMBER; + hash = (53 * hash) + getOldDestinationIp().hashCode(); + hash = (37 * hash) + NEW_DESTINATION_IP_FIELD_NUMBER; + hash = (53 * hash) + getNewDestinationIp().hashCode(); + hash = (37 * hash) + OLD_SOURCE_PORT_FIELD_NUMBER; + hash = (53 * hash) + getOldSourcePort(); + hash = (37 * hash) + NEW_SOURCE_PORT_FIELD_NUMBER; + hash = (53 * hash) + getNewSourcePort(); + hash = (37 * hash) + OLD_DESTINATION_PORT_FIELD_NUMBER; + hash = (53 * hash) + getOldDestinationPort(); + hash = (37 * hash) + NEW_DESTINATION_PORT_FIELD_NUMBER; + hash = (53 * hash) + getNewDestinationPort(); + hash = (37 * hash) + ROUTER_URI_FIELD_NUMBER; + hash = (53 * hash) + getRouterUri().hashCode(); + hash = (37 * hash) + NAT_GATEWAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getNatGatewayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.NatInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.NatInfo 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.networkmanagement.v1.NatInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.NatInfo 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.networkmanagement.v1.NatInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.NatInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.NatInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.NatInfo 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.networkmanagement.v1.NatInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.NatInfo 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.networkmanagement.v1.NatInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.NatInfo 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.networkmanagement.v1.NatInfo 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; + } + /** + * + * + *
                                                                                      +   * For display only. Metadata associated with NAT.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1.NatInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.NatInfo) + com.google.cloud.networkmanagement.v1.NatInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_NatInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_NatInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.NatInfo.class, + com.google.cloud.networkmanagement.v1.NatInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1.NatInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + protocol_ = ""; + networkUri_ = ""; + oldSourceIp_ = ""; + newSourceIp_ = ""; + oldDestinationIp_ = ""; + newDestinationIp_ = ""; + oldSourcePort_ = 0; + newSourcePort_ = 0; + oldDestinationPort_ = 0; + newDestinationPort_ = 0; + routerUri_ = ""; + natGatewayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_NatInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.NatInfo getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.NatInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.NatInfo build() { + com.google.cloud.networkmanagement.v1.NatInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.NatInfo buildPartial() { + com.google.cloud.networkmanagement.v1.NatInfo result = + new com.google.cloud.networkmanagement.v1.NatInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkmanagement.v1.NatInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.protocol_ = protocol_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.networkUri_ = networkUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.oldSourceIp_ = oldSourceIp_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.newSourceIp_ = newSourceIp_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.oldDestinationIp_ = oldDestinationIp_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.newDestinationIp_ = newDestinationIp_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.oldSourcePort_ = oldSourcePort_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.newSourcePort_ = newSourcePort_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.oldDestinationPort_ = oldDestinationPort_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.newDestinationPort_ = newDestinationPort_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.routerUri_ = routerUri_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.natGatewayName_ = natGatewayName_; + } + } + + @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.networkmanagement.v1.NatInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1.NatInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1.NatInfo other) { + if (other == com.google.cloud.networkmanagement.v1.NatInfo.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getProtocol().isEmpty()) { + protocol_ = other.protocol_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getNetworkUri().isEmpty()) { + networkUri_ = other.networkUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOldSourceIp().isEmpty()) { + oldSourceIp_ = other.oldSourceIp_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getNewSourceIp().isEmpty()) { + newSourceIp_ = other.newSourceIp_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getOldDestinationIp().isEmpty()) { + oldDestinationIp_ = other.oldDestinationIp_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getNewDestinationIp().isEmpty()) { + newDestinationIp_ = other.newDestinationIp_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getOldSourcePort() != 0) { + setOldSourcePort(other.getOldSourcePort()); + } + if (other.getNewSourcePort() != 0) { + setNewSourcePort(other.getNewSourcePort()); + } + if (other.getOldDestinationPort() != 0) { + setOldDestinationPort(other.getOldDestinationPort()); + } + if (other.getNewDestinationPort() != 0) { + setNewDestinationPort(other.getNewDestinationPort()); + } + if (!other.getRouterUri().isEmpty()) { + routerUri_ = other.routerUri_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getNatGatewayName().isEmpty()) { + natGatewayName_ = other.natGatewayName_; + bitField0_ |= 0x00001000; + 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 8: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + protocol_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + networkUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + oldSourceIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + newSourceIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + oldDestinationIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + newDestinationIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + oldSourcePort_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + newSourcePort_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + oldDestinationPort_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + newDestinationPort_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 98: + { + routerUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + natGatewayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + 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 type_ = 0; + /** + * + * + *
                                                                                      +     * Type of NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
                                                                                      +     * Type of NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Type of NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.NatInfo.Type getType() { + com.google.cloud.networkmanagement.v1.NatInfo.Type result = + com.google.cloud.networkmanagement.v1.NatInfo.Type.forNumber(type_); + return result == null + ? com.google.cloud.networkmanagement.v1.NatInfo.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
                                                                                      +     * Type of NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.networkmanagement.v1.NatInfo.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Type of NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object protocol_ = ""; + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 2; + * + * @return The protocol. + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 2; + * + * @return The bytes for protocol. + */ + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 2; + * + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + protocol_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 2; + * + * @return This builder for chaining. + */ + public Builder clearProtocol() { + protocol_ = getDefaultInstance().getProtocol(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 2; + * + * @param value The bytes for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + protocol_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object networkUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the network where NAT translation takes place.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 3; + * + * @return The networkUri. + */ + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the network where NAT translation takes place.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the network where NAT translation takes place.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 3; + * + * @param value The networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the network where NAT translation takes place.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearNetworkUri() { + networkUri_ = getDefaultInstance().getNetworkUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the network where NAT translation takes place.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 3; + * + * @param value The bytes for networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object oldSourceIp_ = ""; + /** + * + * + *
                                                                                      +     * Source IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 4; + * + * @return The oldSourceIp. + */ + public java.lang.String getOldSourceIp() { + java.lang.Object ref = oldSourceIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldSourceIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 4; + * + * @return The bytes for oldSourceIp. + */ + public com.google.protobuf.ByteString getOldSourceIpBytes() { + java.lang.Object ref = oldSourceIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 4; + * + * @param value The oldSourceIp to set. + * @return This builder for chaining. + */ + public Builder setOldSourceIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oldSourceIp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 4; + * + * @return This builder for chaining. + */ + public Builder clearOldSourceIp() { + oldSourceIp_ = getDefaultInstance().getOldSourceIp(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 4; + * + * @param value The bytes for oldSourceIp to set. + * @return This builder for chaining. + */ + public Builder setOldSourceIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oldSourceIp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object newSourceIp_ = ""; + /** + * + * + *
                                                                                      +     * Source IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 5; + * + * @return The newSourceIp. + */ + public java.lang.String getNewSourceIp() { + java.lang.Object ref = newSourceIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newSourceIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 5; + * + * @return The bytes for newSourceIp. + */ + public com.google.protobuf.ByteString getNewSourceIpBytes() { + java.lang.Object ref = newSourceIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 5; + * + * @param value The newSourceIp to set. + * @return This builder for chaining. + */ + public Builder setNewSourceIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + newSourceIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 5; + * + * @return This builder for chaining. + */ + public Builder clearNewSourceIp() { + newSourceIp_ = getDefaultInstance().getNewSourceIp(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 5; + * + * @param value The bytes for newSourceIp to set. + * @return This builder for chaining. + */ + public Builder setNewSourceIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newSourceIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object oldDestinationIp_ = ""; + /** + * + * + *
                                                                                      +     * Destination IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @return The oldDestinationIp. + */ + public java.lang.String getOldDestinationIp() { + java.lang.Object ref = oldDestinationIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldDestinationIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @return The bytes for oldDestinationIp. + */ + public com.google.protobuf.ByteString getOldDestinationIpBytes() { + java.lang.Object ref = oldDestinationIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @param value The oldDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setOldDestinationIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oldDestinationIp_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @return This builder for chaining. + */ + public Builder clearOldDestinationIp() { + oldDestinationIp_ = getDefaultInstance().getOldDestinationIp(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @param value The bytes for oldDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setOldDestinationIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oldDestinationIp_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object newDestinationIp_ = ""; + /** + * + * + *
                                                                                      +     * Destination IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @return The newDestinationIp. + */ + public java.lang.String getNewDestinationIp() { + java.lang.Object ref = newDestinationIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newDestinationIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @return The bytes for newDestinationIp. + */ + public com.google.protobuf.ByteString getNewDestinationIpBytes() { + java.lang.Object ref = newDestinationIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @param value The newDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setNewDestinationIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + newDestinationIp_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @return This builder for chaining. + */ + public Builder clearNewDestinationIp() { + newDestinationIp_ = getDefaultInstance().getNewDestinationIp(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @param value The bytes for newDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setNewDestinationIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newDestinationIp_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int oldSourcePort_; + /** + * + * + *
                                                                                      +     * Source port before NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_source_port = 8; + * + * @return The oldSourcePort. + */ + @java.lang.Override + public int getOldSourcePort() { + return oldSourcePort_; + } + /** + * + * + *
                                                                                      +     * Source port before NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_source_port = 8; + * + * @param value The oldSourcePort to set. + * @return This builder for chaining. + */ + public Builder setOldSourcePort(int value) { + + oldSourcePort_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source port before NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_source_port = 8; + * + * @return This builder for chaining. + */ + public Builder clearOldSourcePort() { + bitField0_ = (bitField0_ & ~0x00000080); + oldSourcePort_ = 0; + onChanged(); + return this; + } + + private int newSourcePort_; + /** + * + * + *
                                                                                      +     * Source port after NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_source_port = 9; + * + * @return The newSourcePort. + */ + @java.lang.Override + public int getNewSourcePort() { + return newSourcePort_; + } + /** + * + * + *
                                                                                      +     * Source port after NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_source_port = 9; + * + * @param value The newSourcePort to set. + * @return This builder for chaining. + */ + public Builder setNewSourcePort(int value) { + + newSourcePort_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source port after NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_source_port = 9; + * + * @return This builder for chaining. + */ + public Builder clearNewSourcePort() { + bitField0_ = (bitField0_ & ~0x00000100); + newSourcePort_ = 0; + onChanged(); + return this; + } + + private int oldDestinationPort_; + /** + * + * + *
                                                                                      +     * Destination port before NAT translation. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_destination_port = 10; + * + * @return The oldDestinationPort. + */ + @java.lang.Override + public int getOldDestinationPort() { + return oldDestinationPort_; + } + /** + * + * + *
                                                                                      +     * Destination port before NAT translation. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_destination_port = 10; + * + * @param value The oldDestinationPort to set. + * @return This builder for chaining. + */ + public Builder setOldDestinationPort(int value) { + + oldDestinationPort_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination port before NAT translation. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_destination_port = 10; + * + * @return This builder for chaining. + */ + public Builder clearOldDestinationPort() { + bitField0_ = (bitField0_ & ~0x00000200); + oldDestinationPort_ = 0; + onChanged(); + return this; + } + + private int newDestinationPort_; + /** + * + * + *
                                                                                      +     * Destination port after NAT translation. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_destination_port = 11; + * + * @return The newDestinationPort. + */ + @java.lang.Override + public int getNewDestinationPort() { + return newDestinationPort_; + } + /** + * + * + *
                                                                                      +     * Destination port after NAT translation. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_destination_port = 11; + * + * @param value The newDestinationPort to set. + * @return This builder for chaining. + */ + public Builder setNewDestinationPort(int value) { + + newDestinationPort_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination port after NAT translation. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_destination_port = 11; + * + * @return This builder for chaining. + */ + public Builder clearNewDestinationPort() { + bitField0_ = (bitField0_ & ~0x00000400); + newDestinationPort_ = 0; + onChanged(); + return this; + } + + private java.lang.Object routerUri_ = ""; + /** + * + * + *
                                                                                      +     * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string router_uri = 12; + * + * @return The routerUri. + */ + public java.lang.String getRouterUri() { + java.lang.Object ref = routerUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + routerUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string router_uri = 12; + * + * @return The bytes for routerUri. + */ + public com.google.protobuf.ByteString getRouterUriBytes() { + java.lang.Object ref = routerUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routerUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string router_uri = 12; + * + * @param value The routerUri to set. + * @return This builder for chaining. + */ + public Builder setRouterUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + routerUri_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string router_uri = 12; + * + * @return This builder for chaining. + */ + public Builder clearRouterUri() { + routerUri_ = getDefaultInstance().getRouterUri(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string router_uri = 12; + * + * @param value The bytes for routerUri to set. + * @return This builder for chaining. + */ + public Builder setRouterUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + routerUri_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object natGatewayName_ = ""; + /** + * + * + *
                                                                                      +     * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @return The natGatewayName. + */ + public java.lang.String getNatGatewayName() { + java.lang.Object ref = natGatewayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + natGatewayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @return The bytes for natGatewayName. + */ + public com.google.protobuf.ByteString getNatGatewayNameBytes() { + java.lang.Object ref = natGatewayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + natGatewayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @param value The natGatewayName to set. + * @return This builder for chaining. + */ + public Builder setNatGatewayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + natGatewayName_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @return This builder for chaining. + */ + public Builder clearNatGatewayName() { + natGatewayName_ = getDefaultInstance().getNatGatewayName(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @param value The bytes for natGatewayName to set. + * @return This builder for chaining. + */ + public Builder setNatGatewayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + natGatewayName_ = value; + bitField0_ |= 0x00001000; + 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.networkmanagement.v1.NatInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.NatInfo) + private static final com.google.cloud.networkmanagement.v1.NatInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.NatInfo(); + } + + public static com.google.cloud.networkmanagement.v1.NatInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NatInfo 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.networkmanagement.v1.NatInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NatInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NatInfoOrBuilder.java new file mode 100644 index 000000000000..cd43d94a9b47 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/NatInfoOrBuilder.java @@ -0,0 +1,305 @@ +/* + * 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/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1; + +public interface NatInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.NatInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * Type of NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
                                                                                      +   * Type of NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo.Type type = 1; + * + * @return The type. + */ + com.google.cloud.networkmanagement.v1.NatInfo.Type getType(); + + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 2; + * + * @return The protocol. + */ + java.lang.String getProtocol(); + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 2; + * + * @return The bytes for protocol. + */ + com.google.protobuf.ByteString getProtocolBytes(); + + /** + * + * + *
                                                                                      +   * URI of the network where NAT translation takes place.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 3; + * + * @return The networkUri. + */ + java.lang.String getNetworkUri(); + /** + * + * + *
                                                                                      +   * URI of the network where NAT translation takes place.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + com.google.protobuf.ByteString getNetworkUriBytes(); + + /** + * + * + *
                                                                                      +   * Source IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 4; + * + * @return The oldSourceIp. + */ + java.lang.String getOldSourceIp(); + /** + * + * + *
                                                                                      +   * Source IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 4; + * + * @return The bytes for oldSourceIp. + */ + com.google.protobuf.ByteString getOldSourceIpBytes(); + + /** + * + * + *
                                                                                      +   * Source IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 5; + * + * @return The newSourceIp. + */ + java.lang.String getNewSourceIp(); + /** + * + * + *
                                                                                      +   * Source IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 5; + * + * @return The bytes for newSourceIp. + */ + com.google.protobuf.ByteString getNewSourceIpBytes(); + + /** + * + * + *
                                                                                      +   * Destination IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @return The oldDestinationIp. + */ + java.lang.String getOldDestinationIp(); + /** + * + * + *
                                                                                      +   * Destination IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @return The bytes for oldDestinationIp. + */ + com.google.protobuf.ByteString getOldDestinationIpBytes(); + + /** + * + * + *
                                                                                      +   * Destination IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @return The newDestinationIp. + */ + java.lang.String getNewDestinationIp(); + /** + * + * + *
                                                                                      +   * Destination IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @return The bytes for newDestinationIp. + */ + com.google.protobuf.ByteString getNewDestinationIpBytes(); + + /** + * + * + *
                                                                                      +   * Source port before NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_source_port = 8; + * + * @return The oldSourcePort. + */ + int getOldSourcePort(); + + /** + * + * + *
                                                                                      +   * Source port after NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_source_port = 9; + * + * @return The newSourcePort. + */ + int getNewSourcePort(); + + /** + * + * + *
                                                                                      +   * Destination port before NAT translation. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_destination_port = 10; + * + * @return The oldDestinationPort. + */ + int getOldDestinationPort(); + + /** + * + * + *
                                                                                      +   * Destination port after NAT translation. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_destination_port = 11; + * + * @return The newDestinationPort. + */ + int getNewDestinationPort(); + + /** + * + * + *
                                                                                      +   * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string router_uri = 12; + * + * @return The routerUri. + */ + java.lang.String getRouterUri(); + /** + * + * + *
                                                                                      +   * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string router_uri = 12; + * + * @return The bytes for routerUri. + */ + com.google.protobuf.ByteString getRouterUriBytes(); + + /** + * + * + *
                                                                                      +   * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @return The natGatewayName. + */ + java.lang.String getNatGatewayName(); + /** + * + * + *
                                                                                      +   * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @return The bytes for natGatewayName. + */ + com.google.protobuf.ByteString getNatGatewayNameBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProxyConnectionInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProxyConnectionInfo.java new file mode 100644 index 000000000000..816e0d84cf88 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProxyConnectionInfo.java @@ -0,0 +1,2102 @@ +/* + * 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/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
                                                                                      + * For display only. Metadata associated with ProxyConnection.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1.ProxyConnectionInfo} + */ +public final class ProxyConnectionInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.ProxyConnectionInfo) + ProxyConnectionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProxyConnectionInfo.newBuilder() to construct. + private ProxyConnectionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProxyConnectionInfo() { + protocol_ = ""; + oldSourceIp_ = ""; + newSourceIp_ = ""; + oldDestinationIp_ = ""; + newDestinationIp_ = ""; + subnetUri_ = ""; + networkUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProxyConnectionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.class, + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.Builder.class); + } + + public static final int PROTOCOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object protocol_ = ""; + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 1; + * + * @return The protocol. + */ + @java.lang.Override + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + 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(); + protocol_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 1; + * + * @return The bytes for protocol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OLD_SOURCE_IP_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object oldSourceIp_ = ""; + /** + * + * + *
                                                                                      +   * Source IP address of an original connection.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 2; + * + * @return The oldSourceIp. + */ + @java.lang.Override + public java.lang.String getOldSourceIp() { + java.lang.Object ref = oldSourceIp_; + 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(); + oldSourceIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Source IP address of an original connection.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 2; + * + * @return The bytes for oldSourceIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOldSourceIpBytes() { + java.lang.Object ref = oldSourceIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEW_SOURCE_IP_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object newSourceIp_ = ""; + /** + * + * + *
                                                                                      +   * Source IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 3; + * + * @return The newSourceIp. + */ + @java.lang.Override + public java.lang.String getNewSourceIp() { + java.lang.Object ref = newSourceIp_; + 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(); + newSourceIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Source IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 3; + * + * @return The bytes for newSourceIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewSourceIpBytes() { + java.lang.Object ref = newSourceIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OLD_DESTINATION_IP_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object oldDestinationIp_ = ""; + /** + * + * + *
                                                                                      +   * Destination IP address of an original connection
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @return The oldDestinationIp. + */ + @java.lang.Override + public java.lang.String getOldDestinationIp() { + java.lang.Object ref = oldDestinationIp_; + 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(); + oldDestinationIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Destination IP address of an original connection
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @return The bytes for oldDestinationIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOldDestinationIpBytes() { + java.lang.Object ref = oldDestinationIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEW_DESTINATION_IP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object newDestinationIp_ = ""; + /** + * + * + *
                                                                                      +   * Destination IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @return The newDestinationIp. + */ + @java.lang.Override + public java.lang.String getNewDestinationIp() { + java.lang.Object ref = newDestinationIp_; + 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(); + newDestinationIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Destination IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @return The bytes for newDestinationIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewDestinationIpBytes() { + java.lang.Object ref = newDestinationIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OLD_SOURCE_PORT_FIELD_NUMBER = 6; + private int oldSourcePort_ = 0; + /** + * + * + *
                                                                                      +   * Source port of an original connection. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_source_port = 6; + * + * @return The oldSourcePort. + */ + @java.lang.Override + public int getOldSourcePort() { + return oldSourcePort_; + } + + public static final int NEW_SOURCE_PORT_FIELD_NUMBER = 7; + private int newSourcePort_ = 0; + /** + * + * + *
                                                                                      +   * Source port of a new connection. Only valid when protocol is TCP or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_source_port = 7; + * + * @return The newSourcePort. + */ + @java.lang.Override + public int getNewSourcePort() { + return newSourcePort_; + } + + public static final int OLD_DESTINATION_PORT_FIELD_NUMBER = 8; + private int oldDestinationPort_ = 0; + /** + * + * + *
                                                                                      +   * Destination port of an original connection. Only valid when protocol is TCP
                                                                                      +   * or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_destination_port = 8; + * + * @return The oldDestinationPort. + */ + @java.lang.Override + public int getOldDestinationPort() { + return oldDestinationPort_; + } + + public static final int NEW_DESTINATION_PORT_FIELD_NUMBER = 9; + private int newDestinationPort_ = 0; + /** + * + * + *
                                                                                      +   * Destination port of a new connection. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_destination_port = 9; + * + * @return The newDestinationPort. + */ + @java.lang.Override + public int getNewDestinationPort() { + return newDestinationPort_; + } + + public static final int SUBNET_URI_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object subnetUri_ = ""; + /** + * + * + *
                                                                                      +   * Uri of proxy subnet.
                                                                                      +   * 
                                                                                      + * + * string subnet_uri = 10; + * + * @return The subnetUri. + */ + @java.lang.Override + public java.lang.String getSubnetUri() { + java.lang.Object ref = subnetUri_; + 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(); + subnetUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Uri of proxy subnet.
                                                                                      +   * 
                                                                                      + * + * string subnet_uri = 10; + * + * @return The bytes for subnetUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetUriBytes() { + java.lang.Object ref = subnetUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_URI_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the network where connection is proxied.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 11; + * + * @return The networkUri. + */ + @java.lang.Override + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + 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(); + networkUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the network where connection is proxied.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 11; + * + * @return The bytes for networkUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = 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(protocol_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, protocol_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldSourceIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, oldSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newSourceIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, newSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldDestinationIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, oldDestinationIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newDestinationIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, newDestinationIp_); + } + if (oldSourcePort_ != 0) { + output.writeInt32(6, oldSourcePort_); + } + if (newSourcePort_ != 0) { + output.writeInt32(7, newSourcePort_); + } + if (oldDestinationPort_ != 0) { + output.writeInt32(8, oldDestinationPort_); + } + if (newDestinationPort_ != 0) { + output.writeInt32(9, newDestinationPort_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, subnetUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, networkUri_); + } + 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(protocol_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, protocol_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldSourceIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, oldSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newSourceIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, newSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldDestinationIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, oldDestinationIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newDestinationIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, newDestinationIp_); + } + if (oldSourcePort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, oldSourcePort_); + } + if (newSourcePort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, newSourcePort_); + } + if (oldDestinationPort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, oldDestinationPort_); + } + if (newDestinationPort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, newDestinationPort_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, subnetUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, networkUri_); + } + 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.networkmanagement.v1.ProxyConnectionInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo other = + (com.google.cloud.networkmanagement.v1.ProxyConnectionInfo) obj; + + if (!getProtocol().equals(other.getProtocol())) return false; + if (!getOldSourceIp().equals(other.getOldSourceIp())) return false; + if (!getNewSourceIp().equals(other.getNewSourceIp())) return false; + if (!getOldDestinationIp().equals(other.getOldDestinationIp())) return false; + if (!getNewDestinationIp().equals(other.getNewDestinationIp())) return false; + if (getOldSourcePort() != other.getOldSourcePort()) return false; + if (getNewSourcePort() != other.getNewSourcePort()) return false; + if (getOldDestinationPort() != other.getOldDestinationPort()) return false; + if (getNewDestinationPort() != other.getNewDestinationPort()) return false; + if (!getSubnetUri().equals(other.getSubnetUri())) return false; + if (!getNetworkUri().equals(other.getNetworkUri())) 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) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getProtocol().hashCode(); + hash = (37 * hash) + OLD_SOURCE_IP_FIELD_NUMBER; + hash = (53 * hash) + getOldSourceIp().hashCode(); + hash = (37 * hash) + NEW_SOURCE_IP_FIELD_NUMBER; + hash = (53 * hash) + getNewSourceIp().hashCode(); + hash = (37 * hash) + OLD_DESTINATION_IP_FIELD_NUMBER; + hash = (53 * hash) + getOldDestinationIp().hashCode(); + hash = (37 * hash) + NEW_DESTINATION_IP_FIELD_NUMBER; + hash = (53 * hash) + getNewDestinationIp().hashCode(); + hash = (37 * hash) + OLD_SOURCE_PORT_FIELD_NUMBER; + hash = (53 * hash) + getOldSourcePort(); + hash = (37 * hash) + NEW_SOURCE_PORT_FIELD_NUMBER; + hash = (53 * hash) + getNewSourcePort(); + hash = (37 * hash) + OLD_DESTINATION_PORT_FIELD_NUMBER; + hash = (53 * hash) + getOldDestinationPort(); + hash = (37 * hash) + NEW_DESTINATION_PORT_FIELD_NUMBER; + hash = (53 * hash) + getNewDestinationPort(); + hash = (37 * hash) + SUBNET_URI_FIELD_NUMBER; + hash = (53 * hash) + getSubnetUri().hashCode(); + hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; + hash = (53 * hash) + getNetworkUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.ProxyConnectionInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ProxyConnectionInfo 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.networkmanagement.v1.ProxyConnectionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ProxyConnectionInfo 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.networkmanagement.v1.ProxyConnectionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.ProxyConnectionInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.ProxyConnectionInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ProxyConnectionInfo 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.networkmanagement.v1.ProxyConnectionInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ProxyConnectionInfo 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.networkmanagement.v1.ProxyConnectionInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.ProxyConnectionInfo 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.networkmanagement.v1.ProxyConnectionInfo 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; + } + /** + * + * + *
                                                                                      +   * For display only. Metadata associated with ProxyConnection.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1.ProxyConnectionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.ProxyConnectionInfo) + com.google.cloud.networkmanagement.v1.ProxyConnectionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.class, + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + protocol_ = ""; + oldSourceIp_ = ""; + newSourceIp_ = ""; + oldDestinationIp_ = ""; + newDestinationIp_ = ""; + oldSourcePort_ = 0; + newSourcePort_ = 0; + oldDestinationPort_ = 0; + newDestinationPort_ = 0; + subnetUri_ = ""; + networkUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProxyConnectionInfo getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProxyConnectionInfo build() { + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProxyConnectionInfo buildPartial() { + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo result = + new com.google.cloud.networkmanagement.v1.ProxyConnectionInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkmanagement.v1.ProxyConnectionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.protocol_ = protocol_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.oldSourceIp_ = oldSourceIp_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.newSourceIp_ = newSourceIp_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.oldDestinationIp_ = oldDestinationIp_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.newDestinationIp_ = newDestinationIp_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.oldSourcePort_ = oldSourcePort_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.newSourcePort_ = newSourcePort_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.oldDestinationPort_ = oldDestinationPort_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.newDestinationPort_ = newDestinationPort_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.subnetUri_ = subnetUri_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.networkUri_ = networkUri_; + } + } + + @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.networkmanagement.v1.ProxyConnectionInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1.ProxyConnectionInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1.ProxyConnectionInfo other) { + if (other == com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.getDefaultInstance()) + return this; + if (!other.getProtocol().isEmpty()) { + protocol_ = other.protocol_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOldSourceIp().isEmpty()) { + oldSourceIp_ = other.oldSourceIp_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getNewSourceIp().isEmpty()) { + newSourceIp_ = other.newSourceIp_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOldDestinationIp().isEmpty()) { + oldDestinationIp_ = other.oldDestinationIp_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getNewDestinationIp().isEmpty()) { + newDestinationIp_ = other.newDestinationIp_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getOldSourcePort() != 0) { + setOldSourcePort(other.getOldSourcePort()); + } + if (other.getNewSourcePort() != 0) { + setNewSourcePort(other.getNewSourcePort()); + } + if (other.getOldDestinationPort() != 0) { + setOldDestinationPort(other.getOldDestinationPort()); + } + if (other.getNewDestinationPort() != 0) { + setNewDestinationPort(other.getNewDestinationPort()); + } + if (!other.getSubnetUri().isEmpty()) { + subnetUri_ = other.subnetUri_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getNetworkUri().isEmpty()) { + networkUri_ = other.networkUri_; + bitField0_ |= 0x00000400; + 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: + { + protocol_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + oldSourceIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + newSourceIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + oldDestinationIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + newDestinationIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + oldSourcePort_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + newSourcePort_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + oldDestinationPort_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + newDestinationPort_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + subnetUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + networkUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + 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 protocol_ = ""; + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 1; + * + * @return The protocol. + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 1; + * + * @return The bytes for protocol. + */ + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 1; + * + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + protocol_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 1; + * + * @return This builder for chaining. + */ + public Builder clearProtocol() { + protocol_ = getDefaultInstance().getProtocol(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 1; + * + * @param value The bytes for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + protocol_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object oldSourceIp_ = ""; + /** + * + * + *
                                                                                      +     * Source IP address of an original connection.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 2; + * + * @return The oldSourceIp. + */ + public java.lang.String getOldSourceIp() { + java.lang.Object ref = oldSourceIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldSourceIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address of an original connection.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 2; + * + * @return The bytes for oldSourceIp. + */ + public com.google.protobuf.ByteString getOldSourceIpBytes() { + java.lang.Object ref = oldSourceIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address of an original connection.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 2; + * + * @param value The oldSourceIp to set. + * @return This builder for chaining. + */ + public Builder setOldSourceIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oldSourceIp_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address of an original connection.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 2; + * + * @return This builder for chaining. + */ + public Builder clearOldSourceIp() { + oldSourceIp_ = getDefaultInstance().getOldSourceIp(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address of an original connection.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 2; + * + * @param value The bytes for oldSourceIp to set. + * @return This builder for chaining. + */ + public Builder setOldSourceIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oldSourceIp_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object newSourceIp_ = ""; + /** + * + * + *
                                                                                      +     * Source IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 3; + * + * @return The newSourceIp. + */ + public java.lang.String getNewSourceIp() { + java.lang.Object ref = newSourceIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newSourceIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 3; + * + * @return The bytes for newSourceIp. + */ + public com.google.protobuf.ByteString getNewSourceIpBytes() { + java.lang.Object ref = newSourceIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 3; + * + * @param value The newSourceIp to set. + * @return This builder for chaining. + */ + public Builder setNewSourceIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + newSourceIp_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 3; + * + * @return This builder for chaining. + */ + public Builder clearNewSourceIp() { + newSourceIp_ = getDefaultInstance().getNewSourceIp(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 3; + * + * @param value The bytes for newSourceIp to set. + * @return This builder for chaining. + */ + public Builder setNewSourceIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newSourceIp_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object oldDestinationIp_ = ""; + /** + * + * + *
                                                                                      +     * Destination IP address of an original connection
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @return The oldDestinationIp. + */ + public java.lang.String getOldDestinationIp() { + java.lang.Object ref = oldDestinationIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldDestinationIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address of an original connection
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @return The bytes for oldDestinationIp. + */ + public com.google.protobuf.ByteString getOldDestinationIpBytes() { + java.lang.Object ref = oldDestinationIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address of an original connection
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @param value The oldDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setOldDestinationIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oldDestinationIp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address of an original connection
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @return This builder for chaining. + */ + public Builder clearOldDestinationIp() { + oldDestinationIp_ = getDefaultInstance().getOldDestinationIp(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address of an original connection
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @param value The bytes for oldDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setOldDestinationIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oldDestinationIp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object newDestinationIp_ = ""; + /** + * + * + *
                                                                                      +     * Destination IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @return The newDestinationIp. + */ + public java.lang.String getNewDestinationIp() { + java.lang.Object ref = newDestinationIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newDestinationIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @return The bytes for newDestinationIp. + */ + public com.google.protobuf.ByteString getNewDestinationIpBytes() { + java.lang.Object ref = newDestinationIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @param value The newDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setNewDestinationIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + newDestinationIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @return This builder for chaining. + */ + public Builder clearNewDestinationIp() { + newDestinationIp_ = getDefaultInstance().getNewDestinationIp(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @param value The bytes for newDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setNewDestinationIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newDestinationIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int oldSourcePort_; + /** + * + * + *
                                                                                      +     * Source port of an original connection. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_source_port = 6; + * + * @return The oldSourcePort. + */ + @java.lang.Override + public int getOldSourcePort() { + return oldSourcePort_; + } + /** + * + * + *
                                                                                      +     * Source port of an original connection. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_source_port = 6; + * + * @param value The oldSourcePort to set. + * @return This builder for chaining. + */ + public Builder setOldSourcePort(int value) { + + oldSourcePort_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source port of an original connection. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_source_port = 6; + * + * @return This builder for chaining. + */ + public Builder clearOldSourcePort() { + bitField0_ = (bitField0_ & ~0x00000020); + oldSourcePort_ = 0; + onChanged(); + return this; + } + + private int newSourcePort_; + /** + * + * + *
                                                                                      +     * Source port of a new connection. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_source_port = 7; + * + * @return The newSourcePort. + */ + @java.lang.Override + public int getNewSourcePort() { + return newSourcePort_; + } + /** + * + * + *
                                                                                      +     * Source port of a new connection. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_source_port = 7; + * + * @param value The newSourcePort to set. + * @return This builder for chaining. + */ + public Builder setNewSourcePort(int value) { + + newSourcePort_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source port of a new connection. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_source_port = 7; + * + * @return This builder for chaining. + */ + public Builder clearNewSourcePort() { + bitField0_ = (bitField0_ & ~0x00000040); + newSourcePort_ = 0; + onChanged(); + return this; + } + + private int oldDestinationPort_; + /** + * + * + *
                                                                                      +     * Destination port of an original connection. Only valid when protocol is TCP
                                                                                      +     * or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_destination_port = 8; + * + * @return The oldDestinationPort. + */ + @java.lang.Override + public int getOldDestinationPort() { + return oldDestinationPort_; + } + /** + * + * + *
                                                                                      +     * Destination port of an original connection. Only valid when protocol is TCP
                                                                                      +     * or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_destination_port = 8; + * + * @param value The oldDestinationPort to set. + * @return This builder for chaining. + */ + public Builder setOldDestinationPort(int value) { + + oldDestinationPort_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination port of an original connection. Only valid when protocol is TCP
                                                                                      +     * or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_destination_port = 8; + * + * @return This builder for chaining. + */ + public Builder clearOldDestinationPort() { + bitField0_ = (bitField0_ & ~0x00000080); + oldDestinationPort_ = 0; + onChanged(); + return this; + } + + private int newDestinationPort_; + /** + * + * + *
                                                                                      +     * Destination port of a new connection. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_destination_port = 9; + * + * @return The newDestinationPort. + */ + @java.lang.Override + public int getNewDestinationPort() { + return newDestinationPort_; + } + /** + * + * + *
                                                                                      +     * Destination port of a new connection. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_destination_port = 9; + * + * @param value The newDestinationPort to set. + * @return This builder for chaining. + */ + public Builder setNewDestinationPort(int value) { + + newDestinationPort_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination port of a new connection. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_destination_port = 9; + * + * @return This builder for chaining. + */ + public Builder clearNewDestinationPort() { + bitField0_ = (bitField0_ & ~0x00000100); + newDestinationPort_ = 0; + onChanged(); + return this; + } + + private java.lang.Object subnetUri_ = ""; + /** + * + * + *
                                                                                      +     * Uri of proxy subnet.
                                                                                      +     * 
                                                                                      + * + * string subnet_uri = 10; + * + * @return The subnetUri. + */ + public java.lang.String getSubnetUri() { + java.lang.Object ref = subnetUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Uri of proxy subnet.
                                                                                      +     * 
                                                                                      + * + * string subnet_uri = 10; + * + * @return The bytes for subnetUri. + */ + public com.google.protobuf.ByteString getSubnetUriBytes() { + java.lang.Object ref = subnetUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Uri of proxy subnet.
                                                                                      +     * 
                                                                                      + * + * string subnet_uri = 10; + * + * @param value The subnetUri to set. + * @return This builder for chaining. + */ + public Builder setSubnetUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subnetUri_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Uri of proxy subnet.
                                                                                      +     * 
                                                                                      + * + * string subnet_uri = 10; + * + * @return This builder for chaining. + */ + public Builder clearSubnetUri() { + subnetUri_ = getDefaultInstance().getSubnetUri(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Uri of proxy subnet.
                                                                                      +     * 
                                                                                      + * + * string subnet_uri = 10; + * + * @param value The bytes for subnetUri to set. + * @return This builder for chaining. + */ + public Builder setSubnetUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnetUri_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object networkUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the network where connection is proxied.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 11; + * + * @return The networkUri. + */ + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the network where connection is proxied.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 11; + * + * @return The bytes for networkUri. + */ + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the network where connection is proxied.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 11; + * + * @param value The networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkUri_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the network where connection is proxied.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 11; + * + * @return This builder for chaining. + */ + public Builder clearNetworkUri() { + networkUri_ = getDefaultInstance().getNetworkUri(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the network where connection is proxied.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 11; + * + * @param value The bytes for networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkUri_ = value; + bitField0_ |= 0x00000400; + 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.networkmanagement.v1.ProxyConnectionInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.ProxyConnectionInfo) + private static final com.google.cloud.networkmanagement.v1.ProxyConnectionInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.ProxyConnectionInfo(); + } + + public static com.google.cloud.networkmanagement.v1.ProxyConnectionInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProxyConnectionInfo 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.networkmanagement.v1.ProxyConnectionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProxyConnectionInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProxyConnectionInfoOrBuilder.java new file mode 100644 index 000000000000..629bbd18906d --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ProxyConnectionInfoOrBuilder.java @@ -0,0 +1,256 @@ +/* + * 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/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1; + +public interface ProxyConnectionInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.ProxyConnectionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 1; + * + * @return The protocol. + */ + java.lang.String getProtocol(); + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 1; + * + * @return The bytes for protocol. + */ + com.google.protobuf.ByteString getProtocolBytes(); + + /** + * + * + *
                                                                                      +   * Source IP address of an original connection.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 2; + * + * @return The oldSourceIp. + */ + java.lang.String getOldSourceIp(); + /** + * + * + *
                                                                                      +   * Source IP address of an original connection.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 2; + * + * @return The bytes for oldSourceIp. + */ + com.google.protobuf.ByteString getOldSourceIpBytes(); + + /** + * + * + *
                                                                                      +   * Source IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 3; + * + * @return The newSourceIp. + */ + java.lang.String getNewSourceIp(); + /** + * + * + *
                                                                                      +   * Source IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 3; + * + * @return The bytes for newSourceIp. + */ + com.google.protobuf.ByteString getNewSourceIpBytes(); + + /** + * + * + *
                                                                                      +   * Destination IP address of an original connection
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @return The oldDestinationIp. + */ + java.lang.String getOldDestinationIp(); + /** + * + * + *
                                                                                      +   * Destination IP address of an original connection
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @return The bytes for oldDestinationIp. + */ + com.google.protobuf.ByteString getOldDestinationIpBytes(); + + /** + * + * + *
                                                                                      +   * Destination IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @return The newDestinationIp. + */ + java.lang.String getNewDestinationIp(); + /** + * + * + *
                                                                                      +   * Destination IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @return The bytes for newDestinationIp. + */ + com.google.protobuf.ByteString getNewDestinationIpBytes(); + + /** + * + * + *
                                                                                      +   * Source port of an original connection. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_source_port = 6; + * + * @return The oldSourcePort. + */ + int getOldSourcePort(); + + /** + * + * + *
                                                                                      +   * Source port of a new connection. Only valid when protocol is TCP or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_source_port = 7; + * + * @return The newSourcePort. + */ + int getNewSourcePort(); + + /** + * + * + *
                                                                                      +   * Destination port of an original connection. Only valid when protocol is TCP
                                                                                      +   * or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_destination_port = 8; + * + * @return The oldDestinationPort. + */ + int getOldDestinationPort(); + + /** + * + * + *
                                                                                      +   * Destination port of a new connection. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_destination_port = 9; + * + * @return The newDestinationPort. + */ + int getNewDestinationPort(); + + /** + * + * + *
                                                                                      +   * Uri of proxy subnet.
                                                                                      +   * 
                                                                                      + * + * string subnet_uri = 10; + * + * @return The subnetUri. + */ + java.lang.String getSubnetUri(); + /** + * + * + *
                                                                                      +   * Uri of proxy subnet.
                                                                                      +   * 
                                                                                      + * + * string subnet_uri = 10; + * + * @return The bytes for subnetUri. + */ + com.google.protobuf.ByteString getSubnetUriBytes(); + + /** + * + * + *
                                                                                      +   * URI of the network where connection is proxied.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 11; + * + * @return The networkUri. + */ + java.lang.String getNetworkUri(); + /** + * + * + *
                                                                                      +   * URI of the network where connection is proxied.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 11; + * + * @return The bytes for networkUri. + */ + com.google.protobuf.ByteString getNetworkUriBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java index 00f5df4801d2..7acc1ca4d132 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/Step.java @@ -230,6 +230,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * APPLY_FORWARDING_RULE = 7; */ APPLY_FORWARDING_RULE(7), + /** + * + * + *
                                                                                      +     * Config checking state: verify load balancer backend configuration.
                                                                                      +     * 
                                                                                      + * + * ANALYZE_LOAD_BALANCER_BACKEND = 28; + */ + ANALYZE_LOAD_BALANCER_BACKEND(28), /** * * @@ -530,6 +540,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * APPLY_FORWARDING_RULE = 7; */ public static final int APPLY_FORWARDING_RULE_VALUE = 7; + /** + * + * + *
                                                                                      +     * Config checking state: verify load balancer backend configuration.
                                                                                      +     * 
                                                                                      + * + * ANALYZE_LOAD_BALANCER_BACKEND = 28; + */ + public static final int ANALYZE_LOAD_BALANCER_BACKEND_VALUE = 28; /** * * @@ -727,6 +747,8 @@ public static State forNumber(int value) { return APPLY_ROUTE; case 7: return APPLY_FORWARDING_RULE; + case 28: + return ANALYZE_LOAD_BALANCER_BACKEND; case 8: return SPOOFING_APPROVED; case 9: @@ -837,6 +859,10 @@ public enum StepInfoCase CLOUD_FUNCTION(20), APP_ENGINE_VERSION(22), CLOUD_RUN_REVISION(23), + NAT(25), + PROXY_CONNECTION(26), + LOAD_BALANCER_BACKEND_INFO(27), + STORAGE_BUCKET(28), STEPINFO_NOT_SET(0); private final int value; @@ -895,6 +921,14 @@ public static StepInfoCase forNumber(int value) { return APP_ENGINE_VERSION; case 23: return CLOUD_RUN_REVISION; + case 25: + return NAT; + case 26: + return PROXY_CONNECTION; + case 27: + return LOAD_BALANCER_BACKEND_INFO; + case 28: + return STORAGE_BUCKET; case 0: return STEPINFO_NOT_SET; default: @@ -2103,6 +2137,220 @@ public com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo getCloudRunRev return com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.getDefaultInstance(); } + public static final int NAT_FIELD_NUMBER = 25; + /** + * + * + *
                                                                                      +   * Display information of a NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + * + * @return Whether the nat field is set. + */ + @java.lang.Override + public boolean hasNat() { + return stepInfoCase_ == 25; + } + /** + * + * + *
                                                                                      +   * Display information of a NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + * + * @return The nat. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.NatInfo getNat() { + if (stepInfoCase_ == 25) { + return (com.google.cloud.networkmanagement.v1.NatInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.NatInfo.getDefaultInstance(); + } + /** + * + * + *
                                                                                      +   * Display information of a NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.NatInfoOrBuilder getNatOrBuilder() { + if (stepInfoCase_ == 25) { + return (com.google.cloud.networkmanagement.v1.NatInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.NatInfo.getDefaultInstance(); + } + + public static final int PROXY_CONNECTION_FIELD_NUMBER = 26; + /** + * + * + *
                                                                                      +   * Display information of a ProxyConnection.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + * + * @return Whether the proxyConnection field is set. + */ + @java.lang.Override + public boolean hasProxyConnection() { + return stepInfoCase_ == 26; + } + /** + * + * + *
                                                                                      +   * Display information of a ProxyConnection.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + * + * @return The proxyConnection. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProxyConnectionInfo getProxyConnection() { + if (stepInfoCase_ == 26) { + return (com.google.cloud.networkmanagement.v1.ProxyConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.getDefaultInstance(); + } + /** + * + * + *
                                                                                      +   * Display information of a ProxyConnection.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProxyConnectionInfoOrBuilder + getProxyConnectionOrBuilder() { + if (stepInfoCase_ == 26) { + return (com.google.cloud.networkmanagement.v1.ProxyConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.getDefaultInstance(); + } + + public static final int LOAD_BALANCER_BACKEND_INFO_FIELD_NUMBER = 27; + /** + * + * + *
                                                                                      +   * Display information of a specific load balancer backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + * + * @return Whether the loadBalancerBackendInfo field is set. + */ + @java.lang.Override + public boolean hasLoadBalancerBackendInfo() { + return stepInfoCase_ == 27; + } + /** + * + * + *
                                                                                      +   * Display information of a specific load balancer backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + * + * @return The loadBalancerBackendInfo. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + getLoadBalancerBackendInfo() { + if (stepInfoCase_ == 27) { + return (com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.getDefaultInstance(); + } + /** + * + * + *
                                                                                      +   * Display information of a specific load balancer backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfoOrBuilder + getLoadBalancerBackendInfoOrBuilder() { + if (stepInfoCase_ == 27) { + return (com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.getDefaultInstance(); + } + + public static final int STORAGE_BUCKET_FIELD_NUMBER = 28; + /** + * + * + *
                                                                                      +   * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + * + * @return Whether the storageBucket field is set. + */ + @java.lang.Override + public boolean hasStorageBucket() { + return stepInfoCase_ == 28; + } + /** + * + * + *
                                                                                      +   * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + * + * @return The storageBucket. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.StorageBucketInfo getStorageBucket() { + if (stepInfoCase_ == 28) { + return (com.google.cloud.networkmanagement.v1.StorageBucketInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.StorageBucketInfo.getDefaultInstance(); + } + /** + * + * + *
                                                                                      +   * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.StorageBucketInfoOrBuilder + getStorageBucketOrBuilder() { + if (stepInfoCase_ == 28) { + return (com.google.cloud.networkmanagement.v1.StorageBucketInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.StorageBucketInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2192,6 +2440,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (stepInfoCase_ == 24) { output.writeMessage(24, (com.google.cloud.networkmanagement.v1.GoogleServiceInfo) stepInfo_); } + if (stepInfoCase_ == 25) { + output.writeMessage(25, (com.google.cloud.networkmanagement.v1.NatInfo) stepInfo_); + } + if (stepInfoCase_ == 26) { + output.writeMessage( + 26, (com.google.cloud.networkmanagement.v1.ProxyConnectionInfo) stepInfo_); + } + if (stepInfoCase_ == 27) { + output.writeMessage( + 27, (com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo) stepInfo_); + } + if (stepInfoCase_ == 28) { + output.writeMessage(28, (com.google.cloud.networkmanagement.v1.StorageBucketInfo) stepInfo_); + } getUnknownFields().writeTo(output); } @@ -2313,6 +2575,26 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 24, (com.google.cloud.networkmanagement.v1.GoogleServiceInfo) stepInfo_); } + if (stepInfoCase_ == 25) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, (com.google.cloud.networkmanagement.v1.NatInfo) stepInfo_); + } + if (stepInfoCase_ == 26) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, (com.google.cloud.networkmanagement.v1.ProxyConnectionInfo) stepInfo_); + } + if (stepInfoCase_ == 27) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 27, (com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo) stepInfo_); + } + if (stepInfoCase_ == 28) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, (com.google.cloud.networkmanagement.v1.StorageBucketInfo) stepInfo_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2395,6 +2677,18 @@ public boolean equals(final java.lang.Object obj) { case 23: if (!getCloudRunRevision().equals(other.getCloudRunRevision())) return false; break; + case 25: + if (!getNat().equals(other.getNat())) return false; + break; + case 26: + if (!getProxyConnection().equals(other.getProxyConnection())) return false; + break; + case 27: + if (!getLoadBalancerBackendInfo().equals(other.getLoadBalancerBackendInfo())) return false; + break; + case 28: + if (!getStorageBucket().equals(other.getStorageBucket())) return false; + break; case 0: default: } @@ -2498,6 +2792,22 @@ public int hashCode() { hash = (37 * hash) + CLOUD_RUN_REVISION_FIELD_NUMBER; hash = (53 * hash) + getCloudRunRevision().hashCode(); break; + case 25: + hash = (37 * hash) + NAT_FIELD_NUMBER; + hash = (53 * hash) + getNat().hashCode(); + break; + case 26: + hash = (37 * hash) + PROXY_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getProxyConnection().hashCode(); + break; + case 27: + hash = (37 * hash) + LOAD_BALANCER_BACKEND_INFO_FIELD_NUMBER; + hash = (53 * hash) + getLoadBalancerBackendInfo().hashCode(); + break; + case 28: + hash = (37 * hash) + STORAGE_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getStorageBucket().hashCode(); + break; case 0: default: } @@ -2705,6 +3015,18 @@ public Builder clear() { if (cloudRunRevisionBuilder_ != null) { cloudRunRevisionBuilder_.clear(); } + if (natBuilder_ != null) { + natBuilder_.clear(); + } + if (proxyConnectionBuilder_ != null) { + proxyConnectionBuilder_.clear(); + } + if (loadBalancerBackendInfoBuilder_ != null) { + loadBalancerBackendInfoBuilder_.clear(); + } + if (storageBucketBuilder_ != null) { + storageBucketBuilder_.clear(); + } stepInfoCase_ = 0; stepInfo_ = null; return this; @@ -2821,6 +3143,18 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1.Step resul if (stepInfoCase_ == 23 && cloudRunRevisionBuilder_ != null) { result.stepInfo_ = cloudRunRevisionBuilder_.build(); } + if (stepInfoCase_ == 25 && natBuilder_ != null) { + result.stepInfo_ = natBuilder_.build(); + } + if (stepInfoCase_ == 26 && proxyConnectionBuilder_ != null) { + result.stepInfo_ = proxyConnectionBuilder_.build(); + } + if (stepInfoCase_ == 27 && loadBalancerBackendInfoBuilder_ != null) { + result.stepInfo_ = loadBalancerBackendInfoBuilder_.build(); + } + if (stepInfoCase_ == 28 && storageBucketBuilder_ != null) { + result.stepInfo_ = storageBucketBuilder_.build(); + } } @java.lang.Override @@ -2985,6 +3319,26 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Step other) { mergeCloudRunRevision(other.getCloudRunRevision()); break; } + case NAT: + { + mergeNat(other.getNat()); + break; + } + case PROXY_CONNECTION: + { + mergeProxyConnection(other.getProxyConnection()); + break; + } + case LOAD_BALANCER_BACKEND_INFO: + { + mergeLoadBalancerBackendInfo(other.getLoadBalancerBackendInfo()); + break; + } + case STORAGE_BUCKET: + { + mergeStorageBucket(other.getStorageBucket()); + break; + } case STEPINFO_NOT_SET: { break; @@ -3163,6 +3517,31 @@ public Builder mergeFrom( stepInfoCase_ = 24; break; } // case 194 + case 202: + { + input.readMessage(getNatFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 25; + break; + } // case 202 + case 210: + { + input.readMessage(getProxyConnectionFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 26; + break; + } // case 210 + case 218: + { + input.readMessage( + getLoadBalancerBackendInfoFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 27; + break; + } // case 218 + case 226: + { + input.readMessage(getStorageBucketFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 28; + break; + } // case 226 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7806,6 +8185,877 @@ public Builder clearCloudRunRevision() { return cloudRunRevisionBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.NatInfo, + com.google.cloud.networkmanagement.v1.NatInfo.Builder, + com.google.cloud.networkmanagement.v1.NatInfoOrBuilder> + natBuilder_; + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + * + * @return Whether the nat field is set. + */ + @java.lang.Override + public boolean hasNat() { + return stepInfoCase_ == 25; + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + * + * @return The nat. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.NatInfo getNat() { + if (natBuilder_ == null) { + if (stepInfoCase_ == 25) { + return (com.google.cloud.networkmanagement.v1.NatInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.NatInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 25) { + return natBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1.NatInfo.getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + */ + public Builder setNat(com.google.cloud.networkmanagement.v1.NatInfo value) { + if (natBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + natBuilder_.setMessage(value); + } + stepInfoCase_ = 25; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + */ + public Builder setNat(com.google.cloud.networkmanagement.v1.NatInfo.Builder builderForValue) { + if (natBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + natBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 25; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + */ + public Builder mergeNat(com.google.cloud.networkmanagement.v1.NatInfo value) { + if (natBuilder_ == null) { + if (stepInfoCase_ == 25 + && stepInfo_ != com.google.cloud.networkmanagement.v1.NatInfo.getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.NatInfo.newBuilder( + (com.google.cloud.networkmanagement.v1.NatInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 25) { + natBuilder_.mergeFrom(value); + } else { + natBuilder_.setMessage(value); + } + } + stepInfoCase_ = 25; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + */ + public Builder clearNat() { + if (natBuilder_ == null) { + if (stepInfoCase_ == 25) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 25) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + natBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + */ + public com.google.cloud.networkmanagement.v1.NatInfo.Builder getNatBuilder() { + return getNatFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.NatInfoOrBuilder getNatOrBuilder() { + if ((stepInfoCase_ == 25) && (natBuilder_ != null)) { + return natBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 25) { + return (com.google.cloud.networkmanagement.v1.NatInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.NatInfo.getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.NatInfo, + com.google.cloud.networkmanagement.v1.NatInfo.Builder, + com.google.cloud.networkmanagement.v1.NatInfoOrBuilder> + getNatFieldBuilder() { + if (natBuilder_ == null) { + if (!(stepInfoCase_ == 25)) { + stepInfo_ = com.google.cloud.networkmanagement.v1.NatInfo.getDefaultInstance(); + } + natBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.NatInfo, + com.google.cloud.networkmanagement.v1.NatInfo.Builder, + com.google.cloud.networkmanagement.v1.NatInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1.NatInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 25; + onChanged(); + return natBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo, + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1.ProxyConnectionInfoOrBuilder> + proxyConnectionBuilder_; + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + * + * @return Whether the proxyConnection field is set. + */ + @java.lang.Override + public boolean hasProxyConnection() { + return stepInfoCase_ == 26; + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + * + * @return The proxyConnection. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProxyConnectionInfo getProxyConnection() { + if (proxyConnectionBuilder_ == null) { + if (stepInfoCase_ == 26) { + return (com.google.cloud.networkmanagement.v1.ProxyConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 26) { + return proxyConnectionBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + */ + public Builder setProxyConnection( + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo value) { + if (proxyConnectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + proxyConnectionBuilder_.setMessage(value); + } + stepInfoCase_ = 26; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + */ + public Builder setProxyConnection( + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.Builder builderForValue) { + if (proxyConnectionBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + proxyConnectionBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 26; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + */ + public Builder mergeProxyConnection( + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo value) { + if (proxyConnectionBuilder_ == null) { + if (stepInfoCase_ == 26 + && stepInfo_ + != com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.newBuilder( + (com.google.cloud.networkmanagement.v1.ProxyConnectionInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 26) { + proxyConnectionBuilder_.mergeFrom(value); + } else { + proxyConnectionBuilder_.setMessage(value); + } + } + stepInfoCase_ = 26; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + */ + public Builder clearProxyConnection() { + if (proxyConnectionBuilder_ == null) { + if (stepInfoCase_ == 26) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 26) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + proxyConnectionBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + */ + public com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.Builder + getProxyConnectionBuilder() { + return getProxyConnectionFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.ProxyConnectionInfoOrBuilder + getProxyConnectionOrBuilder() { + if ((stepInfoCase_ == 26) && (proxyConnectionBuilder_ != null)) { + return proxyConnectionBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 26) { + return (com.google.cloud.networkmanagement.v1.ProxyConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo, + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1.ProxyConnectionInfoOrBuilder> + getProxyConnectionFieldBuilder() { + if (proxyConnectionBuilder_ == null) { + if (!(stepInfoCase_ == 26)) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.getDefaultInstance(); + } + proxyConnectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo, + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1.ProxyConnectionInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1.ProxyConnectionInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 26; + onChanged(); + return proxyConnectionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo, + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.Builder, + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfoOrBuilder> + loadBalancerBackendInfoBuilder_; + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + * + * @return Whether the loadBalancerBackendInfo field is set. + */ + @java.lang.Override + public boolean hasLoadBalancerBackendInfo() { + return stepInfoCase_ == 27; + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + * + * @return The loadBalancerBackendInfo. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + getLoadBalancerBackendInfo() { + if (loadBalancerBackendInfoBuilder_ == null) { + if (stepInfoCase_ == 27) { + return (com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 27) { + return loadBalancerBackendInfoBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + public Builder setLoadBalancerBackendInfo( + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo value) { + if (loadBalancerBackendInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + loadBalancerBackendInfoBuilder_.setMessage(value); + } + stepInfoCase_ = 27; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + public Builder setLoadBalancerBackendInfo( + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.Builder builderForValue) { + if (loadBalancerBackendInfoBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + loadBalancerBackendInfoBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 27; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + public Builder mergeLoadBalancerBackendInfo( + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo value) { + if (loadBalancerBackendInfoBuilder_ == null) { + if (stepInfoCase_ == 27 + && stepInfo_ + != com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo + .getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.newBuilder( + (com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 27) { + loadBalancerBackendInfoBuilder_.mergeFrom(value); + } else { + loadBalancerBackendInfoBuilder_.setMessage(value); + } + } + stepInfoCase_ = 27; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + public Builder clearLoadBalancerBackendInfo() { + if (loadBalancerBackendInfoBuilder_ == null) { + if (stepInfoCase_ == 27) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 27) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + loadBalancerBackendInfoBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + public com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.Builder + getLoadBalancerBackendInfoBuilder() { + return getLoadBalancerBackendInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfoOrBuilder + getLoadBalancerBackendInfoOrBuilder() { + if ((stepInfoCase_ == 27) && (loadBalancerBackendInfoBuilder_ != null)) { + return loadBalancerBackendInfoBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 27) { + return (com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo, + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.Builder, + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfoOrBuilder> + getLoadBalancerBackendInfoFieldBuilder() { + if (loadBalancerBackendInfoBuilder_ == null) { + if (!(stepInfoCase_ == 27)) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.getDefaultInstance(); + } + loadBalancerBackendInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo, + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo.Builder, + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 27; + onChanged(); + return loadBalancerBackendInfoBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.StorageBucketInfo, + com.google.cloud.networkmanagement.v1.StorageBucketInfo.Builder, + com.google.cloud.networkmanagement.v1.StorageBucketInfoOrBuilder> + storageBucketBuilder_; + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + * + * @return Whether the storageBucket field is set. + */ + @java.lang.Override + public boolean hasStorageBucket() { + return stepInfoCase_ == 28; + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + * + * @return The storageBucket. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.StorageBucketInfo getStorageBucket() { + if (storageBucketBuilder_ == null) { + if (stepInfoCase_ == 28) { + return (com.google.cloud.networkmanagement.v1.StorageBucketInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.StorageBucketInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 28) { + return storageBucketBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1.StorageBucketInfo.getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + */ + public Builder setStorageBucket(com.google.cloud.networkmanagement.v1.StorageBucketInfo value) { + if (storageBucketBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + storageBucketBuilder_.setMessage(value); + } + stepInfoCase_ = 28; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + */ + public Builder setStorageBucket( + com.google.cloud.networkmanagement.v1.StorageBucketInfo.Builder builderForValue) { + if (storageBucketBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + storageBucketBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 28; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + */ + public Builder mergeStorageBucket( + com.google.cloud.networkmanagement.v1.StorageBucketInfo value) { + if (storageBucketBuilder_ == null) { + if (stepInfoCase_ == 28 + && stepInfo_ + != com.google.cloud.networkmanagement.v1.StorageBucketInfo.getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.StorageBucketInfo.newBuilder( + (com.google.cloud.networkmanagement.v1.StorageBucketInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 28) { + storageBucketBuilder_.mergeFrom(value); + } else { + storageBucketBuilder_.setMessage(value); + } + } + stepInfoCase_ = 28; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + */ + public Builder clearStorageBucket() { + if (storageBucketBuilder_ == null) { + if (stepInfoCase_ == 28) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 28) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + storageBucketBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + */ + public com.google.cloud.networkmanagement.v1.StorageBucketInfo.Builder + getStorageBucketBuilder() { + return getStorageBucketFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.StorageBucketInfoOrBuilder + getStorageBucketOrBuilder() { + if ((stepInfoCase_ == 28) && (storageBucketBuilder_ != null)) { + return storageBucketBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 28) { + return (com.google.cloud.networkmanagement.v1.StorageBucketInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.StorageBucketInfo.getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.StorageBucketInfo, + com.google.cloud.networkmanagement.v1.StorageBucketInfo.Builder, + com.google.cloud.networkmanagement.v1.StorageBucketInfoOrBuilder> + getStorageBucketFieldBuilder() { + if (storageBucketBuilder_ == null) { + if (!(stepInfoCase_ == 28)) { + stepInfo_ = com.google.cloud.networkmanagement.v1.StorageBucketInfo.getDefaultInstance(); + } + storageBucketBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1.StorageBucketInfo, + com.google.cloud.networkmanagement.v1.StorageBucketInfo.Builder, + com.google.cloud.networkmanagement.v1.StorageBucketInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1.StorageBucketInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 28; + onChanged(); + return storageBucketBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java index a08d602c4634..d50b5c3f351d 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StepOrBuilder.java @@ -824,5 +824,152 @@ public interface StepOrBuilder com.google.cloud.networkmanagement.v1.CloudRunRevisionInfoOrBuilder getCloudRunRevisionOrBuilder(); + /** + * + * + *
                                                                                      +   * Display information of a NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + * + * @return Whether the nat field is set. + */ + boolean hasNat(); + /** + * + * + *
                                                                                      +   * Display information of a NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + * + * @return The nat. + */ + com.google.cloud.networkmanagement.v1.NatInfo getNat(); + /** + * + * + *
                                                                                      +   * Display information of a NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.NatInfo nat = 25; + */ + com.google.cloud.networkmanagement.v1.NatInfoOrBuilder getNatOrBuilder(); + + /** + * + * + *
                                                                                      +   * Display information of a ProxyConnection.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + * + * @return Whether the proxyConnection field is set. + */ + boolean hasProxyConnection(); + /** + * + * + *
                                                                                      +   * Display information of a ProxyConnection.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + * + * @return The proxyConnection. + */ + com.google.cloud.networkmanagement.v1.ProxyConnectionInfo getProxyConnection(); + /** + * + * + *
                                                                                      +   * Display information of a ProxyConnection.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.ProxyConnectionInfo proxy_connection = 26; + */ + com.google.cloud.networkmanagement.v1.ProxyConnectionInfoOrBuilder getProxyConnectionOrBuilder(); + + /** + * + * + *
                                                                                      +   * Display information of a specific load balancer backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + * + * @return Whether the loadBalancerBackendInfo field is set. + */ + boolean hasLoadBalancerBackendInfo(); + /** + * + * + *
                                                                                      +   * Display information of a specific load balancer backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + * + * @return The loadBalancerBackendInfo. + */ + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfo getLoadBalancerBackendInfo(); + /** + * + * + *
                                                                                      +   * Display information of a specific load balancer backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + com.google.cloud.networkmanagement.v1.LoadBalancerBackendInfoOrBuilder + getLoadBalancerBackendInfoOrBuilder(); + + /** + * + * + *
                                                                                      +   * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + * + * @return Whether the storageBucket field is set. + */ + boolean hasStorageBucket(); + /** + * + * + *
                                                                                      +   * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + * + * @return The storageBucket. + */ + com.google.cloud.networkmanagement.v1.StorageBucketInfo getStorageBucket(); + /** + * + * + *
                                                                                      +   * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1.StorageBucketInfo storage_bucket = 28; + */ + com.google.cloud.networkmanagement.v1.StorageBucketInfoOrBuilder getStorageBucketOrBuilder(); + com.google.cloud.networkmanagement.v1.Step.StepInfoCase getStepInfoCase(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StorageBucketInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StorageBucketInfo.java new file mode 100644 index 000000000000..c2eaca2f25b0 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StorageBucketInfo.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/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
                                                                                      + * For display only. Metadata associated with Storage Bucket.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1.StorageBucketInfo} + */ +public final class StorageBucketInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.StorageBucketInfo) + StorageBucketInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use StorageBucketInfo.newBuilder() to construct. + private StorageBucketInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StorageBucketInfo() { + bucket_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StorageBucketInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.StorageBucketInfo.class, + com.google.cloud.networkmanagement.v1.StorageBucketInfo.Builder.class); + } + + public static final int BUCKET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucket_ = ""; + /** + * + * + *
                                                                                      +   * Cloud Storage Bucket name.
                                                                                      +   * 
                                                                                      + * + * string bucket = 1; + * + * @return The bucket. + */ + @java.lang.Override + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + 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(); + bucket_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Cloud Storage Bucket name.
                                                                                      +   * 
                                                                                      + * + * string bucket = 1; + * + * @return The bytes for bucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = 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(bucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + } + 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(bucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + } + 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.networkmanagement.v1.StorageBucketInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.StorageBucketInfo other = + (com.google.cloud.networkmanagement.v1.StorageBucketInfo) obj; + + if (!getBucket().equals(other.getBucket())) 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) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.StorageBucketInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.StorageBucketInfo 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.networkmanagement.v1.StorageBucketInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.StorageBucketInfo 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.networkmanagement.v1.StorageBucketInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.StorageBucketInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.StorageBucketInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.StorageBucketInfo 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.networkmanagement.v1.StorageBucketInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.StorageBucketInfo 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.networkmanagement.v1.StorageBucketInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.StorageBucketInfo 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.networkmanagement.v1.StorageBucketInfo 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; + } + /** + * + * + *
                                                                                      +   * For display only. Metadata associated with Storage Bucket.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1.StorageBucketInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.StorageBucketInfo) + com.google.cloud.networkmanagement.v1.StorageBucketInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.StorageBucketInfo.class, + com.google.cloud.networkmanagement.v1.StorageBucketInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1.StorageBucketInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bucket_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.StorageBucketInfo getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.StorageBucketInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.StorageBucketInfo build() { + com.google.cloud.networkmanagement.v1.StorageBucketInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.StorageBucketInfo buildPartial() { + com.google.cloud.networkmanagement.v1.StorageBucketInfo result = + new com.google.cloud.networkmanagement.v1.StorageBucketInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkmanagement.v1.StorageBucketInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bucket_ = bucket_; + } + } + + @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.networkmanagement.v1.StorageBucketInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1.StorageBucketInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1.StorageBucketInfo other) { + if (other == com.google.cloud.networkmanagement.v1.StorageBucketInfo.getDefaultInstance()) + return this; + if (!other.getBucket().isEmpty()) { + bucket_ = other.bucket_; + 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: + { + bucket_ = 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 bucket_ = ""; + /** + * + * + *
                                                                                      +     * Cloud Storage Bucket name.
                                                                                      +     * 
                                                                                      + * + * string bucket = 1; + * + * @return The bucket. + */ + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Cloud Storage Bucket name.
                                                                                      +     * 
                                                                                      + * + * string bucket = 1; + * + * @return The bytes for bucket. + */ + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Cloud Storage Bucket name.
                                                                                      +     * 
                                                                                      + * + * string bucket = 1; + * + * @param value The bucket to set. + * @return This builder for chaining. + */ + public Builder setBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Cloud Storage Bucket name.
                                                                                      +     * 
                                                                                      + * + * string bucket = 1; + * + * @return This builder for chaining. + */ + public Builder clearBucket() { + bucket_ = getDefaultInstance().getBucket(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Cloud Storage Bucket name.
                                                                                      +     * 
                                                                                      + * + * string bucket = 1; + * + * @param value The bytes for bucket to set. + * @return This builder for chaining. + */ + public Builder setBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = 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.networkmanagement.v1.StorageBucketInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.StorageBucketInfo) + private static final com.google.cloud.networkmanagement.v1.StorageBucketInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.StorageBucketInfo(); + } + + public static com.google.cloud.networkmanagement.v1.StorageBucketInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageBucketInfo 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.networkmanagement.v1.StorageBucketInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StorageBucketInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StorageBucketInfoOrBuilder.java new file mode 100644 index 000000000000..3e8ce3ba9832 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/StorageBucketInfoOrBuilder.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/networkmanagement/v1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1; + +public interface StorageBucketInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.StorageBucketInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * Cloud Storage Bucket name.
                                                                                      +   * 
                                                                                      + * + * string bucket = 1; + * + * @return The bucket. + */ + java.lang.String getBucket(); + /** + * + * + *
                                                                                      +   * Cloud Storage Bucket name.
                                                                                      +   * 
                                                                                      + * + * string bucket = 1; + * + * @return The bytes for bucket. + */ + com.google.protobuf.ByteString getBucketBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java index 6410bbe4f30f..248d79197993 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/TraceProto.java @@ -120,6 +120,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1_VpcConnectorInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1_VpcConnectorInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1_NatInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1_NatInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -131,277 +147,326 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n-google/cloud/networkmanagement/v1/trac" + "e.proto\022!google.cloud.networkmanagement." - + "v1\"\207\001\n\005Trace\022F\n\rendpoint_info\030\001 \001(\0132/.go" - + "ogle.cloud.networkmanagement.v1.Endpoint" - + "Info\0226\n\005steps\030\002 \003(\0132\'.google.cloud.netwo" - + "rkmanagement.v1.Step\"\253\022\n\004Step\022\023\n\013descrip" - + "tion\030\001 \001(\t\022<\n\005state\030\002 \001(\0162-.google.cloud" - + ".networkmanagement.v1.Step.State\022\023\n\013caus" - + "es_drop\030\003 \001(\010\022\022\n\nproject_id\030\004 \001(\t\022C\n\010ins" - + "tance\030\005 \001(\0132/.google.cloud.networkmanage" - + "ment.v1.InstanceInfoH\000\022C\n\010firewall\030\006 \001(\013" - + "2/.google.cloud.networkmanagement.v1.Fir" - + "ewallInfoH\000\022=\n\005route\030\007 \001(\0132,.google.clou" - + "d.networkmanagement.v1.RouteInfoH\000\022C\n\010en" - + "dpoint\030\010 \001(\0132/.google.cloud.networkmanag" - + "ement.v1.EndpointInfoH\000\022N\n\016google_servic" - + "e\030\030 \001(\01324.google.cloud.networkmanagement" - + ".v1.GoogleServiceInfoH\000\022P\n\017forwarding_ru" - + "le\030\t \001(\01325.google.cloud.networkmanagemen" - + "t.v1.ForwardingRuleInfoH\000\022H\n\013vpn_gateway" - + "\030\n \001(\01321.google.cloud.networkmanagement." - + "v1.VpnGatewayInfoH\000\022F\n\nvpn_tunnel\030\013 \001(\0132" - + "0.google.cloud.networkmanagement.v1.VpnT" - + "unnelInfoH\000\022L\n\rvpc_connector\030\025 \001(\01323.goo" - + "gle.cloud.networkmanagement.v1.VpcConnec" - + "torInfoH\000\022A\n\007deliver\030\014 \001(\0132..google.clou" - + "d.networkmanagement.v1.DeliverInfoH\000\022A\n\007" - + "forward\030\r \001(\0132..google.cloud.networkmana" - + "gement.v1.ForwardInfoH\000\022=\n\005abort\030\016 \001(\0132," - + ".google.cloud.networkmanagement.v1.Abort" - + "InfoH\000\022;\n\004drop\030\017 \001(\0132+.google.cloud.netw" - + "orkmanagement.v1.DropInfoH\000\022L\n\rload_bala" - + "ncer\030\020 \001(\01323.google.cloud.networkmanagem" - + "ent.v1.LoadBalancerInfoH\000\022A\n\007network\030\021 \001" - + "(\0132..google.cloud.networkmanagement.v1.N" - + "etworkInfoH\000\022F\n\ngke_master\030\022 \001(\01320.googl" - + "e.cloud.networkmanagement.v1.GKEMasterIn" - + "foH\000\022U\n\022cloud_sql_instance\030\023 \001(\01327.googl" - + "e.cloud.networkmanagement.v1.CloudSQLIns" - + "tanceInfoH\000\022N\n\016cloud_function\030\024 \001(\01324.go" - + "ogle.cloud.networkmanagement.v1.CloudFun" - + "ctionInfoH\000\022U\n\022app_engine_version\030\026 \001(\0132" - + "7.google.cloud.networkmanagement.v1.AppE" - + "ngineVersionInfoH\000\022U\n\022cloud_run_revision" - + "\030\027 \001(\01327.google.cloud.networkmanagement." - + "v1.CloudRunRevisionInfoH\000\"\331\005\n\005State\022\025\n\021S" - + "TATE_UNSPECIFIED\020\000\022\027\n\023START_FROM_INSTANC" - + "E\020\001\022\027\n\023START_FROM_INTERNET\020\002\022\035\n\031START_FR" - + "OM_GOOGLE_SERVICE\020\033\022\036\n\032START_FROM_PRIVAT" - + "E_NETWORK\020\003\022\031\n\025START_FROM_GKE_MASTER\020\025\022!" - + "\n\035START_FROM_CLOUD_SQL_INSTANCE\020\026\022\035\n\031STA" - + "RT_FROM_CLOUD_FUNCTION\020\027\022!\n\035START_FROM_A" - + "PP_ENGINE_VERSION\020\031\022!\n\035START_FROM_CLOUD_" - + "RUN_REVISION\020\032\022\037\n\033APPLY_INGRESS_FIREWALL" - + "_RULE\020\004\022\036\n\032APPLY_EGRESS_FIREWALL_RULE\020\005\022" - + "\017\n\013APPLY_ROUTE\020\006\022\031\n\025APPLY_FORWARDING_RUL" - + "E\020\007\022\025\n\021SPOOFING_APPROVED\020\010\022\026\n\022ARRIVE_AT_" - + "INSTANCE\020\t\022$\n ARRIVE_AT_INTERNAL_LOAD_BA" - + "LANCER\020\n\022$\n ARRIVE_AT_EXTERNAL_LOAD_BALA" - + "NCER\020\013\022\031\n\025ARRIVE_AT_VPN_GATEWAY\020\014\022\030\n\024ARR" - + "IVE_AT_VPN_TUNNEL\020\r\022\033\n\027ARRIVE_AT_VPC_CON" - + "NECTOR\020\030\022\007\n\003NAT\020\016\022\024\n\020PROXY_CONNECTION\020\017\022" - + "\013\n\007DELIVER\020\020\022\010\n\004DROP\020\021\022\013\n\007FORWARD\020\022\022\t\n\005A" - + "BORT\020\023\022\035\n\031VIEWER_PERMISSION_MISSING\020\024B\013\n" - + "\tstep_info\"\266\001\n\014InstanceInfo\022\024\n\014display_n" - + "ame\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\021\n\tinterface\030\003 \001(" - + "\t\022\023\n\013network_uri\030\004 \001(\t\022\023\n\013internal_ip\030\005 " - + "\001(\t\022\023\n\013external_ip\030\006 \001(\t\022\024\n\014network_tags" - + "\030\007 \003(\t\022\033\n\017service_account\030\010 \001(\tB\002\030\001\"J\n\013N" - + "etworkInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030" - + "\002 \001(\t\022\030\n\020matched_ip_range\030\004 \001(\t\"\263\004\n\014Fire" - + "wallInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 " - + "\001(\t\022\021\n\tdirection\030\003 \001(\t\022\016\n\006action\030\004 \001(\t\022\020" - + "\n\010priority\030\005 \001(\005\022\023\n\013network_uri\030\006 \001(\t\022\023\n" - + "\013target_tags\030\007 \003(\t\022\037\n\027target_service_acc" - + "ounts\030\010 \003(\t\022\016\n\006policy\030\t \001(\t\022\\\n\022firewall_" - + "rule_type\030\n \001(\0162@.google.cloud.networkma" - + "nagement.v1.FirewallInfo.FirewallRuleTyp" - + "e\"\221\002\n\020FirewallRuleType\022\"\n\036FIREWALL_RULE_" - + "TYPE_UNSPECIFIED\020\000\022%\n!HIERARCHICAL_FIREW" - + "ALL_POLICY_RULE\020\001\022\025\n\021VPC_FIREWALL_RULE\020\002" - + "\022\035\n\031IMPLIED_VPC_FIREWALL_RULE\020\003\022/\n+SERVE" - + "RLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE\020\004" - + "\022 \n\034NETWORK_FIREWALL_POLICY_RULE\020\005\022)\n%NE" - + "TWORK_REGIONAL_FIREWALL_POLICY_RULE\020\006\"\346\010" - + "\n\tRouteInfo\022J\n\nroute_type\030\010 \001(\01626.google" - + ".cloud.networkmanagement.v1.RouteInfo.Ro" - + "uteType\022O\n\rnext_hop_type\030\t \001(\01628.google." - + "cloud.networkmanagement.v1.RouteInfo.Nex" - + "tHopType\022L\n\013route_scope\030\016 \001(\01627.google.c" - + "loud.networkmanagement.v1.RouteInfo.Rout" - + "eScope\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(" - + "\t\022\025\n\rdest_ip_range\030\003 \001(\t\022\020\n\010next_hop\030\004 \001" - + "(\t\022\023\n\013network_uri\030\005 \001(\t\022\020\n\010priority\030\006 \001(" - + "\005\022\025\n\rinstance_tags\030\007 \003(\t\022\024\n\014src_ip_range" - + "\030\n \001(\t\022\030\n\020dest_port_ranges\030\013 \003(\t\022\027\n\017src_" - + "port_ranges\030\014 \003(\t\022\021\n\tprotocols\030\r \003(\t\022\030\n\013" - + "ncc_hub_uri\030\017 \001(\tH\000\210\001\001\022\032\n\rncc_spoke_uri\030" - + "\020 \001(\tH\001\210\001\001\"\233\001\n\tRouteType\022\032\n\026ROUTE_TYPE_U" - + "NSPECIFIED\020\000\022\n\n\006SUBNET\020\001\022\n\n\006STATIC\020\002\022\013\n\007" - + "DYNAMIC\020\003\022\022\n\016PEERING_SUBNET\020\004\022\022\n\016PEERING" - + "_STATIC\020\005\022\023\n\017PEERING_DYNAMIC\020\006\022\020\n\014POLICY" - + "_BASED\020\007\"\314\002\n\013NextHopType\022\035\n\031NEXT_HOP_TYP" - + "E_UNSPECIFIED\020\000\022\017\n\013NEXT_HOP_IP\020\001\022\025\n\021NEXT" - + "_HOP_INSTANCE\020\002\022\024\n\020NEXT_HOP_NETWORK\020\003\022\024\n" - + "\020NEXT_HOP_PEERING\020\004\022\031\n\025NEXT_HOP_INTERCON" - + "NECT\020\005\022\027\n\023NEXT_HOP_VPN_TUNNEL\020\006\022\030\n\024NEXT_" - + "HOP_VPN_GATEWAY\020\007\022\035\n\031NEXT_HOP_INTERNET_G" - + "ATEWAY\020\010\022\026\n\022NEXT_HOP_BLACKHOLE\020\t\022\020\n\014NEXT" - + "_HOP_ILB\020\n\022\035\n\031NEXT_HOP_ROUTER_APPLIANCE\020" - + "\013\022\024\n\020NEXT_HOP_NCC_HUB\020\014\"C\n\nRouteScope\022\033\n" - + "\027ROUTE_SCOPE_UNSPECIFIED\020\000\022\013\n\007NETWORK\020\001\022" - + "\013\n\007NCC_HUB\020\002B\016\n\014_ncc_hub_uriB\020\n\016_ncc_spo" - + "ke_uri\"\203\002\n\021GoogleServiceInfo\022\021\n\tsource_i" - + "p\030\001 \001(\t\022c\n\023google_service_type\030\002 \001(\0162F.g" - + "oogle.cloud.networkmanagement.v1.GoogleS" - + "erviceInfo.GoogleServiceType\"v\n\021GoogleSe" - + "rviceType\022#\n\037GOOGLE_SERVICE_TYPE_UNSPECI" - + "FIED\020\000\022\007\n\003IAP\020\001\022$\n GFE_PROXY_OR_HEALTH_C" - + "HECK_PROBER\020\002\022\r\n\tCLOUD_DNS\020\003\"\237\001\n\022Forward" - + "ingRuleInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri" - + "\030\002 \001(\t\022\030\n\020matched_protocol\030\003 \001(\t\022\032\n\022matc" - + "hed_port_range\030\006 \001(\t\022\013\n\003vip\030\004 \001(\t\022\016\n\006tar" - + "get\030\005 \001(\t\022\023\n\013network_uri\030\007 \001(\t\"\276\004\n\020LoadB" - + "alancerInfo\022`\n\022load_balancer_type\030\001 \001(\0162" - + "D.google.cloud.networkmanagement.v1.Load" - + "BalancerInfo.LoadBalancerType\022\030\n\020health_" - + "check_uri\030\002 \001(\t\022H\n\010backends\030\003 \003(\01326.goog" - + "le.cloud.networkmanagement.v1.LoadBalanc" - + "erBackend\022U\n\014backend_type\030\004 \001(\0162?.google" - + ".cloud.networkmanagement.v1.LoadBalancer" - + "Info.BackendType\022\023\n\013backend_uri\030\005 \001(\t\"\217\001" - + "\n\020LoadBalancerType\022\"\n\036LOAD_BALANCER_TYPE" - + "_UNSPECIFIED\020\000\022\024\n\020INTERNAL_TCP_UDP\020\001\022\023\n\017" - + "NETWORK_TCP_UDP\020\002\022\016\n\nHTTP_PROXY\020\003\022\r\n\tTCP" - + "_PROXY\020\004\022\r\n\tSSL_PROXY\020\005\"f\n\013BackendType\022\034" - + "\n\030BACKEND_TYPE_UNSPECIFIED\020\000\022\023\n\017BACKEND_" - + "SERVICE\020\001\022\017\n\013TARGET_POOL\020\002\022\023\n\017TARGET_INS" - + "TANCE\020\003\"\366\002\n\023LoadBalancerBackend\022\024\n\014displ" - + "ay_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022t\n\033health_che" - + "ck_firewall_state\030\003 \001(\0162O.google.cloud.n" - + "etworkmanagement.v1.LoadBalancerBackend." - + "HealthCheckFirewallState\022,\n$health_check" - + "_allowing_firewall_rules\030\004 \003(\t\022,\n$health" - + "_check_blocking_firewall_rules\030\005 \003(\t\"j\n\030" - + "HealthCheckFirewallState\022+\n\'HEALTH_CHECK" - + "_FIREWALL_STATE_UNSPECIFIED\020\000\022\016\n\nCONFIGU" - + "RED\020\001\022\021\n\rMISCONFIGURED\020\002\"\204\001\n\016VpnGatewayI" - + "nfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\023" - + "\n\013network_uri\030\003 \001(\t\022\022\n\nip_address\030\004 \001(\t\022" - + "\026\n\016vpn_tunnel_uri\030\005 \001(\t\022\016\n\006region\030\006 \001(\t\"" - + "\356\002\n\rVpnTunnelInfo\022\024\n\014display_name\030\001 \001(\t\022" - + "\013\n\003uri\030\002 \001(\t\022\026\n\016source_gateway\030\003 \001(\t\022\026\n\016" - + "remote_gateway\030\004 \001(\t\022\031\n\021remote_gateway_i" - + "p\030\005 \001(\t\022\031\n\021source_gateway_ip\030\006 \001(\t\022\023\n\013ne" - + "twork_uri\030\007 \001(\t\022\016\n\006region\030\010 \001(\t\022R\n\014routi" - + "ng_type\030\t \001(\0162<.google.cloud.networkmana" - + "gement.v1.VpnTunnelInfo.RoutingType\"[\n\013R" - + "outingType\022\034\n\030ROUTING_TYPE_UNSPECIFIED\020\000" - + "\022\017\n\013ROUTE_BASED\020\001\022\020\n\014POLICY_BASED\020\002\022\013\n\007D" - + "YNAMIC\020\003\"\321\001\n\014EndpointInfo\022\021\n\tsource_ip\030\001" - + " \001(\t\022\026\n\016destination_ip\030\002 \001(\t\022\020\n\010protocol" - + "\030\003 \001(\t\022\023\n\013source_port\030\004 \001(\005\022\030\n\020destinati" - + "on_port\030\005 \001(\005\022\032\n\022source_network_uri\030\006 \001(" - + "\t\022\037\n\027destination_network_uri\030\007 \001(\t\022\030\n\020so" - + "urce_agent_uri\030\010 \001(\t\"\264\002\n\013DeliverInfo\022E\n\006" + + "v1\032\037google/api/field_behavior.proto\"\207\001\n\005" + + "Trace\022F\n\rendpoint_info\030\001 \001(\0132/.google.cl" + + "oud.networkmanagement.v1.EndpointInfo\0226\n" + + "\005steps\030\002 \003(\0132\'.google.cloud.networkmanag" + + "ement.v1.Step\"\217\025\n\004Step\022\023\n\013description\030\001 " + + "\001(\t\022<\n\005state\030\002 \001(\0162-.google.cloud.networ" + + "kmanagement.v1.Step.State\022\023\n\013causes_drop" + + "\030\003 \001(\010\022\022\n\nproject_id\030\004 \001(\t\022C\n\010instance\030\005" + + " \001(\0132/.google.cloud.networkmanagement.v1" + + ".InstanceInfoH\000\022C\n\010firewall\030\006 \001(\0132/.goog" + + "le.cloud.networkmanagement.v1.FirewallIn" + + "foH\000\022=\n\005route\030\007 \001(\0132,.google.cloud.netwo" + + "rkmanagement.v1.RouteInfoH\000\022C\n\010endpoint\030" + + "\010 \001(\0132/.google.cloud.networkmanagement.v" + + "1.EndpointInfoH\000\022N\n\016google_service\030\030 \001(\013" + + "24.google.cloud.networkmanagement.v1.Goo" + + "gleServiceInfoH\000\022P\n\017forwarding_rule\030\t \001(" + + "\01325.google.cloud.networkmanagement.v1.Fo" + + "rwardingRuleInfoH\000\022H\n\013vpn_gateway\030\n \001(\0132" + + "1.google.cloud.networkmanagement.v1.VpnG" + + "atewayInfoH\000\022F\n\nvpn_tunnel\030\013 \001(\01320.googl" + + "e.cloud.networkmanagement.v1.VpnTunnelIn" + + "foH\000\022L\n\rvpc_connector\030\025 \001(\01323.google.clo" + + "ud.networkmanagement.v1.VpcConnectorInfo" + + "H\000\022A\n\007deliver\030\014 \001(\0132..google.cloud.netwo" + + "rkmanagement.v1.DeliverInfoH\000\022A\n\007forward" + + "\030\r \001(\0132..google.cloud.networkmanagement." + + "v1.ForwardInfoH\000\022=\n\005abort\030\016 \001(\0132,.google" + + ".cloud.networkmanagement.v1.AbortInfoH\000\022" + + ";\n\004drop\030\017 \001(\0132+.google.cloud.networkmana" + + "gement.v1.DropInfoH\000\022L\n\rload_balancer\030\020 " + + "\001(\01323.google.cloud.networkmanagement.v1." + + "LoadBalancerInfoH\000\022A\n\007network\030\021 \001(\0132..go" + + "ogle.cloud.networkmanagement.v1.NetworkI" + + "nfoH\000\022F\n\ngke_master\030\022 \001(\01320.google.cloud" + + ".networkmanagement.v1.GKEMasterInfoH\000\022U\n" + + "\022cloud_sql_instance\030\023 \001(\01327.google.cloud" + + ".networkmanagement.v1.CloudSQLInstanceIn" + + "foH\000\022N\n\016cloud_function\030\024 \001(\01324.google.cl" + + "oud.networkmanagement.v1.CloudFunctionIn" + + "foH\000\022U\n\022app_engine_version\030\026 \001(\01327.googl" + + "e.cloud.networkmanagement.v1.AppEngineVe" + + "rsionInfoH\000\022U\n\022cloud_run_revision\030\027 \001(\0132" + + "7.google.cloud.networkmanagement.v1.Clou" + + "dRunRevisionInfoH\000\0229\n\003nat\030\031 \001(\0132*.google" + + ".cloud.networkmanagement.v1.NatInfoH\000\022R\n" + + "\020proxy_connection\030\032 \001(\01326.google.cloud.n" + + "etworkmanagement.v1.ProxyConnectionInfoH" + + "\000\022`\n\032load_balancer_backend_info\030\033 \001(\0132:." + + "google.cloud.networkmanagement.v1.LoadBa" + + "lancerBackendInfoH\000\022N\n\016storage_bucket\030\034 " + + "\001(\01324.google.cloud.networkmanagement.v1." + + "StorageBucketInfoH\000\"\374\005\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\027\n\023START_FROM_INSTANCE\020\001\022\027\n" + + "\023START_FROM_INTERNET\020\002\022\035\n\031START_FROM_GOO" + + "GLE_SERVICE\020\033\022\036\n\032START_FROM_PRIVATE_NETW" + + "ORK\020\003\022\031\n\025START_FROM_GKE_MASTER\020\025\022!\n\035STAR" + + "T_FROM_CLOUD_SQL_INSTANCE\020\026\022\035\n\031START_FRO" + + "M_CLOUD_FUNCTION\020\027\022!\n\035START_FROM_APP_ENG" + + "INE_VERSION\020\031\022!\n\035START_FROM_CLOUD_RUN_RE" + + "VISION\020\032\022\037\n\033APPLY_INGRESS_FIREWALL_RULE\020" + + "\004\022\036\n\032APPLY_EGRESS_FIREWALL_RULE\020\005\022\017\n\013APP" + + "LY_ROUTE\020\006\022\031\n\025APPLY_FORWARDING_RULE\020\007\022!\n" + + "\035ANALYZE_LOAD_BALANCER_BACKEND\020\034\022\025\n\021SPOO" + + "FING_APPROVED\020\010\022\026\n\022ARRIVE_AT_INSTANCE\020\t\022" + + "$\n ARRIVE_AT_INTERNAL_LOAD_BALANCER\020\n\022$\n" + + " ARRIVE_AT_EXTERNAL_LOAD_BALANCER\020\013\022\031\n\025A" + + "RRIVE_AT_VPN_GATEWAY\020\014\022\030\n\024ARRIVE_AT_VPN_" + + "TUNNEL\020\r\022\033\n\027ARRIVE_AT_VPC_CONNECTOR\020\030\022\007\n" + + "\003NAT\020\016\022\024\n\020PROXY_CONNECTION\020\017\022\013\n\007DELIVER\020" + + "\020\022\010\n\004DROP\020\021\022\013\n\007FORWARD\020\022\022\t\n\005ABORT\020\023\022\035\n\031V" + + "IEWER_PERMISSION_MISSING\020\024B\013\n\tstep_info\"" + + "\266\001\n\014InstanceInfo\022\024\n\014display_name\030\001 \001(\t\022\013" + + "\n\003uri\030\002 \001(\t\022\021\n\tinterface\030\003 \001(\t\022\023\n\013networ" + + "k_uri\030\004 \001(\t\022\023\n\013internal_ip\030\005 \001(\t\022\023\n\013exte" + + "rnal_ip\030\006 \001(\t\022\024\n\014network_tags\030\007 \003(\t\022\033\n\017s" + + "ervice_account\030\010 \001(\tB\002\030\001\"J\n\013NetworkInfo\022" + + "\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\030\n\020ma" + + "tched_ip_range\030\004 \001(\t\"\263\004\n\014FirewallInfo\022\024\n" + + "\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\021\n\tdire" + + "ction\030\003 \001(\t\022\016\n\006action\030\004 \001(\t\022\020\n\010priority\030" + + "\005 \001(\005\022\023\n\013network_uri\030\006 \001(\t\022\023\n\013target_tag" + + "s\030\007 \003(\t\022\037\n\027target_service_accounts\030\010 \003(\t" + + "\022\016\n\006policy\030\t \001(\t\022\\\n\022firewall_rule_type\030\n" + + " \001(\0162@.google.cloud.networkmanagement.v1" + + ".FirewallInfo.FirewallRuleType\"\221\002\n\020Firew" + + "allRuleType\022\"\n\036FIREWALL_RULE_TYPE_UNSPEC" + + "IFIED\020\000\022%\n!HIERARCHICAL_FIREWALL_POLICY_" + + "RULE\020\001\022\025\n\021VPC_FIREWALL_RULE\020\002\022\035\n\031IMPLIED" + + "_VPC_FIREWALL_RULE\020\003\022/\n+SERVERLESS_VPC_A" + + "CCESS_MANAGED_FIREWALL_RULE\020\004\022 \n\034NETWORK" + + "_FIREWALL_POLICY_RULE\020\005\022)\n%NETWORK_REGIO" + + "NAL_FIREWALL_POLICY_RULE\020\006\"\346\010\n\tRouteInfo" + + "\022J\n\nroute_type\030\010 \001(\01626.google.cloud.netw" + + "orkmanagement.v1.RouteInfo.RouteType\022O\n\r" + + "next_hop_type\030\t \001(\01628.google.cloud.netwo" + + "rkmanagement.v1.RouteInfo.NextHopType\022L\n" + + "\013route_scope\030\016 \001(\01627.google.cloud.networ" + + "kmanagement.v1.RouteInfo.RouteScope\022\024\n\014d" + + "isplay_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\025\n\rdest_i" + + "p_range\030\003 \001(\t\022\020\n\010next_hop\030\004 \001(\t\022\023\n\013netwo" + + "rk_uri\030\005 \001(\t\022\020\n\010priority\030\006 \001(\005\022\025\n\rinstan" + + "ce_tags\030\007 \003(\t\022\024\n\014src_ip_range\030\n \001(\t\022\030\n\020d" + + "est_port_ranges\030\013 \003(\t\022\027\n\017src_port_ranges" + + "\030\014 \003(\t\022\021\n\tprotocols\030\r \003(\t\022\030\n\013ncc_hub_uri" + + "\030\017 \001(\tH\000\210\001\001\022\032\n\rncc_spoke_uri\030\020 \001(\tH\001\210\001\001\"" + + "\233\001\n\tRouteType\022\032\n\026ROUTE_TYPE_UNSPECIFIED\020" + + "\000\022\n\n\006SUBNET\020\001\022\n\n\006STATIC\020\002\022\013\n\007DYNAMIC\020\003\022\022" + + "\n\016PEERING_SUBNET\020\004\022\022\n\016PEERING_STATIC\020\005\022\023" + + "\n\017PEERING_DYNAMIC\020\006\022\020\n\014POLICY_BASED\020\007\"\314\002" + + "\n\013NextHopType\022\035\n\031NEXT_HOP_TYPE_UNSPECIFI" + + "ED\020\000\022\017\n\013NEXT_HOP_IP\020\001\022\025\n\021NEXT_HOP_INSTAN" + + "CE\020\002\022\024\n\020NEXT_HOP_NETWORK\020\003\022\024\n\020NEXT_HOP_P" + + "EERING\020\004\022\031\n\025NEXT_HOP_INTERCONNECT\020\005\022\027\n\023N" + + "EXT_HOP_VPN_TUNNEL\020\006\022\030\n\024NEXT_HOP_VPN_GAT" + + "EWAY\020\007\022\035\n\031NEXT_HOP_INTERNET_GATEWAY\020\010\022\026\n" + + "\022NEXT_HOP_BLACKHOLE\020\t\022\020\n\014NEXT_HOP_ILB\020\n\022" + + "\035\n\031NEXT_HOP_ROUTER_APPLIANCE\020\013\022\024\n\020NEXT_H" + + "OP_NCC_HUB\020\014\"C\n\nRouteScope\022\033\n\027ROUTE_SCOP" + + "E_UNSPECIFIED\020\000\022\013\n\007NETWORK\020\001\022\013\n\007NCC_HUB\020" + + "\002B\016\n\014_ncc_hub_uriB\020\n\016_ncc_spoke_uri\"\203\002\n\021" + + "GoogleServiceInfo\022\021\n\tsource_ip\030\001 \001(\t\022c\n\023" + + "google_service_type\030\002 \001(\0162F.google.cloud" + + ".networkmanagement.v1.GoogleServiceInfo." + + "GoogleServiceType\"v\n\021GoogleServiceType\022#" + + "\n\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n\003I" + + "AP\020\001\022$\n GFE_PROXY_OR_HEALTH_CHECK_PROBER" + + "\020\002\022\r\n\tCLOUD_DNS\020\003\"\237\001\n\022ForwardingRuleInfo" + + "\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\030\n\020m" + + "atched_protocol\030\003 \001(\t\022\032\n\022matched_port_ra" + + "nge\030\006 \001(\t\022\013\n\003vip\030\004 \001(\t\022\016\n\006target\030\005 \001(\t\022\023" + + "\n\013network_uri\030\007 \001(\t\"\276\004\n\020LoadBalancerInfo" + + "\022`\n\022load_balancer_type\030\001 \001(\0162D.google.cl" + + "oud.networkmanagement.v1.LoadBalancerInf" + + "o.LoadBalancerType\022\030\n\020health_check_uri\030\002" + + " \001(\t\022H\n\010backends\030\003 \003(\01326.google.cloud.ne" + + "tworkmanagement.v1.LoadBalancerBackend\022U" + + "\n\014backend_type\030\004 \001(\0162?.google.cloud.netw" + + "orkmanagement.v1.LoadBalancerInfo.Backen" + + "dType\022\023\n\013backend_uri\030\005 \001(\t\"\217\001\n\020LoadBalan" + + "cerType\022\"\n\036LOAD_BALANCER_TYPE_UNSPECIFIE" + + "D\020\000\022\024\n\020INTERNAL_TCP_UDP\020\001\022\023\n\017NETWORK_TCP" + + "_UDP\020\002\022\016\n\nHTTP_PROXY\020\003\022\r\n\tTCP_PROXY\020\004\022\r\n" + + "\tSSL_PROXY\020\005\"f\n\013BackendType\022\034\n\030BACKEND_T" + + "YPE_UNSPECIFIED\020\000\022\023\n\017BACKEND_SERVICE\020\001\022\017" + + "\n\013TARGET_POOL\020\002\022\023\n\017TARGET_INSTANCE\020\003\"\366\002\n" + + "\023LoadBalancerBackend\022\024\n\014display_name\030\001 \001" + + "(\t\022\013\n\003uri\030\002 \001(\t\022t\n\033health_check_firewall" + + "_state\030\003 \001(\0162O.google.cloud.networkmanag" + + "ement.v1.LoadBalancerBackend.HealthCheck" + + "FirewallState\022,\n$health_check_allowing_f" + + "irewall_rules\030\004 \003(\t\022,\n$health_check_bloc" + + "king_firewall_rules\030\005 \003(\t\"j\n\030HealthCheck" + + "FirewallState\022+\n\'HEALTH_CHECK_FIREWALL_S" + + "TATE_UNSPECIFIED\020\000\022\016\n\nCONFIGURED\020\001\022\021\n\rMI" + + "SCONFIGURED\020\002\"\204\001\n\016VpnGatewayInfo\022\024\n\014disp" + + "lay_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\023\n\013network_u" + + "ri\030\003 \001(\t\022\022\n\nip_address\030\004 \001(\t\022\026\n\016vpn_tunn" + + "el_uri\030\005 \001(\t\022\016\n\006region\030\006 \001(\t\"\356\002\n\rVpnTunn" + + "elInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(" + + "\t\022\026\n\016source_gateway\030\003 \001(\t\022\026\n\016remote_gate" + + "way\030\004 \001(\t\022\031\n\021remote_gateway_ip\030\005 \001(\t\022\031\n\021" + + "source_gateway_ip\030\006 \001(\t\022\023\n\013network_uri\030\007" + + " \001(\t\022\016\n\006region\030\010 \001(\t\022R\n\014routing_type\030\t \001" + + "(\0162<.google.cloud.networkmanagement.v1.V" + + "pnTunnelInfo.RoutingType\"[\n\013RoutingType\022" + + "\034\n\030ROUTING_TYPE_UNSPECIFIED\020\000\022\017\n\013ROUTE_B" + + "ASED\020\001\022\020\n\014POLICY_BASED\020\002\022\013\n\007DYNAMIC\020\003\"\321\001" + + "\n\014EndpointInfo\022\021\n\tsource_ip\030\001 \001(\t\022\026\n\016des" + + "tination_ip\030\002 \001(\t\022\020\n\010protocol\030\003 \001(\t\022\023\n\013s" + + "ource_port\030\004 \001(\005\022\030\n\020destination_port\030\005 \001" + + "(\005\022\032\n\022source_network_uri\030\006 \001(\t\022\037\n\027destin" + + "ation_network_uri\030\007 \001(\t\022\030\n\020source_agent_" + + "uri\030\010 \001(\t\"\310\002\n\013DeliverInfo\022E\n\006target\030\001 \001(" + + "\01625.google.cloud.networkmanagement.v1.De" + + "liverInfo.Target\022\024\n\014resource_uri\030\002 \001(\t\"\333" + + "\001\n\006Target\022\026\n\022TARGET_UNSPECIFIED\020\000\022\014\n\010INS" + + "TANCE\020\001\022\014\n\010INTERNET\020\002\022\016\n\nGOOGLE_API\020\003\022\016\n" + + "\nGKE_MASTER\020\004\022\026\n\022CLOUD_SQL_INSTANCE\020\005\022\031\n" + + "\025PSC_PUBLISHED_SERVICE\020\006\022\022\n\016PSC_GOOGLE_A" + + "PI\020\007\022\016\n\nPSC_VPC_SC\020\010\022\022\n\016SERVERLESS_NEG\020\t" + + "\022\022\n\016STORAGE_BUCKET\020\n\"\257\002\n\013ForwardInfo\022E\n\006" + "target\030\001 \001(\01625.google.cloud.networkmanag" - + "ement.v1.DeliverInfo.Target\022\024\n\014resource_" - + "uri\030\002 \001(\t\"\307\001\n\006Target\022\026\n\022TARGET_UNSPECIFI" - + "ED\020\000\022\014\n\010INSTANCE\020\001\022\014\n\010INTERNET\020\002\022\016\n\nGOOG" - + "LE_API\020\003\022\016\n\nGKE_MASTER\020\004\022\026\n\022CLOUD_SQL_IN" - + "STANCE\020\005\022\031\n\025PSC_PUBLISHED_SERVICE\020\006\022\022\n\016P" - + "SC_GOOGLE_API\020\007\022\016\n\nPSC_VPC_SC\020\010\022\022\n\016SERVE" - + "RLESS_NEG\020\t\"\257\002\n\013ForwardInfo\022E\n\006target\030\001 " - + "\001(\01625.google.cloud.networkmanagement.v1." - + "ForwardInfo.Target\022\024\n\014resource_uri\030\002 \001(\t" - + "\"\302\001\n\006Target\022\026\n\022TARGET_UNSPECIFIED\020\000\022\017\n\013P" - + "EERING_VPC\020\001\022\017\n\013VPN_GATEWAY\020\002\022\020\n\014INTERCO" - + "NNECT\020\003\022\016\n\nGKE_MASTER\020\004\022\"\n\036IMPORTED_CUST" - + "OM_ROUTE_NEXT_HOP\020\005\022\026\n\022CLOUD_SQL_INSTANC" - + "E\020\006\022\023\n\017ANOTHER_PROJECT\020\007\022\013\n\007NCC_HUB\020\010\"\373\005" - + "\n\tAbortInfo\022A\n\005cause\030\001 \001(\01622.google.clou" - + "d.networkmanagement.v1.AbortInfo.Cause\022\024" - + "\n\014resource_uri\030\002 \001(\t\022#\n\033projects_missing" - + "_permission\030\003 \003(\t\"\357\004\n\005Cause\022\025\n\021CAUSE_UNS" - + "PECIFIED\020\000\022\023\n\017UNKNOWN_NETWORK\020\001\022\016\n\nUNKNO" - + "WN_IP\020\002\022\023\n\017UNKNOWN_PROJECT\020\003\022\025\n\021PERMISSI" - + "ON_DENIED\020\004\022\026\n\022NO_SOURCE_LOCATION\020\005\022\024\n\020I" - + "NVALID_ARGUMENT\020\006\022\022\n\016NO_EXTERNAL_IP\020\007\022\032\n" - + "\026UNINTENDED_DESTINATION\020\010\022\022\n\016TRACE_TOO_L" - + "ONG\020\t\022\022\n\016INTERNAL_ERROR\020\n\022\035\n\031SOURCE_ENDP" - + "OINT_NOT_FOUND\020\013\022\035\n\031MISMATCHED_SOURCE_NE" - + "TWORK\020\014\022\"\n\036DESTINATION_ENDPOINT_NOT_FOUN" - + "D\020\r\022\"\n\036MISMATCHED_DESTINATION_NETWORK\020\016\022" - + "\017\n\013UNSUPPORTED\020\017\022\031\n\025MISMATCHED_IP_VERSIO" - + "N\020\020\022&\n\"GKE_KONNECTIVITY_PROXY_UNSUPPORTE" - + "D\020\021\022\035\n\031RESOURCE_CONFIG_NOT_FOUND\020\022\0221\n-GO" - + "OGLE_MANAGED_SERVICE_AMBIGUOUS_PSC_ENDPO" - + "INT\020\023\022$\n SOURCE_PSC_CLOUD_SQL_UNSUPPORTE" - + "D\020\024\022&\n\"SOURCE_FORWARDING_RULE_UNSUPPORTE" - + "D\020\025\"\305\013\n\010DropInfo\022@\n\005cause\030\001 \001(\01621.google" - + ".cloud.networkmanagement.v1.DropInfo.Cau" - + "se\022\024\n\014resource_uri\030\002 \001(\t\"\340\n\n\005Cause\022\025\n\021CA" - + "USE_UNSPECIFIED\020\000\022\034\n\030UNKNOWN_EXTERNAL_AD" - + "DRESS\020\001\022\031\n\025FOREIGN_IP_DISALLOWED\020\002\022\021\n\rFI" - + "REWALL_RULE\020\003\022\014\n\010NO_ROUTE\020\004\022\023\n\017ROUTE_BLA" - + "CKHOLE\020\005\022\027\n\023ROUTE_WRONG_NETWORK\020\006\022\037\n\033PRI" - + "VATE_TRAFFIC_TO_INTERNET\020\007\022$\n PRIVATE_GO" - + "OGLE_ACCESS_DISALLOWED\020\010\022\027\n\023NO_EXTERNAL_" - + "ADDRESS\020\t\022\034\n\030UNKNOWN_INTERNAL_ADDRESS\020\n\022" - + "\034\n\030FORWARDING_RULE_MISMATCH\020\013\022#\n\037FORWARD" - + "ING_RULE_REGION_MISMATCH\020\031\022 \n\034FORWARDING" - + "_RULE_NO_INSTANCES\020\014\0228\n4FIREWALL_BLOCKIN" - + "G_LOAD_BALANCER_BACKEND_HEALTH_CHECK\020\r\022\030" - + "\n\024INSTANCE_NOT_RUNNING\020\016\022\033\n\027GKE_CLUSTER_" - + "NOT_RUNNING\020\033\022\"\n\036CLOUD_SQL_INSTANCE_NOT_" - + "RUNNING\020\034\022\030\n\024TRAFFIC_TYPE_BLOCKED\020\017\022\"\n\036G" - + "KE_MASTER_UNAUTHORIZED_ACCESS\020\020\022*\n&CLOUD" - + "_SQL_INSTANCE_UNAUTHORIZED_ACCESS\020\021\022\036\n\032D" - + "ROPPED_INSIDE_GKE_SERVICE\020\022\022$\n DROPPED_I" - + "NSIDE_CLOUD_SQL_SERVICE\020\023\022%\n!GOOGLE_MANA" - + "GED_SERVICE_NO_PEERING\020\024\022*\n&GOOGLE_MANAG" - + "ED_SERVICE_NO_PSC_ENDPOINT\020&\022\034\n\030GKE_PSC_" - + "ENDPOINT_MISSING\020$\022$\n CLOUD_SQL_INSTANCE" - + "_NO_IP_ADDRESS\020\025\022%\n!GKE_CONTROL_PLANE_RE" - + "GION_MISMATCH\020\036\0223\n/PUBLIC_GKE_CONTROL_PL" - + "ANE_TO_PRIVATE_DESTINATION\020\037\022\036\n\032GKE_CONT" - + "ROL_PLANE_NO_ROUTE\020 \022:\n6CLOUD_SQL_INSTAN" - + "CE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC\020!" - + "\0224\n0PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE" - + "_DESTINATION\020\"\022\037\n\033CLOUD_SQL_INSTANCE_NO_" - + "ROUTE\020#\022\035\n\031CLOUD_FUNCTION_NOT_ACTIVE\020\026\022\031" - + "\n\025VPC_CONNECTOR_NOT_SET\020\027\022\035\n\031VPC_CONNECT" - + "OR_NOT_RUNNING\020\030\022\037\n\033PSC_CONNECTION_NOT_A" - + "CCEPTED\020\032\022 \n\034CLOUD_RUN_REVISION_NOT_READ" - + "Y\020\035\022\'\n#DROPPED_INSIDE_PSC_SERVICE_PRODUC" - + "ER\020%\022%\n!LOAD_BALANCER_HAS_NO_PROXY_SUBNE" - + "T\020\'\"k\n\rGKEMasterInfo\022\023\n\013cluster_uri\030\002 \001(" - + "\t\022\033\n\023cluster_network_uri\030\004 \001(\t\022\023\n\013intern" - + "al_ip\030\005 \001(\t\022\023\n\013external_ip\030\006 \001(\t\"\210\001\n\024Clo" - + "udSQLInstanceInfo\022\024\n\014display_name\030\001 \001(\t\022" - + "\013\n\003uri\030\002 \001(\t\022\023\n\013network_uri\030\004 \001(\t\022\023\n\013int" - + "ernal_ip\030\005 \001(\t\022\023\n\013external_ip\030\006 \001(\t\022\016\n\006r" - + "egion\030\007 \001(\t\"\\\n\021CloudFunctionInfo\022\024\n\014disp" - + "lay_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010location\030" - + "\003 \001(\t\022\022\n\nversion_id\030\004 \001(\003\"`\n\024CloudRunRev" - + "isionInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002" - + " \001(\t\022\020\n\010location\030\004 \001(\t\022\023\n\013service_uri\030\005 " - + "\001(\t\"_\n\024AppEngineVersionInfo\022\024\n\014display_n" - + "ame\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\017\n\007runtime\030\003 \001(\t\022" - + "\023\n\013environment\030\004 \001(\t\"G\n\020VpcConnectorInfo" - + "\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010l" - + "ocation\030\003 \001(\t*\366\002\n\020LoadBalancerType\022\"\n\036LO" - + "AD_BALANCER_TYPE_UNSPECIFIED\020\000\022 \n\034HTTPS_" - + "ADVANCED_LOAD_BALANCER\020\001\022\027\n\023HTTPS_LOAD_B" - + "ALANCER\020\002\022 \n\034REGIONAL_HTTPS_LOAD_BALANCE" - + "R\020\003\022 \n\034INTERNAL_HTTPS_LOAD_BALANCER\020\004\022\033\n" - + "\027SSL_PROXY_LOAD_BALANCER\020\005\022\033\n\027TCP_PROXY_" - + "LOAD_BALANCER\020\006\022$\n INTERNAL_TCP_PROXY_LO" - + "AD_BALANCER\020\007\022\031\n\025NETWORK_LOAD_BALANCER\020\010" - + "\022 \n\034LEGACY_NETWORK_LOAD_BALANCER\020\t\022\"\n\036TC" - + "P_UDP_INTERNAL_LOAD_BALANCER\020\nB\371\001\n%com.g" - + "oogle.cloud.networkmanagement.v1B\nTraceP" - + "rotoP\001ZScloud.google.com/go/networkmanag" - + "ement/apiv1/networkmanagementpb;networkm" - + "anagementpb\252\002!Google.Cloud.NetworkManage" - + "ment.V1\312\002!Google\\Cloud\\NetworkManagement" - + "\\V1\352\002$Google::Cloud::NetworkManagement::" - + "V1b\006proto3" + + "ement.v1.ForwardInfo.Target\022\024\n\014resource_" + + "uri\030\002 \001(\t\"\302\001\n\006Target\022\026\n\022TARGET_UNSPECIFI" + + "ED\020\000\022\017\n\013PEERING_VPC\020\001\022\017\n\013VPN_GATEWAY\020\002\022\020" + + "\n\014INTERCONNECT\020\003\022\016\n\nGKE_MASTER\020\004\022\"\n\036IMPO" + + "RTED_CUSTOM_ROUTE_NEXT_HOP\020\005\022\026\n\022CLOUD_SQ" + + "L_INSTANCE\020\006\022\023\n\017ANOTHER_PROJECT\020\007\022\013\n\007NCC" + + "_HUB\020\010\"\373\005\n\tAbortInfo\022A\n\005cause\030\001 \001(\01622.go" + + "ogle.cloud.networkmanagement.v1.AbortInf" + + "o.Cause\022\024\n\014resource_uri\030\002 \001(\t\022#\n\033project" + + "s_missing_permission\030\003 \003(\t\"\357\004\n\005Cause\022\025\n\021" + + "CAUSE_UNSPECIFIED\020\000\022\023\n\017UNKNOWN_NETWORK\020\001" + + "\022\016\n\nUNKNOWN_IP\020\002\022\023\n\017UNKNOWN_PROJECT\020\003\022\025\n" + + "\021PERMISSION_DENIED\020\004\022\026\n\022NO_SOURCE_LOCATI" + + "ON\020\005\022\024\n\020INVALID_ARGUMENT\020\006\022\022\n\016NO_EXTERNA" + + "L_IP\020\007\022\032\n\026UNINTENDED_DESTINATION\020\010\022\022\n\016TR" + + "ACE_TOO_LONG\020\t\022\022\n\016INTERNAL_ERROR\020\n\022\035\n\031SO" + + "URCE_ENDPOINT_NOT_FOUND\020\013\022\035\n\031MISMATCHED_" + + "SOURCE_NETWORK\020\014\022\"\n\036DESTINATION_ENDPOINT" + + "_NOT_FOUND\020\r\022\"\n\036MISMATCHED_DESTINATION_N" + + "ETWORK\020\016\022\017\n\013UNSUPPORTED\020\017\022\031\n\025MISMATCHED_" + + "IP_VERSION\020\020\022&\n\"GKE_KONNECTIVITY_PROXY_U" + + "NSUPPORTED\020\021\022\035\n\031RESOURCE_CONFIG_NOT_FOUN" + + "D\020\022\0221\n-GOOGLE_MANAGED_SERVICE_AMBIGUOUS_" + + "PSC_ENDPOINT\020\023\022$\n SOURCE_PSC_CLOUD_SQL_U" + + "NSUPPORTED\020\024\022&\n\"SOURCE_FORWARDING_RULE_U" + + "NSUPPORTED\020\025\"\305\013\n\010DropInfo\022@\n\005cause\030\001 \001(\016" + + "21.google.cloud.networkmanagement.v1.Dro" + + "pInfo.Cause\022\024\n\014resource_uri\030\002 \001(\t\"\340\n\n\005Ca" + + "use\022\025\n\021CAUSE_UNSPECIFIED\020\000\022\034\n\030UNKNOWN_EX" + + "TERNAL_ADDRESS\020\001\022\031\n\025FOREIGN_IP_DISALLOWE" + + "D\020\002\022\021\n\rFIREWALL_RULE\020\003\022\014\n\010NO_ROUTE\020\004\022\023\n\017" + + "ROUTE_BLACKHOLE\020\005\022\027\n\023ROUTE_WRONG_NETWORK" + + "\020\006\022\037\n\033PRIVATE_TRAFFIC_TO_INTERNET\020\007\022$\n P" + + "RIVATE_GOOGLE_ACCESS_DISALLOWED\020\010\022\027\n\023NO_" + + "EXTERNAL_ADDRESS\020\t\022\034\n\030UNKNOWN_INTERNAL_A" + + "DDRESS\020\n\022\034\n\030FORWARDING_RULE_MISMATCH\020\013\022#" + + "\n\037FORWARDING_RULE_REGION_MISMATCH\020\031\022 \n\034F" + + "ORWARDING_RULE_NO_INSTANCES\020\014\0228\n4FIREWAL" + + "L_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_" + + "CHECK\020\r\022\030\n\024INSTANCE_NOT_RUNNING\020\016\022\033\n\027GKE" + + "_CLUSTER_NOT_RUNNING\020\033\022\"\n\036CLOUD_SQL_INST" + + "ANCE_NOT_RUNNING\020\034\022\030\n\024TRAFFIC_TYPE_BLOCK" + + "ED\020\017\022\"\n\036GKE_MASTER_UNAUTHORIZED_ACCESS\020\020" + + "\022*\n&CLOUD_SQL_INSTANCE_UNAUTHORIZED_ACCE" + + "SS\020\021\022\036\n\032DROPPED_INSIDE_GKE_SERVICE\020\022\022$\n " + + "DROPPED_INSIDE_CLOUD_SQL_SERVICE\020\023\022%\n!GO" + + "OGLE_MANAGED_SERVICE_NO_PEERING\020\024\022*\n&GOO" + + "GLE_MANAGED_SERVICE_NO_PSC_ENDPOINT\020&\022\034\n" + + "\030GKE_PSC_ENDPOINT_MISSING\020$\022$\n CLOUD_SQL" + + "_INSTANCE_NO_IP_ADDRESS\020\025\022%\n!GKE_CONTROL" + + "_PLANE_REGION_MISMATCH\020\036\0223\n/PUBLIC_GKE_C" + + "ONTROL_PLANE_TO_PRIVATE_DESTINATION\020\037\022\036\n" + + "\032GKE_CONTROL_PLANE_NO_ROUTE\020 \022:\n6CLOUD_S" + + "QL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_" + + "TRAFFIC\020!\0224\n0PUBLIC_CLOUD_SQL_INSTANCE_T" + + "O_PRIVATE_DESTINATION\020\"\022\037\n\033CLOUD_SQL_INS" + + "TANCE_NO_ROUTE\020#\022\035\n\031CLOUD_FUNCTION_NOT_A" + + "CTIVE\020\026\022\031\n\025VPC_CONNECTOR_NOT_SET\020\027\022\035\n\031VP" + + "C_CONNECTOR_NOT_RUNNING\020\030\022\037\n\033PSC_CONNECT" + + "ION_NOT_ACCEPTED\020\032\022 \n\034CLOUD_RUN_REVISION" + + "_NOT_READY\020\035\022\'\n#DROPPED_INSIDE_PSC_SERVI" + + "CE_PRODUCER\020%\022%\n!LOAD_BALANCER_HAS_NO_PR" + + "OXY_SUBNET\020\'\"k\n\rGKEMasterInfo\022\023\n\013cluster" + + "_uri\030\002 \001(\t\022\033\n\023cluster_network_uri\030\004 \001(\t\022" + + "\023\n\013internal_ip\030\005 \001(\t\022\023\n\013external_ip\030\006 \001(" + + "\t\"\210\001\n\024CloudSQLInstanceInfo\022\024\n\014display_na" + + "me\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\023\n\013network_uri\030\004 \001" + + "(\t\022\023\n\013internal_ip\030\005 \001(\t\022\023\n\013external_ip\030\006" + + " \001(\t\022\016\n\006region\030\007 \001(\t\"\\\n\021CloudFunctionInf" + + "o\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010" + + "location\030\003 \001(\t\022\022\n\nversion_id\030\004 \001(\003\"`\n\024Cl" + + "oudRunRevisionInfo\022\024\n\014display_name\030\001 \001(\t" + + "\022\013\n\003uri\030\002 \001(\t\022\020\n\010location\030\004 \001(\t\022\023\n\013servi" + + "ce_uri\030\005 \001(\t\"_\n\024AppEngineVersionInfo\022\024\n\014" + + "display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\017\n\007runti" + + "me\030\003 \001(\t\022\023\n\013environment\030\004 \001(\t\"G\n\020VpcConn" + + "ectorInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002" + + " \001(\t\022\020\n\010location\030\003 \001(\t\"\357\003\n\007NatInfo\022=\n\004ty" + + "pe\030\001 \001(\0162/.google.cloud.networkmanagemen" + + "t.v1.NatInfo.Type\022\020\n\010protocol\030\002 \001(\t\022\023\n\013n" + + "etwork_uri\030\003 \001(\t\022\025\n\rold_source_ip\030\004 \001(\t\022" + + "\025\n\rnew_source_ip\030\005 \001(\t\022\032\n\022old_destinatio" + + "n_ip\030\006 \001(\t\022\032\n\022new_destination_ip\030\007 \001(\t\022\027" + + "\n\017old_source_port\030\010 \001(\005\022\027\n\017new_source_po" + + "rt\030\t \001(\005\022\034\n\024old_destination_port\030\n \001(\005\022\034" + + "\n\024new_destination_port\030\013 \001(\005\022\022\n\nrouter_u" + + "ri\030\014 \001(\t\022\030\n\020nat_gateway_name\030\r \001(\t\"|\n\004Ty" + + "pe\022\024\n\020TYPE_UNSPECIFIED\020\000\022\030\n\024INTERNAL_TO_" + + "EXTERNAL\020\001\022\030\n\024EXTERNAL_TO_INTERNAL\020\002\022\r\n\t" + + "CLOUD_NAT\020\003\022\033\n\027PRIVATE_SERVICE_CONNECT\020\004" + + "\"\244\002\n\023ProxyConnectionInfo\022\020\n\010protocol\030\001 \001" + + "(\t\022\025\n\rold_source_ip\030\002 \001(\t\022\025\n\rnew_source_" + + "ip\030\003 \001(\t\022\032\n\022old_destination_ip\030\004 \001(\t\022\032\n\022" + + "new_destination_ip\030\005 \001(\t\022\027\n\017old_source_p" + + "ort\030\006 \001(\005\022\027\n\017new_source_port\030\007 \001(\005\022\034\n\024ol" + + "d_destination_port\030\010 \001(\005\022\034\n\024new_destinat" + + "ion_port\030\t \001(\005\022\022\n\nsubnet_uri\030\n \001(\t\022\023\n\013ne" + + "twork_uri\030\013 \001(\t\"\362\004\n\027LoadBalancerBackendI" + + "nfo\022\014\n\004name\030\001 \001(\t\022\024\n\014instance_uri\030\002 \001(\t\022" + + "\033\n\023backend_service_uri\030\003 \001(\t\022\032\n\022instance" + + "_group_uri\030\004 \001(\t\022\"\n\032network_endpoint_gro" + + "up_uri\030\005 \001(\t\022\032\n\022backend_bucket_uri\030\010 \001(\t" + + "\022\"\n\032psc_service_attachment_uri\030\t \001(\t\022\035\n\025" + + "psc_google_api_target\030\n \001(\t\022\030\n\020health_ch" + + "eck_uri\030\006 \001(\t\022\214\001\n#health_check_firewalls" + + "_config_state\030\007 \001(\0162Z.google.cloud.netwo" + + "rkmanagement.v1.LoadBalancerBackendInfo." + + "HealthCheckFirewallsConfigStateB\003\340A\003\"\315\001\n" + + "\037HealthCheckFirewallsConfigState\0223\n/HEAL" + + "TH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIF" + + "IED\020\000\022\030\n\024FIREWALLS_CONFIGURED\020\001\022\"\n\036FIREW" + + "ALLS_PARTIALLY_CONFIGURED\020\002\022\034\n\030FIREWALLS" + + "_NOT_CONFIGURED\020\003\022\031\n\025FIREWALLS_UNSUPPORT" + + "ED\020\004\"#\n\021StorageBucketInfo\022\016\n\006bucket\030\001 \001(" + + "\t*\366\002\n\020LoadBalancerType\022\"\n\036LOAD_BALANCER_" + + "TYPE_UNSPECIFIED\020\000\022 \n\034HTTPS_ADVANCED_LOA" + + "D_BALANCER\020\001\022\027\n\023HTTPS_LOAD_BALANCER\020\002\022 \n" + + "\034REGIONAL_HTTPS_LOAD_BALANCER\020\003\022 \n\034INTER" + + "NAL_HTTPS_LOAD_BALANCER\020\004\022\033\n\027SSL_PROXY_L" + + "OAD_BALANCER\020\005\022\033\n\027TCP_PROXY_LOAD_BALANCE" + + "R\020\006\022$\n INTERNAL_TCP_PROXY_LOAD_BALANCER\020" + + "\007\022\031\n\025NETWORK_LOAD_BALANCER\020\010\022 \n\034LEGACY_N" + + "ETWORK_LOAD_BALANCER\020\t\022\"\n\036TCP_UDP_INTERN" + + "AL_LOAD_BALANCER\020\nB\371\001\n%com.google.cloud." + + "networkmanagement.v1B\nTraceProtoP\001ZSclou" + + "d.google.com/go/networkmanagement/apiv1/" + + "networkmanagementpb;networkmanagementpb\252" + + "\002!Google.Cloud.NetworkManagement.V1\312\002!Go" + + "ogle\\Cloud\\NetworkManagement\\V1\352\002$Google" + + "::Cloud::NetworkManagement::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); internal_static_google_cloud_networkmanagement_v1_Trace_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_networkmanagement_v1_Trace_fieldAccessorTable = @@ -440,6 +505,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CloudFunction", "AppEngineVersion", "CloudRunRevision", + "Nat", + "ProxyConnection", + "LoadBalancerBackendInfo", + "StorageBucket", "StepInfo", }); internal_static_google_cloud_networkmanagement_v1_InstanceInfo_descriptor = @@ -666,6 +735,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DisplayName", "Uri", "Location", }); + internal_static_google_cloud_networkmanagement_v1_NatInfo_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_networkmanagement_v1_NatInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_NatInfo_descriptor, + new java.lang.String[] { + "Type", + "Protocol", + "NetworkUri", + "OldSourceIp", + "NewSourceIp", + "OldDestinationIp", + "NewDestinationIp", + "OldSourcePort", + "NewSourcePort", + "OldDestinationPort", + "NewDestinationPort", + "RouterUri", + "NatGatewayName", + }); + internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_descriptor, + new java.lang.String[] { + "Protocol", + "OldSourceIp", + "NewSourceIp", + "OldDestinationIp", + "NewDestinationIp", + "OldSourcePort", + "NewSourcePort", + "OldDestinationPort", + "NewDestinationPort", + "SubnetUri", + "NetworkUri", + }); + internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_descriptor, + new java.lang.String[] { + "Name", + "InstanceUri", + "BackendServiceUri", + "InstanceGroupUri", + "NetworkEndpointGroupUri", + "BackendBucketUri", + "PscServiceAttachmentUri", + "PscGoogleApiTarget", + "HealthCheckUri", + "HealthCheckFirewallsConfigState", + }); + internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_descriptor, + new java.lang.String[] { + "Bucket", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto index 3316f6f097e9..1fcbd6daa936 100644 --- a/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/proto/google/cloud/networkmanagement/v1/trace.proto @@ -16,6 +16,8 @@ syntax = "proto3"; package google.cloud.networkmanagement.v1; +import "google/api/field_behavior.proto"; + option csharp_namespace = "Google.Cloud.NetworkManagement.V1"; option go_package = "cloud.google.com/go/networkmanagement/apiv1/networkmanagementpb;networkmanagementpb"; option java_multiple_files = true; @@ -112,6 +114,9 @@ message Step { // Config checking state: match forwarding rule. APPLY_FORWARDING_RULE = 7; + // Config checking state: verify load balancer backend configuration. + ANALYZE_LOAD_BALANCER_BACKEND = 28; + // Config checking state: packet sent or received under foreign IP // address and allowed. SPOOFING_APPROVED = 8; @@ -239,6 +244,18 @@ message Step { // Display information of a Cloud Run revision. CloudRunRevisionInfo cloud_run_revision = 23; + + // Display information of a NAT. + NatInfo nat = 25; + + // Display information of a ProxyConnection. + ProxyConnectionInfo proxy_connection = 26; + + // Display information of a specific load balancer backend. + LoadBalancerBackendInfo load_balancer_backend_info = 27; + + // Display information of a Storage Bucket. Used only for return traces. + StorageBucketInfo storage_bucket = 28; } } @@ -781,6 +798,9 @@ message DeliverInfo { // Target is a serverless network endpoint group. SERVERLESS_NEG = 9; + + // Target is a Cloud Storage bucket. + STORAGE_BUCKET = 10; } // Target type where the packet is delivered to. @@ -1201,6 +1221,172 @@ message VpcConnectorInfo { string location = 3; } +// For display only. Metadata associated with NAT. +message NatInfo { + // Types of NAT. + enum Type { + // Type is unspecified. + TYPE_UNSPECIFIED = 0; + // From Compute Engine instance's internal address to external address. + INTERNAL_TO_EXTERNAL = 1; + // From Compute Engine instance's external address to internal address. + EXTERNAL_TO_INTERNAL = 2; + // Cloud NAT Gateway. + CLOUD_NAT = 3; + // Private service connect NAT. + PRIVATE_SERVICE_CONNECT = 4; + } + + // Type of NAT. + Type type = 1; + + // IP protocol in string format, for example: "TCP", "UDP", "ICMP". + string protocol = 2; + + // URI of the network where NAT translation takes place. + string network_uri = 3; + + // Source IP address before NAT translation. + string old_source_ip = 4; + + // Source IP address after NAT translation. + string new_source_ip = 5; + + // Destination IP address before NAT translation. + string old_destination_ip = 6; + + // Destination IP address after NAT translation. + string new_destination_ip = 7; + + // Source port before NAT translation. Only valid when protocol is TCP or UDP. + int32 old_source_port = 8; + + // Source port after NAT translation. Only valid when protocol is TCP or UDP. + int32 new_source_port = 9; + + // Destination port before NAT translation. Only valid when protocol is TCP or + // UDP. + int32 old_destination_port = 10; + + // Destination port after NAT translation. Only valid when protocol is TCP or + // UDP. + int32 new_destination_port = 11; + + // Uri of the Cloud Router. Only valid when type is CLOUD_NAT. + string router_uri = 12; + + // The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT. + string nat_gateway_name = 13; +} + +// For display only. Metadata associated with ProxyConnection. +message ProxyConnectionInfo { + // IP protocol in string format, for example: "TCP", "UDP", "ICMP". + string protocol = 1; + + // Source IP address of an original connection. + string old_source_ip = 2; + + // Source IP address of a new connection. + string new_source_ip = 3; + + // Destination IP address of an original connection + string old_destination_ip = 4; + + // Destination IP address of a new connection. + string new_destination_ip = 5; + + // Source port of an original connection. Only valid when protocol is TCP or + // UDP. + int32 old_source_port = 6; + + // Source port of a new connection. Only valid when protocol is TCP or UDP. + int32 new_source_port = 7; + + // Destination port of an original connection. Only valid when protocol is TCP + // or UDP. + int32 old_destination_port = 8; + + // Destination port of a new connection. Only valid when protocol is TCP or + // UDP. + int32 new_destination_port = 9; + + // Uri of proxy subnet. + string subnet_uri = 10; + + // URI of the network where connection is proxied. + string network_uri = 11; +} + +// For display only. Metadata associated with the load balancer backend. +message LoadBalancerBackendInfo { + // Display name of the backend. For example, it might be an instance name for + // the instance group backends, or an IP address and port for zonal network + // endpoint group backends. + string name = 1; + + // URI of the backend instance (if applicable). Populated for instance group + // backends, and zonal NEG backends. + string instance_uri = 2; + + // URI of the backend service this backend belongs to (if applicable). + string backend_service_uri = 3; + + // URI of the instance group this backend belongs to (if applicable). + string instance_group_uri = 4; + + // URI of the network endpoint group this backend belongs to (if applicable). + string network_endpoint_group_uri = 5; + + // URI of the backend bucket this backend targets (if applicable). + string backend_bucket_uri = 8; + + // URI of the PSC service attachment this PSC NEG backend targets (if + // applicable). + string psc_service_attachment_uri = 9; + + // PSC Google API target this PSC NEG backend targets (if applicable). + string psc_google_api_target = 10; + + // URI of the health check attached to this backend (if applicable). + string health_check_uri = 6; + + // Health check firewalls configuration state enum. + enum HealthCheckFirewallsConfigState { + // Configuration state unspecified. It usually means that the backend has + // no health check attached, or there was an unexpected configuration error + // preventing Connectivity tests from verifying health check configuration. + HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED = 0; + + // Firewall rules (policies) allowing health check traffic from all required + // IP ranges to the backend are configured. + FIREWALLS_CONFIGURED = 1; + + // Firewall rules (policies) allow health check traffic only from a part of + // required IP ranges. + FIREWALLS_PARTIALLY_CONFIGURED = 2; + + // Firewall rules (policies) deny health check traffic from all required + // IP ranges to the backend. + FIREWALLS_NOT_CONFIGURED = 3; + + // The network contains firewall rules of unsupported types, so Connectivity + // tests were not able to verify health check configuration status. Please + // refer to the documentation for the list of unsupported configurations: + // https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/concepts/overview#unsupported-configs + FIREWALLS_UNSUPPORTED = 4; + } + + // Health check firewalls configuration state for the backend. This is a + // result of the static firewall analysis (verifying that health check traffic + // from required IP ranges to the backend is allowed or not). The backend + // might still be unhealthy even if these firewalls are configured. Please + // refer to the documentation for more information: + // https://cloud.google.com/load-balancing/docs/firewall-rules + HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Type of a load balancer. For more information, see [Summary of Google Cloud // load // balancers](https://cloud.google.com/load-balancing/docs/load-balancing-overview#summary-of-google-cloud-load-balancers). @@ -1239,3 +1425,9 @@ enum LoadBalancerType { // Internal TCP/UDP load balancer. TCP_UDP_INTERNAL_LOAD_BALANCER = 10; } + +// For display only. Metadata associated with Storage Bucket. +message StorageBucketInfo { + // Cloud Storage Bucket name. + string bucket = 1; +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java index aea9623b86dc..4a5fd20f7f74 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/DeliverInfo.java @@ -177,6 +177,16 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * SERVERLESS_NEG = 9; */ SERVERLESS_NEG(9), + /** + * + * + *
                                                                                      +     * Target is a Cloud Storage bucket.
                                                                                      +     * 
                                                                                      + * + * STORAGE_BUCKET = 10; + */ + STORAGE_BUCKET(10), UNRECOGNIZED(-1), ; @@ -283,6 +293,16 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * SERVERLESS_NEG = 9; */ public static final int SERVERLESS_NEG_VALUE = 9; + /** + * + * + *
                                                                                      +     * Target is a Cloud Storage bucket.
                                                                                      +     * 
                                                                                      + * + * STORAGE_BUCKET = 10; + */ + public static final int STORAGE_BUCKET_VALUE = 10; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -328,6 +348,8 @@ public static Target forNumber(int value) { return PSC_VPC_SC; case 9: return SERVERLESS_NEG; + case 10: + return STORAGE_BUCKET; default: return null; } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java index 9c8622e8f623..4ff9ee689299 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfo.java @@ -454,7 +454,7 @@ public com.google.protobuf.ByteString getNetworkTagsBytes(int index) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=268 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=285 * @return The serviceAccount. */ @java.lang.Override @@ -480,7 +480,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=268 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=285 * @return The bytes for serviceAccount. */ @java.lang.Override @@ -1843,7 +1843,7 @@ public Builder addNetworkTagsBytes(com.google.protobuf.ByteString value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=268 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=285 * @return The serviceAccount. */ @java.lang.Deprecated @@ -1868,7 +1868,7 @@ public java.lang.String getServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=268 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=285 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -1893,7 +1893,7 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=268 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=285 * @param value The serviceAccount to set. * @return This builder for chaining. */ @@ -1917,7 +1917,7 @@ public Builder setServiceAccount(java.lang.String value) { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=268 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=285 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1937,7 +1937,7 @@ public Builder clearServiceAccount() { * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=268 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=285 * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java index 7218730396bb..e189769b85c9 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/InstanceInfoOrBuilder.java @@ -235,7 +235,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=268 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=285 * @return The serviceAccount. */ @java.lang.Deprecated @@ -250,7 +250,7 @@ public interface InstanceInfoOrBuilder * string service_account = 8 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.service_account is deprecated. - * See google/cloud/networkmanagement/v1beta1/trace.proto;l=268 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=285 * @return The bytes for serviceAccount. */ @java.lang.Deprecated diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerBackendInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerBackendInfo.java new file mode 100644 index 000000000000..dcfcfa58c42b --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerBackendInfo.java @@ -0,0 +1,2568 @@ +/* + * 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/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
                                                                                      + * For display only. Metadata associated with the load balancer backend.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo} + */ +public final class LoadBalancerBackendInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo) + LoadBalancerBackendInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use LoadBalancerBackendInfo.newBuilder() to construct. + private LoadBalancerBackendInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LoadBalancerBackendInfo() { + name_ = ""; + instanceUri_ = ""; + backendServiceUri_ = ""; + instanceGroupUri_ = ""; + networkEndpointGroupUri_ = ""; + backendBucketUri_ = ""; + pscServiceAttachmentUri_ = ""; + pscGoogleApiTarget_ = ""; + healthCheckUri_ = ""; + healthCheckFirewallsConfigState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LoadBalancerBackendInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.class, + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.Builder.class); + } + + /** + * + * + *
                                                                                      +   * Health check firewalls configuration state enum.
                                                                                      +   * 
                                                                                      + * + * Protobuf enum {@code + * google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState} + */ + public enum HealthCheckFirewallsConfigState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                      +     * Configuration state unspecified. It usually means that the backend has
                                                                                      +     * no health check attached, or there was an unexpected configuration error
                                                                                      +     * preventing Connectivity tests from verifying health check configuration.
                                                                                      +     * 
                                                                                      + * + * HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED = 0; + */ + HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED(0), + /** + * + * + *
                                                                                      +     * Firewall rules (policies) allowing health check traffic from all required
                                                                                      +     * IP ranges to the backend are configured.
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_CONFIGURED = 1; + */ + FIREWALLS_CONFIGURED(1), + /** + * + * + *
                                                                                      +     * Firewall rules (policies) allow health check traffic only from a part of
                                                                                      +     * required IP ranges.
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_PARTIALLY_CONFIGURED = 2; + */ + FIREWALLS_PARTIALLY_CONFIGURED(2), + /** + * + * + *
                                                                                      +     * Firewall rules (policies) deny health check traffic from all required
                                                                                      +     * IP ranges to the backend.
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_NOT_CONFIGURED = 3; + */ + FIREWALLS_NOT_CONFIGURED(3), + /** + * + * + *
                                                                                      +     * The network contains firewall rules of unsupported types, so Connectivity
                                                                                      +     * tests were not able to verify health check configuration status. Please
                                                                                      +     * refer to the documentation for the list of unsupported configurations:
                                                                                      +     * https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/concepts/overview#unsupported-configs
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_UNSUPPORTED = 4; + */ + FIREWALLS_UNSUPPORTED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                                                                      +     * Configuration state unspecified. It usually means that the backend has
                                                                                      +     * no health check attached, or there was an unexpected configuration error
                                                                                      +     * preventing Connectivity tests from verifying health check configuration.
                                                                                      +     * 
                                                                                      + * + * HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED = 0; + */ + public static final int HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
                                                                                      +     * Firewall rules (policies) allowing health check traffic from all required
                                                                                      +     * IP ranges to the backend are configured.
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_CONFIGURED = 1; + */ + public static final int FIREWALLS_CONFIGURED_VALUE = 1; + /** + * + * + *
                                                                                      +     * Firewall rules (policies) allow health check traffic only from a part of
                                                                                      +     * required IP ranges.
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_PARTIALLY_CONFIGURED = 2; + */ + public static final int FIREWALLS_PARTIALLY_CONFIGURED_VALUE = 2; + /** + * + * + *
                                                                                      +     * Firewall rules (policies) deny health check traffic from all required
                                                                                      +     * IP ranges to the backend.
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_NOT_CONFIGURED = 3; + */ + public static final int FIREWALLS_NOT_CONFIGURED_VALUE = 3; + /** + * + * + *
                                                                                      +     * The network contains firewall rules of unsupported types, so Connectivity
                                                                                      +     * tests were not able to verify health check configuration status. Please
                                                                                      +     * refer to the documentation for the list of unsupported configurations:
                                                                                      +     * https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/concepts/overview#unsupported-configs
                                                                                      +     * 
                                                                                      + * + * FIREWALLS_UNSUPPORTED = 4; + */ + public static final int FIREWALLS_UNSUPPORTED_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 HealthCheckFirewallsConfigState 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 HealthCheckFirewallsConfigState forNumber(int value) { + switch (value) { + case 0: + return HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED; + case 1: + return FIREWALLS_CONFIGURED; + case 2: + return FIREWALLS_PARTIALLY_CONFIGURED; + case 3: + return FIREWALLS_NOT_CONFIGURED; + case 4: + return FIREWALLS_UNSUPPORTED; + 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 HealthCheckFirewallsConfigState findValueByNumber(int number) { + return HealthCheckFirewallsConfigState.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.networkmanagement.v1beta1.LoadBalancerBackendInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final HealthCheckFirewallsConfigState[] VALUES = values(); + + public static HealthCheckFirewallsConfigState 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 HealthCheckFirewallsConfigState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                                                                      +   * Display name of the backend. For example, it might be an instance name for
                                                                                      +   * the instance group backends, or an IP address and port for zonal network
                                                                                      +   * endpoint group backends.
                                                                                      +   * 
                                                                                      + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Display name of the backend. For example, it might be an instance name for
                                                                                      +   * the instance group backends, or an IP address and port for zonal network
                                                                                      +   * endpoint group backends.
                                                                                      +   * 
                                                                                      + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +   * backends, and zonal NEG backends.
                                                                                      +   * 
                                                                                      + * + * string instance_uri = 2; + * + * @return The instanceUri. + */ + @java.lang.Override + public java.lang.String getInstanceUri() { + java.lang.Object ref = instanceUri_; + 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(); + instanceUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +   * backends, and zonal NEG backends.
                                                                                      +   * 
                                                                                      + * + * string instance_uri = 2; + * + * @return The bytes for instanceUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceUriBytes() { + java.lang.Object ref = instanceUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKEND_SERVICE_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object backendServiceUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the backend service this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @return The backendServiceUri. + */ + @java.lang.Override + public java.lang.String getBackendServiceUri() { + java.lang.Object ref = backendServiceUri_; + 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(); + backendServiceUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the backend service this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @return The bytes for backendServiceUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackendServiceUriBytes() { + java.lang.Object ref = backendServiceUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendServiceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_GROUP_URI_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceGroupUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the instance group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @return The instanceGroupUri. + */ + @java.lang.Override + public java.lang.String getInstanceGroupUri() { + java.lang.Object ref = instanceGroupUri_; + 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(); + instanceGroupUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the instance group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @return The bytes for instanceGroupUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceGroupUriBytes() { + java.lang.Object ref = instanceGroupUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_ENDPOINT_GROUP_URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkEndpointGroupUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @return The networkEndpointGroupUri. + */ + @java.lang.Override + public java.lang.String getNetworkEndpointGroupUri() { + java.lang.Object ref = networkEndpointGroupUri_; + 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(); + networkEndpointGroupUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @return The bytes for networkEndpointGroupUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkEndpointGroupUriBytes() { + java.lang.Object ref = networkEndpointGroupUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkEndpointGroupUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKEND_BUCKET_URI_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object backendBucketUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the backend bucket this backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @return The backendBucketUri. + */ + @java.lang.Override + public java.lang.String getBackendBucketUri() { + java.lang.Object ref = backendBucketUri_; + 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(); + backendBucketUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the backend bucket this backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @return The bytes for backendBucketUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackendBucketUriBytes() { + java.lang.Object ref = backendBucketUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendBucketUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_SERVICE_ATTACHMENT_URI_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscServiceAttachmentUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +   * applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @return The pscServiceAttachmentUri. + */ + @java.lang.Override + public java.lang.String getPscServiceAttachmentUri() { + java.lang.Object ref = pscServiceAttachmentUri_; + 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(); + pscServiceAttachmentUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +   * applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @return The bytes for pscServiceAttachmentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscServiceAttachmentUriBytes() { + java.lang.Object ref = pscServiceAttachmentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscServiceAttachmentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PSC_GOOGLE_API_TARGET_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object pscGoogleApiTarget_ = ""; + /** + * + * + *
                                                                                      +   * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @return The pscGoogleApiTarget. + */ + @java.lang.Override + public java.lang.String getPscGoogleApiTarget() { + java.lang.Object ref = pscGoogleApiTarget_; + 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(); + pscGoogleApiTarget_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @return The bytes for pscGoogleApiTarget. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPscGoogleApiTargetBytes() { + java.lang.Object ref = pscGoogleApiTarget_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscGoogleApiTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEALTH_CHECK_URI_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object healthCheckUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the health check attached to this backend (if applicable).
                                                                                      +   * 
                                                                                      + * + * string health_check_uri = 6; + * + * @return The healthCheckUri. + */ + @java.lang.Override + public java.lang.String getHealthCheckUri() { + java.lang.Object ref = healthCheckUri_; + 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(); + healthCheckUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the health check attached to this backend (if applicable).
                                                                                      +   * 
                                                                                      + * + * string health_check_uri = 6; + * + * @return The bytes for healthCheckUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHealthCheckUriBytes() { + java.lang.Object ref = healthCheckUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + healthCheckUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HEALTH_CHECK_FIREWALLS_CONFIG_STATE_FIELD_NUMBER = 7; + private int healthCheckFirewallsConfigState_ = 0; + /** + * + * + *
                                                                                      +   * Health check firewalls configuration state for the backend. This is a
                                                                                      +   * result of the static firewall analysis (verifying that health check traffic
                                                                                      +   * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +   * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +   * refer to the documentation for more information:
                                                                                      +   * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for healthCheckFirewallsConfigState. + */ + @java.lang.Override + public int getHealthCheckFirewallsConfigStateValue() { + return healthCheckFirewallsConfigState_; + } + /** + * + * + *
                                                                                      +   * Health check firewalls configuration state for the backend. This is a
                                                                                      +   * result of the static firewall analysis (verifying that health check traffic
                                                                                      +   * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +   * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +   * refer to the documentation for more information:
                                                                                      +   * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The healthCheckFirewallsConfigState. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState + getHealthCheckFirewallsConfigState() { + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState + result = + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState.forNumber(healthCheckFirewallsConfigState_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backendServiceUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, backendServiceUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, instanceGroupUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkEndpointGroupUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, networkEndpointGroupUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthCheckUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, healthCheckUri_); + } + if (healthCheckFirewallsConfigState_ + != com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState.HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, healthCheckFirewallsConfigState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backendBucketUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, backendBucketUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscServiceAttachmentUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pscServiceAttachmentUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, pscGoogleApiTarget_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backendServiceUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backendServiceUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceGroupUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, instanceGroupUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkEndpointGroupUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, networkEndpointGroupUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthCheckUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, healthCheckUri_); + } + if (healthCheckFirewallsConfigState_ + != com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState.HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 7, healthCheckFirewallsConfigState_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backendBucketUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, backendBucketUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscServiceAttachmentUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pscServiceAttachmentUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscGoogleApiTarget_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pscGoogleApiTarget_); + } + 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.networkmanagement.v1beta1.LoadBalancerBackendInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo other = + (com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo) obj; + + if (!getName().equals(other.getName())) return false; + if (!getInstanceUri().equals(other.getInstanceUri())) return false; + if (!getBackendServiceUri().equals(other.getBackendServiceUri())) return false; + if (!getInstanceGroupUri().equals(other.getInstanceGroupUri())) return false; + if (!getNetworkEndpointGroupUri().equals(other.getNetworkEndpointGroupUri())) return false; + if (!getBackendBucketUri().equals(other.getBackendBucketUri())) return false; + if (!getPscServiceAttachmentUri().equals(other.getPscServiceAttachmentUri())) return false; + if (!getPscGoogleApiTarget().equals(other.getPscGoogleApiTarget())) return false; + if (!getHealthCheckUri().equals(other.getHealthCheckUri())) return false; + if (healthCheckFirewallsConfigState_ != other.healthCheckFirewallsConfigState_) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + INSTANCE_URI_FIELD_NUMBER; + hash = (53 * hash) + getInstanceUri().hashCode(); + hash = (37 * hash) + BACKEND_SERVICE_URI_FIELD_NUMBER; + hash = (53 * hash) + getBackendServiceUri().hashCode(); + hash = (37 * hash) + INSTANCE_GROUP_URI_FIELD_NUMBER; + hash = (53 * hash) + getInstanceGroupUri().hashCode(); + hash = (37 * hash) + NETWORK_ENDPOINT_GROUP_URI_FIELD_NUMBER; + hash = (53 * hash) + getNetworkEndpointGroupUri().hashCode(); + hash = (37 * hash) + BACKEND_BUCKET_URI_FIELD_NUMBER; + hash = (53 * hash) + getBackendBucketUri().hashCode(); + hash = (37 * hash) + PSC_SERVICE_ATTACHMENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getPscServiceAttachmentUri().hashCode(); + hash = (37 * hash) + PSC_GOOGLE_API_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getPscGoogleApiTarget().hashCode(); + hash = (37 * hash) + HEALTH_CHECK_URI_FIELD_NUMBER; + hash = (53 * hash) + getHealthCheckUri().hashCode(); + hash = (37 * hash) + HEALTH_CHECK_FIREWALLS_CONFIG_STATE_FIELD_NUMBER; + hash = (53 * hash) + healthCheckFirewallsConfigState_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo 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.networkmanagement.v1beta1.LoadBalancerBackendInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo 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.networkmanagement.v1beta1.LoadBalancerBackendInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo 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.networkmanagement.v1beta1.LoadBalancerBackendInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + 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.networkmanagement.v1beta1.LoadBalancerBackendInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo 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.networkmanagement.v1beta1.LoadBalancerBackendInfo 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; + } + /** + * + * + *
                                                                                      +   * For display only. Metadata associated with the load balancer backend.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo) + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.class, + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.Builder.class); + } + + // Construct using + // com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + instanceUri_ = ""; + backendServiceUri_ = ""; + instanceGroupUri_ = ""; + networkEndpointGroupUri_ = ""; + backendBucketUri_ = ""; + pscServiceAttachmentUri_ = ""; + pscGoogleApiTarget_ = ""; + healthCheckUri_ = ""; + healthCheckFirewallsConfigState_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo build() { + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo buildPartial() { + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo result = + new com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instanceUri_ = instanceUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.backendServiceUri_ = backendServiceUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.instanceGroupUri_ = instanceGroupUri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.networkEndpointGroupUri_ = networkEndpointGroupUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.backendBucketUri_ = backendBucketUri_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pscServiceAttachmentUri_ = pscServiceAttachmentUri_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.pscGoogleApiTarget_ = pscGoogleApiTarget_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.healthCheckUri_ = healthCheckUri_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.healthCheckFirewallsConfigState_ = healthCheckFirewallsConfigState_; + } + } + + @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.networkmanagement.v1beta1.LoadBalancerBackendInfo) { + return mergeFrom( + (com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo other) { + if (other + == com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInstanceUri().isEmpty()) { + instanceUri_ = other.instanceUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getBackendServiceUri().isEmpty()) { + backendServiceUri_ = other.backendServiceUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getInstanceGroupUri().isEmpty()) { + instanceGroupUri_ = other.instanceGroupUri_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getNetworkEndpointGroupUri().isEmpty()) { + networkEndpointGroupUri_ = other.networkEndpointGroupUri_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getBackendBucketUri().isEmpty()) { + backendBucketUri_ = other.backendBucketUri_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getPscServiceAttachmentUri().isEmpty()) { + pscServiceAttachmentUri_ = other.pscServiceAttachmentUri_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getPscGoogleApiTarget().isEmpty()) { + pscGoogleApiTarget_ = other.pscGoogleApiTarget_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getHealthCheckUri().isEmpty()) { + healthCheckUri_ = other.healthCheckUri_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.healthCheckFirewallsConfigState_ != 0) { + setHealthCheckFirewallsConfigStateValue(other.getHealthCheckFirewallsConfigStateValue()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + instanceUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + backendServiceUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + instanceGroupUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + networkEndpointGroupUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + healthCheckUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 50 + case 56: + { + healthCheckFirewallsConfigState_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 56 + case 66: + { + backendBucketUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 74: + { + pscServiceAttachmentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + case 82: + { + pscGoogleApiTarget_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 82 + 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 name_ = ""; + /** + * + * + *
                                                                                      +     * Display name of the backend. For example, it might be an instance name for
                                                                                      +     * the instance group backends, or an IP address and port for zonal network
                                                                                      +     * endpoint group backends.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Display name of the backend. For example, it might be an instance name for
                                                                                      +     * the instance group backends, or an IP address and port for zonal network
                                                                                      +     * endpoint group backends.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Display name of the backend. For example, it might be an instance name for
                                                                                      +     * the instance group backends, or an IP address and port for zonal network
                                                                                      +     * endpoint group backends.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Display name of the backend. For example, it might be an instance name for
                                                                                      +     * the instance group backends, or an IP address and port for zonal network
                                                                                      +     * endpoint group backends.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Display name of the backend. For example, it might be an instance name for
                                                                                      +     * the instance group backends, or an IP address and port for zonal network
                                                                                      +     * endpoint group backends.
                                                                                      +     * 
                                                                                      + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object instanceUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +     * backends, and zonal NEG backends.
                                                                                      +     * 
                                                                                      + * + * string instance_uri = 2; + * + * @return The instanceUri. + */ + public java.lang.String getInstanceUri() { + java.lang.Object ref = instanceUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +     * backends, and zonal NEG backends.
                                                                                      +     * 
                                                                                      + * + * string instance_uri = 2; + * + * @return The bytes for instanceUri. + */ + public com.google.protobuf.ByteString getInstanceUriBytes() { + java.lang.Object ref = instanceUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +     * backends, and zonal NEG backends.
                                                                                      +     * 
                                                                                      + * + * string instance_uri = 2; + * + * @param value The instanceUri to set. + * @return This builder for chaining. + */ + public Builder setInstanceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +     * backends, and zonal NEG backends.
                                                                                      +     * 
                                                                                      + * + * string instance_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearInstanceUri() { + instanceUri_ = getDefaultInstance().getInstanceUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +     * backends, and zonal NEG backends.
                                                                                      +     * 
                                                                                      + * + * string instance_uri = 2; + * + * @param value The bytes for instanceUri to set. + * @return This builder for chaining. + */ + public Builder setInstanceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object backendServiceUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the backend service this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @return The backendServiceUri. + */ + public java.lang.String getBackendServiceUri() { + java.lang.Object ref = backendServiceUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backendServiceUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the backend service this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @return The bytes for backendServiceUri. + */ + public com.google.protobuf.ByteString getBackendServiceUriBytes() { + java.lang.Object ref = backendServiceUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendServiceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the backend service this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @param value The backendServiceUri to set. + * @return This builder for chaining. + */ + public Builder setBackendServiceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backendServiceUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the backend service this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearBackendServiceUri() { + backendServiceUri_ = getDefaultInstance().getBackendServiceUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the backend service this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @param value The bytes for backendServiceUri to set. + * @return This builder for chaining. + */ + public Builder setBackendServiceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backendServiceUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object instanceGroupUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the instance group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @return The instanceGroupUri. + */ + public java.lang.String getInstanceGroupUri() { + java.lang.Object ref = instanceGroupUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceGroupUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the instance group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @return The bytes for instanceGroupUri. + */ + public com.google.protobuf.ByteString getInstanceGroupUriBytes() { + java.lang.Object ref = instanceGroupUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceGroupUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the instance group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @param value The instanceGroupUri to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceGroupUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the instance group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @return This builder for chaining. + */ + public Builder clearInstanceGroupUri() { + instanceGroupUri_ = getDefaultInstance().getInstanceGroupUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the instance group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @param value The bytes for instanceGroupUri to set. + * @return This builder for chaining. + */ + public Builder setInstanceGroupUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceGroupUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object networkEndpointGroupUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @return The networkEndpointGroupUri. + */ + public java.lang.String getNetworkEndpointGroupUri() { + java.lang.Object ref = networkEndpointGroupUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkEndpointGroupUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @return The bytes for networkEndpointGroupUri. + */ + public com.google.protobuf.ByteString getNetworkEndpointGroupUriBytes() { + java.lang.Object ref = networkEndpointGroupUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkEndpointGroupUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @param value The networkEndpointGroupUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkEndpointGroupUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkEndpointGroupUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearNetworkEndpointGroupUri() { + networkEndpointGroupUri_ = getDefaultInstance().getNetworkEndpointGroupUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +     * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @param value The bytes for networkEndpointGroupUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkEndpointGroupUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkEndpointGroupUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object backendBucketUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the backend bucket this backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @return The backendBucketUri. + */ + public java.lang.String getBackendBucketUri() { + java.lang.Object ref = backendBucketUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backendBucketUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the backend bucket this backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @return The bytes for backendBucketUri. + */ + public com.google.protobuf.ByteString getBackendBucketUriBytes() { + java.lang.Object ref = backendBucketUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backendBucketUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the backend bucket this backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @param value The backendBucketUri to set. + * @return This builder for chaining. + */ + public Builder setBackendBucketUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backendBucketUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the backend bucket this backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @return This builder for chaining. + */ + public Builder clearBackendBucketUri() { + backendBucketUri_ = getDefaultInstance().getBackendBucketUri(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the backend bucket this backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @param value The bytes for backendBucketUri to set. + * @return This builder for chaining. + */ + public Builder setBackendBucketUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backendBucketUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object pscServiceAttachmentUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +     * applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @return The pscServiceAttachmentUri. + */ + public java.lang.String getPscServiceAttachmentUri() { + java.lang.Object ref = pscServiceAttachmentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscServiceAttachmentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +     * applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @return The bytes for pscServiceAttachmentUri. + */ + public com.google.protobuf.ByteString getPscServiceAttachmentUriBytes() { + java.lang.Object ref = pscServiceAttachmentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscServiceAttachmentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +     * applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @param value The pscServiceAttachmentUri to set. + * @return This builder for chaining. + */ + public Builder setPscServiceAttachmentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscServiceAttachmentUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +     * applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @return This builder for chaining. + */ + public Builder clearPscServiceAttachmentUri() { + pscServiceAttachmentUri_ = getDefaultInstance().getPscServiceAttachmentUri(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +     * applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @param value The bytes for pscServiceAttachmentUri to set. + * @return This builder for chaining. + */ + public Builder setPscServiceAttachmentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscServiceAttachmentUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object pscGoogleApiTarget_ = ""; + /** + * + * + *
                                                                                      +     * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @return The pscGoogleApiTarget. + */ + public java.lang.String getPscGoogleApiTarget() { + java.lang.Object ref = pscGoogleApiTarget_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pscGoogleApiTarget_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @return The bytes for pscGoogleApiTarget. + */ + public com.google.protobuf.ByteString getPscGoogleApiTargetBytes() { + java.lang.Object ref = pscGoogleApiTarget_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pscGoogleApiTarget_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @param value The pscGoogleApiTarget to set. + * @return This builder for chaining. + */ + public Builder setPscGoogleApiTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pscGoogleApiTarget_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @return This builder for chaining. + */ + public Builder clearPscGoogleApiTarget() { + pscGoogleApiTarget_ = getDefaultInstance().getPscGoogleApiTarget(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +     * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @param value The bytes for pscGoogleApiTarget to set. + * @return This builder for chaining. + */ + public Builder setPscGoogleApiTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pscGoogleApiTarget_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object healthCheckUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the health check attached to this backend (if applicable).
                                                                                      +     * 
                                                                                      + * + * string health_check_uri = 6; + * + * @return The healthCheckUri. + */ + public java.lang.String getHealthCheckUri() { + java.lang.Object ref = healthCheckUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + healthCheckUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the health check attached to this backend (if applicable).
                                                                                      +     * 
                                                                                      + * + * string health_check_uri = 6; + * + * @return The bytes for healthCheckUri. + */ + public com.google.protobuf.ByteString getHealthCheckUriBytes() { + java.lang.Object ref = healthCheckUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + healthCheckUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the health check attached to this backend (if applicable).
                                                                                      +     * 
                                                                                      + * + * string health_check_uri = 6; + * + * @param value The healthCheckUri to set. + * @return This builder for chaining. + */ + public Builder setHealthCheckUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + healthCheckUri_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the health check attached to this backend (if applicable).
                                                                                      +     * 
                                                                                      + * + * string health_check_uri = 6; + * + * @return This builder for chaining. + */ + public Builder clearHealthCheckUri() { + healthCheckUri_ = getDefaultInstance().getHealthCheckUri(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the health check attached to this backend (if applicable).
                                                                                      +     * 
                                                                                      + * + * string health_check_uri = 6; + * + * @param value The bytes for healthCheckUri to set. + * @return This builder for chaining. + */ + public Builder setHealthCheckUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + healthCheckUri_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private int healthCheckFirewallsConfigState_ = 0; + /** + * + * + *
                                                                                      +     * Health check firewalls configuration state for the backend. This is a
                                                                                      +     * result of the static firewall analysis (verifying that health check traffic
                                                                                      +     * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +     * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +     * refer to the documentation for more information:
                                                                                      +     * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for healthCheckFirewallsConfigState. + */ + @java.lang.Override + public int getHealthCheckFirewallsConfigStateValue() { + return healthCheckFirewallsConfigState_; + } + /** + * + * + *
                                                                                      +     * Health check firewalls configuration state for the backend. This is a
                                                                                      +     * result of the static firewall analysis (verifying that health check traffic
                                                                                      +     * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +     * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +     * refer to the documentation for more information:
                                                                                      +     * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for healthCheckFirewallsConfigState to set. + * @return This builder for chaining. + */ + public Builder setHealthCheckFirewallsConfigStateValue(int value) { + healthCheckFirewallsConfigState_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Health check firewalls configuration state for the backend. This is a
                                                                                      +     * result of the static firewall analysis (verifying that health check traffic
                                                                                      +     * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +     * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +     * refer to the documentation for more information:
                                                                                      +     * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The healthCheckFirewallsConfigState. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState + getHealthCheckFirewallsConfigState() { + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState + result = + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState.forNumber(healthCheckFirewallsConfigState_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState.UNRECOGNIZED + : result; + } + /** + * + * + *
                                                                                      +     * Health check firewalls configuration state for the backend. This is a
                                                                                      +     * result of the static firewall analysis (verifying that health check traffic
                                                                                      +     * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +     * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +     * refer to the documentation for more information:
                                                                                      +     * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The healthCheckFirewallsConfigState to set. + * @return This builder for chaining. + */ + public Builder setHealthCheckFirewallsConfigState( + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .HealthCheckFirewallsConfigState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + healthCheckFirewallsConfigState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Health check firewalls configuration state for the backend. This is a
                                                                                      +     * result of the static firewall analysis (verifying that health check traffic
                                                                                      +     * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +     * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +     * refer to the documentation for more information:
                                                                                      +     * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearHealthCheckFirewallsConfigState() { + bitField0_ = (bitField0_ & ~0x00000200); + healthCheckFirewallsConfigState_ = 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.networkmanagement.v1beta1.LoadBalancerBackendInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo) + private static final com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo(); + } + + public static com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoadBalancerBackendInfo 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.networkmanagement.v1beta1.LoadBalancerBackendInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerBackendInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerBackendInfoOrBuilder.java new file mode 100644 index 000000000000..468080b333ee --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/LoadBalancerBackendInfoOrBuilder.java @@ -0,0 +1,299 @@ +/* + * 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/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1beta1; + +public interface LoadBalancerBackendInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * Display name of the backend. For example, it might be an instance name for
                                                                                      +   * the instance group backends, or an IP address and port for zonal network
                                                                                      +   * endpoint group backends.
                                                                                      +   * 
                                                                                      + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                                                                      +   * Display name of the backend. For example, it might be an instance name for
                                                                                      +   * the instance group backends, or an IP address and port for zonal network
                                                                                      +   * endpoint group backends.
                                                                                      +   * 
                                                                                      + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                      +   * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +   * backends, and zonal NEG backends.
                                                                                      +   * 
                                                                                      + * + * string instance_uri = 2; + * + * @return The instanceUri. + */ + java.lang.String getInstanceUri(); + /** + * + * + *
                                                                                      +   * URI of the backend instance (if applicable). Populated for instance group
                                                                                      +   * backends, and zonal NEG backends.
                                                                                      +   * 
                                                                                      + * + * string instance_uri = 2; + * + * @return The bytes for instanceUri. + */ + com.google.protobuf.ByteString getInstanceUriBytes(); + + /** + * + * + *
                                                                                      +   * URI of the backend service this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @return The backendServiceUri. + */ + java.lang.String getBackendServiceUri(); + /** + * + * + *
                                                                                      +   * URI of the backend service this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_service_uri = 3; + * + * @return The bytes for backendServiceUri. + */ + com.google.protobuf.ByteString getBackendServiceUriBytes(); + + /** + * + * + *
                                                                                      +   * URI of the instance group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @return The instanceGroupUri. + */ + java.lang.String getInstanceGroupUri(); + /** + * + * + *
                                                                                      +   * URI of the instance group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string instance_group_uri = 4; + * + * @return The bytes for instanceGroupUri. + */ + com.google.protobuf.ByteString getInstanceGroupUriBytes(); + + /** + * + * + *
                                                                                      +   * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @return The networkEndpointGroupUri. + */ + java.lang.String getNetworkEndpointGroupUri(); + /** + * + * + *
                                                                                      +   * URI of the network endpoint group this backend belongs to (if applicable).
                                                                                      +   * 
                                                                                      + * + * string network_endpoint_group_uri = 5; + * + * @return The bytes for networkEndpointGroupUri. + */ + com.google.protobuf.ByteString getNetworkEndpointGroupUriBytes(); + + /** + * + * + *
                                                                                      +   * URI of the backend bucket this backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @return The backendBucketUri. + */ + java.lang.String getBackendBucketUri(); + /** + * + * + *
                                                                                      +   * URI of the backend bucket this backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string backend_bucket_uri = 8; + * + * @return The bytes for backendBucketUri. + */ + com.google.protobuf.ByteString getBackendBucketUriBytes(); + + /** + * + * + *
                                                                                      +   * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +   * applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @return The pscServiceAttachmentUri. + */ + java.lang.String getPscServiceAttachmentUri(); + /** + * + * + *
                                                                                      +   * URI of the PSC service attachment this PSC NEG backend targets (if
                                                                                      +   * applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_service_attachment_uri = 9; + * + * @return The bytes for pscServiceAttachmentUri. + */ + com.google.protobuf.ByteString getPscServiceAttachmentUriBytes(); + + /** + * + * + *
                                                                                      +   * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @return The pscGoogleApiTarget. + */ + java.lang.String getPscGoogleApiTarget(); + /** + * + * + *
                                                                                      +   * PSC Google API target this PSC NEG backend targets (if applicable).
                                                                                      +   * 
                                                                                      + * + * string psc_google_api_target = 10; + * + * @return The bytes for pscGoogleApiTarget. + */ + com.google.protobuf.ByteString getPscGoogleApiTargetBytes(); + + /** + * + * + *
                                                                                      +   * URI of the health check attached to this backend (if applicable).
                                                                                      +   * 
                                                                                      + * + * string health_check_uri = 6; + * + * @return The healthCheckUri. + */ + java.lang.String getHealthCheckUri(); + /** + * + * + *
                                                                                      +   * URI of the health check attached to this backend (if applicable).
                                                                                      +   * 
                                                                                      + * + * string health_check_uri = 6; + * + * @return The bytes for healthCheckUri. + */ + com.google.protobuf.ByteString getHealthCheckUriBytes(); + + /** + * + * + *
                                                                                      +   * Health check firewalls configuration state for the backend. This is a
                                                                                      +   * result of the static firewall analysis (verifying that health check traffic
                                                                                      +   * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +   * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +   * refer to the documentation for more information:
                                                                                      +   * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for healthCheckFirewallsConfigState. + */ + int getHealthCheckFirewallsConfigStateValue(); + /** + * + * + *
                                                                                      +   * Health check firewalls configuration state for the backend. This is a
                                                                                      +   * result of the static firewall analysis (verifying that health check traffic
                                                                                      +   * from required IP ranges to the backend is allowed or not). The backend
                                                                                      +   * might still be unhealthy even if these firewalls are configured. Please
                                                                                      +   * refer to the documentation for more information:
                                                                                      +   * https://cloud.google.com/load-balancing/docs/firewall-rules
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The healthCheckFirewallsConfigState. + */ + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigState + getHealthCheckFirewallsConfigState(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NatInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NatInfo.java new file mode 100644 index 000000000000..b0d5744000b4 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NatInfo.java @@ -0,0 +1,2636 @@ +/* + * 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/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
                                                                                      + * For display only. Metadata associated with NAT.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.NatInfo} + */ +public final class NatInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.NatInfo) + NatInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use NatInfo.newBuilder() to construct. + private NatInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NatInfo() { + type_ = 0; + protocol_ = ""; + networkUri_ = ""; + oldSourceIp_ = ""; + newSourceIp_ = ""; + oldDestinationIp_ = ""; + newDestinationIp_ = ""; + routerUri_ = ""; + natGatewayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NatInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.NatInfo.class, + com.google.cloud.networkmanagement.v1beta1.NatInfo.Builder.class); + } + + /** + * + * + *
                                                                                      +   * Types of NAT.
                                                                                      +   * 
                                                                                      + * + * Protobuf enum {@code google.cloud.networkmanagement.v1beta1.NatInfo.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                                                                                      +     * Type is unspecified.
                                                                                      +     * 
                                                                                      + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
                                                                                      +     * From Compute Engine instance's internal address to external address.
                                                                                      +     * 
                                                                                      + * + * INTERNAL_TO_EXTERNAL = 1; + */ + INTERNAL_TO_EXTERNAL(1), + /** + * + * + *
                                                                                      +     * From Compute Engine instance's external address to internal address.
                                                                                      +     * 
                                                                                      + * + * EXTERNAL_TO_INTERNAL = 2; + */ + EXTERNAL_TO_INTERNAL(2), + /** + * + * + *
                                                                                      +     * Cloud NAT Gateway.
                                                                                      +     * 
                                                                                      + * + * CLOUD_NAT = 3; + */ + CLOUD_NAT(3), + /** + * + * + *
                                                                                      +     * Private service connect NAT.
                                                                                      +     * 
                                                                                      + * + * PRIVATE_SERVICE_CONNECT = 4; + */ + PRIVATE_SERVICE_CONNECT(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
                                                                                      +     * Type is unspecified.
                                                                                      +     * 
                                                                                      + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
                                                                                      +     * From Compute Engine instance's internal address to external address.
                                                                                      +     * 
                                                                                      + * + * INTERNAL_TO_EXTERNAL = 1; + */ + public static final int INTERNAL_TO_EXTERNAL_VALUE = 1; + /** + * + * + *
                                                                                      +     * From Compute Engine instance's external address to internal address.
                                                                                      +     * 
                                                                                      + * + * EXTERNAL_TO_INTERNAL = 2; + */ + public static final int EXTERNAL_TO_INTERNAL_VALUE = 2; + /** + * + * + *
                                                                                      +     * Cloud NAT Gateway.
                                                                                      +     * 
                                                                                      + * + * CLOUD_NAT = 3; + */ + public static final int CLOUD_NAT_VALUE = 3; + /** + * + * + *
                                                                                      +     * Private service connect NAT.
                                                                                      +     * 
                                                                                      + * + * PRIVATE_SERVICE_CONNECT = 4; + */ + public static final int PRIVATE_SERVICE_CONNECT_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 Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return INTERNAL_TO_EXTERNAL; + case 2: + return EXTERNAL_TO_INTERNAL; + case 3: + return CLOUD_NAT; + case 4: + return PRIVATE_SERVICE_CONNECT; + 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 Type findValueByNumber(int number) { + return Type.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.networkmanagement.v1beta1.NatInfo.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkmanagement.v1beta1.NatInfo.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + /** + * + * + *
                                                                                      +   * Type of NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
                                                                                      +   * Type of NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.NatInfo.Type getType() { + com.google.cloud.networkmanagement.v1beta1.NatInfo.Type result = + com.google.cloud.networkmanagement.v1beta1.NatInfo.Type.forNumber(type_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.NatInfo.Type.UNRECOGNIZED + : result; + } + + public static final int PROTOCOL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object protocol_ = ""; + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 2; + * + * @return The protocol. + */ + @java.lang.Override + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + 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(); + protocol_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 2; + * + * @return The bytes for protocol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the network where NAT translation takes place.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 3; + * + * @return The networkUri. + */ + @java.lang.Override + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + 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(); + networkUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the network where NAT translation takes place.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OLD_SOURCE_IP_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object oldSourceIp_ = ""; + /** + * + * + *
                                                                                      +   * Source IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 4; + * + * @return The oldSourceIp. + */ + @java.lang.Override + public java.lang.String getOldSourceIp() { + java.lang.Object ref = oldSourceIp_; + 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(); + oldSourceIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Source IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 4; + * + * @return The bytes for oldSourceIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOldSourceIpBytes() { + java.lang.Object ref = oldSourceIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEW_SOURCE_IP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object newSourceIp_ = ""; + /** + * + * + *
                                                                                      +   * Source IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 5; + * + * @return The newSourceIp. + */ + @java.lang.Override + public java.lang.String getNewSourceIp() { + java.lang.Object ref = newSourceIp_; + 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(); + newSourceIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Source IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 5; + * + * @return The bytes for newSourceIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewSourceIpBytes() { + java.lang.Object ref = newSourceIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OLD_DESTINATION_IP_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object oldDestinationIp_ = ""; + /** + * + * + *
                                                                                      +   * Destination IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @return The oldDestinationIp. + */ + @java.lang.Override + public java.lang.String getOldDestinationIp() { + java.lang.Object ref = oldDestinationIp_; + 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(); + oldDestinationIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Destination IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @return The bytes for oldDestinationIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOldDestinationIpBytes() { + java.lang.Object ref = oldDestinationIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEW_DESTINATION_IP_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object newDestinationIp_ = ""; + /** + * + * + *
                                                                                      +   * Destination IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @return The newDestinationIp. + */ + @java.lang.Override + public java.lang.String getNewDestinationIp() { + java.lang.Object ref = newDestinationIp_; + 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(); + newDestinationIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Destination IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @return The bytes for newDestinationIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewDestinationIpBytes() { + java.lang.Object ref = newDestinationIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OLD_SOURCE_PORT_FIELD_NUMBER = 8; + private int oldSourcePort_ = 0; + /** + * + * + *
                                                                                      +   * Source port before NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_source_port = 8; + * + * @return The oldSourcePort. + */ + @java.lang.Override + public int getOldSourcePort() { + return oldSourcePort_; + } + + public static final int NEW_SOURCE_PORT_FIELD_NUMBER = 9; + private int newSourcePort_ = 0; + /** + * + * + *
                                                                                      +   * Source port after NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_source_port = 9; + * + * @return The newSourcePort. + */ + @java.lang.Override + public int getNewSourcePort() { + return newSourcePort_; + } + + public static final int OLD_DESTINATION_PORT_FIELD_NUMBER = 10; + private int oldDestinationPort_ = 0; + /** + * + * + *
                                                                                      +   * Destination port before NAT translation. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_destination_port = 10; + * + * @return The oldDestinationPort. + */ + @java.lang.Override + public int getOldDestinationPort() { + return oldDestinationPort_; + } + + public static final int NEW_DESTINATION_PORT_FIELD_NUMBER = 11; + private int newDestinationPort_ = 0; + /** + * + * + *
                                                                                      +   * Destination port after NAT translation. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_destination_port = 11; + * + * @return The newDestinationPort. + */ + @java.lang.Override + public int getNewDestinationPort() { + return newDestinationPort_; + } + + public static final int ROUTER_URI_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object routerUri_ = ""; + /** + * + * + *
                                                                                      +   * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string router_uri = 12; + * + * @return The routerUri. + */ + @java.lang.Override + public java.lang.String getRouterUri() { + java.lang.Object ref = routerUri_; + 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(); + routerUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string router_uri = 12; + * + * @return The bytes for routerUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRouterUriBytes() { + java.lang.Object ref = routerUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routerUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAT_GATEWAY_NAME_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object natGatewayName_ = ""; + /** + * + * + *
                                                                                      +   * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @return The natGatewayName. + */ + @java.lang.Override + public java.lang.String getNatGatewayName() { + java.lang.Object ref = natGatewayName_; + 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(); + natGatewayName_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @return The bytes for natGatewayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNatGatewayNameBytes() { + java.lang.Object ref = natGatewayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + natGatewayName_ = 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 (type_ + != com.google.cloud.networkmanagement.v1beta1.NatInfo.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, protocol_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, networkUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldSourceIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, oldSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newSourceIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, newSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldDestinationIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, oldDestinationIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newDestinationIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, newDestinationIp_); + } + if (oldSourcePort_ != 0) { + output.writeInt32(8, oldSourcePort_); + } + if (newSourcePort_ != 0) { + output.writeInt32(9, newSourcePort_); + } + if (oldDestinationPort_ != 0) { + output.writeInt32(10, oldDestinationPort_); + } + if (newDestinationPort_ != 0) { + output.writeInt32(11, newDestinationPort_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routerUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, routerUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(natGatewayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, natGatewayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.networkmanagement.v1beta1.NatInfo.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(protocol_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, protocol_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, networkUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldSourceIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, oldSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newSourceIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, newSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldDestinationIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, oldDestinationIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newDestinationIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, newDestinationIp_); + } + if (oldSourcePort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, oldSourcePort_); + } + if (newSourcePort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, newSourcePort_); + } + if (oldDestinationPort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, oldDestinationPort_); + } + if (newDestinationPort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(11, newDestinationPort_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routerUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, routerUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(natGatewayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, natGatewayName_); + } + 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.networkmanagement.v1beta1.NatInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.NatInfo other = + (com.google.cloud.networkmanagement.v1beta1.NatInfo) obj; + + if (type_ != other.type_) return false; + if (!getProtocol().equals(other.getProtocol())) return false; + if (!getNetworkUri().equals(other.getNetworkUri())) return false; + if (!getOldSourceIp().equals(other.getOldSourceIp())) return false; + if (!getNewSourceIp().equals(other.getNewSourceIp())) return false; + if (!getOldDestinationIp().equals(other.getOldDestinationIp())) return false; + if (!getNewDestinationIp().equals(other.getNewDestinationIp())) return false; + if (getOldSourcePort() != other.getOldSourcePort()) return false; + if (getNewSourcePort() != other.getNewSourcePort()) return false; + if (getOldDestinationPort() != other.getOldDestinationPort()) return false; + if (getNewDestinationPort() != other.getNewDestinationPort()) return false; + if (!getRouterUri().equals(other.getRouterUri())) return false; + if (!getNatGatewayName().equals(other.getNatGatewayName())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getProtocol().hashCode(); + hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; + hash = (53 * hash) + getNetworkUri().hashCode(); + hash = (37 * hash) + OLD_SOURCE_IP_FIELD_NUMBER; + hash = (53 * hash) + getOldSourceIp().hashCode(); + hash = (37 * hash) + NEW_SOURCE_IP_FIELD_NUMBER; + hash = (53 * hash) + getNewSourceIp().hashCode(); + hash = (37 * hash) + OLD_DESTINATION_IP_FIELD_NUMBER; + hash = (53 * hash) + getOldDestinationIp().hashCode(); + hash = (37 * hash) + NEW_DESTINATION_IP_FIELD_NUMBER; + hash = (53 * hash) + getNewDestinationIp().hashCode(); + hash = (37 * hash) + OLD_SOURCE_PORT_FIELD_NUMBER; + hash = (53 * hash) + getOldSourcePort(); + hash = (37 * hash) + NEW_SOURCE_PORT_FIELD_NUMBER; + hash = (53 * hash) + getNewSourcePort(); + hash = (37 * hash) + OLD_DESTINATION_PORT_FIELD_NUMBER; + hash = (53 * hash) + getOldDestinationPort(); + hash = (37 * hash) + NEW_DESTINATION_PORT_FIELD_NUMBER; + hash = (53 * hash) + getNewDestinationPort(); + hash = (37 * hash) + ROUTER_URI_FIELD_NUMBER; + hash = (53 * hash) + getRouterUri().hashCode(); + hash = (37 * hash) + NAT_GATEWAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getNatGatewayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1beta1.NatInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.NatInfo 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.networkmanagement.v1beta1.NatInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.NatInfo 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.networkmanagement.v1beta1.NatInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.NatInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.NatInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.NatInfo 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.networkmanagement.v1beta1.NatInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.NatInfo 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.networkmanagement.v1beta1.NatInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.NatInfo 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.networkmanagement.v1beta1.NatInfo 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; + } + /** + * + * + *
                                                                                      +   * For display only. Metadata associated with NAT.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.NatInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.NatInfo) + com.google.cloud.networkmanagement.v1beta1.NatInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.NatInfo.class, + com.google.cloud.networkmanagement.v1beta1.NatInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1beta1.NatInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + protocol_ = ""; + networkUri_ = ""; + oldSourceIp_ = ""; + newSourceIp_ = ""; + oldDestinationIp_ = ""; + newDestinationIp_ = ""; + oldSourcePort_ = 0; + newSourcePort_ = 0; + oldDestinationPort_ = 0; + newDestinationPort_ = 0; + routerUri_ = ""; + natGatewayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.NatInfo getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.NatInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.NatInfo build() { + com.google.cloud.networkmanagement.v1beta1.NatInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.NatInfo buildPartial() { + com.google.cloud.networkmanagement.v1beta1.NatInfo result = + new com.google.cloud.networkmanagement.v1beta1.NatInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.NatInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.protocol_ = protocol_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.networkUri_ = networkUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.oldSourceIp_ = oldSourceIp_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.newSourceIp_ = newSourceIp_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.oldDestinationIp_ = oldDestinationIp_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.newDestinationIp_ = newDestinationIp_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.oldSourcePort_ = oldSourcePort_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.newSourcePort_ = newSourcePort_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.oldDestinationPort_ = oldDestinationPort_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.newDestinationPort_ = newDestinationPort_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.routerUri_ = routerUri_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.natGatewayName_ = natGatewayName_; + } + } + + @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.networkmanagement.v1beta1.NatInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1beta1.NatInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.NatInfo other) { + if (other == com.google.cloud.networkmanagement.v1beta1.NatInfo.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getProtocol().isEmpty()) { + protocol_ = other.protocol_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getNetworkUri().isEmpty()) { + networkUri_ = other.networkUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOldSourceIp().isEmpty()) { + oldSourceIp_ = other.oldSourceIp_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getNewSourceIp().isEmpty()) { + newSourceIp_ = other.newSourceIp_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getOldDestinationIp().isEmpty()) { + oldDestinationIp_ = other.oldDestinationIp_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getNewDestinationIp().isEmpty()) { + newDestinationIp_ = other.newDestinationIp_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getOldSourcePort() != 0) { + setOldSourcePort(other.getOldSourcePort()); + } + if (other.getNewSourcePort() != 0) { + setNewSourcePort(other.getNewSourcePort()); + } + if (other.getOldDestinationPort() != 0) { + setOldDestinationPort(other.getOldDestinationPort()); + } + if (other.getNewDestinationPort() != 0) { + setNewDestinationPort(other.getNewDestinationPort()); + } + if (!other.getRouterUri().isEmpty()) { + routerUri_ = other.routerUri_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getNatGatewayName().isEmpty()) { + natGatewayName_ = other.natGatewayName_; + bitField0_ |= 0x00001000; + 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 8: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + protocol_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + networkUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + oldSourceIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + newSourceIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + oldDestinationIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + newDestinationIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + oldSourcePort_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + newSourcePort_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 80: + { + oldDestinationPort_ = input.readInt32(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 88: + { + newDestinationPort_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 98: + { + routerUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + natGatewayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + 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 type_ = 0; + /** + * + * + *
                                                                                      +     * Type of NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
                                                                                      +     * Type of NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Type of NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1; + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.NatInfo.Type getType() { + com.google.cloud.networkmanagement.v1beta1.NatInfo.Type result = + com.google.cloud.networkmanagement.v1beta1.NatInfo.Type.forNumber(type_); + return result == null + ? com.google.cloud.networkmanagement.v1beta1.NatInfo.Type.UNRECOGNIZED + : result; + } + /** + * + * + *
                                                                                      +     * Type of NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.networkmanagement.v1beta1.NatInfo.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Type of NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1; + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object protocol_ = ""; + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 2; + * + * @return The protocol. + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 2; + * + * @return The bytes for protocol. + */ + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 2; + * + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + protocol_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 2; + * + * @return This builder for chaining. + */ + public Builder clearProtocol() { + protocol_ = getDefaultInstance().getProtocol(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 2; + * + * @param value The bytes for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + protocol_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object networkUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the network where NAT translation takes place.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 3; + * + * @return The networkUri. + */ + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the network where NAT translation takes place.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the network where NAT translation takes place.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 3; + * + * @param value The networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the network where NAT translation takes place.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearNetworkUri() { + networkUri_ = getDefaultInstance().getNetworkUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the network where NAT translation takes place.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 3; + * + * @param value The bytes for networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object oldSourceIp_ = ""; + /** + * + * + *
                                                                                      +     * Source IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 4; + * + * @return The oldSourceIp. + */ + public java.lang.String getOldSourceIp() { + java.lang.Object ref = oldSourceIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldSourceIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 4; + * + * @return The bytes for oldSourceIp. + */ + public com.google.protobuf.ByteString getOldSourceIpBytes() { + java.lang.Object ref = oldSourceIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 4; + * + * @param value The oldSourceIp to set. + * @return This builder for chaining. + */ + public Builder setOldSourceIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oldSourceIp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 4; + * + * @return This builder for chaining. + */ + public Builder clearOldSourceIp() { + oldSourceIp_ = getDefaultInstance().getOldSourceIp(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 4; + * + * @param value The bytes for oldSourceIp to set. + * @return This builder for chaining. + */ + public Builder setOldSourceIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oldSourceIp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object newSourceIp_ = ""; + /** + * + * + *
                                                                                      +     * Source IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 5; + * + * @return The newSourceIp. + */ + public java.lang.String getNewSourceIp() { + java.lang.Object ref = newSourceIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newSourceIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 5; + * + * @return The bytes for newSourceIp. + */ + public com.google.protobuf.ByteString getNewSourceIpBytes() { + java.lang.Object ref = newSourceIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 5; + * + * @param value The newSourceIp to set. + * @return This builder for chaining. + */ + public Builder setNewSourceIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + newSourceIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 5; + * + * @return This builder for chaining. + */ + public Builder clearNewSourceIp() { + newSourceIp_ = getDefaultInstance().getNewSourceIp(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 5; + * + * @param value The bytes for newSourceIp to set. + * @return This builder for chaining. + */ + public Builder setNewSourceIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newSourceIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object oldDestinationIp_ = ""; + /** + * + * + *
                                                                                      +     * Destination IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @return The oldDestinationIp. + */ + public java.lang.String getOldDestinationIp() { + java.lang.Object ref = oldDestinationIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldDestinationIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @return The bytes for oldDestinationIp. + */ + public com.google.protobuf.ByteString getOldDestinationIpBytes() { + java.lang.Object ref = oldDestinationIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @param value The oldDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setOldDestinationIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oldDestinationIp_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @return This builder for chaining. + */ + public Builder clearOldDestinationIp() { + oldDestinationIp_ = getDefaultInstance().getOldDestinationIp(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address before NAT translation.
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @param value The bytes for oldDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setOldDestinationIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oldDestinationIp_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object newDestinationIp_ = ""; + /** + * + * + *
                                                                                      +     * Destination IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @return The newDestinationIp. + */ + public java.lang.String getNewDestinationIp() { + java.lang.Object ref = newDestinationIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newDestinationIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @return The bytes for newDestinationIp. + */ + public com.google.protobuf.ByteString getNewDestinationIpBytes() { + java.lang.Object ref = newDestinationIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @param value The newDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setNewDestinationIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + newDestinationIp_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @return This builder for chaining. + */ + public Builder clearNewDestinationIp() { + newDestinationIp_ = getDefaultInstance().getNewDestinationIp(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address after NAT translation.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @param value The bytes for newDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setNewDestinationIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newDestinationIp_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private int oldSourcePort_; + /** + * + * + *
                                                                                      +     * Source port before NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_source_port = 8; + * + * @return The oldSourcePort. + */ + @java.lang.Override + public int getOldSourcePort() { + return oldSourcePort_; + } + /** + * + * + *
                                                                                      +     * Source port before NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_source_port = 8; + * + * @param value The oldSourcePort to set. + * @return This builder for chaining. + */ + public Builder setOldSourcePort(int value) { + + oldSourcePort_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source port before NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_source_port = 8; + * + * @return This builder for chaining. + */ + public Builder clearOldSourcePort() { + bitField0_ = (bitField0_ & ~0x00000080); + oldSourcePort_ = 0; + onChanged(); + return this; + } + + private int newSourcePort_; + /** + * + * + *
                                                                                      +     * Source port after NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_source_port = 9; + * + * @return The newSourcePort. + */ + @java.lang.Override + public int getNewSourcePort() { + return newSourcePort_; + } + /** + * + * + *
                                                                                      +     * Source port after NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_source_port = 9; + * + * @param value The newSourcePort to set. + * @return This builder for chaining. + */ + public Builder setNewSourcePort(int value) { + + newSourcePort_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source port after NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_source_port = 9; + * + * @return This builder for chaining. + */ + public Builder clearNewSourcePort() { + bitField0_ = (bitField0_ & ~0x00000100); + newSourcePort_ = 0; + onChanged(); + return this; + } + + private int oldDestinationPort_; + /** + * + * + *
                                                                                      +     * Destination port before NAT translation. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_destination_port = 10; + * + * @return The oldDestinationPort. + */ + @java.lang.Override + public int getOldDestinationPort() { + return oldDestinationPort_; + } + /** + * + * + *
                                                                                      +     * Destination port before NAT translation. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_destination_port = 10; + * + * @param value The oldDestinationPort to set. + * @return This builder for chaining. + */ + public Builder setOldDestinationPort(int value) { + + oldDestinationPort_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination port before NAT translation. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_destination_port = 10; + * + * @return This builder for chaining. + */ + public Builder clearOldDestinationPort() { + bitField0_ = (bitField0_ & ~0x00000200); + oldDestinationPort_ = 0; + onChanged(); + return this; + } + + private int newDestinationPort_; + /** + * + * + *
                                                                                      +     * Destination port after NAT translation. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_destination_port = 11; + * + * @return The newDestinationPort. + */ + @java.lang.Override + public int getNewDestinationPort() { + return newDestinationPort_; + } + /** + * + * + *
                                                                                      +     * Destination port after NAT translation. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_destination_port = 11; + * + * @param value The newDestinationPort to set. + * @return This builder for chaining. + */ + public Builder setNewDestinationPort(int value) { + + newDestinationPort_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination port after NAT translation. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_destination_port = 11; + * + * @return This builder for chaining. + */ + public Builder clearNewDestinationPort() { + bitField0_ = (bitField0_ & ~0x00000400); + newDestinationPort_ = 0; + onChanged(); + return this; + } + + private java.lang.Object routerUri_ = ""; + /** + * + * + *
                                                                                      +     * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string router_uri = 12; + * + * @return The routerUri. + */ + public java.lang.String getRouterUri() { + java.lang.Object ref = routerUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + routerUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string router_uri = 12; + * + * @return The bytes for routerUri. + */ + public com.google.protobuf.ByteString getRouterUriBytes() { + java.lang.Object ref = routerUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + routerUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string router_uri = 12; + * + * @param value The routerUri to set. + * @return This builder for chaining. + */ + public Builder setRouterUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + routerUri_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string router_uri = 12; + * + * @return This builder for chaining. + */ + public Builder clearRouterUri() { + routerUri_ = getDefaultInstance().getRouterUri(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string router_uri = 12; + * + * @param value The bytes for routerUri to set. + * @return This builder for chaining. + */ + public Builder setRouterUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + routerUri_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object natGatewayName_ = ""; + /** + * + * + *
                                                                                      +     * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @return The natGatewayName. + */ + public java.lang.String getNatGatewayName() { + java.lang.Object ref = natGatewayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + natGatewayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @return The bytes for natGatewayName. + */ + public com.google.protobuf.ByteString getNatGatewayNameBytes() { + java.lang.Object ref = natGatewayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + natGatewayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @param value The natGatewayName to set. + * @return This builder for chaining. + */ + public Builder setNatGatewayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + natGatewayName_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @return This builder for chaining. + */ + public Builder clearNatGatewayName() { + natGatewayName_ = getDefaultInstance().getNatGatewayName(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +     * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @param value The bytes for natGatewayName to set. + * @return This builder for chaining. + */ + public Builder setNatGatewayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + natGatewayName_ = value; + bitField0_ |= 0x00001000; + 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.networkmanagement.v1beta1.NatInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.NatInfo) + private static final com.google.cloud.networkmanagement.v1beta1.NatInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.NatInfo(); + } + + public static com.google.cloud.networkmanagement.v1beta1.NatInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NatInfo 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.networkmanagement.v1beta1.NatInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NatInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NatInfoOrBuilder.java new file mode 100644 index 000000000000..f7f3bdbe9747 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/NatInfoOrBuilder.java @@ -0,0 +1,305 @@ +/* + * 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/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1beta1; + +public interface NatInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.NatInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * Type of NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
                                                                                      +   * Type of NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo.Type type = 1; + * + * @return The type. + */ + com.google.cloud.networkmanagement.v1beta1.NatInfo.Type getType(); + + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 2; + * + * @return The protocol. + */ + java.lang.String getProtocol(); + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 2; + * + * @return The bytes for protocol. + */ + com.google.protobuf.ByteString getProtocolBytes(); + + /** + * + * + *
                                                                                      +   * URI of the network where NAT translation takes place.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 3; + * + * @return The networkUri. + */ + java.lang.String getNetworkUri(); + /** + * + * + *
                                                                                      +   * URI of the network where NAT translation takes place.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 3; + * + * @return The bytes for networkUri. + */ + com.google.protobuf.ByteString getNetworkUriBytes(); + + /** + * + * + *
                                                                                      +   * Source IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 4; + * + * @return The oldSourceIp. + */ + java.lang.String getOldSourceIp(); + /** + * + * + *
                                                                                      +   * Source IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 4; + * + * @return The bytes for oldSourceIp. + */ + com.google.protobuf.ByteString getOldSourceIpBytes(); + + /** + * + * + *
                                                                                      +   * Source IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 5; + * + * @return The newSourceIp. + */ + java.lang.String getNewSourceIp(); + /** + * + * + *
                                                                                      +   * Source IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 5; + * + * @return The bytes for newSourceIp. + */ + com.google.protobuf.ByteString getNewSourceIpBytes(); + + /** + * + * + *
                                                                                      +   * Destination IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @return The oldDestinationIp. + */ + java.lang.String getOldDestinationIp(); + /** + * + * + *
                                                                                      +   * Destination IP address before NAT translation.
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 6; + * + * @return The bytes for oldDestinationIp. + */ + com.google.protobuf.ByteString getOldDestinationIpBytes(); + + /** + * + * + *
                                                                                      +   * Destination IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @return The newDestinationIp. + */ + java.lang.String getNewDestinationIp(); + /** + * + * + *
                                                                                      +   * Destination IP address after NAT translation.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 7; + * + * @return The bytes for newDestinationIp. + */ + com.google.protobuf.ByteString getNewDestinationIpBytes(); + + /** + * + * + *
                                                                                      +   * Source port before NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_source_port = 8; + * + * @return The oldSourcePort. + */ + int getOldSourcePort(); + + /** + * + * + *
                                                                                      +   * Source port after NAT translation. Only valid when protocol is TCP or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_source_port = 9; + * + * @return The newSourcePort. + */ + int getNewSourcePort(); + + /** + * + * + *
                                                                                      +   * Destination port before NAT translation. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_destination_port = 10; + * + * @return The oldDestinationPort. + */ + int getOldDestinationPort(); + + /** + * + * + *
                                                                                      +   * Destination port after NAT translation. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_destination_port = 11; + * + * @return The newDestinationPort. + */ + int getNewDestinationPort(); + + /** + * + * + *
                                                                                      +   * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string router_uri = 12; + * + * @return The routerUri. + */ + java.lang.String getRouterUri(); + /** + * + * + *
                                                                                      +   * Uri of the Cloud Router. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string router_uri = 12; + * + * @return The bytes for routerUri. + */ + com.google.protobuf.ByteString getRouterUriBytes(); + + /** + * + * + *
                                                                                      +   * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @return The natGatewayName. + */ + java.lang.String getNatGatewayName(); + /** + * + * + *
                                                                                      +   * The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT.
                                                                                      +   * 
                                                                                      + * + * string nat_gateway_name = 13; + * + * @return The bytes for natGatewayName. + */ + com.google.protobuf.ByteString getNatGatewayNameBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProxyConnectionInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProxyConnectionInfo.java new file mode 100644 index 000000000000..1e1479388003 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProxyConnectionInfo.java @@ -0,0 +1,2108 @@ +/* + * 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/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
                                                                                      + * For display only. Metadata associated with ProxyConnection.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo} + */ +public final class ProxyConnectionInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo) + ProxyConnectionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProxyConnectionInfo.newBuilder() to construct. + private ProxyConnectionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProxyConnectionInfo() { + protocol_ = ""; + oldSourceIp_ = ""; + newSourceIp_ = ""; + oldDestinationIp_ = ""; + newDestinationIp_ = ""; + subnetUri_ = ""; + networkUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProxyConnectionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.class, + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.Builder.class); + } + + public static final int PROTOCOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object protocol_ = ""; + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 1; + * + * @return The protocol. + */ + @java.lang.Override + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + 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(); + protocol_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 1; + * + * @return The bytes for protocol. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OLD_SOURCE_IP_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object oldSourceIp_ = ""; + /** + * + * + *
                                                                                      +   * Source IP address of an original connection.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 2; + * + * @return The oldSourceIp. + */ + @java.lang.Override + public java.lang.String getOldSourceIp() { + java.lang.Object ref = oldSourceIp_; + 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(); + oldSourceIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Source IP address of an original connection.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 2; + * + * @return The bytes for oldSourceIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOldSourceIpBytes() { + java.lang.Object ref = oldSourceIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEW_SOURCE_IP_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object newSourceIp_ = ""; + /** + * + * + *
                                                                                      +   * Source IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 3; + * + * @return The newSourceIp. + */ + @java.lang.Override + public java.lang.String getNewSourceIp() { + java.lang.Object ref = newSourceIp_; + 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(); + newSourceIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Source IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 3; + * + * @return The bytes for newSourceIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewSourceIpBytes() { + java.lang.Object ref = newSourceIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OLD_DESTINATION_IP_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object oldDestinationIp_ = ""; + /** + * + * + *
                                                                                      +   * Destination IP address of an original connection
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @return The oldDestinationIp. + */ + @java.lang.Override + public java.lang.String getOldDestinationIp() { + java.lang.Object ref = oldDestinationIp_; + 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(); + oldDestinationIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Destination IP address of an original connection
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @return The bytes for oldDestinationIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOldDestinationIpBytes() { + java.lang.Object ref = oldDestinationIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEW_DESTINATION_IP_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object newDestinationIp_ = ""; + /** + * + * + *
                                                                                      +   * Destination IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @return The newDestinationIp. + */ + @java.lang.Override + public java.lang.String getNewDestinationIp() { + java.lang.Object ref = newDestinationIp_; + 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(); + newDestinationIp_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Destination IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @return The bytes for newDestinationIp. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNewDestinationIpBytes() { + java.lang.Object ref = newDestinationIp_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OLD_SOURCE_PORT_FIELD_NUMBER = 6; + private int oldSourcePort_ = 0; + /** + * + * + *
                                                                                      +   * Source port of an original connection. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_source_port = 6; + * + * @return The oldSourcePort. + */ + @java.lang.Override + public int getOldSourcePort() { + return oldSourcePort_; + } + + public static final int NEW_SOURCE_PORT_FIELD_NUMBER = 7; + private int newSourcePort_ = 0; + /** + * + * + *
                                                                                      +   * Source port of a new connection. Only valid when protocol is TCP or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_source_port = 7; + * + * @return The newSourcePort. + */ + @java.lang.Override + public int getNewSourcePort() { + return newSourcePort_; + } + + public static final int OLD_DESTINATION_PORT_FIELD_NUMBER = 8; + private int oldDestinationPort_ = 0; + /** + * + * + *
                                                                                      +   * Destination port of an original connection. Only valid when protocol is TCP
                                                                                      +   * or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_destination_port = 8; + * + * @return The oldDestinationPort. + */ + @java.lang.Override + public int getOldDestinationPort() { + return oldDestinationPort_; + } + + public static final int NEW_DESTINATION_PORT_FIELD_NUMBER = 9; + private int newDestinationPort_ = 0; + /** + * + * + *
                                                                                      +   * Destination port of a new connection. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_destination_port = 9; + * + * @return The newDestinationPort. + */ + @java.lang.Override + public int getNewDestinationPort() { + return newDestinationPort_; + } + + public static final int SUBNET_URI_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object subnetUri_ = ""; + /** + * + * + *
                                                                                      +   * Uri of proxy subnet.
                                                                                      +   * 
                                                                                      + * + * string subnet_uri = 10; + * + * @return The subnetUri. + */ + @java.lang.Override + public java.lang.String getSubnetUri() { + java.lang.Object ref = subnetUri_; + 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(); + subnetUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Uri of proxy subnet.
                                                                                      +   * 
                                                                                      + * + * string subnet_uri = 10; + * + * @return The bytes for subnetUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubnetUriBytes() { + java.lang.Object ref = subnetUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NETWORK_URI_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkUri_ = ""; + /** + * + * + *
                                                                                      +   * URI of the network where connection is proxied.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 11; + * + * @return The networkUri. + */ + @java.lang.Override + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + 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(); + networkUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * URI of the network where connection is proxied.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 11; + * + * @return The bytes for networkUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = 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(protocol_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, protocol_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldSourceIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, oldSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newSourceIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, newSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldDestinationIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, oldDestinationIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newDestinationIp_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, newDestinationIp_); + } + if (oldSourcePort_ != 0) { + output.writeInt32(6, oldSourcePort_); + } + if (newSourcePort_ != 0) { + output.writeInt32(7, newSourcePort_); + } + if (oldDestinationPort_ != 0) { + output.writeInt32(8, oldDestinationPort_); + } + if (newDestinationPort_ != 0) { + output.writeInt32(9, newDestinationPort_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, subnetUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, networkUri_); + } + 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(protocol_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, protocol_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldSourceIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, oldSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newSourceIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, newSourceIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldDestinationIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, oldDestinationIp_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newDestinationIp_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, newDestinationIp_); + } + if (oldSourcePort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, oldSourcePort_); + } + if (newSourcePort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, newSourcePort_); + } + if (oldDestinationPort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, oldDestinationPort_); + } + if (newDestinationPort_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, newDestinationPort_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, subnetUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, networkUri_); + } + 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.networkmanagement.v1beta1.ProxyConnectionInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo other = + (com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo) obj; + + if (!getProtocol().equals(other.getProtocol())) return false; + if (!getOldSourceIp().equals(other.getOldSourceIp())) return false; + if (!getNewSourceIp().equals(other.getNewSourceIp())) return false; + if (!getOldDestinationIp().equals(other.getOldDestinationIp())) return false; + if (!getNewDestinationIp().equals(other.getNewDestinationIp())) return false; + if (getOldSourcePort() != other.getOldSourcePort()) return false; + if (getNewSourcePort() != other.getNewSourcePort()) return false; + if (getOldDestinationPort() != other.getOldDestinationPort()) return false; + if (getNewDestinationPort() != other.getNewDestinationPort()) return false; + if (!getSubnetUri().equals(other.getSubnetUri())) return false; + if (!getNetworkUri().equals(other.getNetworkUri())) 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) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getProtocol().hashCode(); + hash = (37 * hash) + OLD_SOURCE_IP_FIELD_NUMBER; + hash = (53 * hash) + getOldSourceIp().hashCode(); + hash = (37 * hash) + NEW_SOURCE_IP_FIELD_NUMBER; + hash = (53 * hash) + getNewSourceIp().hashCode(); + hash = (37 * hash) + OLD_DESTINATION_IP_FIELD_NUMBER; + hash = (53 * hash) + getOldDestinationIp().hashCode(); + hash = (37 * hash) + NEW_DESTINATION_IP_FIELD_NUMBER; + hash = (53 * hash) + getNewDestinationIp().hashCode(); + hash = (37 * hash) + OLD_SOURCE_PORT_FIELD_NUMBER; + hash = (53 * hash) + getOldSourcePort(); + hash = (37 * hash) + NEW_SOURCE_PORT_FIELD_NUMBER; + hash = (53 * hash) + getNewSourcePort(); + hash = (37 * hash) + OLD_DESTINATION_PORT_FIELD_NUMBER; + hash = (53 * hash) + getOldDestinationPort(); + hash = (37 * hash) + NEW_DESTINATION_PORT_FIELD_NUMBER; + hash = (53 * hash) + getNewDestinationPort(); + hash = (37 * hash) + SUBNET_URI_FIELD_NUMBER; + hash = (53 * hash) + getSubnetUri().hashCode(); + hash = (37 * hash) + NETWORK_URI_FIELD_NUMBER; + hash = (53 * hash) + getNetworkUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo 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.networkmanagement.v1beta1.ProxyConnectionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo 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.networkmanagement.v1beta1.ProxyConnectionInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo 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.networkmanagement.v1beta1.ProxyConnectionInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo 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.networkmanagement.v1beta1.ProxyConnectionInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo 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.networkmanagement.v1beta1.ProxyConnectionInfo 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; + } + /** + * + * + *
                                                                                      +   * For display only. Metadata associated with ProxyConnection.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo) + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.class, + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + protocol_ = ""; + oldSourceIp_ = ""; + newSourceIp_ = ""; + oldDestinationIp_ = ""; + newDestinationIp_ = ""; + oldSourcePort_ = 0; + newSourcePort_ = 0; + oldDestinationPort_ = 0; + newDestinationPort_ = 0; + subnetUri_ = ""; + networkUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo build() { + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo buildPartial() { + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo result = + new com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.protocol_ = protocol_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.oldSourceIp_ = oldSourceIp_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.newSourceIp_ = newSourceIp_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.oldDestinationIp_ = oldDestinationIp_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.newDestinationIp_ = newDestinationIp_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.oldSourcePort_ = oldSourcePort_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.newSourcePort_ = newSourcePort_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.oldDestinationPort_ = oldDestinationPort_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.newDestinationPort_ = newDestinationPort_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.subnetUri_ = subnetUri_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.networkUri_ = networkUri_; + } + } + + @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.networkmanagement.v1beta1.ProxyConnectionInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo other) { + if (other + == com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.getDefaultInstance()) + return this; + if (!other.getProtocol().isEmpty()) { + protocol_ = other.protocol_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOldSourceIp().isEmpty()) { + oldSourceIp_ = other.oldSourceIp_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getNewSourceIp().isEmpty()) { + newSourceIp_ = other.newSourceIp_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOldDestinationIp().isEmpty()) { + oldDestinationIp_ = other.oldDestinationIp_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getNewDestinationIp().isEmpty()) { + newDestinationIp_ = other.newDestinationIp_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getOldSourcePort() != 0) { + setOldSourcePort(other.getOldSourcePort()); + } + if (other.getNewSourcePort() != 0) { + setNewSourcePort(other.getNewSourcePort()); + } + if (other.getOldDestinationPort() != 0) { + setOldDestinationPort(other.getOldDestinationPort()); + } + if (other.getNewDestinationPort() != 0) { + setNewDestinationPort(other.getNewDestinationPort()); + } + if (!other.getSubnetUri().isEmpty()) { + subnetUri_ = other.subnetUri_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getNetworkUri().isEmpty()) { + networkUri_ = other.networkUri_; + bitField0_ |= 0x00000400; + 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: + { + protocol_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + oldSourceIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + newSourceIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + oldDestinationIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + newDestinationIp_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + oldSourcePort_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + newSourcePort_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + oldDestinationPort_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + newDestinationPort_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + subnetUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + networkUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + 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 protocol_ = ""; + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 1; + * + * @return The protocol. + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocol_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 1; + * + * @return The bytes for protocol. + */ + public com.google.protobuf.ByteString getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 1; + * + * @param value The protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocol(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + protocol_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 1; + * + * @return This builder for chaining. + */ + public Builder clearProtocol() { + protocol_ = getDefaultInstance().getProtocol(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +     * 
                                                                                      + * + * string protocol = 1; + * + * @param value The bytes for protocol to set. + * @return This builder for chaining. + */ + public Builder setProtocolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + protocol_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object oldSourceIp_ = ""; + /** + * + * + *
                                                                                      +     * Source IP address of an original connection.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 2; + * + * @return The oldSourceIp. + */ + public java.lang.String getOldSourceIp() { + java.lang.Object ref = oldSourceIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldSourceIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address of an original connection.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 2; + * + * @return The bytes for oldSourceIp. + */ + public com.google.protobuf.ByteString getOldSourceIpBytes() { + java.lang.Object ref = oldSourceIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address of an original connection.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 2; + * + * @param value The oldSourceIp to set. + * @return This builder for chaining. + */ + public Builder setOldSourceIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oldSourceIp_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address of an original connection.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 2; + * + * @return This builder for chaining. + */ + public Builder clearOldSourceIp() { + oldSourceIp_ = getDefaultInstance().getOldSourceIp(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address of an original connection.
                                                                                      +     * 
                                                                                      + * + * string old_source_ip = 2; + * + * @param value The bytes for oldSourceIp to set. + * @return This builder for chaining. + */ + public Builder setOldSourceIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oldSourceIp_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object newSourceIp_ = ""; + /** + * + * + *
                                                                                      +     * Source IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 3; + * + * @return The newSourceIp. + */ + public java.lang.String getNewSourceIp() { + java.lang.Object ref = newSourceIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newSourceIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 3; + * + * @return The bytes for newSourceIp. + */ + public com.google.protobuf.ByteString getNewSourceIpBytes() { + java.lang.Object ref = newSourceIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newSourceIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Source IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 3; + * + * @param value The newSourceIp to set. + * @return This builder for chaining. + */ + public Builder setNewSourceIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + newSourceIp_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 3; + * + * @return This builder for chaining. + */ + public Builder clearNewSourceIp() { + newSourceIp_ = getDefaultInstance().getNewSourceIp(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_source_ip = 3; + * + * @param value The bytes for newSourceIp to set. + * @return This builder for chaining. + */ + public Builder setNewSourceIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newSourceIp_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object oldDestinationIp_ = ""; + /** + * + * + *
                                                                                      +     * Destination IP address of an original connection
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @return The oldDestinationIp. + */ + public java.lang.String getOldDestinationIp() { + java.lang.Object ref = oldDestinationIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + oldDestinationIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address of an original connection
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @return The bytes for oldDestinationIp. + */ + public com.google.protobuf.ByteString getOldDestinationIpBytes() { + java.lang.Object ref = oldDestinationIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + oldDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address of an original connection
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @param value The oldDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setOldDestinationIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oldDestinationIp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address of an original connection
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @return This builder for chaining. + */ + public Builder clearOldDestinationIp() { + oldDestinationIp_ = getDefaultInstance().getOldDestinationIp(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address of an original connection
                                                                                      +     * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @param value The bytes for oldDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setOldDestinationIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oldDestinationIp_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object newDestinationIp_ = ""; + /** + * + * + *
                                                                                      +     * Destination IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @return The newDestinationIp. + */ + public java.lang.String getNewDestinationIp() { + java.lang.Object ref = newDestinationIp_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newDestinationIp_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @return The bytes for newDestinationIp. + */ + public com.google.protobuf.ByteString getNewDestinationIpBytes() { + java.lang.Object ref = newDestinationIp_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + newDestinationIp_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Destination IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @param value The newDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setNewDestinationIp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + newDestinationIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @return This builder for chaining. + */ + public Builder clearNewDestinationIp() { + newDestinationIp_ = getDefaultInstance().getNewDestinationIp(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination IP address of a new connection.
                                                                                      +     * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @param value The bytes for newDestinationIp to set. + * @return This builder for chaining. + */ + public Builder setNewDestinationIpBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + newDestinationIp_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int oldSourcePort_; + /** + * + * + *
                                                                                      +     * Source port of an original connection. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_source_port = 6; + * + * @return The oldSourcePort. + */ + @java.lang.Override + public int getOldSourcePort() { + return oldSourcePort_; + } + /** + * + * + *
                                                                                      +     * Source port of an original connection. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_source_port = 6; + * + * @param value The oldSourcePort to set. + * @return This builder for chaining. + */ + public Builder setOldSourcePort(int value) { + + oldSourcePort_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source port of an original connection. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_source_port = 6; + * + * @return This builder for chaining. + */ + public Builder clearOldSourcePort() { + bitField0_ = (bitField0_ & ~0x00000020); + oldSourcePort_ = 0; + onChanged(); + return this; + } + + private int newSourcePort_; + /** + * + * + *
                                                                                      +     * Source port of a new connection. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_source_port = 7; + * + * @return The newSourcePort. + */ + @java.lang.Override + public int getNewSourcePort() { + return newSourcePort_; + } + /** + * + * + *
                                                                                      +     * Source port of a new connection. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_source_port = 7; + * + * @param value The newSourcePort to set. + * @return This builder for chaining. + */ + public Builder setNewSourcePort(int value) { + + newSourcePort_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Source port of a new connection. Only valid when protocol is TCP or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_source_port = 7; + * + * @return This builder for chaining. + */ + public Builder clearNewSourcePort() { + bitField0_ = (bitField0_ & ~0x00000040); + newSourcePort_ = 0; + onChanged(); + return this; + } + + private int oldDestinationPort_; + /** + * + * + *
                                                                                      +     * Destination port of an original connection. Only valid when protocol is TCP
                                                                                      +     * or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_destination_port = 8; + * + * @return The oldDestinationPort. + */ + @java.lang.Override + public int getOldDestinationPort() { + return oldDestinationPort_; + } + /** + * + * + *
                                                                                      +     * Destination port of an original connection. Only valid when protocol is TCP
                                                                                      +     * or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_destination_port = 8; + * + * @param value The oldDestinationPort to set. + * @return This builder for chaining. + */ + public Builder setOldDestinationPort(int value) { + + oldDestinationPort_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination port of an original connection. Only valid when protocol is TCP
                                                                                      +     * or UDP.
                                                                                      +     * 
                                                                                      + * + * int32 old_destination_port = 8; + * + * @return This builder for chaining. + */ + public Builder clearOldDestinationPort() { + bitField0_ = (bitField0_ & ~0x00000080); + oldDestinationPort_ = 0; + onChanged(); + return this; + } + + private int newDestinationPort_; + /** + * + * + *
                                                                                      +     * Destination port of a new connection. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_destination_port = 9; + * + * @return The newDestinationPort. + */ + @java.lang.Override + public int getNewDestinationPort() { + return newDestinationPort_; + } + /** + * + * + *
                                                                                      +     * Destination port of a new connection. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_destination_port = 9; + * + * @param value The newDestinationPort to set. + * @return This builder for chaining. + */ + public Builder setNewDestinationPort(int value) { + + newDestinationPort_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Destination port of a new connection. Only valid when protocol is TCP or
                                                                                      +     * UDP.
                                                                                      +     * 
                                                                                      + * + * int32 new_destination_port = 9; + * + * @return This builder for chaining. + */ + public Builder clearNewDestinationPort() { + bitField0_ = (bitField0_ & ~0x00000100); + newDestinationPort_ = 0; + onChanged(); + return this; + } + + private java.lang.Object subnetUri_ = ""; + /** + * + * + *
                                                                                      +     * Uri of proxy subnet.
                                                                                      +     * 
                                                                                      + * + * string subnet_uri = 10; + * + * @return The subnetUri. + */ + public java.lang.String getSubnetUri() { + java.lang.Object ref = subnetUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Uri of proxy subnet.
                                                                                      +     * 
                                                                                      + * + * string subnet_uri = 10; + * + * @return The bytes for subnetUri. + */ + public com.google.protobuf.ByteString getSubnetUriBytes() { + java.lang.Object ref = subnetUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Uri of proxy subnet.
                                                                                      +     * 
                                                                                      + * + * string subnet_uri = 10; + * + * @param value The subnetUri to set. + * @return This builder for chaining. + */ + public Builder setSubnetUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + subnetUri_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Uri of proxy subnet.
                                                                                      +     * 
                                                                                      + * + * string subnet_uri = 10; + * + * @return This builder for chaining. + */ + public Builder clearSubnetUri() { + subnetUri_ = getDefaultInstance().getSubnetUri(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Uri of proxy subnet.
                                                                                      +     * 
                                                                                      + * + * string subnet_uri = 10; + * + * @param value The bytes for subnetUri to set. + * @return This builder for chaining. + */ + public Builder setSubnetUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnetUri_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object networkUri_ = ""; + /** + * + * + *
                                                                                      +     * URI of the network where connection is proxied.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 11; + * + * @return The networkUri. + */ + public java.lang.String getNetworkUri() { + java.lang.Object ref = networkUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + networkUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the network where connection is proxied.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 11; + * + * @return The bytes for networkUri. + */ + public com.google.protobuf.ByteString getNetworkUriBytes() { + java.lang.Object ref = networkUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + networkUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * URI of the network where connection is proxied.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 11; + * + * @param value The networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + networkUri_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the network where connection is proxied.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 11; + * + * @return This builder for chaining. + */ + public Builder clearNetworkUri() { + networkUri_ = getDefaultInstance().getNetworkUri(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * URI of the network where connection is proxied.
                                                                                      +     * 
                                                                                      + * + * string network_uri = 11; + * + * @param value The bytes for networkUri to set. + * @return This builder for chaining. + */ + public Builder setNetworkUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + networkUri_ = value; + bitField0_ |= 0x00000400; + 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.networkmanagement.v1beta1.ProxyConnectionInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo) + private static final com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo(); + } + + public static com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProxyConnectionInfo 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.networkmanagement.v1beta1.ProxyConnectionInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProxyConnectionInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProxyConnectionInfoOrBuilder.java new file mode 100644 index 000000000000..f693a3a61952 --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ProxyConnectionInfoOrBuilder.java @@ -0,0 +1,256 @@ +/* + * 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/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1beta1; + +public interface ProxyConnectionInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 1; + * + * @return The protocol. + */ + java.lang.String getProtocol(); + /** + * + * + *
                                                                                      +   * IP protocol in string format, for example: "TCP", "UDP", "ICMP".
                                                                                      +   * 
                                                                                      + * + * string protocol = 1; + * + * @return The bytes for protocol. + */ + com.google.protobuf.ByteString getProtocolBytes(); + + /** + * + * + *
                                                                                      +   * Source IP address of an original connection.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 2; + * + * @return The oldSourceIp. + */ + java.lang.String getOldSourceIp(); + /** + * + * + *
                                                                                      +   * Source IP address of an original connection.
                                                                                      +   * 
                                                                                      + * + * string old_source_ip = 2; + * + * @return The bytes for oldSourceIp. + */ + com.google.protobuf.ByteString getOldSourceIpBytes(); + + /** + * + * + *
                                                                                      +   * Source IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 3; + * + * @return The newSourceIp. + */ + java.lang.String getNewSourceIp(); + /** + * + * + *
                                                                                      +   * Source IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_source_ip = 3; + * + * @return The bytes for newSourceIp. + */ + com.google.protobuf.ByteString getNewSourceIpBytes(); + + /** + * + * + *
                                                                                      +   * Destination IP address of an original connection
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @return The oldDestinationIp. + */ + java.lang.String getOldDestinationIp(); + /** + * + * + *
                                                                                      +   * Destination IP address of an original connection
                                                                                      +   * 
                                                                                      + * + * string old_destination_ip = 4; + * + * @return The bytes for oldDestinationIp. + */ + com.google.protobuf.ByteString getOldDestinationIpBytes(); + + /** + * + * + *
                                                                                      +   * Destination IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @return The newDestinationIp. + */ + java.lang.String getNewDestinationIp(); + /** + * + * + *
                                                                                      +   * Destination IP address of a new connection.
                                                                                      +   * 
                                                                                      + * + * string new_destination_ip = 5; + * + * @return The bytes for newDestinationIp. + */ + com.google.protobuf.ByteString getNewDestinationIpBytes(); + + /** + * + * + *
                                                                                      +   * Source port of an original connection. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_source_port = 6; + * + * @return The oldSourcePort. + */ + int getOldSourcePort(); + + /** + * + * + *
                                                                                      +   * Source port of a new connection. Only valid when protocol is TCP or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_source_port = 7; + * + * @return The newSourcePort. + */ + int getNewSourcePort(); + + /** + * + * + *
                                                                                      +   * Destination port of an original connection. Only valid when protocol is TCP
                                                                                      +   * or UDP.
                                                                                      +   * 
                                                                                      + * + * int32 old_destination_port = 8; + * + * @return The oldDestinationPort. + */ + int getOldDestinationPort(); + + /** + * + * + *
                                                                                      +   * Destination port of a new connection. Only valid when protocol is TCP or
                                                                                      +   * UDP.
                                                                                      +   * 
                                                                                      + * + * int32 new_destination_port = 9; + * + * @return The newDestinationPort. + */ + int getNewDestinationPort(); + + /** + * + * + *
                                                                                      +   * Uri of proxy subnet.
                                                                                      +   * 
                                                                                      + * + * string subnet_uri = 10; + * + * @return The subnetUri. + */ + java.lang.String getSubnetUri(); + /** + * + * + *
                                                                                      +   * Uri of proxy subnet.
                                                                                      +   * 
                                                                                      + * + * string subnet_uri = 10; + * + * @return The bytes for subnetUri. + */ + com.google.protobuf.ByteString getSubnetUriBytes(); + + /** + * + * + *
                                                                                      +   * URI of the network where connection is proxied.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 11; + * + * @return The networkUri. + */ + java.lang.String getNetworkUri(); + /** + * + * + *
                                                                                      +   * URI of the network where connection is proxied.
                                                                                      +   * 
                                                                                      + * + * string network_uri = 11; + * + * @return The bytes for networkUri. + */ + com.google.protobuf.ByteString getNetworkUriBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java index feb51252dc34..810869dce8af 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/Step.java @@ -230,6 +230,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * APPLY_FORWARDING_RULE = 7; */ APPLY_FORWARDING_RULE(7), + /** + * + * + *
                                                                                      +     * Config checking state: verify load balancer backend configuration.
                                                                                      +     * 
                                                                                      + * + * ANALYZE_LOAD_BALANCER_BACKEND = 28; + */ + ANALYZE_LOAD_BALANCER_BACKEND(28), /** * * @@ -530,6 +540,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * APPLY_FORWARDING_RULE = 7; */ public static final int APPLY_FORWARDING_RULE_VALUE = 7; + /** + * + * + *
                                                                                      +     * Config checking state: verify load balancer backend configuration.
                                                                                      +     * 
                                                                                      + * + * ANALYZE_LOAD_BALANCER_BACKEND = 28; + */ + public static final int ANALYZE_LOAD_BALANCER_BACKEND_VALUE = 28; /** * * @@ -727,6 +747,8 @@ public static State forNumber(int value) { return APPLY_ROUTE; case 7: return APPLY_FORWARDING_RULE; + case 28: + return ANALYZE_LOAD_BALANCER_BACKEND; case 8: return SPOOFING_APPROVED; case 9: @@ -837,6 +859,10 @@ public enum StepInfoCase CLOUD_FUNCTION(20), APP_ENGINE_VERSION(22), CLOUD_RUN_REVISION(23), + NAT(25), + PROXY_CONNECTION(26), + LOAD_BALANCER_BACKEND_INFO(27), + STORAGE_BUCKET(28), STEPINFO_NOT_SET(0); private final int value; @@ -895,6 +921,14 @@ public static StepInfoCase forNumber(int value) { return APP_ENGINE_VERSION; case 23: return CLOUD_RUN_REVISION; + case 25: + return NAT; + case 26: + return PROXY_CONNECTION; + case 27: + return LOAD_BALANCER_BACKEND_INFO; + case 28: + return STORAGE_BUCKET; case 0: return STEPINFO_NOT_SET; default: @@ -2115,6 +2149,220 @@ public com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo getCloudR return com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfo.getDefaultInstance(); } + public static final int NAT_FIELD_NUMBER = 25; + /** + * + * + *
                                                                                      +   * Display information of a NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + * + * @return Whether the nat field is set. + */ + @java.lang.Override + public boolean hasNat() { + return stepInfoCase_ == 25; + } + /** + * + * + *
                                                                                      +   * Display information of a NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + * + * @return The nat. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.NatInfo getNat() { + if (stepInfoCase_ == 25) { + return (com.google.cloud.networkmanagement.v1beta1.NatInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.NatInfo.getDefaultInstance(); + } + /** + * + * + *
                                                                                      +   * Display information of a NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.NatInfoOrBuilder getNatOrBuilder() { + if (stepInfoCase_ == 25) { + return (com.google.cloud.networkmanagement.v1beta1.NatInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.NatInfo.getDefaultInstance(); + } + + public static final int PROXY_CONNECTION_FIELD_NUMBER = 26; + /** + * + * + *
                                                                                      +   * Display information of a ProxyConnection.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + * + * @return Whether the proxyConnection field is set. + */ + @java.lang.Override + public boolean hasProxyConnection() { + return stepInfoCase_ == 26; + } + /** + * + * + *
                                                                                      +   * Display information of a ProxyConnection.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + * + * @return The proxyConnection. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo getProxyConnection() { + if (stepInfoCase_ == 26) { + return (com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.getDefaultInstance(); + } + /** + * + * + *
                                                                                      +   * Display information of a ProxyConnection.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfoOrBuilder + getProxyConnectionOrBuilder() { + if (stepInfoCase_ == 26) { + return (com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.getDefaultInstance(); + } + + public static final int LOAD_BALANCER_BACKEND_INFO_FIELD_NUMBER = 27; + /** + * + * + *
                                                                                      +   * Display information of a specific load balancer backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + * + * @return Whether the loadBalancerBackendInfo field is set. + */ + @java.lang.Override + public boolean hasLoadBalancerBackendInfo() { + return stepInfoCase_ == 27; + } + /** + * + * + *
                                                                                      +   * Display information of a specific load balancer backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + * + * @return The loadBalancerBackendInfo. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + getLoadBalancerBackendInfo() { + if (stepInfoCase_ == 27) { + return (com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.getDefaultInstance(); + } + /** + * + * + *
                                                                                      +   * Display information of a specific load balancer backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfoOrBuilder + getLoadBalancerBackendInfoOrBuilder() { + if (stepInfoCase_ == 27) { + return (com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.getDefaultInstance(); + } + + public static final int STORAGE_BUCKET_FIELD_NUMBER = 28; + /** + * + * + *
                                                                                      +   * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + * + * @return Whether the storageBucket field is set. + */ + @java.lang.Override + public boolean hasStorageBucket() { + return stepInfoCase_ == 28; + } + /** + * + * + *
                                                                                      +   * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + * + * @return The storageBucket. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo getStorageBucket() { + if (stepInfoCase_ == 28) { + return (com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.getDefaultInstance(); + } + /** + * + * + *
                                                                                      +   * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.StorageBucketInfoOrBuilder + getStorageBucketOrBuilder() { + if (stepInfoCase_ == 28) { + return (com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2211,6 +2459,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 24, (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) stepInfo_); } + if (stepInfoCase_ == 25) { + output.writeMessage(25, (com.google.cloud.networkmanagement.v1beta1.NatInfo) stepInfo_); + } + if (stepInfoCase_ == 26) { + output.writeMessage( + 26, (com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo) stepInfo_); + } + if (stepInfoCase_ == 27) { + output.writeMessage( + 27, (com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo) stepInfo_); + } + if (stepInfoCase_ == 28) { + output.writeMessage( + 28, (com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo) stepInfo_); + } getUnknownFields().writeTo(output); } @@ -2333,6 +2596,26 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 24, (com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo) stepInfo_); } + if (stepInfoCase_ == 25) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, (com.google.cloud.networkmanagement.v1beta1.NatInfo) stepInfo_); + } + if (stepInfoCase_ == 26) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, (com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo) stepInfo_); + } + if (stepInfoCase_ == 27) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 27, (com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo) stepInfo_); + } + if (stepInfoCase_ == 28) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, (com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo) stepInfo_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2415,6 +2698,18 @@ public boolean equals(final java.lang.Object obj) { case 23: if (!getCloudRunRevision().equals(other.getCloudRunRevision())) return false; break; + case 25: + if (!getNat().equals(other.getNat())) return false; + break; + case 26: + if (!getProxyConnection().equals(other.getProxyConnection())) return false; + break; + case 27: + if (!getLoadBalancerBackendInfo().equals(other.getLoadBalancerBackendInfo())) return false; + break; + case 28: + if (!getStorageBucket().equals(other.getStorageBucket())) return false; + break; case 0: default: } @@ -2518,6 +2813,22 @@ public int hashCode() { hash = (37 * hash) + CLOUD_RUN_REVISION_FIELD_NUMBER; hash = (53 * hash) + getCloudRunRevision().hashCode(); break; + case 25: + hash = (37 * hash) + NAT_FIELD_NUMBER; + hash = (53 * hash) + getNat().hashCode(); + break; + case 26: + hash = (37 * hash) + PROXY_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getProxyConnection().hashCode(); + break; + case 27: + hash = (37 * hash) + LOAD_BALANCER_BACKEND_INFO_FIELD_NUMBER; + hash = (53 * hash) + getLoadBalancerBackendInfo().hashCode(); + break; + case 28: + hash = (37 * hash) + STORAGE_BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getStorageBucket().hashCode(); + break; case 0: default: } @@ -2725,6 +3036,18 @@ public Builder clear() { if (cloudRunRevisionBuilder_ != null) { cloudRunRevisionBuilder_.clear(); } + if (natBuilder_ != null) { + natBuilder_.clear(); + } + if (proxyConnectionBuilder_ != null) { + proxyConnectionBuilder_.clear(); + } + if (loadBalancerBackendInfoBuilder_ != null) { + loadBalancerBackendInfoBuilder_.clear(); + } + if (storageBucketBuilder_ != null) { + storageBucketBuilder_.clear(); + } stepInfoCase_ = 0; stepInfo_ = null; return this; @@ -2841,6 +3164,18 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1beta1.Step if (stepInfoCase_ == 23 && cloudRunRevisionBuilder_ != null) { result.stepInfo_ = cloudRunRevisionBuilder_.build(); } + if (stepInfoCase_ == 25 && natBuilder_ != null) { + result.stepInfo_ = natBuilder_.build(); + } + if (stepInfoCase_ == 26 && proxyConnectionBuilder_ != null) { + result.stepInfo_ = proxyConnectionBuilder_.build(); + } + if (stepInfoCase_ == 27 && loadBalancerBackendInfoBuilder_ != null) { + result.stepInfo_ = loadBalancerBackendInfoBuilder_.build(); + } + if (stepInfoCase_ == 28 && storageBucketBuilder_ != null) { + result.stepInfo_ = storageBucketBuilder_.build(); + } } @java.lang.Override @@ -3006,6 +3341,26 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Step other) mergeCloudRunRevision(other.getCloudRunRevision()); break; } + case NAT: + { + mergeNat(other.getNat()); + break; + } + case PROXY_CONNECTION: + { + mergeProxyConnection(other.getProxyConnection()); + break; + } + case LOAD_BALANCER_BACKEND_INFO: + { + mergeLoadBalancerBackendInfo(other.getLoadBalancerBackendInfo()); + break; + } + case STORAGE_BUCKET: + { + mergeStorageBucket(other.getStorageBucket()); + break; + } case STEPINFO_NOT_SET: { break; @@ -3184,6 +3539,31 @@ public Builder mergeFrom( stepInfoCase_ = 24; break; } // case 194 + case 202: + { + input.readMessage(getNatFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 25; + break; + } // case 202 + case 210: + { + input.readMessage(getProxyConnectionFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 26; + break; + } // case 210 + case 218: + { + input.readMessage( + getLoadBalancerBackendInfoFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 27; + break; + } // case 218 + case 226: + { + input.readMessage(getStorageBucketFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 28; + break; + } // case 226 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7882,6 +8262,898 @@ public Builder clearCloudRunRevision() { return cloudRunRevisionBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.NatInfo, + com.google.cloud.networkmanagement.v1beta1.NatInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.NatInfoOrBuilder> + natBuilder_; + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + * + * @return Whether the nat field is set. + */ + @java.lang.Override + public boolean hasNat() { + return stepInfoCase_ == 25; + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + * + * @return The nat. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.NatInfo getNat() { + if (natBuilder_ == null) { + if (stepInfoCase_ == 25) { + return (com.google.cloud.networkmanagement.v1beta1.NatInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.NatInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 25) { + return natBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1beta1.NatInfo.getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + */ + public Builder setNat(com.google.cloud.networkmanagement.v1beta1.NatInfo value) { + if (natBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + natBuilder_.setMessage(value); + } + stepInfoCase_ = 25; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + */ + public Builder setNat( + com.google.cloud.networkmanagement.v1beta1.NatInfo.Builder builderForValue) { + if (natBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + natBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 25; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + */ + public Builder mergeNat(com.google.cloud.networkmanagement.v1beta1.NatInfo value) { + if (natBuilder_ == null) { + if (stepInfoCase_ == 25 + && stepInfo_ + != com.google.cloud.networkmanagement.v1beta1.NatInfo.getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.NatInfo.newBuilder( + (com.google.cloud.networkmanagement.v1beta1.NatInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 25) { + natBuilder_.mergeFrom(value); + } else { + natBuilder_.setMessage(value); + } + } + stepInfoCase_ = 25; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + */ + public Builder clearNat() { + if (natBuilder_ == null) { + if (stepInfoCase_ == 25) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 25) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + natBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + */ + public com.google.cloud.networkmanagement.v1beta1.NatInfo.Builder getNatBuilder() { + return getNatFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.NatInfoOrBuilder getNatOrBuilder() { + if ((stepInfoCase_ == 25) && (natBuilder_ != null)) { + return natBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 25) { + return (com.google.cloud.networkmanagement.v1beta1.NatInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.NatInfo.getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a NAT.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.NatInfo, + com.google.cloud.networkmanagement.v1beta1.NatInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.NatInfoOrBuilder> + getNatFieldBuilder() { + if (natBuilder_ == null) { + if (!(stepInfoCase_ == 25)) { + stepInfo_ = com.google.cloud.networkmanagement.v1beta1.NatInfo.getDefaultInstance(); + } + natBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.NatInfo, + com.google.cloud.networkmanagement.v1beta1.NatInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.NatInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1beta1.NatInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 25; + onChanged(); + return natBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo, + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfoOrBuilder> + proxyConnectionBuilder_; + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + * + * + * @return Whether the proxyConnection field is set. + */ + @java.lang.Override + public boolean hasProxyConnection() { + return stepInfoCase_ == 26; + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + * + * + * @return The proxyConnection. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo getProxyConnection() { + if (proxyConnectionBuilder_ == null) { + if (stepInfoCase_ == 26) { + return (com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 26) { + return proxyConnectionBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + * + */ + public Builder setProxyConnection( + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo value) { + if (proxyConnectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + proxyConnectionBuilder_.setMessage(value); + } + stepInfoCase_ = 26; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + * + */ + public Builder setProxyConnection( + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.Builder builderForValue) { + if (proxyConnectionBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + proxyConnectionBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 26; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + * + */ + public Builder mergeProxyConnection( + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo value) { + if (proxyConnectionBuilder_ == null) { + if (stepInfoCase_ == 26 + && stepInfo_ + != com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo + .getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.newBuilder( + (com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 26) { + proxyConnectionBuilder_.mergeFrom(value); + } else { + proxyConnectionBuilder_.setMessage(value); + } + } + stepInfoCase_ = 26; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + * + */ + public Builder clearProxyConnection() { + if (proxyConnectionBuilder_ == null) { + if (stepInfoCase_ == 26) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 26) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + proxyConnectionBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + * + */ + public com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.Builder + getProxyConnectionBuilder() { + return getProxyConnectionFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfoOrBuilder + getProxyConnectionOrBuilder() { + if ((stepInfoCase_ == 26) && (proxyConnectionBuilder_ != null)) { + return proxyConnectionBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 26) { + return (com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a ProxyConnection.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo, + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfoOrBuilder> + getProxyConnectionFieldBuilder() { + if (proxyConnectionBuilder_ == null) { + if (!(stepInfoCase_ == 26)) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.getDefaultInstance(); + } + proxyConnectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo, + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 26; + onChanged(); + return proxyConnectionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo, + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfoOrBuilder> + loadBalancerBackendInfoBuilder_; + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + * + * @return Whether the loadBalancerBackendInfo field is set. + */ + @java.lang.Override + public boolean hasLoadBalancerBackendInfo() { + return stepInfoCase_ == 27; + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + * + * @return The loadBalancerBackendInfo. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + getLoadBalancerBackendInfo() { + if (loadBalancerBackendInfoBuilder_ == null) { + if (stepInfoCase_ == 27) { + return (com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .getDefaultInstance(); + } else { + if (stepInfoCase_ == 27) { + return loadBalancerBackendInfoBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + public Builder setLoadBalancerBackendInfo( + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo value) { + if (loadBalancerBackendInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + loadBalancerBackendInfoBuilder_.setMessage(value); + } + stepInfoCase_ = 27; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + public Builder setLoadBalancerBackendInfo( + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.Builder + builderForValue) { + if (loadBalancerBackendInfoBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + loadBalancerBackendInfoBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 27; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + public Builder mergeLoadBalancerBackendInfo( + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo value) { + if (loadBalancerBackendInfoBuilder_ == null) { + if (stepInfoCase_ == 27 + && stepInfo_ + != com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.newBuilder( + (com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo) + stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 27) { + loadBalancerBackendInfoBuilder_.mergeFrom(value); + } else { + loadBalancerBackendInfoBuilder_.setMessage(value); + } + } + stepInfoCase_ = 27; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + public Builder clearLoadBalancerBackendInfo() { + if (loadBalancerBackendInfoBuilder_ == null) { + if (stepInfoCase_ == 27) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 27) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + loadBalancerBackendInfoBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + public com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.Builder + getLoadBalancerBackendInfoBuilder() { + return getLoadBalancerBackendInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfoOrBuilder + getLoadBalancerBackendInfoOrBuilder() { + if ((stepInfoCase_ == 27) && (loadBalancerBackendInfoBuilder_ != null)) { + return loadBalancerBackendInfoBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 27) { + return (com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a specific load balancer backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo, + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfoOrBuilder> + getLoadBalancerBackendInfoFieldBuilder() { + if (loadBalancerBackendInfoBuilder_ == null) { + if (!(stepInfoCase_ == 27)) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo + .getDefaultInstance(); + } + loadBalancerBackendInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo, + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 27; + onChanged(); + return loadBalancerBackendInfoBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo, + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfoOrBuilder> + storageBucketBuilder_; + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + * + * @return Whether the storageBucket field is set. + */ + @java.lang.Override + public boolean hasStorageBucket() { + return stepInfoCase_ == 28; + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + * + * @return The storageBucket. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo getStorageBucket() { + if (storageBucketBuilder_ == null) { + if (stepInfoCase_ == 28) { + return (com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 28) { + return storageBucketBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + */ + public Builder setStorageBucket( + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo value) { + if (storageBucketBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + storageBucketBuilder_.setMessage(value); + } + stepInfoCase_ = 28; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + */ + public Builder setStorageBucket( + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.Builder builderForValue) { + if (storageBucketBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + storageBucketBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 28; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + */ + public Builder mergeStorageBucket( + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo value) { + if (storageBucketBuilder_ == null) { + if (stepInfoCase_ == 28 + && stepInfo_ + != com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo + .getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.newBuilder( + (com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 28) { + storageBucketBuilder_.mergeFrom(value); + } else { + storageBucketBuilder_.setMessage(value); + } + } + stepInfoCase_ = 28; + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + */ + public Builder clearStorageBucket() { + if (storageBucketBuilder_ == null) { + if (stepInfoCase_ == 28) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 28) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + storageBucketBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + */ + public com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.Builder + getStorageBucketBuilder() { + return getStorageBucketFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.StorageBucketInfoOrBuilder + getStorageBucketOrBuilder() { + if ((stepInfoCase_ == 28) && (storageBucketBuilder_ != null)) { + return storageBucketBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 28) { + return (com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +     * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo, + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfoOrBuilder> + getStorageBucketFieldBuilder() { + if (storageBucketBuilder_ == null) { + if (!(stepInfoCase_ == 28)) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.getDefaultInstance(); + } + storageBucketBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo, + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 28; + onChanged(); + return storageBucketBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java index 7a2295f04896..ef0385549257 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StepOrBuilder.java @@ -834,5 +834,153 @@ public interface StepOrBuilder com.google.cloud.networkmanagement.v1beta1.CloudRunRevisionInfoOrBuilder getCloudRunRevisionOrBuilder(); + /** + * + * + *
                                                                                      +   * Display information of a NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + * + * @return Whether the nat field is set. + */ + boolean hasNat(); + /** + * + * + *
                                                                                      +   * Display information of a NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + * + * @return The nat. + */ + com.google.cloud.networkmanagement.v1beta1.NatInfo getNat(); + /** + * + * + *
                                                                                      +   * Display information of a NAT.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.NatInfo nat = 25; + */ + com.google.cloud.networkmanagement.v1beta1.NatInfoOrBuilder getNatOrBuilder(); + + /** + * + * + *
                                                                                      +   * Display information of a ProxyConnection.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + * + * @return Whether the proxyConnection field is set. + */ + boolean hasProxyConnection(); + /** + * + * + *
                                                                                      +   * Display information of a ProxyConnection.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + * + * @return The proxyConnection. + */ + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo getProxyConnection(); + /** + * + * + *
                                                                                      +   * Display information of a ProxyConnection.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.ProxyConnectionInfo proxy_connection = 26; + */ + com.google.cloud.networkmanagement.v1beta1.ProxyConnectionInfoOrBuilder + getProxyConnectionOrBuilder(); + + /** + * + * + *
                                                                                      +   * Display information of a specific load balancer backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + * + * @return Whether the loadBalancerBackendInfo field is set. + */ + boolean hasLoadBalancerBackendInfo(); + /** + * + * + *
                                                                                      +   * Display information of a specific load balancer backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + * + * @return The loadBalancerBackendInfo. + */ + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo getLoadBalancerBackendInfo(); + /** + * + * + *
                                                                                      +   * Display information of a specific load balancer backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfo load_balancer_backend_info = 27; + * + */ + com.google.cloud.networkmanagement.v1beta1.LoadBalancerBackendInfoOrBuilder + getLoadBalancerBackendInfoOrBuilder(); + + /** + * + * + *
                                                                                      +   * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + * + * @return Whether the storageBucket field is set. + */ + boolean hasStorageBucket(); + /** + * + * + *
                                                                                      +   * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + * + * @return The storageBucket. + */ + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo getStorageBucket(); + /** + * + * + *
                                                                                      +   * Display information of a Storage Bucket. Used only for return traces.
                                                                                      +   * 
                                                                                      + * + * .google.cloud.networkmanagement.v1beta1.StorageBucketInfo storage_bucket = 28; + */ + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfoOrBuilder getStorageBucketOrBuilder(); + com.google.cloud.networkmanagement.v1beta1.Step.StepInfoCase getStepInfoCase(); } diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StorageBucketInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StorageBucketInfo.java new file mode 100644 index 000000000000..a8bb76f0defc --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StorageBucketInfo.java @@ -0,0 +1,630 @@ +/* + * 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/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
                                                                                      + * For display only. Metadata associated with Storage Bucket.
                                                                                      + * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.StorageBucketInfo} + */ +public final class StorageBucketInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.StorageBucketInfo) + StorageBucketInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use StorageBucketInfo.newBuilder() to construct. + private StorageBucketInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StorageBucketInfo() { + bucket_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StorageBucketInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.class, + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.Builder.class); + } + + public static final int BUCKET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucket_ = ""; + /** + * + * + *
                                                                                      +   * Cloud Storage Bucket name.
                                                                                      +   * 
                                                                                      + * + * string bucket = 1; + * + * @return The bucket. + */ + @java.lang.Override + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + 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(); + bucket_ = s; + return s; + } + } + /** + * + * + *
                                                                                      +   * Cloud Storage Bucket name.
                                                                                      +   * 
                                                                                      + * + * string bucket = 1; + * + * @return The bytes for bucket. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = 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(bucket_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); + } + 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(bucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + } + 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.networkmanagement.v1beta1.StorageBucketInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo other = + (com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo) obj; + + if (!getBucket().equals(other.getBucket())) 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) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo 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.networkmanagement.v1beta1.StorageBucketInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo 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.networkmanagement.v1beta1.StorageBucketInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo 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.networkmanagement.v1beta1.StorageBucketInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo 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.networkmanagement.v1beta1.StorageBucketInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo 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.networkmanagement.v1beta1.StorageBucketInfo 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; + } + /** + * + * + *
                                                                                      +   * For display only. Metadata associated with Storage Bucket.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.StorageBucketInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.StorageBucketInfo) + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.class, + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bucket_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo build() { + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo buildPartial() { + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo result = + new com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bucket_ = bucket_; + } + } + + @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.networkmanagement.v1beta1.StorageBucketInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo other) { + if (other + == com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo.getDefaultInstance()) + return this; + if (!other.getBucket().isEmpty()) { + bucket_ = other.bucket_; + 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: + { + bucket_ = 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 bucket_ = ""; + /** + * + * + *
                                                                                      +     * Cloud Storage Bucket name.
                                                                                      +     * 
                                                                                      + * + * string bucket = 1; + * + * @return The bucket. + */ + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                      +     * Cloud Storage Bucket name.
                                                                                      +     * 
                                                                                      + * + * string bucket = 1; + * + * @return The bytes for bucket. + */ + public com.google.protobuf.ByteString getBucketBytes() { + java.lang.Object ref = bucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                      +     * Cloud Storage Bucket name.
                                                                                      +     * 
                                                                                      + * + * string bucket = 1; + * + * @param value The bucket to set. + * @return This builder for chaining. + */ + public Builder setBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucket_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Cloud Storage Bucket name.
                                                                                      +     * 
                                                                                      + * + * string bucket = 1; + * + * @return This builder for chaining. + */ + public Builder clearBucket() { + bucket_ = getDefaultInstance().getBucket(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                      +     * Cloud Storage Bucket name.
                                                                                      +     * 
                                                                                      + * + * string bucket = 1; + * + * @param value The bytes for bucket to set. + * @return This builder for chaining. + */ + public Builder setBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = 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.networkmanagement.v1beta1.StorageBucketInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.StorageBucketInfo) + private static final com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo(); + } + + public static com.google.cloud.networkmanagement.v1beta1.StorageBucketInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageBucketInfo 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.networkmanagement.v1beta1.StorageBucketInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StorageBucketInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StorageBucketInfoOrBuilder.java new file mode 100644 index 000000000000..54ffcb85a08d --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/StorageBucketInfoOrBuilder.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/networkmanagement/v1beta1/trace.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.networkmanagement.v1beta1; + +public interface StorageBucketInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.StorageBucketInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                      +   * Cloud Storage Bucket name.
                                                                                      +   * 
                                                                                      + * + * string bucket = 1; + * + * @return The bucket. + */ + java.lang.String getBucket(); + /** + * + * + *
                                                                                      +   * Cloud Storage Bucket name.
                                                                                      +   * 
                                                                                      + * + * string bucket = 1; + * + * @return The bytes for bucket. + */ + com.google.protobuf.ByteString getBucketBytes(); +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TraceProto.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TraceProto.java index be373472ea0f..9756b3cbd878 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TraceProto.java +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/TraceProto.java @@ -120,6 +120,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1beta1_VpcConnectorInfo_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1beta1_VpcConnectorInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -131,282 +147,333 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n2google/cloud/networkmanagement/v1beta1" + "/trace.proto\022&google.cloud.networkmanage" - + "ment.v1beta1\"\221\001\n\005Trace\022K\n\rendpoint_info\030" - + "\001 \001(\01324.google.cloud.networkmanagement.v" - + "1beta1.EndpointInfo\022;\n\005steps\030\002 \003(\0132,.goo" - + "gle.cloud.networkmanagement.v1beta1.Step" - + "\"\224\023\n\004Step\022\023\n\013description\030\001 \001(\t\022A\n\005state\030" - + "\002 \001(\01622.google.cloud.networkmanagement.v" - + "1beta1.Step.State\022\023\n\013causes_drop\030\003 \001(\010\022\022" - + "\n\nproject_id\030\004 \001(\t\022H\n\010instance\030\005 \001(\01324.g" - + "oogle.cloud.networkmanagement.v1beta1.In" - + "stanceInfoH\000\022H\n\010firewall\030\006 \001(\01324.google." - + "cloud.networkmanagement.v1beta1.Firewall" - + "InfoH\000\022B\n\005route\030\007 \001(\01321.google.cloud.net" - + "workmanagement.v1beta1.RouteInfoH\000\022H\n\010en" - + "dpoint\030\010 \001(\01324.google.cloud.networkmanag" - + "ement.v1beta1.EndpointInfoH\000\022S\n\016google_s" - + "ervice\030\030 \001(\01329.google.cloud.networkmanag" - + "ement.v1beta1.GoogleServiceInfoH\000\022U\n\017for" - + "warding_rule\030\t \001(\0132:.google.cloud.networ" - + "kmanagement.v1beta1.ForwardingRuleInfoH\000" - + "\022M\n\013vpn_gateway\030\n \001(\01326.google.cloud.net" - + "workmanagement.v1beta1.VpnGatewayInfoH\000\022" - + "K\n\nvpn_tunnel\030\013 \001(\01325.google.cloud.netwo" - + "rkmanagement.v1beta1.VpnTunnelInfoH\000\022Q\n\r" - + "vpc_connector\030\025 \001(\01328.google.cloud.netwo" - + "rkmanagement.v1beta1.VpcConnectorInfoH\000\022" - + "F\n\007deliver\030\014 \001(\01323.google.cloud.networkm" - + "anagement.v1beta1.DeliverInfoH\000\022F\n\007forwa" - + "rd\030\r \001(\01323.google.cloud.networkmanagemen" - + "t.v1beta1.ForwardInfoH\000\022B\n\005abort\030\016 \001(\01321" + + "ment.v1beta1\032\037google/api/field_behavior." + + "proto\"\221\001\n\005Trace\022K\n\rendpoint_info\030\001 \001(\01324" + + ".google.cloud.networkmanagement.v1beta1." + + "EndpointInfo\022;\n\005steps\030\002 \003(\0132,.google.clo" + + "ud.networkmanagement.v1beta1.Step\"\214\026\n\004St" + + "ep\022\023\n\013description\030\001 \001(\t\022A\n\005state\030\002 \001(\01622" + ".google.cloud.networkmanagement.v1beta1." - + "AbortInfoH\000\022@\n\004drop\030\017 \001(\01320.google.cloud" - + ".networkmanagement.v1beta1.DropInfoH\000\022Q\n" - + "\rload_balancer\030\020 \001(\01328.google.cloud.netw" - + "orkmanagement.v1beta1.LoadBalancerInfoH\000" - + "\022F\n\007network\030\021 \001(\01323.google.cloud.network" - + "management.v1beta1.NetworkInfoH\000\022K\n\ngke_" - + "master\030\022 \001(\01325.google.cloud.networkmanag" - + "ement.v1beta1.GKEMasterInfoH\000\022Z\n\022cloud_s" - + "ql_instance\030\023 \001(\0132<.google.cloud.network" - + "management.v1beta1.CloudSQLInstanceInfoH" - + "\000\022S\n\016cloud_function\030\024 \001(\01329.google.cloud" - + ".networkmanagement.v1beta1.CloudFunction" - + "InfoH\000\022Z\n\022app_engine_version\030\026 \001(\0132<.goo" - + "gle.cloud.networkmanagement.v1beta1.AppE" - + "ngineVersionInfoH\000\022Z\n\022cloud_run_revision" - + "\030\027 \001(\0132<.google.cloud.networkmanagement." - + "v1beta1.CloudRunRevisionInfoH\000\"\331\005\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\027\n\023START_FROM_IN" - + "STANCE\020\001\022\027\n\023START_FROM_INTERNET\020\002\022\035\n\031STA" - + "RT_FROM_GOOGLE_SERVICE\020\033\022\036\n\032START_FROM_P" - + "RIVATE_NETWORK\020\003\022\031\n\025START_FROM_GKE_MASTE" - + "R\020\025\022!\n\035START_FROM_CLOUD_SQL_INSTANCE\020\026\022\035" - + "\n\031START_FROM_CLOUD_FUNCTION\020\027\022!\n\035START_F" - + "ROM_APP_ENGINE_VERSION\020\031\022!\n\035START_FROM_C" - + "LOUD_RUN_REVISION\020\032\022\037\n\033APPLY_INGRESS_FIR" - + "EWALL_RULE\020\004\022\036\n\032APPLY_EGRESS_FIREWALL_RU" - + "LE\020\005\022\017\n\013APPLY_ROUTE\020\006\022\031\n\025APPLY_FORWARDIN" - + "G_RULE\020\007\022\025\n\021SPOOFING_APPROVED\020\010\022\026\n\022ARRIV" - + "E_AT_INSTANCE\020\t\022$\n ARRIVE_AT_INTERNAL_LO" - + "AD_BALANCER\020\n\022$\n ARRIVE_AT_EXTERNAL_LOAD" - + "_BALANCER\020\013\022\031\n\025ARRIVE_AT_VPN_GATEWAY\020\014\022\030" - + "\n\024ARRIVE_AT_VPN_TUNNEL\020\r\022\033\n\027ARRIVE_AT_VP" - + "C_CONNECTOR\020\030\022\007\n\003NAT\020\016\022\024\n\020PROXY_CONNECTI" - + "ON\020\017\022\013\n\007DELIVER\020\020\022\010\n\004DROP\020\021\022\013\n\007FORWARD\020\022" - + "\022\t\n\005ABORT\020\023\022\035\n\031VIEWER_PERMISSION_MISSING" - + "\020\024B\013\n\tstep_info\"\266\001\n\014InstanceInfo\022\024\n\014disp" - + "lay_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\021\n\tinterface" - + "\030\003 \001(\t\022\023\n\013network_uri\030\004 \001(\t\022\023\n\013internal_" - + "ip\030\005 \001(\t\022\023\n\013external_ip\030\006 \001(\t\022\024\n\014network" - + "_tags\030\007 \003(\t\022\033\n\017service_account\030\010 \001(\tB\002\030\001" - + "\"J\n\013NetworkInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n" - + "\003uri\030\002 \001(\t\022\030\n\020matched_ip_range\030\004 \001(\t\"\270\004\n" - + "\014FirewallInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003u" - + "ri\030\002 \001(\t\022\021\n\tdirection\030\003 \001(\t\022\016\n\006action\030\004 " - + "\001(\t\022\020\n\010priority\030\005 \001(\005\022\023\n\013network_uri\030\006 \001" - + "(\t\022\023\n\013target_tags\030\007 \003(\t\022\037\n\027target_servic" - + "e_accounts\030\010 \003(\t\022\016\n\006policy\030\t \001(\t\022a\n\022fire" - + "wall_rule_type\030\n \001(\0162E.google.cloud.netw" - + "orkmanagement.v1beta1.FirewallInfo.Firew" - + "allRuleType\"\221\002\n\020FirewallRuleType\022\"\n\036FIRE" - + "WALL_RULE_TYPE_UNSPECIFIED\020\000\022%\n!HIERARCH" - + "ICAL_FIREWALL_POLICY_RULE\020\001\022\025\n\021VPC_FIREW" - + "ALL_RULE\020\002\022\035\n\031IMPLIED_VPC_FIREWALL_RULE\020" - + "\003\022/\n+SERVERLESS_VPC_ACCESS_MANAGED_FIREW" - + "ALL_RULE\020\004\022 \n\034NETWORK_FIREWALL_POLICY_RU" - + "LE\020\005\022)\n%NETWORK_REGIONAL_FIREWALL_POLICY" - + "_RULE\020\006\"\365\010\n\tRouteInfo\022O\n\nroute_type\030\010 \001(" - + "\0162;.google.cloud.networkmanagement.v1bet" - + "a1.RouteInfo.RouteType\022T\n\rnext_hop_type\030" - + "\t \001(\0162=.google.cloud.networkmanagement.v" - + "1beta1.RouteInfo.NextHopType\022Q\n\013route_sc" - + "ope\030\016 \001(\0162<.google.cloud.networkmanageme" - + "nt.v1beta1.RouteInfo.RouteScope\022\024\n\014displ" - + "ay_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\025\n\rdest_ip_ra" - + "nge\030\003 \001(\t\022\020\n\010next_hop\030\004 \001(\t\022\023\n\013network_u" - + "ri\030\005 \001(\t\022\020\n\010priority\030\006 \001(\005\022\025\n\rinstance_t" - + "ags\030\007 \003(\t\022\024\n\014src_ip_range\030\n \001(\t\022\030\n\020dest_" - + "port_ranges\030\013 \003(\t\022\027\n\017src_port_ranges\030\014 \003" - + "(\t\022\021\n\tprotocols\030\r \003(\t\022\030\n\013ncc_hub_uri\030\017 \001" - + "(\tH\000\210\001\001\022\032\n\rncc_spoke_uri\030\020 \001(\tH\001\210\001\001\"\233\001\n\t" - + "RouteType\022\032\n\026ROUTE_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006SUBNET\020\001\022\n\n\006STATIC\020\002\022\013\n\007DYNAMIC\020\003\022\022\n\016PE" - + "ERING_SUBNET\020\004\022\022\n\016PEERING_STATIC\020\005\022\023\n\017PE" - + "ERING_DYNAMIC\020\006\022\020\n\014POLICY_BASED\020\007\"\314\002\n\013Ne" - + "xtHopType\022\035\n\031NEXT_HOP_TYPE_UNSPECIFIED\020\000" - + "\022\017\n\013NEXT_HOP_IP\020\001\022\025\n\021NEXT_HOP_INSTANCE\020\002" - + "\022\024\n\020NEXT_HOP_NETWORK\020\003\022\024\n\020NEXT_HOP_PEERI" - + "NG\020\004\022\031\n\025NEXT_HOP_INTERCONNECT\020\005\022\027\n\023NEXT_" - + "HOP_VPN_TUNNEL\020\006\022\030\n\024NEXT_HOP_VPN_GATEWAY" - + "\020\007\022\035\n\031NEXT_HOP_INTERNET_GATEWAY\020\010\022\026\n\022NEX" - + "T_HOP_BLACKHOLE\020\t\022\020\n\014NEXT_HOP_ILB\020\n\022\035\n\031N" - + "EXT_HOP_ROUTER_APPLIANCE\020\013\022\024\n\020NEXT_HOP_N" - + "CC_HUB\020\014\"C\n\nRouteScope\022\033\n\027ROUTE_SCOPE_UN" - + "SPECIFIED\020\000\022\013\n\007NETWORK\020\001\022\013\n\007NCC_HUB\020\002B\016\n" - + "\014_ncc_hub_uriB\020\n\016_ncc_spoke_uri\"\210\002\n\021Goog" - + "leServiceInfo\022\021\n\tsource_ip\030\001 \001(\t\022h\n\023goog" - + "le_service_type\030\002 \001(\0162K.google.cloud.net" - + "workmanagement.v1beta1.GoogleServiceInfo" - + ".GoogleServiceType\"v\n\021GoogleServiceType\022" - + "#\n\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n\003" - + "IAP\020\001\022$\n GFE_PROXY_OR_HEALTH_CHECK_PROBE" - + "R\020\002\022\r\n\tCLOUD_DNS\020\003\"\237\001\n\022ForwardingRuleInf" - + "o\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\030\n\020" - + "matched_protocol\030\003 \001(\t\022\032\n\022matched_port_r" - + "ange\030\006 \001(\t\022\013\n\003vip\030\004 \001(\t\022\016\n\006target\030\005 \001(\t\022" - + "\023\n\013network_uri\030\007 \001(\t\"\315\004\n\020LoadBalancerInf" - + "o\022e\n\022load_balancer_type\030\001 \001(\0162I.google.c" - + "loud.networkmanagement.v1beta1.LoadBalan" - + "cerInfo.LoadBalancerType\022\030\n\020health_check" - + "_uri\030\002 \001(\t\022M\n\010backends\030\003 \003(\0132;.google.cl" - + "oud.networkmanagement.v1beta1.LoadBalanc" - + "erBackend\022Z\n\014backend_type\030\004 \001(\0162D.google" - + ".cloud.networkmanagement.v1beta1.LoadBal" - + "ancerInfo.BackendType\022\023\n\013backend_uri\030\005 \001" - + "(\t\"\217\001\n\020LoadBalancerType\022\"\n\036LOAD_BALANCER" - + "_TYPE_UNSPECIFIED\020\000\022\024\n\020INTERNAL_TCP_UDP\020" - + "\001\022\023\n\017NETWORK_TCP_UDP\020\002\022\016\n\nHTTP_PROXY\020\003\022\r" - + "\n\tTCP_PROXY\020\004\022\r\n\tSSL_PROXY\020\005\"f\n\013BackendT" - + "ype\022\034\n\030BACKEND_TYPE_UNSPECIFIED\020\000\022\023\n\017BAC" - + "KEND_SERVICE\020\001\022\017\n\013TARGET_POOL\020\002\022\023\n\017TARGE" - + "T_INSTANCE\020\003\"\373\002\n\023LoadBalancerBackend\022\024\n\014" - + "display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022y\n\033healt" - + "h_check_firewall_state\030\003 \001(\0162T.google.cl" - + "oud.networkmanagement.v1beta1.LoadBalanc" - + "erBackend.HealthCheckFirewallState\022,\n$he" - + "alth_check_allowing_firewall_rules\030\004 \003(\t" - + "\022,\n$health_check_blocking_firewall_rules" - + "\030\005 \003(\t\"j\n\030HealthCheckFirewallState\022+\n\'HE" - + "ALTH_CHECK_FIREWALL_STATE_UNSPECIFIED\020\000\022" - + "\016\n\nCONFIGURED\020\001\022\021\n\rMISCONFIGURED\020\002\"\204\001\n\016V" - + "pnGatewayInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003u" - + "ri\030\002 \001(\t\022\023\n\013network_uri\030\003 \001(\t\022\022\n\nip_addr" - + "ess\030\004 \001(\t\022\026\n\016vpn_tunnel_uri\030\005 \001(\t\022\016\n\006reg" - + "ion\030\006 \001(\t\"\363\002\n\rVpnTunnelInfo\022\024\n\014display_n" - + "ame\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\026\n\016source_gateway" - + "\030\003 \001(\t\022\026\n\016remote_gateway\030\004 \001(\t\022\031\n\021remote" - + "_gateway_ip\030\005 \001(\t\022\031\n\021source_gateway_ip\030\006" - + " \001(\t\022\023\n\013network_uri\030\007 \001(\t\022\016\n\006region\030\010 \001(" - + "\t\022W\n\014routing_type\030\t \001(\0162A.google.cloud.n" - + "etworkmanagement.v1beta1.VpnTunnelInfo.R" - + "outingType\"[\n\013RoutingType\022\034\n\030ROUTING_TYP" - + "E_UNSPECIFIED\020\000\022\017\n\013ROUTE_BASED\020\001\022\020\n\014POLI" - + "CY_BASED\020\002\022\013\n\007DYNAMIC\020\003\"\321\001\n\014EndpointInfo" - + "\022\021\n\tsource_ip\030\001 \001(\t\022\026\n\016destination_ip\030\002 " - + "\001(\t\022\020\n\010protocol\030\003 \001(\t\022\023\n\013source_port\030\004 \001" - + "(\005\022\030\n\020destination_port\030\005 \001(\005\022\032\n\022source_n" - + "etwork_uri\030\006 \001(\t\022\037\n\027destination_network_" - + "uri\030\007 \001(\t\022\030\n\020source_agent_uri\030\010 \001(\t\"\271\002\n\013" - + "DeliverInfo\022J\n\006target\030\001 \001(\0162:.google.clo" - + "ud.networkmanagement.v1beta1.DeliverInfo" - + ".Target\022\024\n\014resource_uri\030\002 \001(\t\"\307\001\n\006Target" - + "\022\026\n\022TARGET_UNSPECIFIED\020\000\022\014\n\010INSTANCE\020\001\022\014" - + "\n\010INTERNET\020\002\022\016\n\nGOOGLE_API\020\003\022\016\n\nGKE_MAST" - + "ER\020\004\022\026\n\022CLOUD_SQL_INSTANCE\020\005\022\031\n\025PSC_PUBL" - + "ISHED_SERVICE\020\006\022\022\n\016PSC_GOOGLE_API\020\007\022\016\n\nP" - + "SC_VPC_SC\020\010\022\022\n\016SERVERLESS_NEG\020\t\"\264\002\n\013Forw" - + "ardInfo\022J\n\006target\030\001 \001(\0162:.google.cloud.n" - + "etworkmanagement.v1beta1.ForwardInfo.Tar" - + "get\022\024\n\014resource_uri\030\002 \001(\t\"\302\001\n\006Target\022\026\n\022" - + "TARGET_UNSPECIFIED\020\000\022\017\n\013PEERING_VPC\020\001\022\017\n" - + "\013VPN_GATEWAY\020\002\022\020\n\014INTERCONNECT\020\003\022\016\n\nGKE_" - + "MASTER\020\004\022\"\n\036IMPORTED_CUSTOM_ROUTE_NEXT_H" - + "OP\020\005\022\026\n\022CLOUD_SQL_INSTANCE\020\006\022\023\n\017ANOTHER_" - + "PROJECT\020\007\022\013\n\007NCC_HUB\020\010\"\200\006\n\tAbortInfo\022F\n\005" - + "cause\030\001 \001(\01627.google.cloud.networkmanage" - + "ment.v1beta1.AbortInfo.Cause\022\024\n\014resource" - + "_uri\030\002 \001(\t\022#\n\033projects_missing_permissio" - + "n\030\003 \003(\t\"\357\004\n\005Cause\022\025\n\021CAUSE_UNSPECIFIED\020\000" - + "\022\023\n\017UNKNOWN_NETWORK\020\001\022\016\n\nUNKNOWN_IP\020\002\022\023\n" - + "\017UNKNOWN_PROJECT\020\003\022\025\n\021PERMISSION_DENIED\020" - + "\004\022\026\n\022NO_SOURCE_LOCATION\020\005\022\024\n\020INVALID_ARG" - + "UMENT\020\006\022\022\n\016NO_EXTERNAL_IP\020\007\022\032\n\026UNINTENDE" - + "D_DESTINATION\020\010\022\022\n\016TRACE_TOO_LONG\020\t\022\022\n\016I" - + "NTERNAL_ERROR\020\n\022\035\n\031SOURCE_ENDPOINT_NOT_F" - + "OUND\020\013\022\035\n\031MISMATCHED_SOURCE_NETWORK\020\014\022\"\n" - + "\036DESTINATION_ENDPOINT_NOT_FOUND\020\r\022\"\n\036MIS" - + "MATCHED_DESTINATION_NETWORK\020\016\022\017\n\013UNSUPPO" - + "RTED\020\017\022\031\n\025MISMATCHED_IP_VERSION\020\020\022&\n\"GKE" - + "_KONNECTIVITY_PROXY_UNSUPPORTED\020\021\022\035\n\031RES" - + "OURCE_CONFIG_NOT_FOUND\020\022\0221\n-GOOGLE_MANAG" - + "ED_SERVICE_AMBIGUOUS_PSC_ENDPOINT\020\023\022$\n S" - + "OURCE_PSC_CLOUD_SQL_UNSUPPORTED\020\024\022&\n\"SOU" - + "RCE_FORWARDING_RULE_UNSUPPORTED\020\025\"\312\013\n\010Dr" - + "opInfo\022E\n\005cause\030\001 \001(\01626.google.cloud.net" - + "workmanagement.v1beta1.DropInfo.Cause\022\024\n" - + "\014resource_uri\030\002 \001(\t\"\340\n\n\005Cause\022\025\n\021CAUSE_U" - + "NSPECIFIED\020\000\022\034\n\030UNKNOWN_EXTERNAL_ADDRESS" - + "\020\001\022\031\n\025FOREIGN_IP_DISALLOWED\020\002\022\021\n\rFIREWAL" - + "L_RULE\020\003\022\014\n\010NO_ROUTE\020\004\022\023\n\017ROUTE_BLACKHOL" - + "E\020\005\022\027\n\023ROUTE_WRONG_NETWORK\020\006\022\037\n\033PRIVATE_" - + "TRAFFIC_TO_INTERNET\020\007\022$\n PRIVATE_GOOGLE_" - + "ACCESS_DISALLOWED\020\010\022\027\n\023NO_EXTERNAL_ADDRE" - + "SS\020\t\022\034\n\030UNKNOWN_INTERNAL_ADDRESS\020\n\022\034\n\030FO" - + "RWARDING_RULE_MISMATCH\020\013\022#\n\037FORWARDING_R" - + "ULE_REGION_MISMATCH\020\031\022 \n\034FORWARDING_RULE" - + "_NO_INSTANCES\020\014\0228\n4FIREWALL_BLOCKING_LOA" - + "D_BALANCER_BACKEND_HEALTH_CHECK\020\r\022\030\n\024INS" - + "TANCE_NOT_RUNNING\020\016\022\033\n\027GKE_CLUSTER_NOT_R" - + "UNNING\020\033\022\"\n\036CLOUD_SQL_INSTANCE_NOT_RUNNI" - + "NG\020\034\022\030\n\024TRAFFIC_TYPE_BLOCKED\020\017\022\"\n\036GKE_MA" - + "STER_UNAUTHORIZED_ACCESS\020\020\022*\n&CLOUD_SQL_" - + "INSTANCE_UNAUTHORIZED_ACCESS\020\021\022\036\n\032DROPPE" - + "D_INSIDE_GKE_SERVICE\020\022\022$\n DROPPED_INSIDE" - + "_CLOUD_SQL_SERVICE\020\023\022%\n!GOOGLE_MANAGED_S" - + "ERVICE_NO_PEERING\020\024\022*\n&GOOGLE_MANAGED_SE" - + "RVICE_NO_PSC_ENDPOINT\020&\022\034\n\030GKE_PSC_ENDPO" - + "INT_MISSING\020$\022$\n CLOUD_SQL_INSTANCE_NO_I" - + "P_ADDRESS\020\025\022%\n!GKE_CONTROL_PLANE_REGION_" - + "MISMATCH\020\036\0223\n/PUBLIC_GKE_CONTROL_PLANE_T" - + "O_PRIVATE_DESTINATION\020\037\022\036\n\032GKE_CONTROL_P" - + "LANE_NO_ROUTE\020 \022:\n6CLOUD_SQL_INSTANCE_NO" - + "T_CONFIGURED_FOR_EXTERNAL_TRAFFIC\020!\0224\n0P" - + "UBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DEST" - + "INATION\020\"\022\037\n\033CLOUD_SQL_INSTANCE_NO_ROUTE" - + "\020#\022\035\n\031CLOUD_FUNCTION_NOT_ACTIVE\020\026\022\031\n\025VPC" - + "_CONNECTOR_NOT_SET\020\027\022\035\n\031VPC_CONNECTOR_NO" - + "T_RUNNING\020\030\022\037\n\033PSC_CONNECTION_NOT_ACCEPT" - + "ED\020\032\022 \n\034CLOUD_RUN_REVISION_NOT_READY\020\035\022\'" - + "\n#DROPPED_INSIDE_PSC_SERVICE_PRODUCER\020%\022" - + "%\n!LOAD_BALANCER_HAS_NO_PROXY_SUBNET\020\'\"k" - + "\n\rGKEMasterInfo\022\023\n\013cluster_uri\030\002 \001(\t\022\033\n\023" - + "cluster_network_uri\030\004 \001(\t\022\023\n\013internal_ip" - + "\030\005 \001(\t\022\023\n\013external_ip\030\006 \001(\t\"\210\001\n\024CloudSQL" - + "InstanceInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003ur" - + "i\030\002 \001(\t\022\023\n\013network_uri\030\004 \001(\t\022\023\n\013internal" - + "_ip\030\005 \001(\t\022\023\n\013external_ip\030\006 \001(\t\022\016\n\006region" - + "\030\007 \001(\t\"\\\n\021CloudFunctionInfo\022\024\n\014display_n" - + "ame\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010location\030\003 \001(\t" - + "\022\022\n\nversion_id\030\004 \001(\003\"`\n\024CloudRunRevision" - + "Info\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022" - + "\020\n\010location\030\004 \001(\t\022\023\n\013service_uri\030\005 \001(\t\"_" - + "\n\024AppEngineVersionInfo\022\024\n\014display_name\030\001" - + " \001(\t\022\013\n\003uri\030\002 \001(\t\022\017\n\007runtime\030\003 \001(\t\022\023\n\013en" - + "vironment\030\004 \001(\t\"G\n\020VpcConnectorInfo\022\024\n\014d" - + "isplay_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010locati" - + "on\030\003 \001(\t*\366\002\n\020LoadBalancerType\022\"\n\036LOAD_BA" - + "LANCER_TYPE_UNSPECIFIED\020\000\022 \n\034HTTPS_ADVAN" - + "CED_LOAD_BALANCER\020\001\022\027\n\023HTTPS_LOAD_BALANC" - + "ER\020\002\022 \n\034REGIONAL_HTTPS_LOAD_BALANCER\020\003\022 " - + "\n\034INTERNAL_HTTPS_LOAD_BALANCER\020\004\022\033\n\027SSL_" - + "PROXY_LOAD_BALANCER\020\005\022\033\n\027TCP_PROXY_LOAD_" - + "BALANCER\020\006\022$\n INTERNAL_TCP_PROXY_LOAD_BA" - + "LANCER\020\007\022\031\n\025NETWORK_LOAD_BALANCER\020\010\022 \n\034L" - + "EGACY_NETWORK_LOAD_BALANCER\020\t\022\"\n\036TCP_UDP" - + "_INTERNAL_LOAD_BALANCER\020\nB\222\002\n*com.google" - + ".cloud.networkmanagement.v1beta1B\nTraceP" - + "rotoP\001ZXcloud.google.com/go/networkmanag" - + "ement/apiv1beta1/networkmanagementpb;net" - + "workmanagementpb\252\002&Google.Cloud.NetworkM" - + "anagement.V1Beta1\312\002&Google\\Cloud\\Network" - + "Management\\V1beta1\352\002)Google::Cloud::Netw" - + "orkManagement::V1beta1b\006proto3" + + "Step.State\022\023\n\013causes_drop\030\003 \001(\010\022\022\n\nproje" + + "ct_id\030\004 \001(\t\022H\n\010instance\030\005 \001(\01324.google.c" + + "loud.networkmanagement.v1beta1.InstanceI" + + "nfoH\000\022H\n\010firewall\030\006 \001(\01324.google.cloud.n" + + "etworkmanagement.v1beta1.FirewallInfoH\000\022" + + "B\n\005route\030\007 \001(\01321.google.cloud.networkman" + + "agement.v1beta1.RouteInfoH\000\022H\n\010endpoint\030" + + "\010 \001(\01324.google.cloud.networkmanagement.v" + + "1beta1.EndpointInfoH\000\022S\n\016google_service\030" + + "\030 \001(\01329.google.cloud.networkmanagement.v" + + "1beta1.GoogleServiceInfoH\000\022U\n\017forwarding" + + "_rule\030\t \001(\0132:.google.cloud.networkmanage" + + "ment.v1beta1.ForwardingRuleInfoH\000\022M\n\013vpn" + + "_gateway\030\n \001(\01326.google.cloud.networkman" + + "agement.v1beta1.VpnGatewayInfoH\000\022K\n\nvpn_" + + "tunnel\030\013 \001(\01325.google.cloud.networkmanag" + + "ement.v1beta1.VpnTunnelInfoH\000\022Q\n\rvpc_con" + + "nector\030\025 \001(\01328.google.cloud.networkmanag" + + "ement.v1beta1.VpcConnectorInfoH\000\022F\n\007deli" + + "ver\030\014 \001(\01323.google.cloud.networkmanageme" + + "nt.v1beta1.DeliverInfoH\000\022F\n\007forward\030\r \001(" + + "\01323.google.cloud.networkmanagement.v1bet" + + "a1.ForwardInfoH\000\022B\n\005abort\030\016 \001(\01321.google" + + ".cloud.networkmanagement.v1beta1.AbortIn" + + "foH\000\022@\n\004drop\030\017 \001(\01320.google.cloud.networ" + + "kmanagement.v1beta1.DropInfoH\000\022Q\n\rload_b" + + "alancer\030\020 \001(\01328.google.cloud.networkmana" + + "gement.v1beta1.LoadBalancerInfoH\000\022F\n\007net" + + "work\030\021 \001(\01323.google.cloud.networkmanagem" + + "ent.v1beta1.NetworkInfoH\000\022K\n\ngke_master\030" + + "\022 \001(\01325.google.cloud.networkmanagement.v" + + "1beta1.GKEMasterInfoH\000\022Z\n\022cloud_sql_inst" + + "ance\030\023 \001(\0132<.google.cloud.networkmanagem" + + "ent.v1beta1.CloudSQLInstanceInfoH\000\022S\n\016cl" + + "oud_function\030\024 \001(\01329.google.cloud.networ" + + "kmanagement.v1beta1.CloudFunctionInfoH\000\022" + + "Z\n\022app_engine_version\030\026 \001(\0132<.google.clo" + + "ud.networkmanagement.v1beta1.AppEngineVe" + + "rsionInfoH\000\022Z\n\022cloud_run_revision\030\027 \001(\0132" + + "<.google.cloud.networkmanagement.v1beta1" + + ".CloudRunRevisionInfoH\000\022>\n\003nat\030\031 \001(\0132/.g" + + "oogle.cloud.networkmanagement.v1beta1.Na" + + "tInfoH\000\022W\n\020proxy_connection\030\032 \001(\0132;.goog" + + "le.cloud.networkmanagement.v1beta1.Proxy" + + "ConnectionInfoH\000\022e\n\032load_balancer_backen" + + "d_info\030\033 \001(\0132?.google.cloud.networkmanag" + + "ement.v1beta1.LoadBalancerBackendInfoH\000\022" + + "S\n\016storage_bucket\030\034 \001(\01329.google.cloud.n" + + "etworkmanagement.v1beta1.StorageBucketIn" + + "foH\000\"\374\005\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\027\n" + + "\023START_FROM_INSTANCE\020\001\022\027\n\023START_FROM_INT" + + "ERNET\020\002\022\035\n\031START_FROM_GOOGLE_SERVICE\020\033\022\036" + + "\n\032START_FROM_PRIVATE_NETWORK\020\003\022\031\n\025START_" + + "FROM_GKE_MASTER\020\025\022!\n\035START_FROM_CLOUD_SQ" + + "L_INSTANCE\020\026\022\035\n\031START_FROM_CLOUD_FUNCTIO" + + "N\020\027\022!\n\035START_FROM_APP_ENGINE_VERSION\020\031\022!" + + "\n\035START_FROM_CLOUD_RUN_REVISION\020\032\022\037\n\033APP" + + "LY_INGRESS_FIREWALL_RULE\020\004\022\036\n\032APPLY_EGRE" + + "SS_FIREWALL_RULE\020\005\022\017\n\013APPLY_ROUTE\020\006\022\031\n\025A" + + "PPLY_FORWARDING_RULE\020\007\022!\n\035ANALYZE_LOAD_B" + + "ALANCER_BACKEND\020\034\022\025\n\021SPOOFING_APPROVED\020\010" + + "\022\026\n\022ARRIVE_AT_INSTANCE\020\t\022$\n ARRIVE_AT_IN" + + "TERNAL_LOAD_BALANCER\020\n\022$\n ARRIVE_AT_EXTE" + + "RNAL_LOAD_BALANCER\020\013\022\031\n\025ARRIVE_AT_VPN_GA" + + "TEWAY\020\014\022\030\n\024ARRIVE_AT_VPN_TUNNEL\020\r\022\033\n\027ARR" + + "IVE_AT_VPC_CONNECTOR\020\030\022\007\n\003NAT\020\016\022\024\n\020PROXY" + + "_CONNECTION\020\017\022\013\n\007DELIVER\020\020\022\010\n\004DROP\020\021\022\013\n\007" + + "FORWARD\020\022\022\t\n\005ABORT\020\023\022\035\n\031VIEWER_PERMISSIO" + + "N_MISSING\020\024B\013\n\tstep_info\"\266\001\n\014InstanceInf" + + "o\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\021\n\t" + + "interface\030\003 \001(\t\022\023\n\013network_uri\030\004 \001(\t\022\023\n\013" + + "internal_ip\030\005 \001(\t\022\023\n\013external_ip\030\006 \001(\t\022\024" + + "\n\014network_tags\030\007 \003(\t\022\033\n\017service_account\030" + + "\010 \001(\tB\002\030\001\"J\n\013NetworkInfo\022\024\n\014display_name" + + "\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\030\n\020matched_ip_range\030" + + "\004 \001(\t\"\270\004\n\014FirewallInfo\022\024\n\014display_name\030\001" + + " \001(\t\022\013\n\003uri\030\002 \001(\t\022\021\n\tdirection\030\003 \001(\t\022\016\n\006" + + "action\030\004 \001(\t\022\020\n\010priority\030\005 \001(\005\022\023\n\013networ" + + "k_uri\030\006 \001(\t\022\023\n\013target_tags\030\007 \003(\t\022\037\n\027targ" + + "et_service_accounts\030\010 \003(\t\022\016\n\006policy\030\t \001(" + + "\t\022a\n\022firewall_rule_type\030\n \001(\0162E.google.c" + + "loud.networkmanagement.v1beta1.FirewallI" + + "nfo.FirewallRuleType\"\221\002\n\020FirewallRuleTyp" + + "e\022\"\n\036FIREWALL_RULE_TYPE_UNSPECIFIED\020\000\022%\n" + + "!HIERARCHICAL_FIREWALL_POLICY_RULE\020\001\022\025\n\021" + + "VPC_FIREWALL_RULE\020\002\022\035\n\031IMPLIED_VPC_FIREW" + + "ALL_RULE\020\003\022/\n+SERVERLESS_VPC_ACCESS_MANA" + + "GED_FIREWALL_RULE\020\004\022 \n\034NETWORK_FIREWALL_" + + "POLICY_RULE\020\005\022)\n%NETWORK_REGIONAL_FIREWA" + + "LL_POLICY_RULE\020\006\"\365\010\n\tRouteInfo\022O\n\nroute_" + + "type\030\010 \001(\0162;.google.cloud.networkmanagem" + + "ent.v1beta1.RouteInfo.RouteType\022T\n\rnext_" + + "hop_type\030\t \001(\0162=.google.cloud.networkman" + + "agement.v1beta1.RouteInfo.NextHopType\022Q\n" + + "\013route_scope\030\016 \001(\0162<.google.cloud.networ" + + "kmanagement.v1beta1.RouteInfo.RouteScope" + + "\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\025\n\rd" + + "est_ip_range\030\003 \001(\t\022\020\n\010next_hop\030\004 \001(\t\022\023\n\013" + + "network_uri\030\005 \001(\t\022\020\n\010priority\030\006 \001(\005\022\025\n\ri" + + "nstance_tags\030\007 \003(\t\022\024\n\014src_ip_range\030\n \001(\t" + + "\022\030\n\020dest_port_ranges\030\013 \003(\t\022\027\n\017src_port_r" + + "anges\030\014 \003(\t\022\021\n\tprotocols\030\r \003(\t\022\030\n\013ncc_hu" + + "b_uri\030\017 \001(\tH\000\210\001\001\022\032\n\rncc_spoke_uri\030\020 \001(\tH" + + "\001\210\001\001\"\233\001\n\tRouteType\022\032\n\026ROUTE_TYPE_UNSPECI" + + "FIED\020\000\022\n\n\006SUBNET\020\001\022\n\n\006STATIC\020\002\022\013\n\007DYNAMI" + + "C\020\003\022\022\n\016PEERING_SUBNET\020\004\022\022\n\016PEERING_STATI" + + "C\020\005\022\023\n\017PEERING_DYNAMIC\020\006\022\020\n\014POLICY_BASED" + + "\020\007\"\314\002\n\013NextHopType\022\035\n\031NEXT_HOP_TYPE_UNSP" + + "ECIFIED\020\000\022\017\n\013NEXT_HOP_IP\020\001\022\025\n\021NEXT_HOP_I" + + "NSTANCE\020\002\022\024\n\020NEXT_HOP_NETWORK\020\003\022\024\n\020NEXT_" + + "HOP_PEERING\020\004\022\031\n\025NEXT_HOP_INTERCONNECT\020\005" + + "\022\027\n\023NEXT_HOP_VPN_TUNNEL\020\006\022\030\n\024NEXT_HOP_VP" + + "N_GATEWAY\020\007\022\035\n\031NEXT_HOP_INTERNET_GATEWAY" + + "\020\010\022\026\n\022NEXT_HOP_BLACKHOLE\020\t\022\020\n\014NEXT_HOP_I" + + "LB\020\n\022\035\n\031NEXT_HOP_ROUTER_APPLIANCE\020\013\022\024\n\020N" + + "EXT_HOP_NCC_HUB\020\014\"C\n\nRouteScope\022\033\n\027ROUTE" + + "_SCOPE_UNSPECIFIED\020\000\022\013\n\007NETWORK\020\001\022\013\n\007NCC" + + "_HUB\020\002B\016\n\014_ncc_hub_uriB\020\n\016_ncc_spoke_uri" + + "\"\210\002\n\021GoogleServiceInfo\022\021\n\tsource_ip\030\001 \001(" + + "\t\022h\n\023google_service_type\030\002 \001(\0162K.google." + + "cloud.networkmanagement.v1beta1.GoogleSe" + + "rviceInfo.GoogleServiceType\"v\n\021GoogleSer" + + "viceType\022#\n\037GOOGLE_SERVICE_TYPE_UNSPECIF" + + "IED\020\000\022\007\n\003IAP\020\001\022$\n GFE_PROXY_OR_HEALTH_CH" + + "ECK_PROBER\020\002\022\r\n\tCLOUD_DNS\020\003\"\237\001\n\022Forwardi" + + "ngRuleInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030" + + "\002 \001(\t\022\030\n\020matched_protocol\030\003 \001(\t\022\032\n\022match" + + "ed_port_range\030\006 \001(\t\022\013\n\003vip\030\004 \001(\t\022\016\n\006targ" + + "et\030\005 \001(\t\022\023\n\013network_uri\030\007 \001(\t\"\315\004\n\020LoadBa" + + "lancerInfo\022e\n\022load_balancer_type\030\001 \001(\0162I" + + ".google.cloud.networkmanagement.v1beta1." + + "LoadBalancerInfo.LoadBalancerType\022\030\n\020hea" + + "lth_check_uri\030\002 \001(\t\022M\n\010backends\030\003 \003(\0132;." + + "google.cloud.networkmanagement.v1beta1.L" + + "oadBalancerBackend\022Z\n\014backend_type\030\004 \001(\016" + + "2D.google.cloud.networkmanagement.v1beta" + + "1.LoadBalancerInfo.BackendType\022\023\n\013backen" + + "d_uri\030\005 \001(\t\"\217\001\n\020LoadBalancerType\022\"\n\036LOAD" + + "_BALANCER_TYPE_UNSPECIFIED\020\000\022\024\n\020INTERNAL" + + "_TCP_UDP\020\001\022\023\n\017NETWORK_TCP_UDP\020\002\022\016\n\nHTTP_" + + "PROXY\020\003\022\r\n\tTCP_PROXY\020\004\022\r\n\tSSL_PROXY\020\005\"f\n" + + "\013BackendType\022\034\n\030BACKEND_TYPE_UNSPECIFIED" + + "\020\000\022\023\n\017BACKEND_SERVICE\020\001\022\017\n\013TARGET_POOL\020\002" + + "\022\023\n\017TARGET_INSTANCE\020\003\"\373\002\n\023LoadBalancerBa" + + "ckend\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t" + + "\022y\n\033health_check_firewall_state\030\003 \001(\0162T." + + "google.cloud.networkmanagement.v1beta1.L" + + "oadBalancerBackend.HealthCheckFirewallSt" + + "ate\022,\n$health_check_allowing_firewall_ru" + + "les\030\004 \003(\t\022,\n$health_check_blocking_firew" + + "all_rules\030\005 \003(\t\"j\n\030HealthCheckFirewallSt" + + "ate\022+\n\'HEALTH_CHECK_FIREWALL_STATE_UNSPE" + + "CIFIED\020\000\022\016\n\nCONFIGURED\020\001\022\021\n\rMISCONFIGURE" + + "D\020\002\"\204\001\n\016VpnGatewayInfo\022\024\n\014display_name\030\001" + + " \001(\t\022\013\n\003uri\030\002 \001(\t\022\023\n\013network_uri\030\003 \001(\t\022\022" + + "\n\nip_address\030\004 \001(\t\022\026\n\016vpn_tunnel_uri\030\005 \001" + + "(\t\022\016\n\006region\030\006 \001(\t\"\363\002\n\rVpnTunnelInfo\022\024\n\014" + + "display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\026\n\016sourc" + + "e_gateway\030\003 \001(\t\022\026\n\016remote_gateway\030\004 \001(\t\022" + + "\031\n\021remote_gateway_ip\030\005 \001(\t\022\031\n\021source_gat" + + "eway_ip\030\006 \001(\t\022\023\n\013network_uri\030\007 \001(\t\022\016\n\006re" + + "gion\030\010 \001(\t\022W\n\014routing_type\030\t \001(\0162A.googl" + + "e.cloud.networkmanagement.v1beta1.VpnTun" + + "nelInfo.RoutingType\"[\n\013RoutingType\022\034\n\030RO" + + "UTING_TYPE_UNSPECIFIED\020\000\022\017\n\013ROUTE_BASED\020" + + "\001\022\020\n\014POLICY_BASED\020\002\022\013\n\007DYNAMIC\020\003\"\321\001\n\014End" + + "pointInfo\022\021\n\tsource_ip\030\001 \001(\t\022\026\n\016destinat" + + "ion_ip\030\002 \001(\t\022\020\n\010protocol\030\003 \001(\t\022\023\n\013source" + + "_port\030\004 \001(\005\022\030\n\020destination_port\030\005 \001(\005\022\032\n" + + "\022source_network_uri\030\006 \001(\t\022\037\n\027destination" + + "_network_uri\030\007 \001(\t\022\030\n\020source_agent_uri\030\010" + + " \001(\t\"\315\002\n\013DeliverInfo\022J\n\006target\030\001 \001(\0162:.g" + + "oogle.cloud.networkmanagement.v1beta1.De" + + "liverInfo.Target\022\024\n\014resource_uri\030\002 \001(\t\"\333" + + "\001\n\006Target\022\026\n\022TARGET_UNSPECIFIED\020\000\022\014\n\010INS" + + "TANCE\020\001\022\014\n\010INTERNET\020\002\022\016\n\nGOOGLE_API\020\003\022\016\n" + + "\nGKE_MASTER\020\004\022\026\n\022CLOUD_SQL_INSTANCE\020\005\022\031\n" + + "\025PSC_PUBLISHED_SERVICE\020\006\022\022\n\016PSC_GOOGLE_A" + + "PI\020\007\022\016\n\nPSC_VPC_SC\020\010\022\022\n\016SERVERLESS_NEG\020\t" + + "\022\022\n\016STORAGE_BUCKET\020\n\"\264\002\n\013ForwardInfo\022J\n\006" + + "target\030\001 \001(\0162:.google.cloud.networkmanag" + + "ement.v1beta1.ForwardInfo.Target\022\024\n\014reso" + + "urce_uri\030\002 \001(\t\"\302\001\n\006Target\022\026\n\022TARGET_UNSP" + + "ECIFIED\020\000\022\017\n\013PEERING_VPC\020\001\022\017\n\013VPN_GATEWA" + + "Y\020\002\022\020\n\014INTERCONNECT\020\003\022\016\n\nGKE_MASTER\020\004\022\"\n" + + "\036IMPORTED_CUSTOM_ROUTE_NEXT_HOP\020\005\022\026\n\022CLO" + + "UD_SQL_INSTANCE\020\006\022\023\n\017ANOTHER_PROJECT\020\007\022\013" + + "\n\007NCC_HUB\020\010\"\200\006\n\tAbortInfo\022F\n\005cause\030\001 \001(\016" + + "27.google.cloud.networkmanagement.v1beta" + + "1.AbortInfo.Cause\022\024\n\014resource_uri\030\002 \001(\t\022" + + "#\n\033projects_missing_permission\030\003 \003(\t\"\357\004\n" + + "\005Cause\022\025\n\021CAUSE_UNSPECIFIED\020\000\022\023\n\017UNKNOWN" + + "_NETWORK\020\001\022\016\n\nUNKNOWN_IP\020\002\022\023\n\017UNKNOWN_PR" + + "OJECT\020\003\022\025\n\021PERMISSION_DENIED\020\004\022\026\n\022NO_SOU" + + "RCE_LOCATION\020\005\022\024\n\020INVALID_ARGUMENT\020\006\022\022\n\016" + + "NO_EXTERNAL_IP\020\007\022\032\n\026UNINTENDED_DESTINATI" + + "ON\020\010\022\022\n\016TRACE_TOO_LONG\020\t\022\022\n\016INTERNAL_ERR" + + "OR\020\n\022\035\n\031SOURCE_ENDPOINT_NOT_FOUND\020\013\022\035\n\031M" + + "ISMATCHED_SOURCE_NETWORK\020\014\022\"\n\036DESTINATIO" + + "N_ENDPOINT_NOT_FOUND\020\r\022\"\n\036MISMATCHED_DES" + + "TINATION_NETWORK\020\016\022\017\n\013UNSUPPORTED\020\017\022\031\n\025M" + + "ISMATCHED_IP_VERSION\020\020\022&\n\"GKE_KONNECTIVI" + + "TY_PROXY_UNSUPPORTED\020\021\022\035\n\031RESOURCE_CONFI" + + "G_NOT_FOUND\020\022\0221\n-GOOGLE_MANAGED_SERVICE_" + + "AMBIGUOUS_PSC_ENDPOINT\020\023\022$\n SOURCE_PSC_C" + + "LOUD_SQL_UNSUPPORTED\020\024\022&\n\"SOURCE_FORWARD" + + "ING_RULE_UNSUPPORTED\020\025\"\312\013\n\010DropInfo\022E\n\005c" + + "ause\030\001 \001(\01626.google.cloud.networkmanagem" + + "ent.v1beta1.DropInfo.Cause\022\024\n\014resource_u" + + "ri\030\002 \001(\t\"\340\n\n\005Cause\022\025\n\021CAUSE_UNSPECIFIED\020" + + "\000\022\034\n\030UNKNOWN_EXTERNAL_ADDRESS\020\001\022\031\n\025FOREI" + + "GN_IP_DISALLOWED\020\002\022\021\n\rFIREWALL_RULE\020\003\022\014\n" + + "\010NO_ROUTE\020\004\022\023\n\017ROUTE_BLACKHOLE\020\005\022\027\n\023ROUT" + + "E_WRONG_NETWORK\020\006\022\037\n\033PRIVATE_TRAFFIC_TO_" + + "INTERNET\020\007\022$\n PRIVATE_GOOGLE_ACCESS_DISA" + + "LLOWED\020\010\022\027\n\023NO_EXTERNAL_ADDRESS\020\t\022\034\n\030UNK" + + "NOWN_INTERNAL_ADDRESS\020\n\022\034\n\030FORWARDING_RU" + + "LE_MISMATCH\020\013\022#\n\037FORWARDING_RULE_REGION_" + + "MISMATCH\020\031\022 \n\034FORWARDING_RULE_NO_INSTANC" + + "ES\020\014\0228\n4FIREWALL_BLOCKING_LOAD_BALANCER_" + + "BACKEND_HEALTH_CHECK\020\r\022\030\n\024INSTANCE_NOT_R" + + "UNNING\020\016\022\033\n\027GKE_CLUSTER_NOT_RUNNING\020\033\022\"\n" + + "\036CLOUD_SQL_INSTANCE_NOT_RUNNING\020\034\022\030\n\024TRA" + + "FFIC_TYPE_BLOCKED\020\017\022\"\n\036GKE_MASTER_UNAUTH" + + "ORIZED_ACCESS\020\020\022*\n&CLOUD_SQL_INSTANCE_UN" + + "AUTHORIZED_ACCESS\020\021\022\036\n\032DROPPED_INSIDE_GK" + + "E_SERVICE\020\022\022$\n DROPPED_INSIDE_CLOUD_SQL_" + + "SERVICE\020\023\022%\n!GOOGLE_MANAGED_SERVICE_NO_P" + + "EERING\020\024\022*\n&GOOGLE_MANAGED_SERVICE_NO_PS" + + "C_ENDPOINT\020&\022\034\n\030GKE_PSC_ENDPOINT_MISSING" + + "\020$\022$\n CLOUD_SQL_INSTANCE_NO_IP_ADDRESS\020\025" + + "\022%\n!GKE_CONTROL_PLANE_REGION_MISMATCH\020\036\022" + + "3\n/PUBLIC_GKE_CONTROL_PLANE_TO_PRIVATE_D" + + "ESTINATION\020\037\022\036\n\032GKE_CONTROL_PLANE_NO_ROU" + + "TE\020 \022:\n6CLOUD_SQL_INSTANCE_NOT_CONFIGURE" + + "D_FOR_EXTERNAL_TRAFFIC\020!\0224\n0PUBLIC_CLOUD" + + "_SQL_INSTANCE_TO_PRIVATE_DESTINATION\020\"\022\037" + + "\n\033CLOUD_SQL_INSTANCE_NO_ROUTE\020#\022\035\n\031CLOUD" + + "_FUNCTION_NOT_ACTIVE\020\026\022\031\n\025VPC_CONNECTOR_" + + "NOT_SET\020\027\022\035\n\031VPC_CONNECTOR_NOT_RUNNING\020\030" + + "\022\037\n\033PSC_CONNECTION_NOT_ACCEPTED\020\032\022 \n\034CLO" + + "UD_RUN_REVISION_NOT_READY\020\035\022\'\n#DROPPED_I" + + "NSIDE_PSC_SERVICE_PRODUCER\020%\022%\n!LOAD_BAL" + + "ANCER_HAS_NO_PROXY_SUBNET\020\'\"k\n\rGKEMaster" + + "Info\022\023\n\013cluster_uri\030\002 \001(\t\022\033\n\023cluster_net" + + "work_uri\030\004 \001(\t\022\023\n\013internal_ip\030\005 \001(\t\022\023\n\013e" + + "xternal_ip\030\006 \001(\t\"\210\001\n\024CloudSQLInstanceInf" + + "o\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\023\n\013" + + "network_uri\030\004 \001(\t\022\023\n\013internal_ip\030\005 \001(\t\022\023" + + "\n\013external_ip\030\006 \001(\t\022\016\n\006region\030\007 \001(\t\"\\\n\021C" + + "loudFunctionInfo\022\024\n\014display_name\030\001 \001(\t\022\013" + + "\n\003uri\030\002 \001(\t\022\020\n\010location\030\003 \001(\t\022\022\n\nversion" + + "_id\030\004 \001(\003\"`\n\024CloudRunRevisionInfo\022\024\n\014dis" + + "play_name\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010location" + + "\030\004 \001(\t\022\023\n\013service_uri\030\005 \001(\t\"_\n\024AppEngine" + + "VersionInfo\022\024\n\014display_name\030\001 \001(\t\022\013\n\003uri" + + "\030\002 \001(\t\022\017\n\007runtime\030\003 \001(\t\022\023\n\013environment\030\004" + + " \001(\t\"G\n\020VpcConnectorInfo\022\024\n\014display_name" + + "\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\020\n\010location\030\003 \001(\t\"\364\003" + + "\n\007NatInfo\022B\n\004type\030\001 \001(\01624.google.cloud.n" + + "etworkmanagement.v1beta1.NatInfo.Type\022\020\n" + + "\010protocol\030\002 \001(\t\022\023\n\013network_uri\030\003 \001(\t\022\025\n\r" + + "old_source_ip\030\004 \001(\t\022\025\n\rnew_source_ip\030\005 \001" + + "(\t\022\032\n\022old_destination_ip\030\006 \001(\t\022\032\n\022new_de" + + "stination_ip\030\007 \001(\t\022\027\n\017old_source_port\030\010 " + + "\001(\005\022\027\n\017new_source_port\030\t \001(\005\022\034\n\024old_dest" + + "ination_port\030\n \001(\005\022\034\n\024new_destination_po" + + "rt\030\013 \001(\005\022\022\n\nrouter_uri\030\014 \001(\t\022\030\n\020nat_gate" + + "way_name\030\r \001(\t\"|\n\004Type\022\024\n\020TYPE_UNSPECIFI" + + "ED\020\000\022\030\n\024INTERNAL_TO_EXTERNAL\020\001\022\030\n\024EXTERN" + + "AL_TO_INTERNAL\020\002\022\r\n\tCLOUD_NAT\020\003\022\033\n\027PRIVA" + + "TE_SERVICE_CONNECT\020\004\"\244\002\n\023ProxyConnection" + + "Info\022\020\n\010protocol\030\001 \001(\t\022\025\n\rold_source_ip\030" + + "\002 \001(\t\022\025\n\rnew_source_ip\030\003 \001(\t\022\032\n\022old_dest" + + "ination_ip\030\004 \001(\t\022\032\n\022new_destination_ip\030\005" + + " \001(\t\022\027\n\017old_source_port\030\006 \001(\005\022\027\n\017new_sou" + + "rce_port\030\007 \001(\005\022\034\n\024old_destination_port\030\010" + + " \001(\005\022\034\n\024new_destination_port\030\t \001(\005\022\022\n\nsu" + + "bnet_uri\030\n \001(\t\022\023\n\013network_uri\030\013 \001(\t\"\367\004\n\027" + + "LoadBalancerBackendInfo\022\014\n\004name\030\001 \001(\t\022\024\n" + + "\014instance_uri\030\002 \001(\t\022\033\n\023backend_service_u" + + "ri\030\003 \001(\t\022\032\n\022instance_group_uri\030\004 \001(\t\022\"\n\032" + + "network_endpoint_group_uri\030\005 \001(\t\022\032\n\022back" + + "end_bucket_uri\030\010 \001(\t\022\"\n\032psc_service_atta" + + "chment_uri\030\t \001(\t\022\035\n\025psc_google_api_targe" + + "t\030\n \001(\t\022\030\n\020health_check_uri\030\006 \001(\t\022\221\001\n#he" + + "alth_check_firewalls_config_state\030\007 \001(\0162" + + "_.google.cloud.networkmanagement.v1beta1" + + ".LoadBalancerBackendInfo.HealthCheckFire" + + "wallsConfigStateB\003\340A\003\"\315\001\n\037HealthCheckFir" + + "ewallsConfigState\0223\n/HEALTH_CHECK_FIREWA" + + "LLS_CONFIG_STATE_UNSPECIFIED\020\000\022\030\n\024FIREWA" + + "LLS_CONFIGURED\020\001\022\"\n\036FIREWALLS_PARTIALLY_" + + "CONFIGURED\020\002\022\034\n\030FIREWALLS_NOT_CONFIGURED" + + "\020\003\022\031\n\025FIREWALLS_UNSUPPORTED\020\004\"#\n\021Storage" + + "BucketInfo\022\016\n\006bucket\030\001 \001(\t*\366\002\n\020LoadBalan" + + "cerType\022\"\n\036LOAD_BALANCER_TYPE_UNSPECIFIE" + + "D\020\000\022 \n\034HTTPS_ADVANCED_LOAD_BALANCER\020\001\022\027\n" + + "\023HTTPS_LOAD_BALANCER\020\002\022 \n\034REGIONAL_HTTPS" + + "_LOAD_BALANCER\020\003\022 \n\034INTERNAL_HTTPS_LOAD_" + + "BALANCER\020\004\022\033\n\027SSL_PROXY_LOAD_BALANCER\020\005\022" + + "\033\n\027TCP_PROXY_LOAD_BALANCER\020\006\022$\n INTERNAL" + + "_TCP_PROXY_LOAD_BALANCER\020\007\022\031\n\025NETWORK_LO" + + "AD_BALANCER\020\010\022 \n\034LEGACY_NETWORK_LOAD_BAL" + + "ANCER\020\t\022\"\n\036TCP_UDP_INTERNAL_LOAD_BALANCE" + + "R\020\nB\222\002\n*com.google.cloud.networkmanageme" + + "nt.v1beta1B\nTraceProtoP\001ZXcloud.google.c" + + "om/go/networkmanagement/apiv1beta1/netwo" + + "rkmanagementpb;networkmanagementpb\252\002&Goo" + + "gle.Cloud.NetworkManagement.V1Beta1\312\002&Go" + + "ogle\\Cloud\\NetworkManagement\\V1beta1\352\002)G" + + "oogle::Cloud::NetworkManagement::V1beta1" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); internal_static_google_cloud_networkmanagement_v1beta1_Trace_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_networkmanagement_v1beta1_Trace_fieldAccessorTable = @@ -445,6 +512,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CloudFunction", "AppEngineVersion", "CloudRunRevision", + "Nat", + "ProxyConnection", + "LoadBalancerBackendInfo", + "StorageBucket", "StepInfo", }); internal_static_google_cloud_networkmanagement_v1beta1_InstanceInfo_descriptor = @@ -671,6 +742,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DisplayName", "Uri", "Location", }); + internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_NatInfo_descriptor, + new java.lang.String[] { + "Type", + "Protocol", + "NetworkUri", + "OldSourceIp", + "NewSourceIp", + "OldDestinationIp", + "NewDestinationIp", + "OldSourcePort", + "NewSourcePort", + "OldDestinationPort", + "NewDestinationPort", + "RouterUri", + "NatGatewayName", + }); + internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_ProxyConnectionInfo_descriptor, + new java.lang.String[] { + "Protocol", + "OldSourceIp", + "NewSourceIp", + "OldDestinationIp", + "NewDestinationIp", + "OldSourcePort", + "NewSourcePort", + "OldDestinationPort", + "NewDestinationPort", + "SubnetUri", + "NetworkUri", + }); + internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_LoadBalancerBackendInfo_descriptor, + new java.lang.String[] { + "Name", + "InstanceUri", + "BackendServiceUri", + "InstanceGroupUri", + "NetworkEndpointGroupUri", + "BackendBucketUri", + "PscServiceAttachmentUri", + "PscGoogleApiTarget", + "HealthCheckUri", + "HealthCheckFirewallsConfigState", + }); + internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_StorageBucketInfo_descriptor, + new java.lang.String[] { + "Bucket", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto index ebc53ba0d09c..09cd8fc18dbe 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/proto/google/cloud/networkmanagement/v1beta1/trace.proto @@ -16,6 +16,8 @@ syntax = "proto3"; package google.cloud.networkmanagement.v1beta1; +import "google/api/field_behavior.proto"; + option csharp_namespace = "Google.Cloud.NetworkManagement.V1Beta1"; option go_package = "cloud.google.com/go/networkmanagement/apiv1beta1/networkmanagementpb;networkmanagementpb"; option java_multiple_files = true; @@ -112,6 +114,9 @@ message Step { // Config checking state: match forwarding rule. APPLY_FORWARDING_RULE = 7; + // Config checking state: verify load balancer backend configuration. + ANALYZE_LOAD_BALANCER_BACKEND = 28; + // Config checking state: packet sent or received under foreign IP // address and allowed. SPOOFING_APPROVED = 8; @@ -239,6 +244,18 @@ message Step { // Display information of a Cloud Run revision. CloudRunRevisionInfo cloud_run_revision = 23; + + // Display information of a NAT. + NatInfo nat = 25; + + // Display information of a ProxyConnection. + ProxyConnectionInfo proxy_connection = 26; + + // Display information of a specific load balancer backend. + LoadBalancerBackendInfo load_balancer_backend_info = 27; + + // Display information of a Storage Bucket. Used only for return traces. + StorageBucketInfo storage_bucket = 28; } } @@ -781,6 +798,9 @@ message DeliverInfo { // Target is a serverless network endpoint group. SERVERLESS_NEG = 9; + + // Target is a Cloud Storage bucket. + STORAGE_BUCKET = 10; } // Target type where the packet is delivered to. @@ -1201,6 +1221,172 @@ message VpcConnectorInfo { string location = 3; } +// For display only. Metadata associated with NAT. +message NatInfo { + // Types of NAT. + enum Type { + // Type is unspecified. + TYPE_UNSPECIFIED = 0; + // From Compute Engine instance's internal address to external address. + INTERNAL_TO_EXTERNAL = 1; + // From Compute Engine instance's external address to internal address. + EXTERNAL_TO_INTERNAL = 2; + // Cloud NAT Gateway. + CLOUD_NAT = 3; + // Private service connect NAT. + PRIVATE_SERVICE_CONNECT = 4; + } + + // Type of NAT. + Type type = 1; + + // IP protocol in string format, for example: "TCP", "UDP", "ICMP". + string protocol = 2; + + // URI of the network where NAT translation takes place. + string network_uri = 3; + + // Source IP address before NAT translation. + string old_source_ip = 4; + + // Source IP address after NAT translation. + string new_source_ip = 5; + + // Destination IP address before NAT translation. + string old_destination_ip = 6; + + // Destination IP address after NAT translation. + string new_destination_ip = 7; + + // Source port before NAT translation. Only valid when protocol is TCP or UDP. + int32 old_source_port = 8; + + // Source port after NAT translation. Only valid when protocol is TCP or UDP. + int32 new_source_port = 9; + + // Destination port before NAT translation. Only valid when protocol is TCP or + // UDP. + int32 old_destination_port = 10; + + // Destination port after NAT translation. Only valid when protocol is TCP or + // UDP. + int32 new_destination_port = 11; + + // Uri of the Cloud Router. Only valid when type is CLOUD_NAT. + string router_uri = 12; + + // The name of Cloud NAT Gateway. Only valid when type is CLOUD_NAT. + string nat_gateway_name = 13; +} + +// For display only. Metadata associated with ProxyConnection. +message ProxyConnectionInfo { + // IP protocol in string format, for example: "TCP", "UDP", "ICMP". + string protocol = 1; + + // Source IP address of an original connection. + string old_source_ip = 2; + + // Source IP address of a new connection. + string new_source_ip = 3; + + // Destination IP address of an original connection + string old_destination_ip = 4; + + // Destination IP address of a new connection. + string new_destination_ip = 5; + + // Source port of an original connection. Only valid when protocol is TCP or + // UDP. + int32 old_source_port = 6; + + // Source port of a new connection. Only valid when protocol is TCP or UDP. + int32 new_source_port = 7; + + // Destination port of an original connection. Only valid when protocol is TCP + // or UDP. + int32 old_destination_port = 8; + + // Destination port of a new connection. Only valid when protocol is TCP or + // UDP. + int32 new_destination_port = 9; + + // Uri of proxy subnet. + string subnet_uri = 10; + + // URI of the network where connection is proxied. + string network_uri = 11; +} + +// For display only. Metadata associated with the load balancer backend. +message LoadBalancerBackendInfo { + // Display name of the backend. For example, it might be an instance name for + // the instance group backends, or an IP address and port for zonal network + // endpoint group backends. + string name = 1; + + // URI of the backend instance (if applicable). Populated for instance group + // backends, and zonal NEG backends. + string instance_uri = 2; + + // URI of the backend service this backend belongs to (if applicable). + string backend_service_uri = 3; + + // URI of the instance group this backend belongs to (if applicable). + string instance_group_uri = 4; + + // URI of the network endpoint group this backend belongs to (if applicable). + string network_endpoint_group_uri = 5; + + // URI of the backend bucket this backend targets (if applicable). + string backend_bucket_uri = 8; + + // URI of the PSC service attachment this PSC NEG backend targets (if + // applicable). + string psc_service_attachment_uri = 9; + + // PSC Google API target this PSC NEG backend targets (if applicable). + string psc_google_api_target = 10; + + // URI of the health check attached to this backend (if applicable). + string health_check_uri = 6; + + // Health check firewalls configuration state enum. + enum HealthCheckFirewallsConfigState { + // Configuration state unspecified. It usually means that the backend has + // no health check attached, or there was an unexpected configuration error + // preventing Connectivity tests from verifying health check configuration. + HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED = 0; + + // Firewall rules (policies) allowing health check traffic from all required + // IP ranges to the backend are configured. + FIREWALLS_CONFIGURED = 1; + + // Firewall rules (policies) allow health check traffic only from a part of + // required IP ranges. + FIREWALLS_PARTIALLY_CONFIGURED = 2; + + // Firewall rules (policies) deny health check traffic from all required + // IP ranges to the backend. + FIREWALLS_NOT_CONFIGURED = 3; + + // The network contains firewall rules of unsupported types, so Connectivity + // tests were not able to verify health check configuration status. Please + // refer to the documentation for the list of unsupported configurations: + // https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/concepts/overview#unsupported-configs + FIREWALLS_UNSUPPORTED = 4; + } + + // Health check firewalls configuration state for the backend. This is a + // result of the static firewall analysis (verifying that health check traffic + // from required IP ranges to the backend is allowed or not). The backend + // might still be unhealthy even if these firewalls are configured. Please + // refer to the documentation for more information: + // https://cloud.google.com/load-balancing/docs/firewall-rules + HealthCheckFirewallsConfigState health_check_firewalls_config_state = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Type of a load balancer. For more information, see [Summary of Google Cloud // load // balancers](https://cloud.google.com/load-balancing/docs/load-balancing-overview#summary-of-google-cloud-load-balancers). @@ -1239,3 +1425,9 @@ enum LoadBalancerType { // Internal TCP/UDP load balancer. TCP_UDP_INTERNAL_LOAD_BALANCER = 10; } + +// For display only. Metadata associated with Storage Bucket. +message StorageBucketInfo { + // Cloud Storage Bucket name. + string bucket = 1; +} diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json index cbc601f6be1d..2ded6342d02a 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/resources/META-INF/native-image/com.google.cloud.recaptchaenterprise.v1/reflect-config.json @@ -1556,6 +1556,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.recaptchaenterprise.v1.FirewallAction$IncludeRecaptchaScriptAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.recaptchaenterprise.v1.FirewallAction$IncludeRecaptchaScriptAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.recaptchaenterprise.v1.FirewallAction$RedirectAction", "queryAllDeclaredConstructors": true, diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java index 18814e82b34f..87b10f4852c0 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallAction.java @@ -920,6 +920,467 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface IncludeRecaptchaScriptActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) + com.google.protobuf.MessageOrBuilder {} + /** + * + * + *
                                                                                      +   * An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript
                                                                                      +   * code into the HTML returned by the site backend. This reCAPTCHA
                                                                                      +   * script is tasked with collecting user signals on the requested web page,
                                                                                      +   * issuing tokens as a cookie within the site domain, and enabling their
                                                                                      +   * utilization in subsequent page requests.
                                                                                      +   * 
                                                                                      + * + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction} + */ + public static final class IncludeRecaptchaScriptAction + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) + IncludeRecaptchaScriptActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use IncludeRecaptchaScriptAction.newBuilder() to construct. + private IncludeRecaptchaScriptAction( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IncludeRecaptchaScriptAction() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IncludeRecaptchaScriptAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_IncludeRecaptchaScriptAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_IncludeRecaptchaScriptAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction.class, + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction.Builder + .class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction)) { + return super.equals(obj); + } + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction other = + (com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + 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.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + 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.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + 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.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + 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.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction 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; + } + /** + * + * + *
                                                                                      +     * An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript
                                                                                      +     * code into the HTML returned by the site backend. This reCAPTCHA
                                                                                      +     * script is tasked with collecting user signals on the requested web page,
                                                                                      +     * issuing tokens as a cookie within the site domain, and enabling their
                                                                                      +     * utilization in subsequent page requests.
                                                                                      +     * 
                                                                                      + * + * Protobuf type {@code + * google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_IncludeRecaptchaScriptAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_IncludeRecaptchaScriptAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction.class, + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + .Builder.class); + } + + // Construct using + // com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.recaptchaenterprise.v1.RecaptchaEnterpriseProto + .internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_IncludeRecaptchaScriptAction_descriptor; + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + getDefaultInstanceForType() { + return com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction build() { + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + buildPartial() { + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction result = + new com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction(this); + onBuilt(); + return result; + } + + @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.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) { + return mergeFrom( + (com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction other) { + if (other + == com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + .getDefaultInstance()) return this; + 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; + 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; + } + + @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.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) + private static final com.google.recaptchaenterprise.v1.FirewallAction + .IncludeRecaptchaScriptAction + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction(); + } + + public static com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IncludeRecaptchaScriptAction 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.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface RedirectActionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.recaptchaenterprise.v1.FirewallAction.RedirectAction) @@ -2892,6 +3353,7 @@ public enum FirewallActionOneofCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { ALLOW(1), BLOCK(2), + INCLUDE_RECAPTCHA_SCRIPT(6), REDIRECT(5), SUBSTITUTE(3), SET_HEADER(4), @@ -2917,6 +3379,8 @@ public static FirewallActionOneofCase forNumber(int value) { return ALLOW; case 2: return BLOCK; + case 6: + return INCLUDE_RECAPTCHA_SCRIPT; case 5: return REDIRECT; case 3: @@ -3047,6 +3511,72 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder get return com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.getDefaultInstance(); } + public static final int INCLUDE_RECAPTCHA_SCRIPT_FIELD_NUMBER = 6; + /** + * + * + *
                                                                                      +   * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +   * returned by the site backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + * + * @return Whether the includeRecaptchaScript field is set. + */ + @java.lang.Override + public boolean hasIncludeRecaptchaScript() { + return firewallActionOneofCase_ == 6; + } + /** + * + * + *
                                                                                      +   * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +   * returned by the site backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + * + * @return The includeRecaptchaScript. + */ + @java.lang.Override + public com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + getIncludeRecaptchaScript() { + if (firewallActionOneofCase_ == 6) { + return (com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) + firewallActionOneof_; + } + return com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + .getDefaultInstance(); + } + /** + * + * + *
                                                                                      +   * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +   * returned by the site backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + */ + @java.lang.Override + public com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptActionOrBuilder + getIncludeRecaptchaScriptOrBuilder() { + if (firewallActionOneofCase_ == 6) { + return (com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) + firewallActionOneof_; + } + return com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + .getDefaultInstance(); + } + public static final int REDIRECT_FIELD_NUMBER = 5; /** * @@ -3259,6 +3789,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 5, (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_); } + if (firewallActionOneofCase_ == 6) { + output.writeMessage( + 6, + (com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) + firewallActionOneof_); + } getUnknownFields().writeTo(output); } @@ -3301,6 +3837,13 @@ public int getSerializedSize() { (com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction) firewallActionOneof_); } + if (firewallActionOneofCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) + firewallActionOneof_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3325,6 +3868,9 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getBlock().equals(other.getBlock())) return false; break; + case 6: + if (!getIncludeRecaptchaScript().equals(other.getIncludeRecaptchaScript())) return false; + break; case 5: if (!getRedirect().equals(other.getRedirect())) return false; break; @@ -3357,6 +3903,10 @@ public int hashCode() { hash = (37 * hash) + BLOCK_FIELD_NUMBER; hash = (53 * hash) + getBlock().hashCode(); break; + case 6: + hash = (37 * hash) + INCLUDE_RECAPTCHA_SCRIPT_FIELD_NUMBER; + hash = (53 * hash) + getIncludeRecaptchaScript().hashCode(); + break; case 5: hash = (37 * hash) + REDIRECT_FIELD_NUMBER; hash = (53 * hash) + getRedirect().hashCode(); @@ -3518,6 +4068,9 @@ public Builder clear() { if (blockBuilder_ != null) { blockBuilder_.clear(); } + if (includeRecaptchaScriptBuilder_ != null) { + includeRecaptchaScriptBuilder_.clear(); + } if (redirectBuilder_ != null) { redirectBuilder_.clear(); } @@ -3577,6 +4130,9 @@ private void buildPartialOneofs(com.google.recaptchaenterprise.v1.FirewallAction if (firewallActionOneofCase_ == 2 && blockBuilder_ != null) { result.firewallActionOneof_ = blockBuilder_.build(); } + if (firewallActionOneofCase_ == 6 && includeRecaptchaScriptBuilder_ != null) { + result.firewallActionOneof_ = includeRecaptchaScriptBuilder_.build(); + } if (firewallActionOneofCase_ == 5 && redirectBuilder_ != null) { result.firewallActionOneof_ = redirectBuilder_.build(); } @@ -3645,6 +4201,11 @@ public Builder mergeFrom(com.google.recaptchaenterprise.v1.FirewallAction other) mergeBlock(other.getBlock()); break; } + case INCLUDE_RECAPTCHA_SCRIPT: + { + mergeIncludeRecaptchaScript(other.getIncludeRecaptchaScript()); + break; + } case REDIRECT: { mergeRedirect(other.getRedirect()); @@ -3721,6 +4282,13 @@ public Builder mergeFrom( firewallActionOneofCase_ = 5; break; } // case 42 + case 50: + { + input.readMessage( + getIncludeRecaptchaScriptFieldBuilder().getBuilder(), extensionRegistry); + firewallActionOneofCase_ = 6; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4204,6 +4772,263 @@ public com.google.recaptchaenterprise.v1.FirewallAction.BlockAction.Builder getB return blockBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction, + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction.Builder, + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptActionOrBuilder> + includeRecaptchaScriptBuilder_; + /** + * + * + *
                                                                                      +     * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +     * returned by the site backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + * + * @return Whether the includeRecaptchaScript field is set. + */ + @java.lang.Override + public boolean hasIncludeRecaptchaScript() { + return firewallActionOneofCase_ == 6; + } + /** + * + * + *
                                                                                      +     * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +     * returned by the site backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + * + * @return The includeRecaptchaScript. + */ + @java.lang.Override + public com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + getIncludeRecaptchaScript() { + if (includeRecaptchaScriptBuilder_ == null) { + if (firewallActionOneofCase_ == 6) { + return (com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) + firewallActionOneof_; + } + return com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + .getDefaultInstance(); + } else { + if (firewallActionOneofCase_ == 6) { + return includeRecaptchaScriptBuilder_.getMessage(); + } + return com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + .getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +     * returned by the site backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + */ + public Builder setIncludeRecaptchaScript( + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction value) { + if (includeRecaptchaScriptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + firewallActionOneof_ = value; + onChanged(); + } else { + includeRecaptchaScriptBuilder_.setMessage(value); + } + firewallActionOneofCase_ = 6; + return this; + } + /** + * + * + *
                                                                                      +     * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +     * returned by the site backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + */ + public Builder setIncludeRecaptchaScript( + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction.Builder + builderForValue) { + if (includeRecaptchaScriptBuilder_ == null) { + firewallActionOneof_ = builderForValue.build(); + onChanged(); + } else { + includeRecaptchaScriptBuilder_.setMessage(builderForValue.build()); + } + firewallActionOneofCase_ = 6; + return this; + } + /** + * + * + *
                                                                                      +     * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +     * returned by the site backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + */ + public Builder mergeIncludeRecaptchaScript( + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction value) { + if (includeRecaptchaScriptBuilder_ == null) { + if (firewallActionOneofCase_ == 6 + && firewallActionOneof_ + != com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + .getDefaultInstance()) { + firewallActionOneof_ = + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + .newBuilder( + (com.google.recaptchaenterprise.v1.FirewallAction + .IncludeRecaptchaScriptAction) + firewallActionOneof_) + .mergeFrom(value) + .buildPartial(); + } else { + firewallActionOneof_ = value; + } + onChanged(); + } else { + if (firewallActionOneofCase_ == 6) { + includeRecaptchaScriptBuilder_.mergeFrom(value); + } else { + includeRecaptchaScriptBuilder_.setMessage(value); + } + } + firewallActionOneofCase_ = 6; + return this; + } + /** + * + * + *
                                                                                      +     * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +     * returned by the site backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + */ + public Builder clearIncludeRecaptchaScript() { + if (includeRecaptchaScriptBuilder_ == null) { + if (firewallActionOneofCase_ == 6) { + firewallActionOneofCase_ = 0; + firewallActionOneof_ = null; + onChanged(); + } + } else { + if (firewallActionOneofCase_ == 6) { + firewallActionOneofCase_ = 0; + firewallActionOneof_ = null; + } + includeRecaptchaScriptBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                                                                      +     * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +     * returned by the site backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + */ + public com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction.Builder + getIncludeRecaptchaScriptBuilder() { + return getIncludeRecaptchaScriptFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                      +     * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +     * returned by the site backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + */ + @java.lang.Override + public com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptActionOrBuilder + getIncludeRecaptchaScriptOrBuilder() { + if ((firewallActionOneofCase_ == 6) && (includeRecaptchaScriptBuilder_ != null)) { + return includeRecaptchaScriptBuilder_.getMessageOrBuilder(); + } else { + if (firewallActionOneofCase_ == 6) { + return (com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) + firewallActionOneof_; + } + return com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + .getDefaultInstance(); + } + } + /** + * + * + *
                                                                                      +     * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +     * returned by the site backend.
                                                                                      +     * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction, + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction.Builder, + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptActionOrBuilder> + getIncludeRecaptchaScriptFieldBuilder() { + if (includeRecaptchaScriptBuilder_ == null) { + if (!(firewallActionOneofCase_ == 6)) { + firewallActionOneof_ = + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + .getDefaultInstance(); + } + includeRecaptchaScriptBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction, + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + .Builder, + com.google.recaptchaenterprise.v1.FirewallAction + .IncludeRecaptchaScriptActionOrBuilder>( + (com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction) + firewallActionOneof_, + getParentForChildren(), + isClean()); + firewallActionOneof_ = null; + } + firewallActionOneofCase_ = 6; + onChanged(); + return includeRecaptchaScriptBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction, com.google.recaptchaenterprise.v1.FirewallAction.RedirectAction.Builder, diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java index 5ff7b6fb6a42..2697ee723573 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/FirewallActionOrBuilder.java @@ -100,6 +100,52 @@ public interface FirewallActionOrBuilder */ com.google.recaptchaenterprise.v1.FirewallAction.BlockActionOrBuilder getBlockOrBuilder(); + /** + * + * + *
                                                                                      +   * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +   * returned by the site backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + * + * @return Whether the includeRecaptchaScript field is set. + */ + boolean hasIncludeRecaptchaScript(); + /** + * + * + *
                                                                                      +   * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +   * returned by the site backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + * + * @return The includeRecaptchaScript. + */ + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction + getIncludeRecaptchaScript(); + /** + * + * + *
                                                                                      +   * This action will inject reCAPTCHA JavaScript code into the HTML page
                                                                                      +   * returned by the site backend.
                                                                                      +   * 
                                                                                      + * + * + * .google.cloud.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptAction include_recaptcha_script = 6; + * + */ + com.google.recaptchaenterprise.v1.FirewallAction.IncludeRecaptchaScriptActionOrBuilder + getIncludeRecaptchaScriptOrBuilder(); + /** * * diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java index 52a8877f38e6..a0d8df73249d 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RecaptchaEnterpriseProto.java @@ -272,6 +272,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_IncludeRecaptchaScriptAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_IncludeRecaptchaScriptAction_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -669,190 +673,194 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004 \001(\003\"\225\001\n\030FirewallPolicyAssessment\022&\n\005er" + "ror\030\005 \001(\0132\022.google.rpc.StatusB\003\340A\003\022Q\n\017fi" + "rewall_policy\030\010 \001(\01323.google.cloud.recap" - + "tchaenterprise.v1.FirewallPolicyB\003\340A\003\"\354\004" + + "tchaenterprise.v1.FirewallPolicyB\003\340A\003\"\202\006" + "\n\016FirewallAction\022P\n\005allow\030\001 \001(\0132?.google" + ".cloud.recaptchaenterprise.v1.FirewallAc" + "tion.AllowActionH\000\022P\n\005block\030\002 \001(\0132?.goog" + "le.cloud.recaptchaenterprise.v1.Firewall" - + "Action.BlockActionH\000\022V\n\010redirect\030\005 \001(\0132B" - + ".google.cloud.recaptchaenterprise.v1.Fir" - + "ewallAction.RedirectActionH\000\022Z\n\nsubstitu" - + "te\030\003 \001(\0132D.google.cloud.recaptchaenterpr" - + "ise.v1.FirewallAction.SubstituteActionH\000" - + "\022Y\n\nset_header\030\004 \001(\0132C.google.cloud.reca" - + "ptchaenterprise.v1.FirewallAction.SetHea" - + "derActionH\000\032\r\n\013AllowAction\032\r\n\013BlockActio" - + "n\032\020\n\016RedirectAction\032%\n\020SubstituteAction\022" - + "\021\n\004path\030\001 \001(\tB\003\340A\001\0327\n\017SetHeaderAction\022\020\n" - + "\003key\030\001 \001(\tB\003\340A\001\022\022\n\005value\030\002 \001(\tB\003\340A\001B\027\n\025f" - + "irewall_action_oneof\"\241\002\n\016FirewallPolicy\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\010\022\030\n\013description\030\002 \001(\tB" - + "\003\340A\001\022\021\n\004path\030\004 \001(\tB\003\340A\001\022\026\n\tcondition\030\005 \001" - + "(\tB\003\340A\001\022I\n\007actions\030\006 \003(\01323.google.cloud." - + "recaptchaenterprise.v1.FirewallActionB\003\340" - + "A\001:l\352Ai\n1recaptchaenterprise.googleapis." - + "com/FirewallPolicy\0224projects/{project}/f" - + "irewallpolicies/{firewallpolicy}\"\266\001\n)Lis" - + "tRelatedAccountGroupMembershipsRequest\022X" - + "\n\006parent\030\001 \001(\tBH\340A\002\372AB\022@recaptchaenterpr" - + "ise.googleapis.com/RelatedAccountGroupMe" - + "mbership\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage" - + "_token\030\003 \001(\tB\003\340A\001\"\264\001\n*ListRelatedAccount" - + "GroupMembershipsResponse\022m\n!related_acco" - + "unt_group_memberships\030\001 \003(\0132B.google.clo" - + "ud.recaptchaenterprise.v1.RelatedAccount" - + "GroupMembership\022\027\n\017next_page_token\030\002 \001(\t" - + "\"\242\001\n\037ListRelatedAccountGroupsRequest\022N\n\006" - + "parent\030\001 \001(\tB>\340A\002\372A8\0226recaptchaenterpris" - + "e.googleapis.com/RelatedAccountGroup\022\026\n\t" - + "page_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\t" - + "B\003\340A\001\"\225\001\n ListRelatedAccountGroupsRespon" - + "se\022X\n\026related_account_groups\030\001 \003(\01328.goo" - + "gle.cloud.recaptchaenterprise.v1.Related" - + "AccountGroup\022\027\n\017next_page_token\030\002 \001(\t\"\364\001" - + "\n+SearchRelatedAccountGroupMembershipsRe" - + "quest\022Y\n\007project\030\001 \001(\tBH\340A\002\372AB\022@recaptch" - + "aenterprise.googleapis.com/RelatedAccoun" - + "tGroupMembership\022\027\n\naccount_id\030\005 \001(\tB\003\340A" - + "\001\022 \n\021hashed_account_id\030\002 \001(\014B\005\030\001\340A\001\022\026\n\tp" - + "age_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB" - + "\003\340A\001\"\266\001\n,SearchRelatedAccountGroupMember" - + "shipsResponse\022m\n!related_account_group_m" - + "emberships\030\001 \003(\0132B.google.cloud.recaptch" - + "aenterprise.v1.RelatedAccountGroupMember" - + "ship\022\027\n\017next_page_token\030\002 \001(\t\"\316\002\n\035Relate" - + "dAccountGroupMembership\022Y\n\004name\030\001 \001(\tBK\340" - + "A\010\340A\002\372AB\n@recaptchaenterprise.googleapis" - + ".com/RelatedAccountGroupMembership\022\022\n\nac" - + "count_id\030\004 \001(\t\022\035\n\021hashed_account_id\030\002 \001(" - + "\014B\002\030\001:\236\001\352A\232\001\n@recaptchaenterprise.google" - + "apis.com/RelatedAccountGroupMembership\022V" - + "projects/{project}/relatedaccountgroups/" - + "{relatedaccountgroup}/memberships/{membe" - + "rship}\"\342\001\n\023RelatedAccountGroup\022O\n\004name\030\001" - + " \001(\tBA\340A\010\340A\002\372A8\n6recaptchaenterprise.goo" - + "gleapis.com/RelatedAccountGroup:z\352Aw\n6re" - + "captchaenterprise.googleapis.com/Related", - "AccountGroup\022=projects/{project}/related" - + "accountgroups/{relatedaccountgroup}\"\353\002\n\013" - + "WafSettings\022U\n\013waf_service\030\001 \001(\0162;.googl" - + "e.cloud.recaptchaenterprise.v1.WafSettin" - + "gs.WafServiceB\003\340A\002\022U\n\013waf_feature\030\002 \001(\0162" - + ";.google.cloud.recaptchaenterprise.v1.Wa" - + "fSettings.WafFeatureB\003\340A\002\"o\n\nWafFeature\022" - + "\033\n\027WAF_FEATURE_UNSPECIFIED\020\000\022\022\n\016CHALLENG" - + "E_PAGE\020\001\022\021\n\rSESSION_TOKEN\020\002\022\020\n\014ACTION_TO" - + "KEN\020\003\022\013\n\007EXPRESS\020\005\"=\n\nWafService\022\033\n\027WAF_" - + "SERVICE_UNSPECIFIED\020\000\022\006\n\002CA\020\001\022\n\n\006FASTLY\020" - + "\0032\331\037\n\032RecaptchaEnterpriseService\022\316\001\n\020Cre" - + "ateAssessment\022<.google.cloud.recaptchaen" - + "terprise.v1.CreateAssessmentRequest\032/.go" - + "ogle.cloud.recaptchaenterprise.v1.Assess" - + "ment\"K\332A\021parent,assessment\202\323\344\223\0021\"#/v1/{p" - + "arent=projects/*}/assessments:\nassessmen" - + "t\022\340\001\n\022AnnotateAssessment\022>.google.cloud." - + "recaptchaenterprise.v1.AnnotateAssessmen" - + "tRequest\032?.google.cloud.recaptchaenterpr" - + "ise.v1.AnnotateAssessmentResponse\"I\332A\017na" - + "me,annotation\202\323\344\223\0021\",/v1/{name=projects/" - + "*/assessments/*}:annotate:\001*\022\244\001\n\tCreateK" - + "ey\0225.google.cloud.recaptchaenterprise.v1" - + ".CreateKeyRequest\032(.google.cloud.recaptc" - + "haenterprise.v1.Key\"6\332A\nparent,key\202\323\344\223\002#" - + "\"\034/v1/{parent=projects/*}/keys:\003key\022\246\001\n\010" - + "ListKeys\0224.google.cloud.recaptchaenterpr" - + "ise.v1.ListKeysRequest\0325.google.cloud.re" - + "captchaenterprise.v1.ListKeysResponse\"-\332" - + "A\006parent\202\323\344\223\002\036\022\034/v1/{parent=projects/*}/" - + "keys\022\347\001\n\027RetrieveLegacySecretKey\022C.googl" - + "e.cloud.recaptchaenterprise.v1.RetrieveL" - + "egacySecretKeyRequest\032D.google.cloud.rec" - + "aptchaenterprise.v1.RetrieveLegacySecret" - + "KeyResponse\"A\332A\003key\202\323\344\223\0025\0223/v1/{key=proj" - + "ects/*/keys/*}:retrieveLegacySecretKey\022\223" - + "\001\n\006GetKey\0222.google.cloud.recaptchaenterp" - + "rise.v1.GetKeyRequest\032(.google.cloud.rec" - + "aptchaenterprise.v1.Key\"+\332A\004name\202\323\344\223\002\036\022\034" - + "/v1/{name=projects/*/keys/*}\022\255\001\n\tUpdateK" - + "ey\0225.google.cloud.recaptchaenterprise.v1" - + ".UpdateKeyRequest\032(.google.cloud.recaptc" - + "haenterprise.v1.Key\"?\332A\017key,update_mask\202" - + "\323\344\223\002\'2 /v1/{key.name=projects/*/keys/*}:" - + "\003key\022\207\001\n\tDeleteKey\0225.google.cloud.recapt" - + "chaenterprise.v1.DeleteKeyRequest\032\026.goog" - + "le.protobuf.Empty\"+\332A\004name\202\323\344\223\002\036*\034/v1/{n" - + "ame=projects/*/keys/*}\022\237\001\n\nMigrateKey\0226." - + "google.cloud.recaptchaenterprise.v1.Migr" - + "ateKeyRequest\032(.google.cloud.recaptchaen" - + "terprise.v1.Key\"/\202\323\344\223\002)\"$/v1/{name=proje" - + "cts/*/keys/*}:migrate:\001*\022\247\001\n\nGetMetrics\022" - + "6.google.cloud.recaptchaenterprise.v1.Ge" - + "tMetricsRequest\032,.google.cloud.recaptcha" - + "enterprise.v1.Metrics\"3\332A\004name\202\323\344\223\002&\022$/v" - + "1/{name=projects/*/keys/*/metrics}\022\351\001\n\024C" - + "reateFirewallPolicy\022@.google.cloud.recap" - + "tchaenterprise.v1.CreateFirewallPolicyRe" - + "quest\0323.google.cloud.recaptchaenterprise" - + ".v1.FirewallPolicy\"Z\332A\026parent,firewall_p" - + "olicy\202\323\344\223\002;\"(/v1/{parent=projects/*}/fir" - + "ewallpolicies:\017firewall_policy\022\326\001\n\024ListF" - + "irewallPolicies\022@.google.cloud.recaptcha" - + "enterprise.v1.ListFirewallPoliciesReques" - + "t\032A.google.cloud.recaptchaenterprise.v1." - + "ListFirewallPoliciesResponse\"9\332A\006parent\202" - + "\323\344\223\002*\022(/v1/{parent=projects/*}/firewallp" - + "olicies\022\300\001\n\021GetFirewallPolicy\022=.google.c" - + "loud.recaptchaenterprise.v1.GetFirewallP" - + "olicyRequest\0323.google.cloud.recaptchaent" - + "erprise.v1.FirewallPolicy\"7\332A\004name\202\323\344\223\002*" - + "\022(/v1/{name=projects/*/firewallpolicies/" - + "*}\022\376\001\n\024UpdateFirewallPolicy\022@.google.clo" - + "ud.recaptchaenterprise.v1.UpdateFirewall" - + "PolicyRequest\0323.google.cloud.recaptchaen" - + "terprise.v1.FirewallPolicy\"o\332A\033firewall_" - + "policy,update_mask\202\323\344\223\002K28/v1/{firewall_" - + "policy.name=projects/*/firewallpolicies/" - + "*}:\017firewall_policy\022\251\001\n\024DeleteFirewallPo" - + "licy\022@.google.cloud.recaptchaenterprise." - + "v1.DeleteFirewallPolicyRequest\032\026.google." - + "protobuf.Empty\"7\332A\004name\202\323\344\223\002**(/v1/{name" - + "=projects/*/firewallpolicies/*}\022\360\001\n\027Reor" - + "derFirewallPolicies\022C.google.cloud.recap" - + "tchaenterprise.v1.ReorderFirewallPolicie" - + "sRequest\032D.google.cloud.recaptchaenterpr" - + "ise.v1.ReorderFirewallPoliciesResponse\"J" - + "\332A\014parent,names\202\323\344\223\0025\"0/v1/{parent=proje" - + "cts/*}/firewallpolicies:reorder:\001*\022\346\001\n\030L" - + "istRelatedAccountGroups\022D.google.cloud.r" - + "ecaptchaenterprise.v1.ListRelatedAccount" - + "GroupsRequest\032E.google.cloud.recaptchaen" - + "terprise.v1.ListRelatedAccountGroupsResp" - + "onse\"=\332A\006parent\202\323\344\223\002.\022,/v1/{parent=proje" - + "cts/*}/relatedaccountgroups\022\222\002\n\"ListRela" - + "tedAccountGroupMemberships\022N.google.clou" - + "d.recaptchaenterprise.v1.ListRelatedAcco" - + "untGroupMembershipsRequest\032O.google.clou" - + "d.recaptchaenterprise.v1.ListRelatedAcco" - + "untGroupMembershipsResponse\"K\332A\006parent\202\323" - + "\344\223\002<\022:/v1/{parent=projects/*/relatedacco" - + "untgroups/*}/memberships\022\262\002\n$SearchRelat" - + "edAccountGroupMemberships\022P.google.cloud" - + ".recaptchaenterprise.v1.SearchRelatedAcc" - + "ountGroupMembershipsRequest\032Q.google.clo" - + "ud.recaptchaenterprise.v1.SearchRelatedA" - + "ccountGroupMembershipsResponse\"e\332A\031proje" - + "ct,hashed_account_id\202\323\344\223\002C\">/v1/{project" - + "=projects/*}/relatedaccountgroupmembersh" - + "ips:search:\001*\032V\312A\"recaptchaenterprise.go" - + "ogleapis.com\322A.https://www.googleapis.co" - + "m/auth/cloud-platformB\231\002\n!com.google.rec" - + "aptchaenterprise.v1B\030RecaptchaEnterprise" - + "ProtoP\001Z\\cloud.google.com/go/recaptchaen" - + "terprise/v2/apiv1/recaptchaenterprisepb;" - + "recaptchaenterprisepb\242\002\004GCRE\252\002#Google.Cl" - + "oud.RecaptchaEnterprise.V1\312\002#Google\\Clou" - + "d\\RecaptchaEnterprise\\V1\352\002&Google::Cloud" - + "::RecaptchaEnterprise::V1b\006proto3" + + "Action.BlockActionH\000\022t\n\030include_recaptch" + + "a_script\030\006 \001(\0132P.google.cloud.recaptchae" + + "nterprise.v1.FirewallAction.IncludeRecap" + + "tchaScriptActionH\000\022V\n\010redirect\030\005 \001(\0132B.g" + + "oogle.cloud.recaptchaenterprise.v1.Firew" + + "allAction.RedirectActionH\000\022Z\n\nsubstitute" + + "\030\003 \001(\0132D.google.cloud.recaptchaenterpris" + + "e.v1.FirewallAction.SubstituteActionH\000\022Y" + + "\n\nset_header\030\004 \001(\0132C.google.cloud.recapt" + + "chaenterprise.v1.FirewallAction.SetHeade" + + "rActionH\000\032\r\n\013AllowAction\032\r\n\013BlockAction\032" + + "\036\n\034IncludeRecaptchaScriptAction\032\020\n\016Redir" + + "ectAction\032%\n\020SubstituteAction\022\021\n\004path\030\001 " + + "\001(\tB\003\340A\001\0327\n\017SetHeaderAction\022\020\n\003key\030\001 \001(\t" + + "B\003\340A\001\022\022\n\005value\030\002 \001(\tB\003\340A\001B\027\n\025firewall_ac" + + "tion_oneof\"\241\002\n\016FirewallPolicy\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\010\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\021\n\004pa" + + "th\030\004 \001(\tB\003\340A\001\022\026\n\tcondition\030\005 \001(\tB\003\340A\001\022I\n" + + "\007actions\030\006 \003(\01323.google.cloud.recaptchae" + + "nterprise.v1.FirewallActionB\003\340A\001:l\352Ai\n1r" + + "ecaptchaenterprise.googleapis.com/Firewa" + + "llPolicy\0224projects/{project}/firewallpol" + + "icies/{firewallpolicy}\"\266\001\n)ListRelatedAc" + + "countGroupMembershipsRequest\022X\n\006parent\030\001" + + " \001(\tBH\340A\002\372AB\022@recaptchaenterprise.google" + + "apis.com/RelatedAccountGroupMembership\022\026" + + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" + + "(\tB\003\340A\001\"\264\001\n*ListRelatedAccountGroupMembe" + + "rshipsResponse\022m\n!related_account_group_" + + "memberships\030\001 \003(\0132B.google.cloud.recaptc" + + "haenterprise.v1.RelatedAccountGroupMembe" + + "rship\022\027\n\017next_page_token\030\002 \001(\t\"\242\001\n\037ListR" + + "elatedAccountGroupsRequest\022N\n\006parent\030\001 \001" + + "(\tB>\340A\002\372A8\0226recaptchaenterprise.googleap" + + "is.com/RelatedAccountGroup\022\026\n\tpage_size\030" + + "\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\225\001\n " + + "ListRelatedAccountGroupsResponse\022X\n\026rela" + + "ted_account_groups\030\001 \003(\01328.google.cloud." + + "recaptchaenterprise.v1.RelatedAccountGro" + + "up\022\027\n\017next_page_token\030\002 \001(\t\"\364\001\n+SearchRe" + + "latedAccountGroupMembershipsRequest\022Y\n\007p" + + "roject\030\001 \001(\tBH\340A\002\372AB\022@recaptchaenterpris" + + "e.googleapis.com/RelatedAccountGroupMemb" + + "ership\022\027\n\naccount_id\030\005 \001(\tB\003\340A\001\022 \n\021hashe" + + "d_account_id\030\002 \001(\014B\005\030\001\340A\001\022\026\n\tpage_size\030\003" + + " \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"\266\001\n,S" + + "earchRelatedAccountGroupMembershipsRespo" + + "nse\022m\n!related_account_group_memberships" + + "\030\001 \003(\0132B.google.cloud.recaptchaenterpris" + + "e.v1.RelatedAccountGroupMembership\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\316\002\n\035RelatedAccountGr" + + "oupMembership\022Y\n\004name\030\001 \001(\tBK\340A\010\340A\002\372AB\n@" + + "recaptchaenterprise.googleapis.com/Relat" + + "edAccountGroupMembership\022\022\n\naccount_id\030\004" + + " \001(\t\022\035\n\021hashed_account_id\030\002 \001(\014B\002\030\001:\236\001\352A" + + "\232\001\n@recaptchaenterprise.googleapis.com/R" + + "elatedAccountGroupMembership\022Vprojects/{" + + "project}/relatedaccountgroups/{relatedac" + + "countgroup}/memberships/{membership}\"\342\001\n", + "\023RelatedAccountGroup\022O\n\004name\030\001 \001(\tBA\340A\010\340" + + "A\002\372A8\n6recaptchaenterprise.googleapis.co" + + "m/RelatedAccountGroup:z\352Aw\n6recaptchaent" + + "erprise.googleapis.com/RelatedAccountGro" + + "up\022=projects/{project}/relatedaccountgro" + + "ups/{relatedaccountgroup}\"\353\002\n\013WafSetting" + + "s\022U\n\013waf_service\030\001 \001(\0162;.google.cloud.re" + + "captchaenterprise.v1.WafSettings.WafServ" + + "iceB\003\340A\002\022U\n\013waf_feature\030\002 \001(\0162;.google.c" + + "loud.recaptchaenterprise.v1.WafSettings." + + "WafFeatureB\003\340A\002\"o\n\nWafFeature\022\033\n\027WAF_FEA" + + "TURE_UNSPECIFIED\020\000\022\022\n\016CHALLENGE_PAGE\020\001\022\021" + + "\n\rSESSION_TOKEN\020\002\022\020\n\014ACTION_TOKEN\020\003\022\013\n\007E" + + "XPRESS\020\005\"=\n\nWafService\022\033\n\027WAF_SERVICE_UN" + + "SPECIFIED\020\000\022\006\n\002CA\020\001\022\n\n\006FASTLY\020\0032\331\037\n\032Reca" + + "ptchaEnterpriseService\022\316\001\n\020CreateAssessm" + + "ent\022<.google.cloud.recaptchaenterprise.v" + + "1.CreateAssessmentRequest\032/.google.cloud" + + ".recaptchaenterprise.v1.Assessment\"K\332A\021p" + + "arent,assessment\202\323\344\223\0021\"#/v1/{parent=proj" + + "ects/*}/assessments:\nassessment\022\340\001\n\022Anno" + + "tateAssessment\022>.google.cloud.recaptchae" + + "nterprise.v1.AnnotateAssessmentRequest\032?" + + ".google.cloud.recaptchaenterprise.v1.Ann" + + "otateAssessmentResponse\"I\332A\017name,annotat" + + "ion\202\323\344\223\0021\",/v1/{name=projects/*/assessme" + + "nts/*}:annotate:\001*\022\244\001\n\tCreateKey\0225.googl" + + "e.cloud.recaptchaenterprise.v1.CreateKey" + + "Request\032(.google.cloud.recaptchaenterpri" + + "se.v1.Key\"6\332A\nparent,key\202\323\344\223\002#\"\034/v1/{par" + + "ent=projects/*}/keys:\003key\022\246\001\n\010ListKeys\0224" + + ".google.cloud.recaptchaenterprise.v1.Lis" + + "tKeysRequest\0325.google.cloud.recaptchaent" + + "erprise.v1.ListKeysResponse\"-\332A\006parent\202\323" + + "\344\223\002\036\022\034/v1/{parent=projects/*}/keys\022\347\001\n\027R" + + "etrieveLegacySecretKey\022C.google.cloud.re" + + "captchaenterprise.v1.RetrieveLegacySecre" + + "tKeyRequest\032D.google.cloud.recaptchaente" + + "rprise.v1.RetrieveLegacySecretKeyRespons" + + "e\"A\332A\003key\202\323\344\223\0025\0223/v1/{key=projects/*/key" + + "s/*}:retrieveLegacySecretKey\022\223\001\n\006GetKey\022" + + "2.google.cloud.recaptchaenterprise.v1.Ge" + + "tKeyRequest\032(.google.cloud.recaptchaente" + + "rprise.v1.Key\"+\332A\004name\202\323\344\223\002\036\022\034/v1/{name=" + + "projects/*/keys/*}\022\255\001\n\tUpdateKey\0225.googl" + + "e.cloud.recaptchaenterprise.v1.UpdateKey" + + "Request\032(.google.cloud.recaptchaenterpri" + + "se.v1.Key\"?\332A\017key,update_mask\202\323\344\223\002\'2 /v1" + + "/{key.name=projects/*/keys/*}:\003key\022\207\001\n\tD" + + "eleteKey\0225.google.cloud.recaptchaenterpr" + + "ise.v1.DeleteKeyRequest\032\026.google.protobu" + + "f.Empty\"+\332A\004name\202\323\344\223\002\036*\034/v1/{name=projec" + + "ts/*/keys/*}\022\237\001\n\nMigrateKey\0226.google.clo" + + "ud.recaptchaenterprise.v1.MigrateKeyRequ" + + "est\032(.google.cloud.recaptchaenterprise.v" + + "1.Key\"/\202\323\344\223\002)\"$/v1/{name=projects/*/keys" + + "/*}:migrate:\001*\022\247\001\n\nGetMetrics\0226.google.c" + + "loud.recaptchaenterprise.v1.GetMetricsRe" + + "quest\032,.google.cloud.recaptchaenterprise" + + ".v1.Metrics\"3\332A\004name\202\323\344\223\002&\022$/v1/{name=pr" + + "ojects/*/keys/*/metrics}\022\351\001\n\024CreateFirew" + + "allPolicy\022@.google.cloud.recaptchaenterp" + + "rise.v1.CreateFirewallPolicyRequest\0323.go" + + "ogle.cloud.recaptchaenterprise.v1.Firewa" + + "llPolicy\"Z\332A\026parent,firewall_policy\202\323\344\223\002" + + ";\"(/v1/{parent=projects/*}/firewallpolic" + + "ies:\017firewall_policy\022\326\001\n\024ListFirewallPol" + + "icies\022@.google.cloud.recaptchaenterprise" + + ".v1.ListFirewallPoliciesRequest\032A.google" + + ".cloud.recaptchaenterprise.v1.ListFirewa" + + "llPoliciesResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1" + + "/{parent=projects/*}/firewallpolicies\022\300\001" + + "\n\021GetFirewallPolicy\022=.google.cloud.recap" + + "tchaenterprise.v1.GetFirewallPolicyReque" + + "st\0323.google.cloud.recaptchaenterprise.v1" + + ".FirewallPolicy\"7\332A\004name\202\323\344\223\002*\022(/v1/{nam" + + "e=projects/*/firewallpolicies/*}\022\376\001\n\024Upd" + + "ateFirewallPolicy\022@.google.cloud.recaptc" + + "haenterprise.v1.UpdateFirewallPolicyRequ" + + "est\0323.google.cloud.recaptchaenterprise.v" + + "1.FirewallPolicy\"o\332A\033firewall_policy,upd" + + "ate_mask\202\323\344\223\002K28/v1/{firewall_policy.nam" + + "e=projects/*/firewallpolicies/*}:\017firewa" + + "ll_policy\022\251\001\n\024DeleteFirewallPolicy\022@.goo" + + "gle.cloud.recaptchaenterprise.v1.DeleteF" + + "irewallPolicyRequest\032\026.google.protobuf.E" + + "mpty\"7\332A\004name\202\323\344\223\002**(/v1/{name=projects/" + + "*/firewallpolicies/*}\022\360\001\n\027ReorderFirewal" + + "lPolicies\022C.google.cloud.recaptchaenterp" + + "rise.v1.ReorderFirewallPoliciesRequest\032D" + + ".google.cloud.recaptchaenterprise.v1.Reo" + + "rderFirewallPoliciesResponse\"J\332A\014parent," + + "names\202\323\344\223\0025\"0/v1/{parent=projects/*}/fir" + + "ewallpolicies:reorder:\001*\022\346\001\n\030ListRelated" + + "AccountGroups\022D.google.cloud.recaptchaen" + + "terprise.v1.ListRelatedAccountGroupsRequ" + + "est\032E.google.cloud.recaptchaenterprise.v" + + "1.ListRelatedAccountGroupsResponse\"=\332A\006p" + + "arent\202\323\344\223\002.\022,/v1/{parent=projects/*}/rel" + + "atedaccountgroups\022\222\002\n\"ListRelatedAccount" + + "GroupMemberships\022N.google.cloud.recaptch" + + "aenterprise.v1.ListRelatedAccountGroupMe" + + "mbershipsRequest\032O.google.cloud.recaptch" + + "aenterprise.v1.ListRelatedAccountGroupMe" + + "mbershipsResponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/" + + "{parent=projects/*/relatedaccountgroups/" + + "*}/memberships\022\262\002\n$SearchRelatedAccountG" + + "roupMemberships\022P.google.cloud.recaptcha" + + "enterprise.v1.SearchRelatedAccountGroupM" + + "embershipsRequest\032Q.google.cloud.recaptc" + + "haenterprise.v1.SearchRelatedAccountGrou" + + "pMembershipsResponse\"e\332A\031project,hashed_" + + "account_id\202\323\344\223\002C\">/v1/{project=projects/" + + "*}/relatedaccountgroupmemberships:search" + + ":\001*\032V\312A\"recaptchaenterprise.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformB\231\002\n!com.google.recaptchaente" + + "rprise.v1B\030RecaptchaEnterpriseProtoP\001Z\\c" + + "loud.google.com/go/recaptchaenterprise/v" + + "2/apiv1/recaptchaenterprisepb;recaptchae" + + "nterprisepb\242\002\004GCRE\252\002#Google.Cloud.Recapt" + + "chaEnterprise.V1\312\002#Google\\Cloud\\Recaptch" + + "aEnterprise\\V1\352\002&Google::Cloud::Recaptch" + + "aEnterprise::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1414,7 +1422,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor, new java.lang.String[] { - "Allow", "Block", "Redirect", "Substitute", "SetHeader", "FirewallActionOneof", + "Allow", + "Block", + "IncludeRecaptchaScript", + "Redirect", + "Substitute", + "SetHeader", + "FirewallActionOneof", }); internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_AllowAction_descriptor = internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor @@ -1432,10 +1446,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_BlockAction_descriptor, new java.lang.String[] {}); - internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_IncludeRecaptchaScriptAction_descriptor = internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor .getNestedTypes() .get(2); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_IncludeRecaptchaScriptAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_IncludeRecaptchaScriptAction_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor = + internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor + .getNestedTypes() + .get(3); internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_RedirectAction_descriptor, @@ -1443,7 +1465,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor = internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor .getNestedTypes() - .get(3); + .get(4); internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SubstituteAction_descriptor, @@ -1453,7 +1475,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor = internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_descriptor .getNestedTypes() - .get(4); + .get(5); internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_recaptchaenterprise_v1_FirewallAction_SetHeaderAction_descriptor, diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java index 8f5c5bbfe36b..5e66016a96f1 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembership.java @@ -192,7 +192,7 @@ public com.google.protobuf.ByteString getAccountIdBytes() { * bytes hashed_account_id = 2 [deprecated = true]; * * @deprecated google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id - * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1869 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1880 * @return The hashedAccountId. */ @java.lang.Override @@ -846,7 +846,7 @@ public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { * * @deprecated * google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1869 + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1880 * @return The hashedAccountId. */ @java.lang.Override @@ -868,7 +868,7 @@ public com.google.protobuf.ByteString getHashedAccountId() { * * @deprecated * google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1869 + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1880 * @param value The hashedAccountId to set. * @return This builder for chaining. */ @@ -896,7 +896,7 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { * * @deprecated * google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id is - * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1869 + * deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1880 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java index bb0852af1df7..576fb0b58a8b 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/RelatedAccountGroupMembershipOrBuilder.java @@ -97,7 +97,7 @@ public interface RelatedAccountGroupMembershipOrBuilder * bytes hashed_account_id = 2 [deprecated = true]; * * @deprecated google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership.hashed_account_id - * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1869 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1880 * @return The hashedAccountId. */ @java.lang.Deprecated diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java index adf512bab299..489158747c82 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequest.java @@ -204,7 +204,7 @@ public com.google.protobuf.ByteString getAccountIdBytes() { * * @deprecated * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id - * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1815 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1826 * @return The hashedAccountId. */ @java.lang.Override @@ -1016,7 +1016,7 @@ public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { * * @deprecated * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id - * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1815 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1826 * @return The hashedAccountId. */ @java.lang.Override @@ -1041,7 +1041,7 @@ public com.google.protobuf.ByteString getHashedAccountId() { * * @deprecated * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id - * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1815 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1826 * @param value The hashedAccountId to set. * @return This builder for chaining. */ @@ -1072,7 +1072,7 @@ public Builder setHashedAccountId(com.google.protobuf.ByteString value) { * * @deprecated * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id - * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1815 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1826 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java index 3ad73f6d7f5e..2f7b258a816f 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/SearchRelatedAccountGroupMembershipsRequestOrBuilder.java @@ -104,7 +104,7 @@ public interface SearchRelatedAccountGroupMembershipsRequestOrBuilder * * @deprecated * google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest.hashed_account_id - * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1815 + * is deprecated. See google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto;l=1826 * @return The hashedAccountId. */ @java.lang.Deprecated diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto index e01e13f71792..ee35519866d3 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/src/main/proto/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto @@ -1631,6 +1631,13 @@ message FirewallAction { // hitting the backend. message BlockAction {} + // An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript + // code into the HTML returned by the site backend. This reCAPTCHA + // script is tasked with collecting user signals on the requested web page, + // issuing tokens as a cookie within the site domain, and enabling their + // utilization in subsequent page requests. + message IncludeRecaptchaScriptAction {} + // A redirect action returns a 307 (temporary redirect) response, pointing // the user to a ReCaptcha interstitial page to attach a token. message RedirectAction {} @@ -1663,6 +1670,10 @@ message FirewallAction { // error code. BlockAction block = 2; + // This action will inject reCAPTCHA JavaScript code into the HTML page + // returned by the site backend. + IncludeRecaptchaScriptAction include_recaptcha_script = 6; + // This action will redirect the request to a ReCaptcha interstitial to // attach a token. RedirectAction redirect = 5; diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java index 038dd8d7f880..ab17ba9c707e 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClient.java @@ -476,7 +476,7 @@ * * *

                                                                                      FetchCaCerts - *

                                                                                      FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] resources in the [CaPool][google.cloud.security.privateca.v1.CaPool]. + *

                                                                                      FetchCaCerts returns the current trust anchor for the [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains for all Certificate Authorities in the ENABLED, DISABLED, or STAGED states. * *

                                                                                      Request object method variants only take one parameter, a request object, which must be constructed before the call.

                                                                                      *
                                                                                        @@ -4122,8 +4122,7 @@ public final UnaryCallable deleteCaPoolCallable( /** * FetchCaCerts returns the current trust anchor for the * [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains - * for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool]. + * for all Certificate Authorities in the ENABLED, DISABLED, or STAGED states. * *

                                                                                        Sample code: * @@ -4157,8 +4156,7 @@ public final FetchCaCertsResponse fetchCaCerts(CaPoolName caPool) { /** * FetchCaCerts returns the current trust anchor for the * [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains - * for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool]. + * for all Certificate Authorities in the ENABLED, DISABLED, or STAGED states. * *

                                                                                        Sample code: * @@ -4189,8 +4187,7 @@ public final FetchCaCertsResponse fetchCaCerts(String caPool) { /** * FetchCaCerts returns the current trust anchor for the * [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains - * for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool]. + * for all Certificate Authorities in the ENABLED, DISABLED, or STAGED states. * *

                                                                                        Sample code: * @@ -4222,8 +4219,7 @@ public final FetchCaCertsResponse fetchCaCerts(FetchCaCertsRequest request) { /** * FetchCaCerts returns the current trust anchor for the * [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA certificate chains - * for all ACTIVE [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool]. + * for all Certificate Authorities in the ENABLED, DISABLED, or STAGED states. * *

                                                                                        Sample code: * diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1/reflect-config.json b/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1/reflect-config.json index 7a4c2201b45c..dc646eae012e 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1/reflect-config.json +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/resources/META-INF/native-image/com.google.cloud.security.privateca.v1/reflect-config.json @@ -746,6 +746,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.security.privateca.v1.CertificateConfig$KeyId", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.security.privateca.v1.CertificateConfig$KeyId$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.security.privateca.v1.CertificateConfig$SubjectConfig", "queryAllDeclaredConstructors": true, diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java b/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java index 8cf9501b8bd2..bc4eb68cac8e 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientHttpJsonTest.java @@ -2855,6 +2855,7 @@ public void createCertificateTemplateTest() throws Exception { .setName( CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") .toString()) + .setMaximumLifetime(Duration.newBuilder().build()) .setPredefinedValues(X509Parameters.newBuilder().build()) .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) @@ -2922,6 +2923,7 @@ public void createCertificateTemplateTest2() throws Exception { .setName( CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") .toString()) + .setMaximumLifetime(Duration.newBuilder().build()) .setPredefinedValues(X509Parameters.newBuilder().build()) .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) @@ -3083,6 +3085,7 @@ public void getCertificateTemplateTest() throws Exception { .setName( CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") .toString()) + .setMaximumLifetime(Duration.newBuilder().build()) .setPredefinedValues(X509Parameters.newBuilder().build()) .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) @@ -3138,6 +3141,7 @@ public void getCertificateTemplateTest2() throws Exception { .setName( CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") .toString()) + .setMaximumLifetime(Duration.newBuilder().build()) .setPredefinedValues(X509Parameters.newBuilder().build()) .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) @@ -3295,6 +3299,7 @@ public void updateCertificateTemplateTest() throws Exception { .setName( CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") .toString()) + .setMaximumLifetime(Duration.newBuilder().build()) .setPredefinedValues(X509Parameters.newBuilder().build()) .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) @@ -3316,6 +3321,7 @@ public void updateCertificateTemplateTest() throws Exception { .setName( CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") .toString()) + .setMaximumLifetime(Duration.newBuilder().build()) .setPredefinedValues(X509Parameters.newBuilder().build()) .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) @@ -3358,6 +3364,7 @@ public void updateCertificateTemplateExceptionTest() throws Exception { .setName( CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") .toString()) + .setMaximumLifetime(Duration.newBuilder().build()) .setPredefinedValues(X509Parameters.newBuilder().build()) .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java b/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java index 330fb26c986e..b2761c1c3383 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/test/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceClientTest.java @@ -2548,6 +2548,7 @@ public void createCertificateTemplateTest() throws Exception { .setName( CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") .toString()) + .setMaximumLifetime(Duration.newBuilder().build()) .setPredefinedValues(X509Parameters.newBuilder().build()) .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) @@ -2615,6 +2616,7 @@ public void createCertificateTemplateTest2() throws Exception { .setName( CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") .toString()) + .setMaximumLifetime(Duration.newBuilder().build()) .setPredefinedValues(X509Parameters.newBuilder().build()) .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) @@ -2770,6 +2772,7 @@ public void getCertificateTemplateTest() throws Exception { .setName( CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") .toString()) + .setMaximumLifetime(Duration.newBuilder().build()) .setPredefinedValues(X509Parameters.newBuilder().build()) .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) @@ -2820,6 +2823,7 @@ public void getCertificateTemplateTest2() throws Exception { .setName( CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") .toString()) + .setMaximumLifetime(Duration.newBuilder().build()) .setPredefinedValues(X509Parameters.newBuilder().build()) .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) @@ -2960,6 +2964,7 @@ public void updateCertificateTemplateTest() throws Exception { .setName( CertificateTemplateName.of("[PROJECT]", "[LOCATION]", "[CERTIFICATE_TEMPLATE]") .toString()) + .setMaximumLifetime(Duration.newBuilder().build()) .setPredefinedValues(X509Parameters.newBuilder().build()) .setIdentityConstraints(CertificateIdentityConstraints.newBuilder().build()) .setPassthroughExtensions(CertificateExtensionConstraints.newBuilder().build()) diff --git a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java index 68e7131854f9..45161e2f4196 100644 --- a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java +++ b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateAuthorityServiceGrpc.java @@ -1910,9 +1910,8 @@ default void deleteCaPool( *

                                                                                              * FetchCaCerts returns the current trust anchor for the
                                                                                              * [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA
                                                                                        -     * certificate chains for all ACTIVE
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * certificate chains for all Certificate Authorities in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        */ default void fetchCaCerts( @@ -2461,9 +2460,8 @@ public void deleteCaPool( *
                                                                                              * FetchCaCerts returns the current trust anchor for the
                                                                                              * [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA
                                                                                        -     * certificate chains for all ACTIVE
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * certificate chains for all Certificate Authorities in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        */ public void fetchCaCerts( @@ -2944,9 +2942,8 @@ public com.google.longrunning.Operation deleteCaPool( *
                                                                                              * FetchCaCerts returns the current trust anchor for the
                                                                                              * [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA
                                                                                        -     * certificate chains for all ACTIVE
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * certificate chains for all Certificate Authorities in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        */ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse fetchCaCerts( @@ -3414,9 +3411,8 @@ protected CertificateAuthorityServiceFutureStub build( *
                                                                                              * FetchCaCerts returns the current trust anchor for the
                                                                                              * [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA
                                                                                        -     * certificate chains for all ACTIVE
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in the [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * certificate chains for all Certificate Authorities in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        */ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java index 2b8077a0ae50..8fd5fc31a828 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfig.java @@ -72,12 +72,12 @@ public interface SubjectConfigOrBuilder * * *
                                                                                        -     * Required. Contains distinguished name fields such as the common name,
                                                                                        +     * Optional. Contains distinguished name fields such as the common name,
                                                                                              * location and organization.
                                                                                              * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the subject field is set. @@ -87,12 +87,12 @@ public interface SubjectConfigOrBuilder * * *
                                                                                        -     * Required. Contains distinguished name fields such as the common name,
                                                                                        +     * Optional. Contains distinguished name fields such as the common name,
                                                                                              * location and organization.
                                                                                              * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The subject. @@ -102,12 +102,12 @@ public interface SubjectConfigOrBuilder * * *
                                                                                        -     * Required. Contains distinguished name fields such as the common name,
                                                                                        +     * Optional. Contains distinguished name fields such as the common name,
                                                                                              * location and organization.
                                                                                              * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuilder(); @@ -203,12 +203,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                                                                                        -     * Required. Contains distinguished name fields such as the common name,
                                                                                        +     * Optional. Contains distinguished name fields such as the common name,
                                                                                              * location and organization.
                                                                                              * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the subject field is set. @@ -221,12 +221,12 @@ public boolean hasSubject() { * * *
                                                                                        -     * Required. Contains distinguished name fields such as the common name,
                                                                                        +     * Optional. Contains distinguished name fields such as the common name,
                                                                                              * location and organization.
                                                                                              * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The subject. @@ -241,12 +241,12 @@ public com.google.cloud.security.privateca.v1.Subject getSubject() { * * *
                                                                                        -     * Required. Contains distinguished name fields such as the common name,
                                                                                        +     * Optional. Contains distinguished name fields such as the common name,
                                                                                              * location and organization.
                                                                                              * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -737,12 +737,12 @@ public Builder mergeFrom( * * *
                                                                                        -       * Required. Contains distinguished name fields such as the common name,
                                                                                        +       * Optional. Contains distinguished name fields such as the common name,
                                                                                                * location and organization.
                                                                                                * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the subject field is set. @@ -754,12 +754,12 @@ public boolean hasSubject() { * * *
                                                                                        -       * Required. Contains distinguished name fields such as the common name,
                                                                                        +       * Optional. Contains distinguished name fields such as the common name,
                                                                                                * location and organization.
                                                                                                * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The subject. @@ -777,12 +777,12 @@ public com.google.cloud.security.privateca.v1.Subject getSubject() { * * *
                                                                                        -       * Required. Contains distinguished name fields such as the common name,
                                                                                        +       * Optional. Contains distinguished name fields such as the common name,
                                                                                                * location and organization.
                                                                                                * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSubject(com.google.cloud.security.privateca.v1.Subject value) { @@ -802,12 +802,12 @@ public Builder setSubject(com.google.cloud.security.privateca.v1.Subject value) * * *
                                                                                        -       * Required. Contains distinguished name fields such as the common name,
                                                                                        +       * Optional. Contains distinguished name fields such as the common name,
                                                                                                * location and organization.
                                                                                                * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setSubject( @@ -825,12 +825,12 @@ public Builder setSubject( * * *
                                                                                        -       * Required. Contains distinguished name fields such as the common name,
                                                                                        +       * Optional. Contains distinguished name fields such as the common name,
                                                                                                * location and organization.
                                                                                                * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeSubject(com.google.cloud.security.privateca.v1.Subject value) { @@ -855,12 +855,12 @@ public Builder mergeSubject(com.google.cloud.security.privateca.v1.Subject value * * *
                                                                                        -       * Required. Contains distinguished name fields such as the common name,
                                                                                        +       * Optional. Contains distinguished name fields such as the common name,
                                                                                                * location and organization.
                                                                                                * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearSubject() { @@ -877,12 +877,12 @@ public Builder clearSubject() { * * *
                                                                                        -       * Required. Contains distinguished name fields such as the common name,
                                                                                        +       * Optional. Contains distinguished name fields such as the common name,
                                                                                                * location and organization.
                                                                                                * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.security.privateca.v1.Subject.Builder getSubjectBuilder() { @@ -894,12 +894,12 @@ public com.google.cloud.security.privateca.v1.Subject.Builder getSubjectBuilder( * * *
                                                                                        -       * Required. Contains distinguished name fields such as the common name,
                                                                                        +       * Optional. Contains distinguished name fields such as the common name,
                                                                                                * location and organization.
                                                                                                * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuilder() { @@ -915,12 +915,12 @@ public com.google.cloud.security.privateca.v1.SubjectOrBuilder getSubjectOrBuild * * *
                                                                                        -       * Required. Contains distinguished name fields such as the common name,
                                                                                        +       * Optional. Contains distinguished name fields such as the common name,
                                                                                                * location and organization.
                                                                                                * 
                                                                                        * * - * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.security.privateca.v1.Subject subject = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -1217,6 +1217,666 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface KeyIdOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.security.privateca.v1.CertificateConfig.KeyId) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                        +     * Required. The value of this KeyId encoded in lowercase hexadecimal. This
                                                                                        +     * is most likely the 160 bit SHA-1 hash of the public key.
                                                                                        +     * 
                                                                                        + * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The keyId. + */ + java.lang.String getKeyId(); + /** + * + * + *
                                                                                        +     * Required. The value of this KeyId encoded in lowercase hexadecimal. This
                                                                                        +     * is most likely the 160 bit SHA-1 hash of the public key.
                                                                                        +     * 
                                                                                        + * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for keyId. + */ + com.google.protobuf.ByteString getKeyIdBytes(); + } + /** + * + * + *
                                                                                        +   * A KeyId identifies a specific public key, usually by hashing the public
                                                                                        +   * key.
                                                                                        +   * 
                                                                                        + * + * Protobuf type {@code google.cloud.security.privateca.v1.CertificateConfig.KeyId} + */ + public static final class KeyId extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1.CertificateConfig.KeyId) + KeyIdOrBuilder { + private static final long serialVersionUID = 0L; + // Use KeyId.newBuilder() to construct. + private KeyId(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private KeyId() { + keyId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new KeyId(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateConfig_KeyId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateConfig_KeyId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.class, + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.Builder.class); + } + + public static final int KEY_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object keyId_ = ""; + /** + * + * + *
                                                                                        +     * Required. The value of this KeyId encoded in lowercase hexadecimal. This
                                                                                        +     * is most likely the 160 bit SHA-1 hash of the public key.
                                                                                        +     * 
                                                                                        + * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The keyId. + */ + @java.lang.Override + public java.lang.String getKeyId() { + java.lang.Object ref = keyId_; + 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(); + keyId_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +     * Required. The value of this KeyId encoded in lowercase hexadecimal. This
                                                                                        +     * is most likely the 160 bit SHA-1 hash of the public key.
                                                                                        +     * 
                                                                                        + * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for keyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyIdBytes() { + java.lang.Object ref = keyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyId_ = 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(keyId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyId_); + } + 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(keyId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyId_); + } + 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.security.privateca.v1.CertificateConfig.KeyId)) { + return super.equals(obj); + } + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId other = + (com.google.cloud.security.privateca.v1.CertificateConfig.KeyId) obj; + + if (!getKeyId().equals(other.getKeyId())) 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) + KEY_ID_FIELD_NUMBER; + hash = (53 * hash) + getKeyId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.security.privateca.v1.CertificateConfig.KeyId parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.security.privateca.v1.CertificateConfig.KeyId 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.security.privateca.v1.CertificateConfig.KeyId parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.security.privateca.v1.CertificateConfig.KeyId 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.security.privateca.v1.CertificateConfig.KeyId parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.security.privateca.v1.CertificateConfig.KeyId parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.security.privateca.v1.CertificateConfig.KeyId parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.security.privateca.v1.CertificateConfig.KeyId 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.security.privateca.v1.CertificateConfig.KeyId parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.security.privateca.v1.CertificateConfig.KeyId 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.security.privateca.v1.CertificateConfig.KeyId parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.security.privateca.v1.CertificateConfig.KeyId 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.security.privateca.v1.CertificateConfig.KeyId prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                                                                                        +     * A KeyId identifies a specific public key, usually by hashing the public
                                                                                        +     * key.
                                                                                        +     * 
                                                                                        + * + * Protobuf type {@code google.cloud.security.privateca.v1.CertificateConfig.KeyId} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1.CertificateConfig.KeyId) + com.google.cloud.security.privateca.v1.CertificateConfig.KeyIdOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateConfig_KeyId_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateConfig_KeyId_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.class, + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.Builder.class); + } + + // Construct using com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.security.privateca.v1.PrivateCaResourcesProto + .internal_static_google_cloud_security_privateca_v1_CertificateConfig_KeyId_descriptor; + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.CertificateConfig.KeyId + getDefaultInstanceForType() { + return com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.CertificateConfig.KeyId build() { + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.security.privateca.v1.CertificateConfig.KeyId buildPartial() { + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId result = + new com.google.cloud.security.privateca.v1.CertificateConfig.KeyId(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keyId_ = keyId_; + } + } + + @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.security.privateca.v1.CertificateConfig.KeyId) { + return mergeFrom((com.google.cloud.security.privateca.v1.CertificateConfig.KeyId) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId other) { + if (other + == com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.getDefaultInstance()) + return this; + if (!other.getKeyId().isEmpty()) { + keyId_ = other.keyId_; + 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: + { + keyId_ = 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 keyId_ = ""; + /** + * + * + *
                                                                                        +       * Required. The value of this KeyId encoded in lowercase hexadecimal. This
                                                                                        +       * is most likely the 160 bit SHA-1 hash of the public key.
                                                                                        +       * 
                                                                                        + * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The keyId. + */ + public java.lang.String getKeyId() { + java.lang.Object ref = keyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +       * Required. The value of this KeyId encoded in lowercase hexadecimal. This
                                                                                        +       * is most likely the 160 bit SHA-1 hash of the public key.
                                                                                        +       * 
                                                                                        + * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for keyId. + */ + public com.google.protobuf.ByteString getKeyIdBytes() { + java.lang.Object ref = keyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +       * Required. The value of this KeyId encoded in lowercase hexadecimal. This
                                                                                        +       * is most likely the 160 bit SHA-1 hash of the public key.
                                                                                        +       * 
                                                                                        + * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The keyId to set. + * @return This builder for chaining. + */ + public Builder setKeyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + keyId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * Required. The value of this KeyId encoded in lowercase hexadecimal. This
                                                                                        +       * is most likely the 160 bit SHA-1 hash of the public key.
                                                                                        +       * 
                                                                                        + * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearKeyId() { + keyId_ = getDefaultInstance().getKeyId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * Required. The value of this KeyId encoded in lowercase hexadecimal. This
                                                                                        +       * is most likely the 160 bit SHA-1 hash of the public key.
                                                                                        +       * 
                                                                                        + * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for keyId to set. + * @return This builder for chaining. + */ + public Builder setKeyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyId_ = 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.security.privateca.v1.CertificateConfig.KeyId) + } + + // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1.CertificateConfig.KeyId) + private static final com.google.cloud.security.privateca.v1.CertificateConfig.KeyId + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1.CertificateConfig.KeyId(); + } + + public static com.google.cloud.security.privateca.v1.CertificateConfig.KeyId + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KeyId 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.security.privateca.v1.CertificateConfig.KeyId + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int SUBJECT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.security.privateca.v1.CertificateConfig.SubjectConfig subjectConfig_; @@ -1416,6 +2076,72 @@ public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrB : publicKey_; } + public static final int SUBJECT_KEY_ID_FIELD_NUMBER = 4; + private com.google.cloud.security.privateca.v1.CertificateConfig.KeyId subjectKeyId_; + /** + * + * + *
                                                                                        +   * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +   * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +   * originally created outside CAS, which was not generated using method (1)
                                                                                        +   * described in RFC 5280 section 4.2.1.2.
                                                                                        +   * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the subjectKeyId field is set. + */ + @java.lang.Override + public boolean hasSubjectKeyId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                                                                        +   * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +   * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +   * originally created outside CAS, which was not generated using method (1)
                                                                                        +   * described in RFC 5280 section 4.2.1.2.
                                                                                        +   * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The subjectKeyId. + */ + @java.lang.Override + public com.google.cloud.security.privateca.v1.CertificateConfig.KeyId getSubjectKeyId() { + return subjectKeyId_ == null + ? com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.getDefaultInstance() + : subjectKeyId_; + } + /** + * + * + *
                                                                                        +   * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +   * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +   * originally created outside CAS, which was not generated using method (1)
                                                                                        +   * described in RFC 5280 section 4.2.1.2.
                                                                                        +   * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.security.privateca.v1.CertificateConfig.KeyIdOrBuilder + getSubjectKeyIdOrBuilder() { + return subjectKeyId_ == null + ? com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.getDefaultInstance() + : subjectKeyId_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1439,6 +2165,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getPublicKey()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getSubjectKeyId()); + } getUnknownFields().writeTo(output); } @@ -1457,6 +2186,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPublicKey()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSubjectKeyId()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1485,6 +2217,10 @@ public boolean equals(final java.lang.Object obj) { if (hasPublicKey()) { if (!getPublicKey().equals(other.getPublicKey())) return false; } + if (hasSubjectKeyId() != other.hasSubjectKeyId()) return false; + if (hasSubjectKeyId()) { + if (!getSubjectKeyId().equals(other.getSubjectKeyId())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1508,6 +2244,10 @@ public int hashCode() { hash = (37 * hash) + PUBLIC_KEY_FIELD_NUMBER; hash = (53 * hash) + getPublicKey().hashCode(); } + if (hasSubjectKeyId()) { + hash = (37 * hash) + SUBJECT_KEY_ID_FIELD_NUMBER; + hash = (53 * hash) + getSubjectKeyId().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1654,6 +2394,7 @@ private void maybeForceBuilderInitialization() { getSubjectConfigFieldBuilder(); getX509ConfigFieldBuilder(); getPublicKeyFieldBuilder(); + getSubjectKeyIdFieldBuilder(); } } @@ -1676,6 +2417,11 @@ public Builder clear() { publicKeyBuilder_.dispose(); publicKeyBuilder_ = null; } + subjectKeyId_ = null; + if (subjectKeyIdBuilder_ != null) { + subjectKeyIdBuilder_.dispose(); + subjectKeyIdBuilder_ = null; + } return this; } @@ -1726,6 +2472,11 @@ private void buildPartial0(com.google.cloud.security.privateca.v1.CertificateCon result.publicKey_ = publicKeyBuilder_ == null ? publicKey_ : publicKeyBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.subjectKeyId_ = + subjectKeyIdBuilder_ == null ? subjectKeyId_ : subjectKeyIdBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -1784,6 +2535,9 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateConfi if (other.hasPublicKey()) { mergePublicKey(other.getPublicKey()); } + if (other.hasSubjectKeyId()) { + mergeSubjectKeyId(other.getSubjectKeyId()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1828,6 +2582,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + input.readMessage(getSubjectKeyIdFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2552,6 +3312,243 @@ public com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrB return publicKeyBuilder_; } + private com.google.cloud.security.privateca.v1.CertificateConfig.KeyId subjectKeyId_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId, + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.Builder, + com.google.cloud.security.privateca.v1.CertificateConfig.KeyIdOrBuilder> + subjectKeyIdBuilder_; + /** + * + * + *
                                                                                        +     * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +     * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +     * originally created outside CAS, which was not generated using method (1)
                                                                                        +     * described in RFC 5280 section 4.2.1.2.
                                                                                        +     * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the subjectKeyId field is set. + */ + public boolean hasSubjectKeyId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                                                                        +     * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +     * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +     * originally created outside CAS, which was not generated using method (1)
                                                                                        +     * described in RFC 5280 section 4.2.1.2.
                                                                                        +     * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The subjectKeyId. + */ + public com.google.cloud.security.privateca.v1.CertificateConfig.KeyId getSubjectKeyId() { + if (subjectKeyIdBuilder_ == null) { + return subjectKeyId_ == null + ? com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.getDefaultInstance() + : subjectKeyId_; + } else { + return subjectKeyIdBuilder_.getMessage(); + } + } + /** + * + * + *
                                                                                        +     * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +     * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +     * originally created outside CAS, which was not generated using method (1)
                                                                                        +     * described in RFC 5280 section 4.2.1.2.
                                                                                        +     * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSubjectKeyId( + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId value) { + if (subjectKeyIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subjectKeyId_ = value; + } else { + subjectKeyIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +     * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +     * originally created outside CAS, which was not generated using method (1)
                                                                                        +     * described in RFC 5280 section 4.2.1.2.
                                                                                        +     * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSubjectKeyId( + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.Builder builderForValue) { + if (subjectKeyIdBuilder_ == null) { + subjectKeyId_ = builderForValue.build(); + } else { + subjectKeyIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +     * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +     * originally created outside CAS, which was not generated using method (1)
                                                                                        +     * described in RFC 5280 section 4.2.1.2.
                                                                                        +     * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSubjectKeyId( + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId value) { + if (subjectKeyIdBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && subjectKeyId_ != null + && subjectKeyId_ + != com.google.cloud.security.privateca.v1.CertificateConfig.KeyId + .getDefaultInstance()) { + getSubjectKeyIdBuilder().mergeFrom(value); + } else { + subjectKeyId_ = value; + } + } else { + subjectKeyIdBuilder_.mergeFrom(value); + } + if (subjectKeyId_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * + * + *
                                                                                        +     * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +     * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +     * originally created outside CAS, which was not generated using method (1)
                                                                                        +     * described in RFC 5280 section 4.2.1.2.
                                                                                        +     * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSubjectKeyId() { + bitField0_ = (bitField0_ & ~0x00000008); + subjectKeyId_ = null; + if (subjectKeyIdBuilder_ != null) { + subjectKeyIdBuilder_.dispose(); + subjectKeyIdBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +     * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +     * originally created outside CAS, which was not generated using method (1)
                                                                                        +     * described in RFC 5280 section 4.2.1.2.
                                                                                        +     * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.Builder + getSubjectKeyIdBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getSubjectKeyIdFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                        +     * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +     * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +     * originally created outside CAS, which was not generated using method (1)
                                                                                        +     * described in RFC 5280 section 4.2.1.2.
                                                                                        +     * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.security.privateca.v1.CertificateConfig.KeyIdOrBuilder + getSubjectKeyIdOrBuilder() { + if (subjectKeyIdBuilder_ != null) { + return subjectKeyIdBuilder_.getMessageOrBuilder(); + } else { + return subjectKeyId_ == null + ? com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.getDefaultInstance() + : subjectKeyId_; + } + } + /** + * + * + *
                                                                                        +     * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +     * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +     * originally created outside CAS, which was not generated using method (1)
                                                                                        +     * described in RFC 5280 section 4.2.1.2.
                                                                                        +     * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId, + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.Builder, + com.google.cloud.security.privateca.v1.CertificateConfig.KeyIdOrBuilder> + getSubjectKeyIdFieldBuilder() { + if (subjectKeyIdBuilder_ == null) { + subjectKeyIdBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId, + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId.Builder, + com.google.cloud.security.privateca.v1.CertificateConfig.KeyIdOrBuilder>( + getSubjectKeyId(), getParentForChildren(), isClean()); + subjectKeyId_ = null; + } + return subjectKeyIdBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java index 7f7390d7728b..274f3fde4b84 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateConfigOrBuilder.java @@ -174,4 +174,55 @@ public interface CertificateConfigOrBuilder *
                                                                                        */ com.google.cloud.security.privateca.v1.PublicKeyOrBuilder getPublicKeyOrBuilder(); + + /** + * + * + *
                                                                                        +   * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +   * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +   * originally created outside CAS, which was not generated using method (1)
                                                                                        +   * described in RFC 5280 section 4.2.1.2.
                                                                                        +   * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the subjectKeyId field is set. + */ + boolean hasSubjectKeyId(); + /** + * + * + *
                                                                                        +   * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +   * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +   * originally created outside CAS, which was not generated using method (1)
                                                                                        +   * described in RFC 5280 section 4.2.1.2.
                                                                                        +   * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The subjectKeyId. + */ + com.google.cloud.security.privateca.v1.CertificateConfig.KeyId getSubjectKeyId(); + /** + * + * + *
                                                                                        +   * Optional. When specified this provides a custom SKI to be used in the
                                                                                        +   * certificate. This should only be used to maintain a SKI of an existing CA
                                                                                        +   * originally created outside CAS, which was not generated using method (1)
                                                                                        +   * described in RFC 5280 section 4.2.1.2.
                                                                                        +   * 
                                                                                        + * + * + * .google.cloud.security.privateca.v1.CertificateConfig.KeyId subject_key_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.security.privateca.v1.CertificateConfig.KeyIdOrBuilder + getSubjectKeyIdOrBuilder(); } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java index 060c0747dcd0..9482038fdeb4 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplate.java @@ -138,6 +138,101 @@ public com.google.protobuf.ByteString getNameBytes() { } } + public static final int MAXIMUM_LIFETIME_FIELD_NUMBER = 9; + private com.google.protobuf.Duration maximumLifetime_; + /** + * + * + *
                                                                                        +   * Optional. The maximum lifetime allowed for issued
                                                                                        +   * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +   * this template. If the issuing
                                                                                        +   * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +   * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +   * specifies a
                                                                                        +   * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +   * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +   * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +   * if the issuing
                                                                                        +   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +   * expires before a
                                                                                        +   * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +   * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +   *  to match it.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maximumLifetime field is set. + */ + @java.lang.Override + public boolean hasMaximumLifetime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                                                                        +   * Optional. The maximum lifetime allowed for issued
                                                                                        +   * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +   * this template. If the issuing
                                                                                        +   * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +   * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +   * specifies a
                                                                                        +   * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +   * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +   * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +   * if the issuing
                                                                                        +   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +   * expires before a
                                                                                        +   * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +   * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +   *  to match it.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maximumLifetime. + */ + @java.lang.Override + public com.google.protobuf.Duration getMaximumLifetime() { + return maximumLifetime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumLifetime_; + } + /** + * + * + *
                                                                                        +   * Optional. The maximum lifetime allowed for issued
                                                                                        +   * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +   * this template. If the issuing
                                                                                        +   * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +   * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +   * specifies a
                                                                                        +   * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +   * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +   * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +   * if the issuing
                                                                                        +   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +   * expires before a
                                                                                        +   * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +   * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +   *  to match it.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { + return maximumLifetime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumLifetime_; + } + public static final int PREDEFINED_VALUES_FIELD_NUMBER = 2; private com.google.cloud.security.privateca.v1.X509Parameters predefinedValues_; /** @@ -163,7 +258,7 @@ public com.google.protobuf.ByteString getNameBytes() { */ @java.lang.Override public boolean hasPredefinedValues() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -240,7 +335,7 @@ public com.google.cloud.security.privateca.v1.X509Parameters getPredefinedValues */ @java.lang.Override public boolean hasIdentityConstraints() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -321,7 +416,7 @@ public boolean hasIdentityConstraints() { */ @java.lang.Override public boolean hasPassthroughExtensions() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -467,7 +562,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { */ @java.lang.Override public boolean hasCreateTime() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -522,7 +617,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -678,26 +773,29 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getPredefinedValues()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getIdentityConstraints()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getPassthroughExtensions()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(6, getCreateTime()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(7, getUpdateTime()); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 8); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(9, getMaximumLifetime()); + } getUnknownFields().writeTo(output); } @@ -710,23 +808,23 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPredefinedValues()); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIdentityConstraints()); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPassthroughExtensions()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } for (java.util.Map.Entry entry : @@ -739,6 +837,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, labels__); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMaximumLifetime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -756,6 +857,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.security.privateca.v1.CertificateTemplate) obj; if (!getName().equals(other.getName())) return false; + if (hasMaximumLifetime() != other.hasMaximumLifetime()) return false; + if (hasMaximumLifetime()) { + if (!getMaximumLifetime().equals(other.getMaximumLifetime())) return false; + } if (hasPredefinedValues() != other.hasPredefinedValues()) return false; if (hasPredefinedValues()) { if (!getPredefinedValues().equals(other.getPredefinedValues())) return false; @@ -791,6 +896,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); + if (hasMaximumLifetime()) { + hash = (37 * hash) + MAXIMUM_LIFETIME_FIELD_NUMBER; + hash = (53 * hash) + getMaximumLifetime().hashCode(); + } if (hasPredefinedValues()) { hash = (37 * hash) + PREDEFINED_VALUES_FIELD_NUMBER; hash = (53 * hash) + getPredefinedValues().hashCode(); @@ -982,6 +1091,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMaximumLifetimeFieldBuilder(); getPredefinedValuesFieldBuilder(); getIdentityConstraintsFieldBuilder(); getPassthroughExtensionsFieldBuilder(); @@ -995,6 +1105,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; + maximumLifetime_ = null; + if (maximumLifetimeBuilder_ != null) { + maximumLifetimeBuilder_.dispose(); + maximumLifetimeBuilder_ = null; + } predefinedValues_ = null; if (predefinedValuesBuilder_ != null) { predefinedValuesBuilder_.dispose(); @@ -1063,36 +1178,41 @@ private void buildPartial0(com.google.cloud.security.privateca.v1.CertificateTem } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { - result.predefinedValues_ = - predefinedValuesBuilder_ == null ? predefinedValues_ : predefinedValuesBuilder_.build(); + result.maximumLifetime_ = + maximumLifetimeBuilder_ == null ? maximumLifetime_ : maximumLifetimeBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.predefinedValues_ = + predefinedValuesBuilder_ == null ? predefinedValues_ : predefinedValuesBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.identityConstraints_ = identityConstraintsBuilder_ == null ? identityConstraints_ : identityConstraintsBuilder_.build(); - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.passthroughExtensions_ = passthroughExtensionsBuilder_ == null ? passthroughExtensions_ : passthroughExtensionsBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.description_ = description_; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000008; + result.description_ = description_; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } @@ -1150,6 +1270,9 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateTempl bitField0_ |= 0x00000001; onChanged(); } + if (other.hasMaximumLifetime()) { + mergeMaximumLifetime(other.getMaximumLifetime()); + } if (other.hasPredefinedValues()) { mergePredefinedValues(other.getPredefinedValues()); } @@ -1161,7 +1284,7 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateTempl } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasCreateTime()) { @@ -1171,7 +1294,7 @@ public Builder mergeFrom(com.google.cloud.security.privateca.v1.CertificateTempl mergeUpdateTime(other.getUpdateTime()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1208,39 +1331,39 @@ public Builder mergeFrom( { input.readMessage( getPredefinedValuesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage( getIdentityConstraintsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage( getPassthroughExtensionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 42: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 case 50: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 58: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 58 case 66: @@ -1252,9 +1375,15 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 66 + case 74: + { + input.readMessage(getMaximumLifetimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1400,6 +1529,335 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.Duration maximumLifetime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maximumLifetimeBuilder_; + /** + * + * + *
                                                                                        +     * Optional. The maximum lifetime allowed for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +     * this template. If the issuing
                                                                                        +     * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +     * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +     * specifies a
                                                                                        +     * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +     * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +     * if the issuing
                                                                                        +     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +     * expires before a
                                                                                        +     * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +     * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +     *  to match it.
                                                                                        +     * 
                                                                                        + * + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maximumLifetime field is set. + */ + public boolean hasMaximumLifetime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                                                                        +     * Optional. The maximum lifetime allowed for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +     * this template. If the issuing
                                                                                        +     * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +     * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +     * specifies a
                                                                                        +     * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +     * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +     * if the issuing
                                                                                        +     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +     * expires before a
                                                                                        +     * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +     * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +     *  to match it.
                                                                                        +     * 
                                                                                        + * + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maximumLifetime. + */ + public com.google.protobuf.Duration getMaximumLifetime() { + if (maximumLifetimeBuilder_ == null) { + return maximumLifetime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumLifetime_; + } else { + return maximumLifetimeBuilder_.getMessage(); + } + } + /** + * + * + *
                                                                                        +     * Optional. The maximum lifetime allowed for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +     * this template. If the issuing
                                                                                        +     * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +     * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +     * specifies a
                                                                                        +     * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +     * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +     * if the issuing
                                                                                        +     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +     * expires before a
                                                                                        +     * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +     * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +     *  to match it.
                                                                                        +     * 
                                                                                        + * + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMaximumLifetime(com.google.protobuf.Duration value) { + if (maximumLifetimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maximumLifetime_ = value; + } else { + maximumLifetimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * Optional. The maximum lifetime allowed for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +     * this template. If the issuing
                                                                                        +     * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +     * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +     * specifies a
                                                                                        +     * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +     * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +     * if the issuing
                                                                                        +     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +     * expires before a
                                                                                        +     * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +     * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +     *  to match it.
                                                                                        +     * 
                                                                                        + * + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMaximumLifetime(com.google.protobuf.Duration.Builder builderForValue) { + if (maximumLifetimeBuilder_ == null) { + maximumLifetime_ = builderForValue.build(); + } else { + maximumLifetimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * Optional. The maximum lifetime allowed for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +     * this template. If the issuing
                                                                                        +     * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +     * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +     * specifies a
                                                                                        +     * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +     * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +     * if the issuing
                                                                                        +     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +     * expires before a
                                                                                        +     * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +     * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +     *  to match it.
                                                                                        +     * 
                                                                                        + * + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMaximumLifetime(com.google.protobuf.Duration value) { + if (maximumLifetimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && maximumLifetime_ != null + && maximumLifetime_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMaximumLifetimeBuilder().mergeFrom(value); + } else { + maximumLifetime_ = value; + } + } else { + maximumLifetimeBuilder_.mergeFrom(value); + } + if (maximumLifetime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *
                                                                                        +     * Optional. The maximum lifetime allowed for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +     * this template. If the issuing
                                                                                        +     * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +     * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +     * specifies a
                                                                                        +     * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +     * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +     * if the issuing
                                                                                        +     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +     * expires before a
                                                                                        +     * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +     * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +     *  to match it.
                                                                                        +     * 
                                                                                        + * + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMaximumLifetime() { + bitField0_ = (bitField0_ & ~0x00000002); + maximumLifetime_ = null; + if (maximumLifetimeBuilder_ != null) { + maximumLifetimeBuilder_.dispose(); + maximumLifetimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * Optional. The maximum lifetime allowed for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +     * this template. If the issuing
                                                                                        +     * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +     * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +     * specifies a
                                                                                        +     * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +     * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +     * if the issuing
                                                                                        +     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +     * expires before a
                                                                                        +     * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +     * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +     *  to match it.
                                                                                        +     * 
                                                                                        + * + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getMaximumLifetimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMaximumLifetimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                        +     * Optional. The maximum lifetime allowed for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +     * this template. If the issuing
                                                                                        +     * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +     * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +     * specifies a
                                                                                        +     * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +     * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +     * if the issuing
                                                                                        +     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +     * expires before a
                                                                                        +     * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +     * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +     *  to match it.
                                                                                        +     * 
                                                                                        + * + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder() { + if (maximumLifetimeBuilder_ != null) { + return maximumLifetimeBuilder_.getMessageOrBuilder(); + } else { + return maximumLifetime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maximumLifetime_; + } + } + /** + * + * + *
                                                                                        +     * Optional. The maximum lifetime allowed for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +     * this template. If the issuing
                                                                                        +     * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +     * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +     * specifies a
                                                                                        +     * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +     * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +     * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +     * if the issuing
                                                                                        +     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +     * expires before a
                                                                                        +     * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +     * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +     *  to match it.
                                                                                        +     * 
                                                                                        + * + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getMaximumLifetimeFieldBuilder() { + if (maximumLifetimeBuilder_ == null) { + maximumLifetimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaximumLifetime(), getParentForChildren(), isClean()); + maximumLifetime_ = null; + } + return maximumLifetimeBuilder_; + } + private com.google.cloud.security.privateca.v1.X509Parameters predefinedValues_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.security.privateca.v1.X509Parameters, @@ -1428,7 +1886,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * @return Whether the predefinedValues field is set. */ public boolean hasPredefinedValues() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1489,7 +1947,7 @@ public Builder setPredefinedValues( } else { predefinedValuesBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1519,7 +1977,7 @@ public Builder setPredefinedValues( } else { predefinedValuesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1545,7 +2003,7 @@ public Builder setPredefinedValues( public Builder mergePredefinedValues( com.google.cloud.security.privateca.v1.X509Parameters value) { if (predefinedValuesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000004) != 0) && predefinedValues_ != null && predefinedValues_ != com.google.cloud.security.privateca.v1.X509Parameters.getDefaultInstance()) { @@ -1557,7 +2015,7 @@ public Builder mergePredefinedValues( predefinedValuesBuilder_.mergeFrom(value); } if (predefinedValues_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } return this; @@ -1582,7 +2040,7 @@ public Builder mergePredefinedValues( * */ public Builder clearPredefinedValues() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); predefinedValues_ = null; if (predefinedValuesBuilder_ != null) { predefinedValuesBuilder_.dispose(); @@ -1612,7 +2070,7 @@ public Builder clearPredefinedValues() { */ public com.google.cloud.security.privateca.v1.X509Parameters.Builder getPredefinedValuesBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return getPredefinedValuesFieldBuilder().getBuilder(); } @@ -1705,7 +2163,7 @@ public Builder clearPredefinedValues() { * @return Whether the identityConstraints field is set. */ public boolean hasIdentityConstraints() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1758,7 +2216,7 @@ public Builder setIdentityConstraints( } else { identityConstraintsBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1784,7 +2242,7 @@ public Builder setIdentityConstraints( } else { identityConstraintsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1805,7 +2263,7 @@ public Builder setIdentityConstraints( public Builder mergeIdentityConstraints( com.google.cloud.security.privateca.v1.CertificateIdentityConstraints value) { if (identityConstraintsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && identityConstraints_ != null && identityConstraints_ != com.google.cloud.security.privateca.v1.CertificateIdentityConstraints @@ -1818,7 +2276,7 @@ public Builder mergeIdentityConstraints( identityConstraintsBuilder_.mergeFrom(value); } if (identityConstraints_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -1838,7 +2296,7 @@ public Builder mergeIdentityConstraints( * */ public Builder clearIdentityConstraints() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); identityConstraints_ = null; if (identityConstraintsBuilder_ != null) { identityConstraintsBuilder_.dispose(); @@ -1863,7 +2321,7 @@ public Builder clearIdentityConstraints() { */ public com.google.cloud.security.privateca.v1.CertificateIdentityConstraints.Builder getIdentityConstraintsBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getIdentityConstraintsFieldBuilder().getBuilder(); } @@ -1960,7 +2418,7 @@ public Builder clearIdentityConstraints() { * @return Whether the passthroughExtensions field is set. */ public boolean hasPassthroughExtensions() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2039,7 +2497,7 @@ public Builder setPassthroughExtensions( } else { passthroughExtensionsBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2078,7 +2536,7 @@ public Builder setPassthroughExtensions( } else { passthroughExtensionsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2112,7 +2570,7 @@ public Builder setPassthroughExtensions( public Builder mergePassthroughExtensions( com.google.cloud.security.privateca.v1.CertificateExtensionConstraints value) { if (passthroughExtensionsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && passthroughExtensions_ != null && passthroughExtensions_ != com.google.cloud.security.privateca.v1.CertificateExtensionConstraints @@ -2125,7 +2583,7 @@ public Builder mergePassthroughExtensions( passthroughExtensionsBuilder_.mergeFrom(value); } if (passthroughExtensions_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -2158,7 +2616,7 @@ public Builder mergePassthroughExtensions( * */ public Builder clearPassthroughExtensions() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); passthroughExtensions_ = null; if (passthroughExtensionsBuilder_ != null) { passthroughExtensionsBuilder_.dispose(); @@ -2196,7 +2654,7 @@ public Builder clearPassthroughExtensions() { */ public com.google.cloud.security.privateca.v1.CertificateExtensionConstraints.Builder getPassthroughExtensionsBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return getPassthroughExtensionsFieldBuilder().getBuilder(); } @@ -2347,7 +2805,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2365,7 +2823,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2388,7 +2846,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2415,7 +2873,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2463,7 +2921,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2486,7 +2944,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2505,7 +2963,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -2516,7 +2974,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2535,7 +2993,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -2558,7 +3016,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -2636,7 +3094,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2684,7 +3142,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2707,7 +3165,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2726,7 +3184,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -2737,7 +3195,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2756,7 +3214,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -2779,7 +3237,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -2852,7 +3310,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return labels_; } @@ -2937,7 +3395,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -2960,7 +3418,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; return internalGetMutableLabels().getMutableMap(); } /** @@ -2980,7 +3438,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; return this; } /** @@ -2994,7 +3452,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; return this; } diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java index 3838e867bbeb..8470e49538cd 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/CertificateTemplateOrBuilder.java @@ -57,6 +57,86 @@ public interface CertificateTemplateOrBuilder */ com.google.protobuf.ByteString getNameBytes(); + /** + * + * + *
                                                                                        +   * Optional. The maximum lifetime allowed for issued
                                                                                        +   * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +   * this template. If the issuing
                                                                                        +   * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +   * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +   * specifies a
                                                                                        +   * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +   * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +   * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +   * if the issuing
                                                                                        +   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +   * expires before a
                                                                                        +   * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +   * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +   *  to match it.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maximumLifetime field is set. + */ + boolean hasMaximumLifetime(); + /** + * + * + *
                                                                                        +   * Optional. The maximum lifetime allowed for issued
                                                                                        +   * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +   * this template. If the issuing
                                                                                        +   * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +   * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +   * specifies a
                                                                                        +   * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +   * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +   * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +   * if the issuing
                                                                                        +   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +   * expires before a
                                                                                        +   * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +   * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +   *  to match it.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maximumLifetime. + */ + com.google.protobuf.Duration getMaximumLifetime(); + /** + * + * + *
                                                                                        +   * Optional. The maximum lifetime allowed for issued
                                                                                        +   * [Certificates][google.cloud.security.privateca.v1.Certificate] that use
                                                                                        +   * this template. If the issuing
                                                                                        +   * [CaPool][google.cloud.security.privateca.v1.CaPool]'s
                                                                                        +   * [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy]
                                                                                        +   * specifies a
                                                                                        +   * [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime]
                                                                                        +   * the minimum of the two durations will be the maximum lifetime for issued
                                                                                        +   * [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that
                                                                                        +   * if the issuing
                                                                                        +   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        +   * expires before a
                                                                                        +   * [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested
                                                                                        +   * maximum_lifetime, the effective lifetime will be explicitly truncated
                                                                                        +   *  to match it.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Duration maximum_lifetime = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getMaximumLifetimeOrBuilder(); + /** * * diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java index e282432a3f1e..0fcd4de68764 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponse.java @@ -835,10 +835,9 @@ public com.google.protobuf.Parser getParserForType() { * * *
                                                                                        -   * The PEM encoded CA certificate chains of all
                                                                                        -   * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -   * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +   * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +   * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +   * DISABLED, or STAGED states.
                                                                                            * 
                                                                                        * * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; @@ -853,10 +852,9 @@ public com.google.protobuf.Parser getParserForType() { * * *
                                                                                        -   * The PEM encoded CA certificate chains of all
                                                                                        -   * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -   * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +   * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +   * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +   * DISABLED, or STAGED states.
                                                                                            * 
                                                                                        * * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; @@ -872,10 +870,9 @@ public com.google.protobuf.Parser getParserForType() { * * *
                                                                                        -   * The PEM encoded CA certificate chains of all
                                                                                        -   * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -   * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +   * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +   * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +   * DISABLED, or STAGED states.
                                                                                            * 
                                                                                        * * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; @@ -889,10 +886,9 @@ public int getCaCertsCount() { * * *
                                                                                        -   * The PEM encoded CA certificate chains of all
                                                                                        -   * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -   * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +   * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +   * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +   * DISABLED, or STAGED states.
                                                                                            * 
                                                                                        * * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; @@ -907,10 +903,9 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain get * * *
                                                                                        -   * The PEM encoded CA certificate chains of all
                                                                                        -   * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -   * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +   * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +   * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +   * DISABLED, or STAGED states.
                                                                                            * 
                                                                                        * * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; @@ -1338,10 +1333,9 @@ private void ensureCaCertsIsMutable() { * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1360,10 +1354,9 @@ private void ensureCaCertsIsMutable() { * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1381,10 +1374,9 @@ public int getCaCertsCount() { * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1403,10 +1395,9 @@ public com.google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain get * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1431,10 +1422,9 @@ public Builder setCaCerts( * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1458,10 +1448,9 @@ public Builder setCaCerts( * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1486,10 +1475,9 @@ public Builder addCaCerts( * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1514,10 +1502,9 @@ public Builder addCaCerts( * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1540,10 +1527,9 @@ public Builder addCaCerts( * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1567,10 +1553,9 @@ public Builder addCaCerts( * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1594,10 +1579,9 @@ public Builder addAllCaCerts( * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1618,10 +1602,9 @@ public Builder clearCaCerts() { * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1642,10 +1625,9 @@ public Builder removeCaCerts(int index) { * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1660,10 +1642,9 @@ public Builder removeCaCerts(int index) { * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1682,10 +1663,9 @@ public Builder removeCaCerts(int index) { * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1706,10 +1686,9 @@ public Builder removeCaCerts(int index) { * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1727,10 +1706,9 @@ public Builder removeCaCerts(int index) { * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * @@ -1749,10 +1727,9 @@ public Builder removeCaCerts(int index) { * * *
                                                                                        -     * The PEM encoded CA certificate chains of all
                                                                                        -     * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -     * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -     * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +     * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +     * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +     * DISABLED, or STAGED states.
                                                                                              * 
                                                                                        * * diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java index 66e14cf43b7e..b38e25f1d02e 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/FetchCaCertsResponseOrBuilder.java @@ -28,10 +28,9 @@ public interface FetchCaCertsResponseOrBuilder * * *
                                                                                        -   * The PEM encoded CA certificate chains of all
                                                                                        -   * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -   * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +   * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +   * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +   * DISABLED, or STAGED states.
                                                                                            * 
                                                                                        * * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; @@ -43,10 +42,9 @@ public interface FetchCaCertsResponseOrBuilder * * *
                                                                                        -   * The PEM encoded CA certificate chains of all
                                                                                        -   * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -   * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +   * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +   * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +   * DISABLED, or STAGED states.
                                                                                            * 
                                                                                        * * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; @@ -57,10 +55,9 @@ public interface FetchCaCertsResponseOrBuilder * * *
                                                                                        -   * The PEM encoded CA certificate chains of all
                                                                                        -   * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -   * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +   * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +   * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +   * DISABLED, or STAGED states.
                                                                                            * 
                                                                                        * * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; @@ -71,10 +68,9 @@ public interface FetchCaCertsResponseOrBuilder * * *
                                                                                        -   * The PEM encoded CA certificate chains of all
                                                                                        -   * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -   * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +   * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +   * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +   * DISABLED, or STAGED states.
                                                                                            * 
                                                                                        * * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; @@ -87,10 +83,9 @@ public interface FetchCaCertsResponseOrBuilder * * *
                                                                                        -   * The PEM encoded CA certificate chains of all
                                                                                        -   * [ACTIVE][CertificateAuthority.State.ACTIVE]
                                                                                        -   * [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
                                                                                        -   * resources in this [CaPool][google.cloud.security.privateca.v1.CaPool].
                                                                                        +   * The PEM encoded CA certificate chains of all Certificate Authorities in
                                                                                        +   * this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED,
                                                                                        +   * DISABLED, or STAGED states.
                                                                                            * 
                                                                                        * * repeated .google.cloud.security.privateca.v1.FetchCaCertsResponse.CertChain ca_certs = 1; diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java index ef96cce4b1c9..4e51e07a9adc 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/java/com/google/cloud/security/privateca/v1/PrivateCaResourcesProto.java @@ -140,6 +140,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_security_privateca_v1_CertificateConfig_KeyId_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_security_privateca_v1_CertificateConfig_KeyId_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -365,160 +369,164 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "eapis.com/Certificate\022Tprojects/{project" + "}/locations/{location}/caPools/{ca_pool}" + "/certificates/{certificate}B\024\n\022certifica" - + "te_config\"\227\006\n\023CertificateTemplate\022B\n\004nam" + + "te_config\"\321\006\n\023CertificateTemplate\022B\n\004nam" + "e\030\001 \001(\tB4\340A\003\372A.\n,privateca.googleapis.co" - + "m/CertificateTemplate\022R\n\021predefined_valu" - + "es\030\002 \001(\01322.google.cloud.security.private" - + "ca.v1.X509ParametersB\003\340A\001\022e\n\024identity_co" - + "nstraints\030\003 \001(\0132B.google.cloud.security." - + "privateca.v1.CertificateIdentityConstrai" - + "ntsB\003\340A\001\022h\n\026passthrough_extensions\030\004 \001(\013" - + "2C.google.cloud.security.privateca.v1.Ce" - + "rtificateExtensionConstraintsB\003\340A\001\022\030\n\013de" - + "scription\030\005 \001(\tB\003\340A\001\0224\n\013create_time\030\006 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" - + "date_time\030\007 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\022X\n\006labels\030\010 \003(\0132C.google.cloud." - + "security.privateca.v1.CertificateTemplat" - + "e.LabelsEntryB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\207\001\352A\203\001\n,privat" - + "eca.googleapis.com/CertificateTemplate\022S" - + "projects/{project}/locations/{location}/" - + "certificateTemplates/{certificate_templa" - + "te}\"\316\006\n\016X509Parameters\022D\n\tkey_usage\030\001 \001(" - + "\0132,.google.cloud.security.privateca.v1.K" - + "eyUsageB\003\340A\001\022U\n\nca_options\030\002 \001(\0132<.googl" - + "e.cloud.security.privateca.v1.X509Parame" - + "ters.CaOptionsB\003\340A\001\022E\n\npolicy_ids\030\003 \003(\0132" - + ",.google.cloud.security.privateca.v1.Obj" - + "ectIdB\003\340A\001\022\035\n\020aia_ocsp_servers\030\004 \003(\tB\003\340A" - + "\001\022a\n\020name_constraints\030\006 \001(\0132B.google.clo" - + "ud.security.privateca.v1.X509Parameters." - + "NameConstraintsB\003\340A\001\022U\n\025additional_exten" - + "sions\030\005 \003(\01321.google.cloud.security.priv" - + "ateca.v1.X509ExtensionB\003\340A\001\032s\n\tCaOptions" - + "\022\027\n\005is_ca\030\001 \001(\010B\003\340A\001H\000\210\001\001\022(\n\026max_issuer_" - + "path_length\030\002 \001(\005B\003\340A\001H\001\210\001\001B\010\n\006_is_caB\031\n" - + "\027_max_issuer_path_length\032\211\002\n\017NameConstra" - + "ints\022\020\n\010critical\030\001 \001(\010\022\033\n\023permitted_dns_" - + "names\030\002 \003(\t\022\032\n\022excluded_dns_names\030\003 \003(\t\022" - + "\033\n\023permitted_ip_ranges\030\004 \003(\t\022\032\n\022excluded" - + "_ip_ranges\030\005 \003(\t\022!\n\031permitted_email_addr" - + "esses\030\006 \003(\t\022 \n\030excluded_email_addresses\030" - + "\007 \003(\t\022\026\n\016permitted_uris\030\010 \003(\t\022\025\n\rexclude" - + "d_uris\030\t \003(\t\"\251\002\n\021SubordinateConfig\022V\n\025ce" - + "rtificate_authority\030\001 \001(\tB5\340A\002\372A/\n-priva" - + "teca.googleapis.com/CertificateAuthority" - + "H\000\022m\n\020pem_issuer_chain\030\002 \001(\0132L.google.cl" - + "oud.security.privateca.v1.SubordinateCon" - + "fig.SubordinateConfigChainB\003\340A\002H\000\0327\n\026Sub" - + "ordinateConfigChain\022\035\n\020pem_certificates\030" - + "\001 \003(\tB\003\340A\002B\024\n\022subordinate_config\"\235\001\n\tPub" - + "licKey\022\020\n\003key\030\001 \001(\014B\003\340A\002\022L\n\006format\030\002 \001(\016" - + "27.google.cloud.security.privateca.v1.Pu" - + "blicKey.KeyFormatB\003\340A\002\"0\n\tKeyFormat\022\032\n\026K" - + "EY_FORMAT_UNSPECIFIED\020\000\022\007\n\003PEM\020\001\"\264\003\n\021Cer" - + "tificateConfig\022`\n\016subject_config\030\001 \001(\0132C" - + ".google.cloud.security.privateca.v1.Cert" - + "ificateConfig.SubjectConfigB\003\340A\002\022L\n\013x509" - + "_config\030\002 \001(\01322.google.cloud.security.pr" - + "ivateca.v1.X509ParametersB\003\340A\002\022F\n\npublic" - + "_key\030\003 \001(\0132-.google.cloud.security.priva" - + "teca.v1.PublicKeyB\003\340A\001\032\246\001\n\rSubjectConfig" - + "\022A\n\007subject\030\001 \001(\0132+.google.cloud.securit" - + "y.privateca.v1.SubjectB\003\340A\002\022R\n\020subject_a" - + "lt_name\030\002 \001(\01323.google.cloud.security.pr" - + "ivateca.v1.SubjectAltNamesB\003\340A\001\"\241\010\n\026Cert" - + "ificateDescription\022j\n\023subject_descriptio" - + "n\030\001 \001(\0132M.google.cloud.security.privatec" - + "a.v1.CertificateDescription.SubjectDescr" - + "iption\022L\n\020x509_description\030\002 \001(\01322.googl" - + "e.cloud.security.privateca.v1.X509Parame" - + "ters\022A\n\npublic_key\030\003 \001(\0132-.google.cloud." - + "security.privateca.v1.PublicKey\022X\n\016subje" - + "ct_key_id\030\004 \001(\0132@.google.cloud.security." - + "privateca.v1.CertificateDescription.KeyI" - + "d\022Z\n\020authority_key_id\030\005 \001(\0132@.google.clo" - + "ud.security.privateca.v1.CertificateDesc" - + "ription.KeyId\022\037\n\027crl_distribution_points" - + "\030\006 \003(\t\022$\n\034aia_issuing_certificate_urls\030\007" - + " \003(\t\022k\n\020cert_fingerprint\030\010 \001(\0132Q.google." - + "cloud.security.privateca.v1.CertificateD" - + "escription.CertificateFingerprint\032\322\002\n\022Su" - + "bjectDescription\022<\n\007subject\030\001 \001(\0132+.goog" - + "le.cloud.security.privateca.v1.Subject\022M" - + "\n\020subject_alt_name\030\002 \001(\01323.google.cloud." - + "security.privateca.v1.SubjectAltNames\022\031\n" - + "\021hex_serial_number\030\003 \001(\t\022+\n\010lifetime\030\004 \001" - + "(\0132\031.google.protobuf.Duration\0223\n\017not_bef" - + "ore_time\030\005 \001(\0132\032.google.protobuf.Timesta" - + "mp\0222\n\016not_after_time\030\006 \001(\0132\032.google.prot" - + "obuf.Timestamp\032\034\n\005KeyId\022\023\n\006key_id\030\001 \001(\tB" - + "\003\340A\001\032-\n\026CertificateFingerprint\022\023\n\013sha256" - + "_hash\030\001 \001(\t\"\'\n\010ObjectId\022\033\n\016object_id_pat" - + "h\030\001 \003(\005B\003\340A\002\"\200\001\n\rX509Extension\022D\n\tobject" - + "_id\030\001 \001(\0132,.google.cloud.security.privat" - + "eca.v1.ObjectIdB\003\340A\002\022\025\n\010critical\030\002 \001(\010B\003" - + "\340A\001\022\022\n\005value\030\003 \001(\014B\003\340A\002\"\242\005\n\010KeyUsage\022T\n\016" - + "base_key_usage\030\001 \001(\0132<.google.cloud.secu" - + "rity.privateca.v1.KeyUsage.KeyUsageOptio" - + "ns\022`\n\022extended_key_usage\030\002 \001(\0132D.google." - + "cloud.security.privateca.v1.KeyUsage.Ext" - + "endedKeyUsageOptions\022Q\n\033unknown_extended" - + "_key_usages\030\003 \003(\0132,.google.cloud.securit" - + "y.privateca.v1.ObjectId\032\347\001\n\017KeyUsageOpti" - + "ons\022\031\n\021digital_signature\030\001 \001(\010\022\032\n\022conten" - + "t_commitment\030\002 \001(\010\022\030\n\020key_encipherment\030\003" - + " \001(\010\022\031\n\021data_encipherment\030\004 \001(\010\022\025\n\rkey_a" - + "greement\030\005 \001(\010\022\021\n\tcert_sign\030\006 \001(\010\022\020\n\010crl" - + "_sign\030\007 \001(\010\022\025\n\rencipher_only\030\010 \001(\010\022\025\n\rde" - + "cipher_only\030\t \001(\010\032\240\001\n\027ExtendedKeyUsageOp" - + "tions\022\023\n\013server_auth\030\001 \001(\010\022\023\n\013client_aut" - + "h\030\002 \001(\010\022\024\n\014code_signing\030\003 \001(\010\022\030\n\020email_p" - + "rotection\030\004 \001(\010\022\025\n\rtime_stamping\030\005 \001(\010\022\024" - + "\n\014ocsp_signing\030\006 \001(\010\"\270\001\n\007Subject\022\023\n\013comm" - + "on_name\030\001 \001(\t\022\024\n\014country_code\030\002 \001(\t\022\024\n\014o" - + "rganization\030\003 \001(\t\022\033\n\023organizational_unit" - + "\030\004 \001(\t\022\020\n\010locality\030\005 \001(\t\022\020\n\010province\030\006 \001" - + "(\t\022\026\n\016street_address\030\007 \001(\t\022\023\n\013postal_cod" - + "e\030\010 \001(\t\"\251\001\n\017SubjectAltNames\022\021\n\tdns_names" - + "\030\001 \003(\t\022\014\n\004uris\030\002 \003(\t\022\027\n\017email_addresses\030" - + "\003 \003(\t\022\024\n\014ip_addresses\030\004 \003(\t\022F\n\013custom_sa" - + "ns\030\005 \003(\01321.google.cloud.security.private" - + "ca.v1.X509Extension\"\372\001\n\036CertificateIdent" - + "ityConstraints\022.\n\016cel_expression\030\001 \001(\0132\021" - + ".google.type.ExprB\003\340A\001\022+\n\031allow_subject_" - + "passthrough\030\002 \001(\010B\003\340A\002H\000\210\001\001\0225\n#allow_sub" - + "ject_alt_names_passthrough\030\003 \001(\010B\003\340A\002H\001\210" - + "\001\001B\034\n\032_allow_subject_passthroughB&\n$_all" - + "ow_subject_alt_names_passthrough\"\264\003\n\037Cer" - + "tificateExtensionConstraints\022|\n\020known_ex" - + "tensions\030\001 \003(\0162].google.cloud.security.p" - + "rivateca.v1.CertificateExtensionConstrai" - + "nts.KnownCertificateExtensionB\003\340A\001\022P\n\025ad" - + "ditional_extensions\030\002 \003(\0132,.google.cloud" - + ".security.privateca.v1.ObjectIdB\003\340A\001\"\300\001\n" - + "\031KnownCertificateExtension\022+\n\'KNOWN_CERT" - + "IFICATE_EXTENSION_UNSPECIFIED\020\000\022\022\n\016BASE_" - + "KEY_USAGE\020\001\022\026\n\022EXTENDED_KEY_USAGE\020\002\022\016\n\nC" - + "A_OPTIONS\020\003\022\016\n\nPOLICY_IDS\020\004\022\024\n\020AIA_OCSP_" - + "SERVERS\020\005\022\024\n\020NAME_CONSTRAINTS\020\006*\207\002\n\020Revo" - + "cationReason\022!\n\035REVOCATION_REASON_UNSPEC" - + "IFIED\020\000\022\022\n\016KEY_COMPROMISE\020\001\022$\n CERTIFICA" - + "TE_AUTHORITY_COMPROMISE\020\002\022\027\n\023AFFILIATION" - + "_CHANGED\020\003\022\016\n\nSUPERSEDED\020\004\022\032\n\026CESSATION_" - + "OF_OPERATION\020\005\022\024\n\020CERTIFICATE_HOLD\020\006\022\027\n\023" - + "PRIVILEGE_WITHDRAWN\020\007\022\"\n\036ATTRIBUTE_AUTHO" - + "RITY_COMPROMISE\020\010*]\n\022SubjectRequestMode\022" - + "$\n SUBJECT_REQUEST_MODE_UNSPECIFIED\020\000\022\013\n" - + "\007DEFAULT\020\001\022\024\n\020REFLECTED_SPIFFE\020\002B\377\001\n&com" - + ".google.cloud.security.privateca.v1B\027Pri" - + "vateCaResourcesProtoP\001ZDcloud.google.com" - + "/go/security/privateca/apiv1/privatecapb" - + ";privatecapb\370\001\001\252\002\"Google.Cloud.Security." - + "PrivateCA.V1\312\002\"Google\\Cloud\\Security\\Pri" - + "vateCA\\V1\352\002&Google::Cloud::Security::Pri" - + "vateCA::V1b\006proto3" + + "m/CertificateTemplate\0228\n\020maximum_lifetim" + + "e\030\t \001(\0132\031.google.protobuf.DurationB\003\340A\001\022" + + "R\n\021predefined_values\030\002 \001(\01322.google.clou" + + "d.security.privateca.v1.X509ParametersB\003" + + "\340A\001\022e\n\024identity_constraints\030\003 \001(\0132B.goog" + + "le.cloud.security.privateca.v1.Certifica" + + "teIdentityConstraintsB\003\340A\001\022h\n\026passthroug" + + "h_extensions\030\004 \001(\0132C.google.cloud.securi" + + "ty.privateca.v1.CertificateExtensionCons" + + "traintsB\003\340A\001\022\030\n\013description\030\005 \001(\tB\003\340A\001\0224" + + "\n\013create_time\030\006 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0224\n\013update_time\030\007 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022X\n\006labels\030\010 \003" + + "(\0132C.google.cloud.security.privateca.v1." + + "CertificateTemplate.LabelsEntryB\003\340A\001\032-\n\013" + + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001:\207\001\352A\203\001\n,privateca.googleapis.com/Cer" + + "tificateTemplate\022Sprojects/{project}/loc" + + "ations/{location}/certificateTemplates/{" + + "certificate_template}\"\316\006\n\016X509Parameters" + + "\022D\n\tkey_usage\030\001 \001(\0132,.google.cloud.secur" + + "ity.privateca.v1.KeyUsageB\003\340A\001\022U\n\nca_opt" + + "ions\030\002 \001(\0132<.google.cloud.security.priva" + + "teca.v1.X509Parameters.CaOptionsB\003\340A\001\022E\n" + + "\npolicy_ids\030\003 \003(\0132,.google.cloud.securit" + + "y.privateca.v1.ObjectIdB\003\340A\001\022\035\n\020aia_ocsp" + + "_servers\030\004 \003(\tB\003\340A\001\022a\n\020name_constraints\030" + + "\006 \001(\0132B.google.cloud.security.privateca." + + "v1.X509Parameters.NameConstraintsB\003\340A\001\022U" + + "\n\025additional_extensions\030\005 \003(\01321.google.c" + + "loud.security.privateca.v1.X509Extension" + + "B\003\340A\001\032s\n\tCaOptions\022\027\n\005is_ca\030\001 \001(\010B\003\340A\001H\000" + + "\210\001\001\022(\n\026max_issuer_path_length\030\002 \001(\005B\003\340A\001" + + "H\001\210\001\001B\010\n\006_is_caB\031\n\027_max_issuer_path_leng" + + "th\032\211\002\n\017NameConstraints\022\020\n\010critical\030\001 \001(\010" + + "\022\033\n\023permitted_dns_names\030\002 \003(\t\022\032\n\022exclude" + + "d_dns_names\030\003 \003(\t\022\033\n\023permitted_ip_ranges" + + "\030\004 \003(\t\022\032\n\022excluded_ip_ranges\030\005 \003(\t\022!\n\031pe" + + "rmitted_email_addresses\030\006 \003(\t\022 \n\030exclude" + + "d_email_addresses\030\007 \003(\t\022\026\n\016permitted_uri" + + "s\030\010 \003(\t\022\025\n\rexcluded_uris\030\t \003(\t\"\251\002\n\021Subor" + + "dinateConfig\022V\n\025certificate_authority\030\001 " + + "\001(\tB5\340A\002\372A/\n-privateca.googleapis.com/Ce" + + "rtificateAuthorityH\000\022m\n\020pem_issuer_chain" + + "\030\002 \001(\0132L.google.cloud.security.privateca" + + ".v1.SubordinateConfig.SubordinateConfigC" + + "hainB\003\340A\002H\000\0327\n\026SubordinateConfigChain\022\035\n" + + "\020pem_certificates\030\001 \003(\tB\003\340A\002B\024\n\022subordin" + + "ate_config\"\235\001\n\tPublicKey\022\020\n\003key\030\001 \001(\014B\003\340" + + "A\002\022L\n\006format\030\002 \001(\01627.google.cloud.securi" + + "ty.privateca.v1.PublicKey.KeyFormatB\003\340A\002" + + "\"0\n\tKeyFormat\022\032\n\026KEY_FORMAT_UNSPECIFIED\020" + + "\000\022\007\n\003PEM\020\001\"\254\004\n\021CertificateConfig\022`\n\016subj" + + "ect_config\030\001 \001(\0132C.google.cloud.security" + + ".privateca.v1.CertificateConfig.SubjectC" + + "onfigB\003\340A\002\022L\n\013x509_config\030\002 \001(\01322.google" + + ".cloud.security.privateca.v1.X509Paramet" + + "ersB\003\340A\002\022F\n\npublic_key\030\003 \001(\0132-.google.cl" + + "oud.security.privateca.v1.PublicKeyB\003\340A\001" + + "\022X\n\016subject_key_id\030\004 \001(\0132;.google.cloud." + + "security.privateca.v1.CertificateConfig." + + "KeyIdB\003\340A\001\032\246\001\n\rSubjectConfig\022A\n\007subject\030" + + "\001 \001(\0132+.google.cloud.security.privateca." + + "v1.SubjectB\003\340A\001\022R\n\020subject_alt_name\030\002 \001(" + + "\01323.google.cloud.security.privateca.v1.S" + + "ubjectAltNamesB\003\340A\001\032\034\n\005KeyId\022\023\n\006key_id\030\001" + + " \001(\tB\003\340A\002\"\241\010\n\026CertificateDescription\022j\n\023" + + "subject_description\030\001 \001(\0132M.google.cloud" + + ".security.privateca.v1.CertificateDescri" + + "ption.SubjectDescription\022L\n\020x509_descrip" + + "tion\030\002 \001(\01322.google.cloud.security.priva" + + "teca.v1.X509Parameters\022A\n\npublic_key\030\003 \001" + + "(\0132-.google.cloud.security.privateca.v1." + + "PublicKey\022X\n\016subject_key_id\030\004 \001(\0132@.goog" + + "le.cloud.security.privateca.v1.Certifica" + + "teDescription.KeyId\022Z\n\020authority_key_id\030" + + "\005 \001(\0132@.google.cloud.security.privateca." + + "v1.CertificateDescription.KeyId\022\037\n\027crl_d" + + "istribution_points\030\006 \003(\t\022$\n\034aia_issuing_" + + "certificate_urls\030\007 \003(\t\022k\n\020cert_fingerpri" + + "nt\030\010 \001(\0132Q.google.cloud.security.private" + + "ca.v1.CertificateDescription.Certificate" + + "Fingerprint\032\322\002\n\022SubjectDescription\022<\n\007su" + + "bject\030\001 \001(\0132+.google.cloud.security.priv" + + "ateca.v1.Subject\022M\n\020subject_alt_name\030\002 \001" + + "(\01323.google.cloud.security.privateca.v1." + + "SubjectAltNames\022\031\n\021hex_serial_number\030\003 \001" + + "(\t\022+\n\010lifetime\030\004 \001(\0132\031.google.protobuf.D" + + "uration\0223\n\017not_before_time\030\005 \001(\0132\032.googl" + + "e.protobuf.Timestamp\0222\n\016not_after_time\030\006" + + " \001(\0132\032.google.protobuf.Timestamp\032\034\n\005KeyI" + + "d\022\023\n\006key_id\030\001 \001(\tB\003\340A\001\032-\n\026CertificateFin" + + "gerprint\022\023\n\013sha256_hash\030\001 \001(\t\"\'\n\010ObjectI" + + "d\022\033\n\016object_id_path\030\001 \003(\005B\003\340A\002\"\200\001\n\rX509E" + + "xtension\022D\n\tobject_id\030\001 \001(\0132,.google.clo" + + "ud.security.privateca.v1.ObjectIdB\003\340A\002\022\025" + + "\n\010critical\030\002 \001(\010B\003\340A\001\022\022\n\005value\030\003 \001(\014B\003\340A" + + "\002\"\242\005\n\010KeyUsage\022T\n\016base_key_usage\030\001 \001(\0132<" + + ".google.cloud.security.privateca.v1.KeyU" + + "sage.KeyUsageOptions\022`\n\022extended_key_usa" + + "ge\030\002 \001(\0132D.google.cloud.security.private" + + "ca.v1.KeyUsage.ExtendedKeyUsageOptions\022Q" + + "\n\033unknown_extended_key_usages\030\003 \003(\0132,.go" + + "ogle.cloud.security.privateca.v1.ObjectI" + + "d\032\347\001\n\017KeyUsageOptions\022\031\n\021digital_signatu" + + "re\030\001 \001(\010\022\032\n\022content_commitment\030\002 \001(\010\022\030\n\020" + + "key_encipherment\030\003 \001(\010\022\031\n\021data_encipherm" + + "ent\030\004 \001(\010\022\025\n\rkey_agreement\030\005 \001(\010\022\021\n\tcert" + + "_sign\030\006 \001(\010\022\020\n\010crl_sign\030\007 \001(\010\022\025\n\renciphe" + + "r_only\030\010 \001(\010\022\025\n\rdecipher_only\030\t \001(\010\032\240\001\n\027" + + "ExtendedKeyUsageOptions\022\023\n\013server_auth\030\001" + + " \001(\010\022\023\n\013client_auth\030\002 \001(\010\022\024\n\014code_signin" + + "g\030\003 \001(\010\022\030\n\020email_protection\030\004 \001(\010\022\025\n\rtim" + + "e_stamping\030\005 \001(\010\022\024\n\014ocsp_signing\030\006 \001(\010\"\270" + + "\001\n\007Subject\022\023\n\013common_name\030\001 \001(\t\022\024\n\014count" + + "ry_code\030\002 \001(\t\022\024\n\014organization\030\003 \001(\t\022\033\n\023o" + + "rganizational_unit\030\004 \001(\t\022\020\n\010locality\030\005 \001" + + "(\t\022\020\n\010province\030\006 \001(\t\022\026\n\016street_address\030\007" + + " \001(\t\022\023\n\013postal_code\030\010 \001(\t\"\251\001\n\017SubjectAlt" + + "Names\022\021\n\tdns_names\030\001 \003(\t\022\014\n\004uris\030\002 \003(\t\022\027" + + "\n\017email_addresses\030\003 \003(\t\022\024\n\014ip_addresses\030" + + "\004 \003(\t\022F\n\013custom_sans\030\005 \003(\01321.google.clou" + + "d.security.privateca.v1.X509Extension\"\372\001" + + "\n\036CertificateIdentityConstraints\022.\n\016cel_" + + "expression\030\001 \001(\0132\021.google.type.ExprB\003\340A\001" + + "\022+\n\031allow_subject_passthrough\030\002 \001(\010B\003\340A\002" + + "H\000\210\001\001\0225\n#allow_subject_alt_names_passthr" + + "ough\030\003 \001(\010B\003\340A\002H\001\210\001\001B\034\n\032_allow_subject_p" + + "assthroughB&\n$_allow_subject_alt_names_p" + + "assthrough\"\264\003\n\037CertificateExtensionConst" + + "raints\022|\n\020known_extensions\030\001 \003(\0162].googl" + + "e.cloud.security.privateca.v1.Certificat" + + "eExtensionConstraints.KnownCertificateEx" + + "tensionB\003\340A\001\022P\n\025additional_extensions\030\002 " + + "\003(\0132,.google.cloud.security.privateca.v1" + + ".ObjectIdB\003\340A\001\"\300\001\n\031KnownCertificateExten" + + "sion\022+\n\'KNOWN_CERTIFICATE_EXTENSION_UNSP" + + "ECIFIED\020\000\022\022\n\016BASE_KEY_USAGE\020\001\022\026\n\022EXTENDE" + + "D_KEY_USAGE\020\002\022\016\n\nCA_OPTIONS\020\003\022\016\n\nPOLICY_" + + "IDS\020\004\022\024\n\020AIA_OCSP_SERVERS\020\005\022\024\n\020NAME_CONS" + + "TRAINTS\020\006*\207\002\n\020RevocationReason\022!\n\035REVOCA" + + "TION_REASON_UNSPECIFIED\020\000\022\022\n\016KEY_COMPROM" + + "ISE\020\001\022$\n CERTIFICATE_AUTHORITY_COMPROMIS" + + "E\020\002\022\027\n\023AFFILIATION_CHANGED\020\003\022\016\n\nSUPERSED" + + "ED\020\004\022\032\n\026CESSATION_OF_OPERATION\020\005\022\024\n\020CERT" + + "IFICATE_HOLD\020\006\022\027\n\023PRIVILEGE_WITHDRAWN\020\007\022" + + "\"\n\036ATTRIBUTE_AUTHORITY_COMPROMISE\020\010*]\n\022S" + + "ubjectRequestMode\022$\n SUBJECT_REQUEST_MOD" + + "E_UNSPECIFIED\020\000\022\013\n\007DEFAULT\020\001\022\024\n\020REFLECTE" + + "D_SPIFFE\020\002B\377\001\n&com.google.cloud.security" + + ".privateca.v1B\027PrivateCaResourcesProtoP\001" + + "ZDcloud.google.com/go/security/privateca" + + "/apiv1/privatecapb;privatecapb\370\001\001\252\002\"Goog" + + "le.Cloud.Security.PrivateCA.V1\312\002\"Google\\" + + "Cloud\\Security\\PrivateCA\\V1\352\002&Google::Cl" + + "oud::Security::PrivateCA::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -753,6 +761,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_security_privateca_v1_CertificateTemplate_descriptor, new java.lang.String[] { "Name", + "MaximumLifetime", "PredefinedValues", "IdentityConstraints", "PassthroughExtensions", @@ -844,7 +853,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor, new java.lang.String[] { - "SubjectConfig", "X509Config", "PublicKey", + "SubjectConfig", "X509Config", "PublicKey", "SubjectKeyId", }); internal_static_google_cloud_security_privateca_v1_CertificateConfig_SubjectConfig_descriptor = internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor @@ -856,6 +865,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Subject", "SubjectAltName", }); + internal_static_google_cloud_security_privateca_v1_CertificateConfig_KeyId_descriptor = + internal_static_google_cloud_security_privateca_v1_CertificateConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_security_privateca_v1_CertificateConfig_KeyId_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_security_privateca_v1_CertificateConfig_KeyId_descriptor, + new java.lang.String[] { + "KeyId", + }); internal_static_google_cloud_security_privateca_v1_CertificateDescription_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_security_privateca_v1_CertificateDescription_fieldAccessorTable = diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto index b64be7bc73f0..b1406556e78e 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/resources.proto @@ -770,6 +770,24 @@ message CertificateTemplate { } ]; + // Optional. The maximum lifetime allowed for issued + // [Certificates][google.cloud.security.privateca.v1.Certificate] that use + // this template. If the issuing + // [CaPool][google.cloud.security.privateca.v1.CaPool]'s + // [IssuancePolicy][google.cloud.security.privateca.v1.CaPool.IssuancePolicy] + // specifies a + // [maximum_lifetime][google.cloud.security.privateca.v1.CaPool.IssuancePolicy.maximum_lifetime] + // the minimum of the two durations will be the maximum lifetime for issued + // [Certificates][google.cloud.security.privateca.v1.Certificate]. Note that + // if the issuing + // [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] + // expires before a + // [Certificate][google.cloud.security.privateca.v1.Certificate]'s requested + // maximum_lifetime, the effective lifetime will be explicitly truncated + // to match it. + google.protobuf.Duration maximum_lifetime = 9 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. A set of X.509 values that will be applied to all issued // certificates that use this template. If the certificate request includes // conflicting values for the same properties, they will be overwritten by the @@ -1007,15 +1025,23 @@ message CertificateConfig { // These values are used to create the distinguished name and subject // alternative name fields in an X.509 certificate. message SubjectConfig { - // Required. Contains distinguished name fields such as the common name, + // Optional. Contains distinguished name fields such as the common name, // location and organization. - Subject subject = 1 [(google.api.field_behavior) = REQUIRED]; + Subject subject = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The subject alternative name fields. SubjectAltNames subject_alt_name = 2 [(google.api.field_behavior) = OPTIONAL]; } + // A KeyId identifies a specific public key, usually by hashing the public + // key. + message KeyId { + // Required. The value of this KeyId encoded in lowercase hexadecimal. This + // is most likely the 160 bit SHA-1 hash of the public key. + string key_id = 1 [(google.api.field_behavior) = REQUIRED]; + } + // Required. Specifies some of the values in a certificate that are related to // the subject. SubjectConfig subject_config = 1 [(google.api.field_behavior) = REQUIRED]; @@ -1033,6 +1059,12 @@ message CertificateConfig { // [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] // CSR. PublicKey public_key = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When specified this provides a custom SKI to be used in the + // certificate. This should only be used to maintain a SKI of an existing CA + // originally created outside CAS, which was not generated using method (1) + // described in RFC 5280 section 4.2.1.2. + KeyId subject_key_id = 4 [(google.api.field_behavior) = OPTIONAL]; } // A diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto index b90a374d6e48..40710af562da 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/src/main/proto/google/cloud/security/privateca/v1/service.proto @@ -301,9 +301,8 @@ service CertificateAuthorityService { // FetchCaCerts returns the current trust anchor for the // [CaPool][google.cloud.security.privateca.v1.CaPool]. This will include CA - // certificate chains for all ACTIVE - // [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - // resources in the [CaPool][google.cloud.security.privateca.v1.CaPool]. + // certificate chains for all Certificate Authorities in the ENABLED, + // DISABLED, or STAGED states. rpc FetchCaCerts(FetchCaCertsRequest) returns (FetchCaCertsResponse) { option (google.api.http) = { post: "/v1/{ca_pool=projects/*/locations/*/caPools/*}:fetchCaCerts" @@ -1083,10 +1082,9 @@ message FetchCaCertsResponse { repeated string certificates = 1; } - // The PEM encoded CA certificate chains of all - // [ACTIVE][CertificateAuthority.State.ACTIVE] - // [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority] - // resources in this [CaPool][google.cloud.security.privateca.v1.CaPool]. + // The PEM encoded CA certificate chains of all Certificate Authorities in + // this [CaPool][google.cloud.security.privateca.v1.CaPool] in the ENABLED, + // DISABLED, or STAGED states. repeated CertChain ca_certs = 1; } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1/reflect-config.json b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1/reflect-config.json index dc48cf751e5c..6e3e08b9bb98 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1/reflect-config.json +++ b/java-securitycenter/google-cloud-securitycenter/src/main/resources/META-INF/native-image/com.google.cloud.securitycenter.v1/reflect-config.json @@ -1187,6 +1187,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v1.ExternalSystem$TicketInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v1.ExternalSystem$TicketInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v1.File", "queryAllDeclaredConstructors": true, @@ -2654,6 +2672,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.securitycenter.v1.SecurityPosture", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v1.SecurityPosture$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v1.SecurityPosture$PolicyDriftDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.securitycenter.v1.SecurityPosture$PolicyDriftDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.securitycenter.v1.ServiceAccountDelegationInfo", "queryAllDeclaredConstructors": true, diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java index bc541af36b66..6e21025e0a7e 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java +++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientHttpJsonTest.java @@ -459,6 +459,7 @@ public void createFindingTest() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); @@ -548,6 +549,7 @@ public void createFindingTest2() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); @@ -3924,6 +3926,7 @@ public void setFindingStateTest() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); @@ -4015,6 +4018,7 @@ public void setFindingStateTest2() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); @@ -4104,6 +4108,7 @@ public void setMuteTest() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); @@ -4193,6 +4198,7 @@ public void setMuteTest2() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); @@ -4484,6 +4490,12 @@ public void updateExternalSystemTest() throws Exception { .setExternalUid("externalUid-1153085307") .setStatus("status-892481550") .setExternalSystemUpdateTime(Timestamp.newBuilder().build()) + .setCaseUri("caseUri554877980") + .setCasePriority("casePriority1589324020") + .setCaseSla(Timestamp.newBuilder().build()) + .setCaseCreateTime(Timestamp.newBuilder().build()) + .setCaseCloseTime(Timestamp.newBuilder().build()) + .setTicketInfo(ExternalSystem.TicketInfo.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4495,6 +4507,12 @@ public void updateExternalSystemTest() throws Exception { .setExternalUid("externalUid-1153085307") .setStatus("status-892481550") .setExternalSystemUpdateTime(Timestamp.newBuilder().build()) + .setCaseUri("caseUri554877980") + .setCasePriority("casePriority1589324020") + .setCaseSla(Timestamp.newBuilder().build()) + .setCaseCreateTime(Timestamp.newBuilder().build()) + .setCaseCloseTime(Timestamp.newBuilder().build()) + .setTicketInfo(ExternalSystem.TicketInfo.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -4532,6 +4550,12 @@ public void updateExternalSystemExceptionTest() throws Exception { .setExternalUid("externalUid-1153085307") .setStatus("status-892481550") .setExternalSystemUpdateTime(Timestamp.newBuilder().build()) + .setCaseUri("caseUri554877980") + .setCasePriority("casePriority1589324020") + .setCaseSla(Timestamp.newBuilder().build()) + .setCaseCreateTime(Timestamp.newBuilder().build()) + .setCaseCloseTime(Timestamp.newBuilder().build()) + .setTicketInfo(ExternalSystem.TicketInfo.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateExternalSystem(externalSystem, updateMask); @@ -4585,6 +4609,7 @@ public void updateFindingTest() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); @@ -4632,6 +4657,7 @@ public void updateFindingTest() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); @@ -4704,6 +4730,7 @@ public void updateFindingExceptionTest() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); diff --git a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java index 1f2f638b14ab..1e5ccaf75513 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java +++ b/java-securitycenter/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java @@ -446,6 +446,7 @@ public void createFindingTest() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); @@ -531,6 +532,7 @@ public void createFindingTest2() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); @@ -3601,6 +3603,7 @@ public void setFindingStateTest() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); @@ -3688,6 +3691,7 @@ public void setFindingStateTest2() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); @@ -3773,6 +3777,7 @@ public void setMuteTest() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); @@ -3857,6 +3862,7 @@ public void setMuteTest2() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); @@ -4120,6 +4126,12 @@ public void updateExternalSystemTest() throws Exception { .setExternalUid("externalUid-1153085307") .setStatus("status-892481550") .setExternalSystemUpdateTime(Timestamp.newBuilder().build()) + .setCaseUri("caseUri554877980") + .setCasePriority("casePriority1589324020") + .setCaseSla(Timestamp.newBuilder().build()) + .setCaseCreateTime(Timestamp.newBuilder().build()) + .setCaseCloseTime(Timestamp.newBuilder().build()) + .setTicketInfo(ExternalSystem.TicketInfo.newBuilder().build()) .build(); mockSecurityCenter.addResponse(expectedResponse); @@ -4201,6 +4213,7 @@ public void updateFindingTest() throws Exception { .addAllOrgPolicies(new ArrayList()) .setApplication(Application.newBuilder().build()) .setBackupDisasterRecovery(BackupDisasterRecovery.newBuilder().build()) + .setSecurityPosture(SecurityPosture.newBuilder().build()) .addAllLogEntries(new ArrayList()) .addAllLoadBalancers(new ArrayList()) .build(); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java index a3bf76b8a179..eb18ca4cbfda 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystem.java @@ -43,6 +43,8 @@ private ExternalSystem() { assignees_ = com.google.protobuf.LazyStringArrayList.emptyList(); externalUid_ = ""; status_ = ""; + caseUri_ = ""; + casePriority_ = ""; } @java.lang.Override @@ -66,783 +68,3888 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.securitycenter.v1.ExternalSystem.Builder.class); } - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; + public interface TicketInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.ExternalSystem.TicketInfo) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - * - * - *
                                                                                        -   * Full resource name of the external system, for example:
                                                                                        -   * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        -   * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        -   * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
                                                                                        -   * 
                                                                                        - * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } + /** + * + * + *
                                                                                        +     * The identifier of the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
                                                                                        +     * The identifier of the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
                                                                                        +     * The assignee of the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string assignee = 2; + * + * @return The assignee. + */ + java.lang.String getAssignee(); + /** + * + * + *
                                                                                        +     * The assignee of the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string assignee = 2; + * + * @return The bytes for assignee. + */ + com.google.protobuf.ByteString getAssigneeBytes(); + + /** + * + * + *
                                                                                        +     * The description of the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
                                                                                        +     * The description of the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                                                                                        +     * The link to the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string uri = 4; + * + * @return The uri. + */ + java.lang.String getUri(); + /** + * + * + *
                                                                                        +     * The link to the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string uri = 4; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
                                                                                        +     * The latest status of the ticket, as reported by the ticket system.
                                                                                        +     * 
                                                                                        + * + * string status = 5; + * + * @return The status. + */ + java.lang.String getStatus(); + /** + * + * + *
                                                                                        +     * The latest status of the ticket, as reported by the ticket system.
                                                                                        +     * 
                                                                                        + * + * string status = 5; + * + * @return The bytes for status. + */ + com.google.protobuf.ByteString getStatusBytes(); + + /** + * + * + *
                                                                                        +     * The time when the ticket was last updated, as reported by the ticket
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
                                                                                        +     * The time when the ticket was last updated, as reported by the ticket
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
                                                                                        +     * The time when the ticket was last updated, as reported by the ticket
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } /** * * *
                                                                                        -   * Full resource name of the external system, for example:
                                                                                        -   * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        -   * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        -   * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
                                                                                        +   * Information about the ticket, if any, that is being used to track the
                                                                                        +   * resolution of the issue that is identified by this finding.
                                                                                            * 
                                                                                        * - * string name = 1; - * - * @return The bytes for name. + * Protobuf type {@code google.cloud.securitycenter.v1.ExternalSystem.TicketInfo} */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final class TicketInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.ExternalSystem.TicketInfo) + TicketInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use TicketInfo.newBuilder() to construct. + private TicketInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - public static final int ASSIGNEES_FIELD_NUMBER = 2; + private TicketInfo() { + id_ = ""; + assignee_ = ""; + description_ = ""; + uri_ = ""; + status_ = ""; + } - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList assignees_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
                                                                                        -   * References primary/secondary etc assignees in the external system.
                                                                                        -   * 
                                                                                        - * - * repeated string assignees = 2; - * - * @return A list containing the assignees. - */ - public com.google.protobuf.ProtocolStringList getAssigneesList() { - return assignees_; - } - /** - * - * - *
                                                                                        -   * References primary/secondary etc assignees in the external system.
                                                                                        -   * 
                                                                                        - * - * repeated string assignees = 2; - * - * @return The count of assignees. - */ - public int getAssigneesCount() { - return assignees_.size(); - } - /** - * - * - *
                                                                                        -   * References primary/secondary etc assignees in the external system.
                                                                                        -   * 
                                                                                        - * - * repeated string assignees = 2; - * - * @param index The index of the element to return. - * @return The assignees at the given index. - */ - public java.lang.String getAssignees(int index) { - return assignees_.get(index); - } - /** - * - * - *
                                                                                        -   * References primary/secondary etc assignees in the external system.
                                                                                        -   * 
                                                                                        - * - * repeated string assignees = 2; - * - * @param index The index of the value to return. - * @return The bytes of the assignees at the given index. - */ - public com.google.protobuf.ByteString getAssigneesBytes(int index) { - return assignees_.getByteString(index); - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TicketInfo(); + } - public static final int EXTERNAL_UID_FIELD_NUMBER = 3; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ExternalSystemProto + .internal_static_google_cloud_securitycenter_v1_ExternalSystem_TicketInfo_descriptor; + } - @SuppressWarnings("serial") - private volatile java.lang.Object externalUid_ = ""; - /** - * - * - *
                                                                                        -   * Identifier that's used to track the given finding in the external system.
                                                                                        -   * 
                                                                                        - * - * string external_uid = 3; - * - * @return The externalUid. - */ - @java.lang.Override - public java.lang.String getExternalUid() { - java.lang.Object ref = externalUid_; - 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(); - externalUid_ = s; - return s; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.ExternalSystemProto + .internal_static_google_cloud_securitycenter_v1_ExternalSystem_TicketInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.class, + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.Builder.class); } - } - /** - * - * - *
                                                                                        -   * Identifier that's used to track the given finding in the external system.
                                                                                        -   * 
                                                                                        - * - * string external_uid = 3; - * - * @return The bytes for externalUid. - */ - @java.lang.Override - public com.google.protobuf.ByteString getExternalUidBytes() { - java.lang.Object ref = externalUid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - externalUid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int STATUS_FIELD_NUMBER = 4; + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object status_ = ""; - /** - * - * - *
                                                                                        -   * Most recent status of the corresponding finding's ticket/tracker in the
                                                                                        -   * external system.
                                                                                        -   * 
                                                                                        - * - * string status = 4; - * - * @return The status. - */ - @java.lang.Override - public java.lang.String getStatus() { - java.lang.Object ref = status_; - 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(); - status_ = s; - return s; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * + * + *
                                                                                        +     * The identifier of the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } } - } - /** - * - * - *
                                                                                        -   * Most recent status of the corresponding finding's ticket/tracker in the
                                                                                        -   * external system.
                                                                                        -   * 
                                                                                        - * - * string status = 4; - * - * @return The bytes for status. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * + * + *
                                                                                        +     * The identifier of the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - } - - public static final int EXTERNAL_SYSTEM_UPDATE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp externalSystemUpdateTime_; - /** - * - * - *
                                                                                        -   * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -   * updated in the external system.
                                                                                        -   * 
                                                                                        - * - * .google.protobuf.Timestamp external_system_update_time = 5; - * - * @return Whether the externalSystemUpdateTime field is set. - */ - @java.lang.Override - public boolean hasExternalSystemUpdateTime() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
                                                                                        -   * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -   * updated in the external system.
                                                                                        -   * 
                                                                                        - * - * .google.protobuf.Timestamp external_system_update_time = 5; - * - * @return The externalSystemUpdateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getExternalSystemUpdateTime() { - return externalSystemUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : externalSystemUpdateTime_; - } - /** - * - * - *
                                                                                        -   * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -   * updated in the external system.
                                                                                        -   * 
                                                                                        - * - * .google.protobuf.Timestamp external_system_update_time = 5; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getExternalSystemUpdateTimeOrBuilder() { - return externalSystemUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : externalSystemUpdateTime_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - memoizedIsInitialized = 1; - return true; - } + public static final int ASSIGNEE_FIELD_NUMBER = 2; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - for (int i = 0; i < assignees_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, assignees_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, externalUid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, status_); + @SuppressWarnings("serial") + private volatile java.lang.Object assignee_ = ""; + /** + * + * + *
                                                                                        +     * The assignee of the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string assignee = 2; + * + * @return The assignee. + */ + @java.lang.Override + public java.lang.String getAssignee() { + java.lang.Object ref = assignee_; + 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(); + assignee_ = s; + return s; + } } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getExternalSystemUpdateTime()); + /** + * + * + *
                                                                                        +     * The assignee of the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string assignee = 2; + * + * @return The bytes for assignee. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssigneeBytes() { + java.lang.Object ref = assignee_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assignee_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static final int DESCRIPTION_FIELD_NUMBER = 3; - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - { - int dataSize = 0; - for (int i = 0; i < assignees_.size(); i++) { - dataSize += computeStringSizeNoTag(assignees_.getRaw(i)); + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
                                                                                        +     * The description of the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string description = 3; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; } - size += dataSize; - size += 1 * getAssigneesList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalUid_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, status_); + /** + * + * + *
                                                                                        +     * The description of the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string description = 3; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, getExternalSystemUpdateTime()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public static final int URI_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** + * + * + *
                                                                                        +     * The link to the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string uri = 4; + * + * @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; + } } - if (!(obj instanceof com.google.cloud.securitycenter.v1.ExternalSystem)) { - return super.equals(obj); + /** + * + * + *
                                                                                        +     * The link to the ticket in the ticket system.
                                                                                        +     * 
                                                                                        + * + * string uri = 4; + * + * @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; + } } - com.google.cloud.securitycenter.v1.ExternalSystem other = - (com.google.cloud.securitycenter.v1.ExternalSystem) obj; - if (!getName().equals(other.getName())) return false; - if (!getAssigneesList().equals(other.getAssigneesList())) return false; - if (!getExternalUid().equals(other.getExternalUid())) return false; - if (!getStatus().equals(other.getStatus())) return false; - if (hasExternalSystemUpdateTime() != other.hasExternalSystemUpdateTime()) return false; - if (hasExternalSystemUpdateTime()) { - if (!getExternalSystemUpdateTime().equals(other.getExternalSystemUpdateTime())) return false; + public static final int STATUS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object status_ = ""; + /** + * + * + *
                                                                                        +     * The latest status of the ticket, as reported by the ticket system.
                                                                                        +     * 
                                                                                        + * + * string status = 5; + * + * @return The status. + */ + @java.lang.Override + public java.lang.String getStatus() { + java.lang.Object ref = status_; + 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(); + status_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +     * The latest status of the ticket, as reported by the ticket system.
                                                                                        +     * 
                                                                                        + * + * string status = 5; + * + * @return The bytes for status. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public static final int UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
                                                                                        +     * The time when the ticket was last updated, as reported by the ticket
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getAssigneesCount() > 0) { - hash = (37 * hash) + ASSIGNEES_FIELD_NUMBER; - hash = (53 * hash) + getAssigneesList().hashCode(); + /** + * + * + *
                                                                                        +     * The time when the ticket was last updated, as reported by the ticket
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } - hash = (37 * hash) + EXTERNAL_UID_FIELD_NUMBER; - hash = (53 * hash) + getExternalUid().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - if (hasExternalSystemUpdateTime()) { - hash = (37 * hash) + EXTERNAL_SYSTEM_UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getExternalSystemUpdateTime().hashCode(); + /** + * + * + *
                                                                                        +     * The time when the ticket was last updated, as reported by the ticket
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private byte memoizedIsInitialized = -1; - public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assignee_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, assignee_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, status_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } - public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(assignee_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, assignee_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, status_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo other = + (com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo) obj; - public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + if (!getId().equals(other.getId())) return false; + if (!getAssignee().equals(other.getAssignee())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getStatus().equals(other.getStatus())) return false; + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.securitycenter.v1.ExternalSystem parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + ASSIGNEE_FIELD_NUMBER; + hash = (53 * hash) + getAssignee().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.cloud.securitycenter.v1.ExternalSystem 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.securitycenter.v1.ExternalSystem.TicketInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo 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.securitycenter.v1.ExternalSystem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static Builder newBuilder(com.google.cloud.securitycenter.v1.ExternalSystem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
                                                                                        -   * Representation of third party SIEM/SOAR fields within SCC.
                                                                                        -   * 
                                                                                        - * - * Protobuf type {@code google.cloud.securitycenter.v1.ExternalSystem} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ExternalSystem) - com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.securitycenter.v1.ExternalSystemProto - .internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; + public static com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo 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.securitycenter.v1.ExternalSystem.TicketInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo 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.securitycenter.v1.ExternalSystem.TicketInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo 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 - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.securitycenter.v1.ExternalSystemProto - .internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.securitycenter.v1.ExternalSystem.class, - com.google.cloud.securitycenter.v1.ExternalSystem.Builder.class); + public Builder newBuilderForType() { + return newBuilder(); } - // Construct using com.google.cloud.securitycenter.v1.ExternalSystem.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + public static Builder newBuilder( + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getExternalSystemUpdateTimeFieldBuilder(); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - assignees_ = com.google.protobuf.LazyStringArrayList.emptyList(); - externalUid_ = ""; - status_ = ""; - externalSystemUpdateTime_ = null; - if (externalSystemUpdateTimeBuilder_ != null) { - externalSystemUpdateTimeBuilder_.dispose(); - externalSystemUpdateTimeBuilder_ = null; + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                                                                                        +     * Information about the ticket, if any, that is being used to track the
                                                                                        +     * resolution of the issue that is identified by this finding.
                                                                                        +     * 
                                                                                        + * + * Protobuf type {@code google.cloud.securitycenter.v1.ExternalSystem.TicketInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ExternalSystem.TicketInfo) + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ExternalSystemProto + .internal_static_google_cloud_securitycenter_v1_ExternalSystem_TicketInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.ExternalSystemProto + .internal_static_google_cloud_securitycenter_v1_ExternalSystem_TicketInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.class, + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + assignee_ = ""; + description_ = ""; + uri_ = ""; + status_ = ""; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.ExternalSystemProto + .internal_static_google_cloud_securitycenter_v1_ExternalSystem_TicketInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo build() { + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo buildPartial() { + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo result = + new com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.assignee_ = assignee_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.status_ = status_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = + updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.securitycenter.v1.ExternalSystem.TicketInfo) { + return mergeFrom((com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo other) { + if (other + == com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAssignee().isEmpty()) { + assignee_ = other.assignee_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + 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: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + assignee_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + status_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + 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 id_ = ""; + /** + * + * + *
                                                                                        +       * The identifier of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +       * The identifier of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string id = 1; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +       * The identifier of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The identifier of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The identifier of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string id = 1; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object assignee_ = ""; + /** + * + * + *
                                                                                        +       * The assignee of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string assignee = 2; + * + * @return The assignee. + */ + public java.lang.String getAssignee() { + java.lang.Object ref = assignee_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assignee_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +       * The assignee of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string assignee = 2; + * + * @return The bytes for assignee. + */ + public com.google.protobuf.ByteString getAssigneeBytes() { + java.lang.Object ref = assignee_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assignee_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +       * The assignee of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string assignee = 2; + * + * @param value The assignee to set. + * @return This builder for chaining. + */ + public Builder setAssignee(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assignee_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The assignee of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string assignee = 2; + * + * @return This builder for chaining. + */ + public Builder clearAssignee() { + assignee_ = getDefaultInstance().getAssignee(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The assignee of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string assignee = 2; + * + * @param value The bytes for assignee to set. + * @return This builder for chaining. + */ + public Builder setAssigneeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assignee_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
                                                                                        +       * The description of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string description = 3; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +       * The description of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string description = 3; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +       * The description of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The description of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The description of the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + /** + * + * + *
                                                                                        +       * The link to the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string uri = 4; + * + * @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; + } + } + /** + * + * + *
                                                                                        +       * The link to the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string uri = 4; + * + * @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; + } + } + /** + * + * + *
                                                                                        +       * The link to the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string uri = 4; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The link to the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string uri = 4; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The link to the ticket in the ticket system.
                                                                                        +       * 
                                                                                        + * + * string uri = 4; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + /** + * + * + *
                                                                                        +       * The latest status of the ticket, as reported by the ticket system.
                                                                                        +       * 
                                                                                        + * + * string status = 5; + * + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +       * The latest status of the ticket, as reported by the ticket system.
                                                                                        +       * 
                                                                                        + * + * string status = 5; + * + * @return The bytes for status. + */ + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +       * The latest status of the ticket, as reported by the ticket system.
                                                                                        +       * 
                                                                                        + * + * string status = 5; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The latest status of the ticket, as reported by the ticket system.
                                                                                        +       * 
                                                                                        + * + * string status = 5; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The latest status of the ticket, as reported by the ticket system.
                                                                                        +       * 
                                                                                        + * + * string status = 5; + * + * @param value The bytes for status to set. + * @return This builder for chaining. + */ + public Builder setStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + status_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
                                                                                        +       * The time when the ticket was last updated, as reported by the ticket
                                                                                        +       * system.
                                                                                        +       * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
                                                                                        +       * The time when the ticket was last updated, as reported by the ticket
                                                                                        +       * system.
                                                                                        +       * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
                                                                                        +       * The time when the ticket was last updated, as reported by the ticket
                                                                                        +       * system.
                                                                                        +       * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The time when the ticket was last updated, as reported by the ticket
                                                                                        +       * system.
                                                                                        +       * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The time when the ticket was last updated, as reported by the ticket
                                                                                        +       * system.
                                                                                        +       * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * + * + *
                                                                                        +       * The time when the ticket was last updated, as reported by the ticket
                                                                                        +       * system.
                                                                                        +       * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The time when the ticket was last updated, as reported by the ticket
                                                                                        +       * system.
                                                                                        +       * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                        +       * The time when the ticket was last updated, as reported by the ticket
                                                                                        +       * system.
                                                                                        +       * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
                                                                                        +       * The time when the ticket was last updated, as reported by the ticket
                                                                                        +       * system.
                                                                                        +       * 
                                                                                        + * + * .google.protobuf.Timestamp update_time = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @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.securitycenter.v1.ExternalSystem.TicketInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.ExternalSystem.TicketInfo) + private static final com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo(); + } + + public static com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TicketInfo 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.securitycenter.v1.ExternalSystem.TicketInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                                                                        +   * Full resource name of the external system, for example:
                                                                                        +   * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        +   * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        +   * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
                                                                                        +   * 
                                                                                        + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +   * Full resource name of the external system, for example:
                                                                                        +   * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        +   * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        +   * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
                                                                                        +   * 
                                                                                        + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSIGNEES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList assignees_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
                                                                                        +   * References primary/secondary etc assignees in the external system.
                                                                                        +   * 
                                                                                        + * + * repeated string assignees = 2; + * + * @return A list containing the assignees. + */ + public com.google.protobuf.ProtocolStringList getAssigneesList() { + return assignees_; + } + /** + * + * + *
                                                                                        +   * References primary/secondary etc assignees in the external system.
                                                                                        +   * 
                                                                                        + * + * repeated string assignees = 2; + * + * @return The count of assignees. + */ + public int getAssigneesCount() { + return assignees_.size(); + } + /** + * + * + *
                                                                                        +   * References primary/secondary etc assignees in the external system.
                                                                                        +   * 
                                                                                        + * + * repeated string assignees = 2; + * + * @param index The index of the element to return. + * @return The assignees at the given index. + */ + public java.lang.String getAssignees(int index) { + return assignees_.get(index); + } + /** + * + * + *
                                                                                        +   * References primary/secondary etc assignees in the external system.
                                                                                        +   * 
                                                                                        + * + * repeated string assignees = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assignees at the given index. + */ + public com.google.protobuf.ByteString getAssigneesBytes(int index) { + return assignees_.getByteString(index); + } + + public static final int EXTERNAL_UID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object externalUid_ = ""; + /** + * + * + *
                                                                                        +   * The identifier that's used to track the finding's corresponding case in the
                                                                                        +   * external system.
                                                                                        +   * 
                                                                                        + * + * string external_uid = 3; + * + * @return The externalUid. + */ + @java.lang.Override + public java.lang.String getExternalUid() { + java.lang.Object ref = externalUid_; + 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(); + externalUid_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +   * The identifier that's used to track the finding's corresponding case in the
                                                                                        +   * external system.
                                                                                        +   * 
                                                                                        + * + * string external_uid = 3; + * + * @return The bytes for externalUid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExternalUidBytes() { + java.lang.Object ref = externalUid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object status_ = ""; + /** + * + * + *
                                                                                        +   * The most recent status of the finding's corresponding case, as reported by
                                                                                        +   * the external system.
                                                                                        +   * 
                                                                                        + * + * string status = 4; + * + * @return The status. + */ + @java.lang.Override + public java.lang.String getStatus() { + java.lang.Object ref = status_; + 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(); + status_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +   * The most recent status of the finding's corresponding case, as reported by
                                                                                        +   * the external system.
                                                                                        +   * 
                                                                                        + * + * string status = 4; + * + * @return The bytes for status. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_SYSTEM_UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp externalSystemUpdateTime_; + /** + * + * + *
                                                                                        +   * The time when the case was last updated, as reported by the external
                                                                                        +   * system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp external_system_update_time = 5; + * + * @return Whether the externalSystemUpdateTime field is set. + */ + @java.lang.Override + public boolean hasExternalSystemUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
                                                                                        +   * The time when the case was last updated, as reported by the external
                                                                                        +   * system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp external_system_update_time = 5; + * + * @return The externalSystemUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExternalSystemUpdateTime() { + return externalSystemUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : externalSystemUpdateTime_; + } + /** + * + * + *
                                                                                        +   * The time when the case was last updated, as reported by the external
                                                                                        +   * system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp external_system_update_time = 5; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExternalSystemUpdateTimeOrBuilder() { + return externalSystemUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : externalSystemUpdateTime_; + } + + public static final int CASE_URI_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object caseUri_ = ""; + /** + * + * + *
                                                                                        +   * The link to the finding's corresponding case in the external system.
                                                                                        +   * 
                                                                                        + * + * string case_uri = 6; + * + * @return The caseUri. + */ + @java.lang.Override + public java.lang.String getCaseUri() { + java.lang.Object ref = caseUri_; + 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(); + caseUri_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +   * The link to the finding's corresponding case in the external system.
                                                                                        +   * 
                                                                                        + * + * string case_uri = 6; + * + * @return The bytes for caseUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCaseUriBytes() { + java.lang.Object ref = caseUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caseUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CASE_PRIORITY_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object casePriority_ = ""; + /** + * + * + *
                                                                                        +   * The priority of the finding's corresponding case in the external system.
                                                                                        +   * 
                                                                                        + * + * string case_priority = 7; + * + * @return The casePriority. + */ + @java.lang.Override + public java.lang.String getCasePriority() { + java.lang.Object ref = casePriority_; + 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(); + casePriority_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +   * The priority of the finding's corresponding case in the external system.
                                                                                        +   * 
                                                                                        + * + * string case_priority = 7; + * + * @return The bytes for casePriority. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCasePriorityBytes() { + java.lang.Object ref = casePriority_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + casePriority_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CASE_SLA_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp caseSla_; + /** + * + * + *
                                                                                        +   * The SLA of the finding's corresponding case in the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_sla = 9; + * + * @return Whether the caseSla field is set. + */ + @java.lang.Override + public boolean hasCaseSla() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
                                                                                        +   * The SLA of the finding's corresponding case in the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_sla = 9; + * + * @return The caseSla. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCaseSla() { + return caseSla_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : caseSla_; + } + /** + * + * + *
                                                                                        +   * The SLA of the finding's corresponding case in the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_sla = 9; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCaseSlaOrBuilder() { + return caseSla_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : caseSla_; + } + + public static final int CASE_CREATE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp caseCreateTime_; + /** + * + * + *
                                                                                        +   * The time when the case was created, as reported by the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_create_time = 10; + * + * @return Whether the caseCreateTime field is set. + */ + @java.lang.Override + public boolean hasCaseCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
                                                                                        +   * The time when the case was created, as reported by the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_create_time = 10; + * + * @return The caseCreateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCaseCreateTime() { + return caseCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : caseCreateTime_; + } + /** + * + * + *
                                                                                        +   * The time when the case was created, as reported by the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_create_time = 10; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCaseCreateTimeOrBuilder() { + return caseCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : caseCreateTime_; + } + + public static final int CASE_CLOSE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp caseCloseTime_; + /** + * + * + *
                                                                                        +   * The time when the case was closed, as reported by the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_close_time = 11; + * + * @return Whether the caseCloseTime field is set. + */ + @java.lang.Override + public boolean hasCaseCloseTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
                                                                                        +   * The time when the case was closed, as reported by the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_close_time = 11; + * + * @return The caseCloseTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCaseCloseTime() { + return caseCloseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : caseCloseTime_; + } + /** + * + * + *
                                                                                        +   * The time when the case was closed, as reported by the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_close_time = 11; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCaseCloseTimeOrBuilder() { + return caseCloseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : caseCloseTime_; + } + + public static final int TICKET_INFO_FIELD_NUMBER = 8; + private com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticketInfo_; + /** + * + * + *
                                                                                        +   * Information about the ticket, if any, that is being used to track the
                                                                                        +   * resolution of the issue that is identified by this finding.
                                                                                        +   * 
                                                                                        + * + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; + * + * @return Whether the ticketInfo field is set. + */ + @java.lang.Override + public boolean hasTicketInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
                                                                                        +   * Information about the ticket, if any, that is being used to track the
                                                                                        +   * resolution of the issue that is identified by this finding.
                                                                                        +   * 
                                                                                        + * + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; + * + * @return The ticketInfo. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo getTicketInfo() { + return ticketInfo_ == null + ? com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.getDefaultInstance() + : ticketInfo_; + } + /** + * + * + *
                                                                                        +   * Information about the ticket, if any, that is being used to track the
                                                                                        +   * resolution of the issue that is identified by this finding.
                                                                                        +   * 
                                                                                        + * + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfoOrBuilder + getTicketInfoOrBuilder() { + return ticketInfo_ == null + ? com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.getDefaultInstance() + : ticketInfo_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < assignees_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, assignees_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, externalUid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, status_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getExternalSystemUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caseUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, caseUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(casePriority_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, casePriority_); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(8, getTicketInfo()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getCaseSla()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10, getCaseCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(11, getCaseCloseTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < assignees_.size(); i++) { + dataSize += computeStringSizeNoTag(assignees_.getRaw(i)); + } + size += dataSize; + size += 1 * getAssigneesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalUid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalUid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, status_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getExternalSystemUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caseUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, caseUri_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(casePriority_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, casePriority_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTicketInfo()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCaseSla()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCaseCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCaseCloseTime()); + } + 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.securitycenter.v1.ExternalSystem)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.ExternalSystem other = + (com.google.cloud.securitycenter.v1.ExternalSystem) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAssigneesList().equals(other.getAssigneesList())) return false; + if (!getExternalUid().equals(other.getExternalUid())) return false; + if (!getStatus().equals(other.getStatus())) return false; + if (hasExternalSystemUpdateTime() != other.hasExternalSystemUpdateTime()) return false; + if (hasExternalSystemUpdateTime()) { + if (!getExternalSystemUpdateTime().equals(other.getExternalSystemUpdateTime())) return false; + } + if (!getCaseUri().equals(other.getCaseUri())) return false; + if (!getCasePriority().equals(other.getCasePriority())) return false; + if (hasCaseSla() != other.hasCaseSla()) return false; + if (hasCaseSla()) { + if (!getCaseSla().equals(other.getCaseSla())) return false; + } + if (hasCaseCreateTime() != other.hasCaseCreateTime()) return false; + if (hasCaseCreateTime()) { + if (!getCaseCreateTime().equals(other.getCaseCreateTime())) return false; + } + if (hasCaseCloseTime() != other.hasCaseCloseTime()) return false; + if (hasCaseCloseTime()) { + if (!getCaseCloseTime().equals(other.getCaseCloseTime())) return false; + } + if (hasTicketInfo() != other.hasTicketInfo()) return false; + if (hasTicketInfo()) { + if (!getTicketInfo().equals(other.getTicketInfo())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getAssigneesCount() > 0) { + hash = (37 * hash) + ASSIGNEES_FIELD_NUMBER; + hash = (53 * hash) + getAssigneesList().hashCode(); + } + hash = (37 * hash) + EXTERNAL_UID_FIELD_NUMBER; + hash = (53 * hash) + getExternalUid().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + if (hasExternalSystemUpdateTime()) { + hash = (37 * hash) + EXTERNAL_SYSTEM_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExternalSystemUpdateTime().hashCode(); + } + hash = (37 * hash) + CASE_URI_FIELD_NUMBER; + hash = (53 * hash) + getCaseUri().hashCode(); + hash = (37 * hash) + CASE_PRIORITY_FIELD_NUMBER; + hash = (53 * hash) + getCasePriority().hashCode(); + if (hasCaseSla()) { + hash = (37 * hash) + CASE_SLA_FIELD_NUMBER; + hash = (53 * hash) + getCaseSla().hashCode(); + } + if (hasCaseCreateTime()) { + hash = (37 * hash) + CASE_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCaseCreateTime().hashCode(); + } + if (hasCaseCloseTime()) { + hash = (37 * hash) + CASE_CLOSE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCaseCloseTime().hashCode(); + } + if (hasTicketInfo()) { + hash = (37 * hash) + TICKET_INFO_FIELD_NUMBER; + hash = (53 * hash) + getTicketInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ExternalSystem 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.securitycenter.v1.ExternalSystem parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ExternalSystem 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.securitycenter.v1.ExternalSystem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.ExternalSystem parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ExternalSystem 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.securitycenter.v1.ExternalSystem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ExternalSystem 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.securitycenter.v1.ExternalSystem parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.ExternalSystem 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.securitycenter.v1.ExternalSystem 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; + } + /** + * + * + *
                                                                                        +   * Representation of third party SIEM/SOAR fields within SCC.
                                                                                        +   * 
                                                                                        + * + * Protobuf type {@code google.cloud.securitycenter.v1.ExternalSystem} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.ExternalSystem) + com.google.cloud.securitycenter.v1.ExternalSystemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.ExternalSystemProto + .internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.ExternalSystemProto + .internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.ExternalSystem.class, + com.google.cloud.securitycenter.v1.ExternalSystem.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.ExternalSystem.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExternalSystemUpdateTimeFieldBuilder(); + getCaseSlaFieldBuilder(); + getCaseCreateTimeFieldBuilder(); + getCaseCloseTimeFieldBuilder(); + getTicketInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + assignees_ = com.google.protobuf.LazyStringArrayList.emptyList(); + externalUid_ = ""; + status_ = ""; + externalSystemUpdateTime_ = null; + if (externalSystemUpdateTimeBuilder_ != null) { + externalSystemUpdateTimeBuilder_.dispose(); + externalSystemUpdateTimeBuilder_ = null; + } + caseUri_ = ""; + casePriority_ = ""; + caseSla_ = null; + if (caseSlaBuilder_ != null) { + caseSlaBuilder_.dispose(); + caseSlaBuilder_ = null; + } + caseCreateTime_ = null; + if (caseCreateTimeBuilder_ != null) { + caseCreateTimeBuilder_.dispose(); + caseCreateTimeBuilder_ = null; + } + caseCloseTime_ = null; + if (caseCloseTimeBuilder_ != null) { + caseCloseTimeBuilder_.dispose(); + caseCloseTimeBuilder_ = null; + } + ticketInfo_ = null; + if (ticketInfoBuilder_ != null) { + ticketInfoBuilder_.dispose(); + ticketInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.ExternalSystemProto + .internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ExternalSystem getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ExternalSystem build() { + com.google.cloud.securitycenter.v1.ExternalSystem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.ExternalSystem buildPartial() { + com.google.cloud.securitycenter.v1.ExternalSystem result = + new com.google.cloud.securitycenter.v1.ExternalSystem(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.securitycenter.v1.ExternalSystem result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + assignees_.makeImmutable(); + result.assignees_ = assignees_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.externalUid_ = externalUid_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = status_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.externalSystemUpdateTime_ = + externalSystemUpdateTimeBuilder_ == null + ? externalSystemUpdateTime_ + : externalSystemUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.caseUri_ = caseUri_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.casePriority_ = casePriority_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.caseSla_ = caseSlaBuilder_ == null ? caseSla_ : caseSlaBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.caseCreateTime_ = + caseCreateTimeBuilder_ == null ? caseCreateTime_ : caseCreateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.caseCloseTime_ = + caseCloseTimeBuilder_ == null ? caseCloseTime_ : caseCloseTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.ticketInfo_ = ticketInfoBuilder_ == null ? ticketInfo_ : ticketInfoBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @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.securitycenter.v1.ExternalSystem) { + return mergeFrom((com.google.cloud.securitycenter.v1.ExternalSystem) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.ExternalSystem other) { + if (other == com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.assignees_.isEmpty()) { + if (assignees_.isEmpty()) { + assignees_ = other.assignees_; + bitField0_ |= 0x00000002; + } else { + ensureAssigneesIsMutable(); + assignees_.addAll(other.assignees_); + } + onChanged(); + } + if (!other.getExternalUid().isEmpty()) { + externalUid_ = other.externalUid_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasExternalSystemUpdateTime()) { + mergeExternalSystemUpdateTime(other.getExternalSystemUpdateTime()); + } + if (!other.getCaseUri().isEmpty()) { + caseUri_ = other.caseUri_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getCasePriority().isEmpty()) { + casePriority_ = other.casePriority_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasCaseSla()) { + mergeCaseSla(other.getCaseSla()); + } + if (other.hasCaseCreateTime()) { + mergeCaseCreateTime(other.getCaseCreateTime()); + } + if (other.hasCaseCloseTime()) { + mergeCaseCloseTime(other.getCaseCloseTime()); + } + if (other.hasTicketInfo()) { + mergeTicketInfo(other.getTicketInfo()); + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAssigneesIsMutable(); + assignees_.add(s); + break; + } // case 18 + case 26: + { + externalUid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + status_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getExternalSystemUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + caseUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + casePriority_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(getTicketInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 66 + case 74: + { + input.readMessage(getCaseSlaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 82: + { + input.readMessage(getCaseCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: + { + input.readMessage(getCaseCloseTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 90 + 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 name_ = ""; + /** + * + * + *
                                                                                        +     * Full resource name of the external system, for example:
                                                                                        +     * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        +     * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        +     * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
                                                                                        +     * 
                                                                                        + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +     * Full resource name of the external system, for example:
                                                                                        +     * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        +     * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        +     * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
                                                                                        +     * 
                                                                                        + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +     * Full resource name of the external system, for example:
                                                                                        +     * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        +     * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        +     * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
                                                                                        +     * 
                                                                                        + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * Full resource name of the external system, for example:
                                                                                        +     * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        +     * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        +     * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
                                                                                        +     * 
                                                                                        + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * Full resource name of the external system, for example:
                                                                                        +     * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        +     * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        +     * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
                                                                                        +     * 
                                                                                        + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList assignees_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAssigneesIsMutable() { + if (!assignees_.isModifiable()) { + assignees_ = new com.google.protobuf.LazyStringArrayList(assignees_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
                                                                                        +     * References primary/secondary etc assignees in the external system.
                                                                                        +     * 
                                                                                        + * + * repeated string assignees = 2; + * + * @return A list containing the assignees. + */ + public com.google.protobuf.ProtocolStringList getAssigneesList() { + assignees_.makeImmutable(); + return assignees_; + } + /** + * + * + *
                                                                                        +     * References primary/secondary etc assignees in the external system.
                                                                                        +     * 
                                                                                        + * + * repeated string assignees = 2; + * + * @return The count of assignees. + */ + public int getAssigneesCount() { + return assignees_.size(); + } + /** + * + * + *
                                                                                        +     * References primary/secondary etc assignees in the external system.
                                                                                        +     * 
                                                                                        + * + * repeated string assignees = 2; + * + * @param index The index of the element to return. + * @return The assignees at the given index. + */ + public java.lang.String getAssignees(int index) { + return assignees_.get(index); + } + /** + * + * + *
                                                                                        +     * References primary/secondary etc assignees in the external system.
                                                                                        +     * 
                                                                                        + * + * repeated string assignees = 2; + * + * @param index The index of the value to return. + * @return The bytes of the assignees at the given index. + */ + public com.google.protobuf.ByteString getAssigneesBytes(int index) { + return assignees_.getByteString(index); + } + /** + * + * + *
                                                                                        +     * References primary/secondary etc assignees in the external system.
                                                                                        +     * 
                                                                                        + * + * repeated string assignees = 2; + * + * @param index The index to set the value at. + * @param value The assignees to set. + * @return This builder for chaining. + */ + public Builder setAssignees(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssigneesIsMutable(); + assignees_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * References primary/secondary etc assignees in the external system.
                                                                                        +     * 
                                                                                        + * + * repeated string assignees = 2; + * + * @param value The assignees to add. + * @return This builder for chaining. + */ + public Builder addAssignees(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssigneesIsMutable(); + assignees_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * References primary/secondary etc assignees in the external system.
                                                                                        +     * 
                                                                                        + * + * repeated string assignees = 2; + * + * @param values The assignees to add. + * @return This builder for chaining. + */ + public Builder addAllAssignees(java.lang.Iterable values) { + ensureAssigneesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assignees_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * References primary/secondary etc assignees in the external system.
                                                                                        +     * 
                                                                                        + * + * repeated string assignees = 2; + * + * @return This builder for chaining. + */ + public Builder clearAssignees() { + assignees_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * References primary/secondary etc assignees in the external system.
                                                                                        +     * 
                                                                                        + * + * repeated string assignees = 2; + * + * @param value The bytes of the assignees to add. + * @return This builder for chaining. + */ + public Builder addAssigneesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAssigneesIsMutable(); + assignees_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object externalUid_ = ""; + /** + * + * + *
                                                                                        +     * The identifier that's used to track the finding's corresponding case in the
                                                                                        +     * external system.
                                                                                        +     * 
                                                                                        + * + * string external_uid = 3; + * + * @return The externalUid. + */ + public java.lang.String getExternalUid() { + java.lang.Object ref = externalUid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalUid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +     * The identifier that's used to track the finding's corresponding case in the
                                                                                        +     * external system.
                                                                                        +     * 
                                                                                        + * + * string external_uid = 3; + * + * @return The bytes for externalUid. + */ + public com.google.protobuf.ByteString getExternalUidBytes() { + java.lang.Object ref = externalUid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalUid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +     * The identifier that's used to track the finding's corresponding case in the
                                                                                        +     * external system.
                                                                                        +     * 
                                                                                        + * + * string external_uid = 3; + * + * @param value The externalUid to set. + * @return This builder for chaining. + */ + public Builder setExternalUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + externalUid_ = value; + bitField0_ |= 0x00000004; + onChanged(); return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.securitycenter.v1.ExternalSystemProto - .internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; - } - - @java.lang.Override - public com.google.cloud.securitycenter.v1.ExternalSystem getDefaultInstanceForType() { - return com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance(); + /** + * + * + *
                                                                                        +     * The identifier that's used to track the finding's corresponding case in the
                                                                                        +     * external system.
                                                                                        +     * 
                                                                                        + * + * string external_uid = 3; + * + * @return This builder for chaining. + */ + public Builder clearExternalUid() { + externalUid_ = getDefaultInstance().getExternalUid(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; } - - @java.lang.Override - public com.google.cloud.securitycenter.v1.ExternalSystem build() { - com.google.cloud.securitycenter.v1.ExternalSystem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
                                                                                        +     * The identifier that's used to track the finding's corresponding case in the
                                                                                        +     * external system.
                                                                                        +     * 
                                                                                        + * + * string external_uid = 3; + * + * @param value The bytes for externalUid to set. + * @return This builder for chaining. + */ + public Builder setExternalUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return result; + checkByteStringIsUtf8(value); + externalUid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.securitycenter.v1.ExternalSystem buildPartial() { - com.google.cloud.securitycenter.v1.ExternalSystem result = - new com.google.cloud.securitycenter.v1.ExternalSystem(this); - if (bitField0_ != 0) { - buildPartial0(result); + private java.lang.Object status_ = ""; + /** + * + * + *
                                                                                        +     * The most recent status of the finding's corresponding case, as reported by
                                                                                        +     * the external system.
                                                                                        +     * 
                                                                                        + * + * string status = 4; + * + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; } - onBuilt(); - return result; } - - private void buildPartial0(com.google.cloud.securitycenter.v1.ExternalSystem result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - assignees_.makeImmutable(); - result.assignees_ = assignees_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.externalUid_ = externalUid_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.status_ = status_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.externalSystemUpdateTime_ = - externalSystemUpdateTimeBuilder_ == null - ? externalSystemUpdateTime_ - : externalSystemUpdateTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; + /** + * + * + *
                                                                                        +     * The most recent status of the finding's corresponding case, as reported by
                                                                                        +     * the external system.
                                                                                        +     * 
                                                                                        + * + * string status = 4; + * + * @return The bytes for status. + */ + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - result.bitField0_ |= to_bitField0_; - } - - @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); + /** + * + * + *
                                                                                        +     * The most recent status of the finding's corresponding case, as reported by
                                                                                        +     * the external system.
                                                                                        +     * 
                                                                                        + * + * string status = 4; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
                                                                                        +     * The most recent status of the finding's corresponding case, as reported by
                                                                                        +     * the external system.
                                                                                        +     * 
                                                                                        + * + * string status = 4; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
                                                                                        +     * The most recent status of the finding's corresponding case, as reported by
                                                                                        +     * the external system.
                                                                                        +     * 
                                                                                        + * + * string status = 4; + * + * @param value The bytes for status to set. + * @return This builder for chaining. + */ + public Builder setStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + private com.google.protobuf.Timestamp externalSystemUpdateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + externalSystemUpdateTimeBuilder_; + /** + * + * + *
                                                                                        +     * The time when the case was last updated, as reported by the external
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp external_system_update_time = 5; + * + * @return Whether the externalSystemUpdateTime field is set. + */ + public boolean hasExternalSystemUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
                                                                                        +     * The time when the case was last updated, as reported by the external
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp external_system_update_time = 5; + * + * @return The externalSystemUpdateTime. + */ + public com.google.protobuf.Timestamp getExternalSystemUpdateTime() { + if (externalSystemUpdateTimeBuilder_ == null) { + return externalSystemUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : externalSystemUpdateTime_; + } else { + return externalSystemUpdateTimeBuilder_.getMessage(); + } } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.securitycenter.v1.ExternalSystem) { - return mergeFrom((com.google.cloud.securitycenter.v1.ExternalSystem) other); + /** + * + * + *
                                                                                        +     * The time when the case was last updated, as reported by the external
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp external_system_update_time = 5; + */ + public Builder setExternalSystemUpdateTime(com.google.protobuf.Timestamp value) { + if (externalSystemUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + externalSystemUpdateTime_ = value; } else { - super.mergeFrom(other); - return this; + externalSystemUpdateTimeBuilder_.setMessage(value); } + bitField0_ |= 0x00000010; + onChanged(); + return this; } - - public Builder mergeFrom(com.google.cloud.securitycenter.v1.ExternalSystem other) { - if (other == com.google.cloud.securitycenter.v1.ExternalSystem.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); + /** + * + * + *
                                                                                        +     * The time when the case was last updated, as reported by the external
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp external_system_update_time = 5; + */ + public Builder setExternalSystemUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (externalSystemUpdateTimeBuilder_ == null) { + externalSystemUpdateTime_ = builderForValue.build(); + } else { + externalSystemUpdateTimeBuilder_.setMessage(builderForValue.build()); } - if (!other.assignees_.isEmpty()) { - if (assignees_.isEmpty()) { - assignees_ = other.assignees_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The time when the case was last updated, as reported by the external
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp external_system_update_time = 5; + */ + public Builder mergeExternalSystemUpdateTime(com.google.protobuf.Timestamp value) { + if (externalSystemUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && externalSystemUpdateTime_ != null + && externalSystemUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExternalSystemUpdateTimeBuilder().mergeFrom(value); } else { - ensureAssigneesIsMutable(); - assignees_.addAll(other.assignees_); + externalSystemUpdateTime_ = value; } - onChanged(); - } - if (!other.getExternalUid().isEmpty()) { - externalUid_ = other.externalUid_; - bitField0_ |= 0x00000004; - onChanged(); + } else { + externalSystemUpdateTimeBuilder_.mergeFrom(value); } - if (!other.getStatus().isEmpty()) { - status_ = other.status_; - bitField0_ |= 0x00000008; + if (externalSystemUpdateTime_ != null) { + bitField0_ |= 0x00000010; onChanged(); } - if (other.hasExternalSystemUpdateTime()) { - mergeExternalSystemUpdateTime(other.getExternalSystemUpdateTime()); + return this; + } + /** + * + * + *
                                                                                        +     * The time when the case was last updated, as reported by the external
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp external_system_update_time = 5; + */ + public Builder clearExternalSystemUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + externalSystemUpdateTime_ = null; + if (externalSystemUpdateTimeBuilder_ != null) { + externalSystemUpdateTimeBuilder_.dispose(); + externalSystemUpdateTimeBuilder_ = null; } - this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
                                                                                        +     * The time when the case was last updated, as reported by the external
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp external_system_update_time = 5; + */ + public com.google.protobuf.Timestamp.Builder getExternalSystemUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getExternalSystemUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                        +     * The time when the case was last updated, as reported by the external
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp external_system_update_time = 5; + */ + public com.google.protobuf.TimestampOrBuilder getExternalSystemUpdateTimeOrBuilder() { + if (externalSystemUpdateTimeBuilder_ != null) { + return externalSystemUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return externalSystemUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : externalSystemUpdateTime_; + } + } + /** + * + * + *
                                                                                        +     * The time when the case was last updated, as reported by the external
                                                                                        +     * system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp external_system_update_time = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExternalSystemUpdateTimeFieldBuilder() { + if (externalSystemUpdateTimeBuilder_ == null) { + externalSystemUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExternalSystemUpdateTime(), getParentForChildren(), isClean()); + externalSystemUpdateTime_ = null; + } + return externalSystemUpdateTimeBuilder_; } - @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(); + private java.lang.Object caseUri_ = ""; + /** + * + * + *
                                                                                        +     * The link to the finding's corresponding case in the external system.
                                                                                        +     * 
                                                                                        + * + * string case_uri = 6; + * + * @return The caseUri. + */ + public java.lang.String getCaseUri() { + java.lang.Object ref = caseUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + caseUri_ = s; + return s; + } else { + return (java.lang.String) ref; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureAssigneesIsMutable(); - assignees_.add(s); - break; - } // case 18 - case 26: - { - externalUid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - status_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - getExternalSystemUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - 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 + } + /** + * + * + *
                                                                                        +     * The link to the finding's corresponding case in the external system.
                                                                                        +     * 
                                                                                        + * + * string case_uri = 6; + * + * @return The bytes for caseUri. + */ + public com.google.protobuf.ByteString getCaseUriBytes() { + java.lang.Object ref = caseUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + caseUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +     * The link to the finding's corresponding case in the external system.
                                                                                        +     * 
                                                                                        + * + * string case_uri = 6; + * + * @param value The caseUri to set. + * @return This builder for chaining. + */ + public Builder setCaseUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + caseUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The link to the finding's corresponding case in the external system.
                                                                                        +     * 
                                                                                        + * + * string case_uri = 6; + * + * @return This builder for chaining. + */ + public Builder clearCaseUri() { + caseUri_ = getDefaultInstance().getCaseUri(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The link to the finding's corresponding case in the external system.
                                                                                        +     * 
                                                                                        + * + * string case_uri = 6; + * + * @param value The bytes for caseUri to set. + * @return This builder for chaining. + */ + public Builder setCaseUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caseUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); return this; } - private int bitField0_; - - private java.lang.Object name_ = ""; + private java.lang.Object casePriority_ = ""; /** * * *
                                                                                        -     * Full resource name of the external system, for example:
                                                                                        -     * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        -     * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        -     * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
                                                                                        +     * The priority of the finding's corresponding case in the external system.
                                                                                              * 
                                                                                        * - * string name = 1; + * string case_priority = 7; * - * @return The name. + * @return The casePriority. */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getCasePriority() { + java.lang.Object ref = casePriority_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - name_ = s; + casePriority_ = s; return s; } else { return (java.lang.String) ref; @@ -852,22 +3959,19 @@ public java.lang.String getName() { * * *
                                                                                        -     * Full resource name of the external system, for example:
                                                                                        -     * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        -     * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        -     * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
                                                                                        +     * The priority of the finding's corresponding case in the external system.
                                                                                              * 
                                                                                        * - * string name = 1; + * string case_priority = 7; * - * @return The bytes for name. + * @return The bytes for casePriority. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; + public com.google.protobuf.ByteString getCasePriorityBytes() { + java.lang.Object ref = casePriority_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; + casePriority_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -877,23 +3981,20 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                                                                                        -     * Full resource name of the external system, for example:
                                                                                        -     * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        -     * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        -     * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
                                                                                        +     * The priority of the finding's corresponding case in the external system.
                                                                                              * 
                                                                                        * - * string name = 1; + * string case_priority = 7; * - * @param value The name to set. + * @param value The casePriority to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setCasePriority(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; + casePriority_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -901,19 +4002,16 @@ public Builder setName(java.lang.String value) { * * *
                                                                                        -     * Full resource name of the external system, for example:
                                                                                        -     * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        -     * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        -     * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
                                                                                        +     * The priority of the finding's corresponding case in the external system.
                                                                                              * 
                                                                                        * - * string name = 1; + * string case_priority = 7; * * @return This builder for chaining. */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearCasePriority() { + casePriority_ = getDefaultInstance().getCasePriority(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -921,138 +4019,265 @@ public Builder clearName() { * * *
                                                                                        -     * Full resource name of the external system, for example:
                                                                                        -     * "organizations/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        -     * "folders/1234/sources/5678/findings/123456/externalSystems/jira",
                                                                                        -     * "projects/1234/sources/5678/findings/123456/externalSystems/jira"
                                                                                        +     * The priority of the finding's corresponding case in the external system.
                                                                                              * 
                                                                                        * - * string name = 1; + * string case_priority = 7; * - * @param value The bytes for name to set. + * @param value The bytes for casePriority to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setCasePriorityBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; + casePriority_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } - private com.google.protobuf.LazyStringArrayList assignees_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureAssigneesIsMutable() { - if (!assignees_.isModifiable()) { - assignees_ = new com.google.protobuf.LazyStringArrayList(assignees_); + private com.google.protobuf.Timestamp caseSla_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + caseSlaBuilder_; + /** + * + * + *
                                                                                        +     * The SLA of the finding's corresponding case in the external system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp case_sla = 9; + * + * @return Whether the caseSla field is set. + */ + public boolean hasCaseSla() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
                                                                                        +     * The SLA of the finding's corresponding case in the external system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp case_sla = 9; + * + * @return The caseSla. + */ + public com.google.protobuf.Timestamp getCaseSla() { + if (caseSlaBuilder_ == null) { + return caseSla_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : caseSla_; + } else { + return caseSlaBuilder_.getMessage(); } - bitField0_ |= 0x00000002; } /** * * *
                                                                                        -     * References primary/secondary etc assignees in the external system.
                                                                                        +     * The SLA of the finding's corresponding case in the external system.
                                                                                              * 
                                                                                        * - * repeated string assignees = 2; + * .google.protobuf.Timestamp case_sla = 9; + */ + public Builder setCaseSla(com.google.protobuf.Timestamp value) { + if (caseSlaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + caseSla_ = value; + } else { + caseSlaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** * - * @return A list containing the assignees. + * + *
                                                                                        +     * The SLA of the finding's corresponding case in the external system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp case_sla = 9; */ - public com.google.protobuf.ProtocolStringList getAssigneesList() { - assignees_.makeImmutable(); - return assignees_; + public Builder setCaseSla(com.google.protobuf.Timestamp.Builder builderForValue) { + if (caseSlaBuilder_ == null) { + caseSla_ = builderForValue.build(); + } else { + caseSlaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; } /** * * *
                                                                                        -     * References primary/secondary etc assignees in the external system.
                                                                                        +     * The SLA of the finding's corresponding case in the external system.
                                                                                              * 
                                                                                        * - * repeated string assignees = 2; + * .google.protobuf.Timestamp case_sla = 9; + */ + public Builder mergeCaseSla(com.google.protobuf.Timestamp value) { + if (caseSlaBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && caseSla_ != null + && caseSla_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCaseSlaBuilder().mergeFrom(value); + } else { + caseSla_ = value; + } + } else { + caseSlaBuilder_.mergeFrom(value); + } + if (caseSla_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** * - * @return The count of assignees. + * + *
                                                                                        +     * The SLA of the finding's corresponding case in the external system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp case_sla = 9; */ - public int getAssigneesCount() { - return assignees_.size(); + public Builder clearCaseSla() { + bitField0_ = (bitField0_ & ~0x00000080); + caseSla_ = null; + if (caseSlaBuilder_ != null) { + caseSlaBuilder_.dispose(); + caseSlaBuilder_ = null; + } + onChanged(); + return this; } /** * * *
                                                                                        -     * References primary/secondary etc assignees in the external system.
                                                                                        +     * The SLA of the finding's corresponding case in the external system.
                                                                                              * 
                                                                                        * - * repeated string assignees = 2; + * .google.protobuf.Timestamp case_sla = 9; + */ + public com.google.protobuf.Timestamp.Builder getCaseSlaBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getCaseSlaFieldBuilder().getBuilder(); + } + /** * - * @param index The index of the element to return. - * @return The assignees at the given index. + * + *
                                                                                        +     * The SLA of the finding's corresponding case in the external system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp case_sla = 9; */ - public java.lang.String getAssignees(int index) { - return assignees_.get(index); + public com.google.protobuf.TimestampOrBuilder getCaseSlaOrBuilder() { + if (caseSlaBuilder_ != null) { + return caseSlaBuilder_.getMessageOrBuilder(); + } else { + return caseSla_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : caseSla_; + } } /** * * *
                                                                                        -     * References primary/secondary etc assignees in the external system.
                                                                                        +     * The SLA of the finding's corresponding case in the external system.
                                                                                              * 
                                                                                        * - * repeated string assignees = 2; + * .google.protobuf.Timestamp case_sla = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCaseSlaFieldBuilder() { + if (caseSlaBuilder_ == null) { + caseSlaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCaseSla(), getParentForChildren(), isClean()); + caseSla_ = null; + } + return caseSlaBuilder_; + } + + private com.google.protobuf.Timestamp caseCreateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + caseCreateTimeBuilder_; + /** * - * @param index The index of the value to return. - * @return The bytes of the assignees at the given index. + * + *
                                                                                        +     * The time when the case was created, as reported by the external system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp case_create_time = 10; + * + * @return Whether the caseCreateTime field is set. */ - public com.google.protobuf.ByteString getAssigneesBytes(int index) { - return assignees_.getByteString(index); + public boolean hasCaseCreateTime() { + return ((bitField0_ & 0x00000100) != 0); } /** * * *
                                                                                        -     * References primary/secondary etc assignees in the external system.
                                                                                        +     * The time when the case was created, as reported by the external system.
                                                                                              * 
                                                                                        * - * repeated string assignees = 2; + * .google.protobuf.Timestamp case_create_time = 10; * - * @param index The index to set the value at. - * @param value The assignees to set. - * @return This builder for chaining. + * @return The caseCreateTime. */ - public Builder setAssignees(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public com.google.protobuf.Timestamp getCaseCreateTime() { + if (caseCreateTimeBuilder_ == null) { + return caseCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : caseCreateTime_; + } else { + return caseCreateTimeBuilder_.getMessage(); } - ensureAssigneesIsMutable(); - assignees_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; } /** * * *
                                                                                        -     * References primary/secondary etc assignees in the external system.
                                                                                        +     * The time when the case was created, as reported by the external system.
                                                                                              * 
                                                                                        * - * repeated string assignees = 2; - * - * @param value The assignees to add. - * @return This builder for chaining. + * .google.protobuf.Timestamp case_create_time = 10; */ - public Builder addAssignees(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setCaseCreateTime(com.google.protobuf.Timestamp value) { + if (caseCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + caseCreateTime_ = value; + } else { + caseCreateTimeBuilder_.setMessage(value); } - ensureAssigneesIsMutable(); - assignees_.add(value); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -1060,18 +4285,18 @@ public Builder addAssignees(java.lang.String value) { * * *
                                                                                        -     * References primary/secondary etc assignees in the external system.
                                                                                        +     * The time when the case was created, as reported by the external system.
                                                                                              * 
                                                                                        * - * repeated string assignees = 2; - * - * @param values The assignees to add. - * @return This builder for chaining. + * .google.protobuf.Timestamp case_create_time = 10; */ - public Builder addAllAssignees(java.lang.Iterable values) { - ensureAssigneesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assignees_); - bitField0_ |= 0x00000002; + public Builder setCaseCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (caseCreateTimeBuilder_ == null) { + caseCreateTime_ = builderForValue.build(); + } else { + caseCreateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -1079,17 +4304,45 @@ public Builder addAllAssignees(java.lang.Iterable values) { * * *
                                                                                        -     * References primary/secondary etc assignees in the external system.
                                                                                        +     * The time when the case was created, as reported by the external system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp case_create_time = 10; + */ + public Builder mergeCaseCreateTime(com.google.protobuf.Timestamp value) { + if (caseCreateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && caseCreateTime_ != null + && caseCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCaseCreateTimeBuilder().mergeFrom(value); + } else { + caseCreateTime_ = value; + } + } else { + caseCreateTimeBuilder_.mergeFrom(value); + } + if (caseCreateTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + /** + * + * + *
                                                                                        +     * The time when the case was created, as reported by the external system.
                                                                                              * 
                                                                                        * - * repeated string assignees = 2; - * - * @return This builder for chaining. + * .google.protobuf.Timestamp case_create_time = 10; */ - public Builder clearAssignees() { - assignees_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; + public Builder clearCaseCreateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + caseCreateTime_ = null; + if (caseCreateTimeBuilder_ != null) { + caseCreateTimeBuilder_.dispose(); + caseCreateTimeBuilder_ = null; + } onChanged(); return this; } @@ -1097,198 +4350,184 @@ public Builder clearAssignees() { * * *
                                                                                        -     * References primary/secondary etc assignees in the external system.
                                                                                        +     * The time when the case was created, as reported by the external system.
                                                                                              * 
                                                                                        * - * repeated string assignees = 2; - * - * @param value The bytes of the assignees to add. - * @return This builder for chaining. + * .google.protobuf.Timestamp case_create_time = 10; */ - public Builder addAssigneesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAssigneesIsMutable(); - assignees_.add(value); - bitField0_ |= 0x00000002; + public com.google.protobuf.Timestamp.Builder getCaseCreateTimeBuilder() { + bitField0_ |= 0x00000100; onChanged(); - return this; + return getCaseCreateTimeFieldBuilder().getBuilder(); } - - private java.lang.Object externalUid_ = ""; /** * * *
                                                                                        -     * Identifier that's used to track the given finding in the external system.
                                                                                        +     * The time when the case was created, as reported by the external system.
                                                                                              * 
                                                                                        * - * string external_uid = 3; - * - * @return The externalUid. + * .google.protobuf.Timestamp case_create_time = 10; */ - public java.lang.String getExternalUid() { - java.lang.Object ref = externalUid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - externalUid_ = s; - return s; + public com.google.protobuf.TimestampOrBuilder getCaseCreateTimeOrBuilder() { + if (caseCreateTimeBuilder_ != null) { + return caseCreateTimeBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return caseCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : caseCreateTime_; } } /** * * *
                                                                                        -     * Identifier that's used to track the given finding in the external system.
                                                                                        +     * The time when the case was created, as reported by the external system.
                                                                                              * 
                                                                                        * - * string external_uid = 3; - * - * @return The bytes for externalUid. + * .google.protobuf.Timestamp case_create_time = 10; */ - public com.google.protobuf.ByteString getExternalUidBytes() { - java.lang.Object ref = externalUid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - externalUid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCaseCreateTimeFieldBuilder() { + if (caseCreateTimeBuilder_ == null) { + caseCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCaseCreateTime(), getParentForChildren(), isClean()); + caseCreateTime_ = null; } + return caseCreateTimeBuilder_; } + + private com.google.protobuf.Timestamp caseCloseTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + caseCloseTimeBuilder_; /** * * *
                                                                                        -     * Identifier that's used to track the given finding in the external system.
                                                                                        +     * The time when the case was closed, as reported by the external system.
                                                                                              * 
                                                                                        * - * string external_uid = 3; + * .google.protobuf.Timestamp case_close_time = 11; * - * @param value The externalUid to set. - * @return This builder for chaining. + * @return Whether the caseCloseTime field is set. */ - public Builder setExternalUid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - externalUid_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + public boolean hasCaseCloseTime() { + return ((bitField0_ & 0x00000200) != 0); } /** * * *
                                                                                        -     * Identifier that's used to track the given finding in the external system.
                                                                                        +     * The time when the case was closed, as reported by the external system.
                                                                                              * 
                                                                                        * - * string external_uid = 3; + * .google.protobuf.Timestamp case_close_time = 11; * - * @return This builder for chaining. + * @return The caseCloseTime. */ - public Builder clearExternalUid() { - externalUid_ = getDefaultInstance().getExternalUid(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + public com.google.protobuf.Timestamp getCaseCloseTime() { + if (caseCloseTimeBuilder_ == null) { + return caseCloseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : caseCloseTime_; + } else { + return caseCloseTimeBuilder_.getMessage(); + } } /** * * *
                                                                                        -     * Identifier that's used to track the given finding in the external system.
                                                                                        +     * The time when the case was closed, as reported by the external system.
                                                                                              * 
                                                                                        * - * string external_uid = 3; - * - * @param value The bytes for externalUid to set. - * @return This builder for chaining. + * .google.protobuf.Timestamp case_close_time = 11; */ - public Builder setExternalUidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setCaseCloseTime(com.google.protobuf.Timestamp value) { + if (caseCloseTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + caseCloseTime_ = value; + } else { + caseCloseTimeBuilder_.setMessage(value); } - checkByteStringIsUtf8(value); - externalUid_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000200; onChanged(); return this; } - - private java.lang.Object status_ = ""; /** * * *
                                                                                        -     * Most recent status of the corresponding finding's ticket/tracker in the
                                                                                        -     * external system.
                                                                                        +     * The time when the case was closed, as reported by the external system.
                                                                                              * 
                                                                                        * - * string status = 4; - * - * @return The status. + * .google.protobuf.Timestamp case_close_time = 11; */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - status_ = s; - return s; + public Builder setCaseCloseTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (caseCloseTimeBuilder_ == null) { + caseCloseTime_ = builderForValue.build(); } else { - return (java.lang.String) ref; + caseCloseTimeBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
                                                                                        -     * Most recent status of the corresponding finding's ticket/tracker in the
                                                                                        -     * external system.
                                                                                        +     * The time when the case was closed, as reported by the external system.
                                                                                              * 
                                                                                        * - * string status = 4; - * - * @return The bytes for status. + * .google.protobuf.Timestamp case_close_time = 11; */ - public com.google.protobuf.ByteString getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - status_ = b; - return b; + public Builder mergeCaseCloseTime(com.google.protobuf.Timestamp value) { + if (caseCloseTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && caseCloseTime_ != null + && caseCloseTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCaseCloseTimeBuilder().mergeFrom(value); + } else { + caseCloseTime_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + caseCloseTimeBuilder_.mergeFrom(value); + } + if (caseCloseTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); } + return this; } /** * * *
                                                                                        -     * Most recent status of the corresponding finding's ticket/tracker in the
                                                                                        -     * external system.
                                                                                        +     * The time when the case was closed, as reported by the external system.
                                                                                              * 
                                                                                        * - * string status = 4; - * - * @param value The status to set. - * @return This builder for chaining. + * .google.protobuf.Timestamp case_close_time = 11; */ - public Builder setStatus(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearCaseCloseTime() { + bitField0_ = (bitField0_ & ~0x00000200); + caseCloseTime_ = null; + if (caseCloseTimeBuilder_ != null) { + caseCloseTimeBuilder_.dispose(); + caseCloseTimeBuilder_ = null; } - status_ = value; - bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1296,106 +4535,123 @@ public Builder setStatus(java.lang.String value) { * * *
                                                                                        -     * Most recent status of the corresponding finding's ticket/tracker in the
                                                                                        -     * external system.
                                                                                        +     * The time when the case was closed, as reported by the external system.
                                                                                              * 
                                                                                        * - * string status = 4; - * - * @return This builder for chaining. + * .google.protobuf.Timestamp case_close_time = 11; */ - public Builder clearStatus() { - status_ = getDefaultInstance().getStatus(); - bitField0_ = (bitField0_ & ~0x00000008); + public com.google.protobuf.Timestamp.Builder getCaseCloseTimeBuilder() { + bitField0_ |= 0x00000200; onChanged(); - return this; + return getCaseCloseTimeFieldBuilder().getBuilder(); } /** * * *
                                                                                        -     * Most recent status of the corresponding finding's ticket/tracker in the
                                                                                        -     * external system.
                                                                                        +     * The time when the case was closed, as reported by the external system.
                                                                                              * 
                                                                                        * - * string status = 4; - * - * @param value The bytes for status to set. - * @return This builder for chaining. + * .google.protobuf.Timestamp case_close_time = 11; */ - public Builder setStatusBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.protobuf.TimestampOrBuilder getCaseCloseTimeOrBuilder() { + if (caseCloseTimeBuilder_ != null) { + return caseCloseTimeBuilder_.getMessageOrBuilder(); + } else { + return caseCloseTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : caseCloseTime_; } - checkByteStringIsUtf8(value); - status_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; } - - private com.google.protobuf.Timestamp externalSystemUpdateTime_; + /** + * + * + *
                                                                                        +     * The time when the case was closed, as reported by the external system.
                                                                                        +     * 
                                                                                        + * + * .google.protobuf.Timestamp case_close_time = 11; + */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - externalSystemUpdateTimeBuilder_; + getCaseCloseTimeFieldBuilder() { + if (caseCloseTimeBuilder_ == null) { + caseCloseTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCaseCloseTime(), getParentForChildren(), isClean()); + caseCloseTime_ = null; + } + return caseCloseTimeBuilder_; + } + + private com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticketInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo, + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.Builder, + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfoOrBuilder> + ticketInfoBuilder_; /** * * *
                                                                                        -     * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -     * updated in the external system.
                                                                                        +     * Information about the ticket, if any, that is being used to track the
                                                                                        +     * resolution of the issue that is identified by this finding.
                                                                                              * 
                                                                                        * - * .google.protobuf.Timestamp external_system_update_time = 5; + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; * - * @return Whether the externalSystemUpdateTime field is set. + * @return Whether the ticketInfo field is set. */ - public boolean hasExternalSystemUpdateTime() { - return ((bitField0_ & 0x00000010) != 0); + public boolean hasTicketInfo() { + return ((bitField0_ & 0x00000400) != 0); } /** * * *
                                                                                        -     * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -     * updated in the external system.
                                                                                        +     * Information about the ticket, if any, that is being used to track the
                                                                                        +     * resolution of the issue that is identified by this finding.
                                                                                              * 
                                                                                        * - * .google.protobuf.Timestamp external_system_update_time = 5; + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; * - * @return The externalSystemUpdateTime. + * @return The ticketInfo. */ - public com.google.protobuf.Timestamp getExternalSystemUpdateTime() { - if (externalSystemUpdateTimeBuilder_ == null) { - return externalSystemUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : externalSystemUpdateTime_; + public com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo getTicketInfo() { + if (ticketInfoBuilder_ == null) { + return ticketInfo_ == null + ? com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.getDefaultInstance() + : ticketInfo_; } else { - return externalSystemUpdateTimeBuilder_.getMessage(); + return ticketInfoBuilder_.getMessage(); } } /** * * *
                                                                                        -     * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -     * updated in the external system.
                                                                                        +     * Information about the ticket, if any, that is being used to track the
                                                                                        +     * resolution of the issue that is identified by this finding.
                                                                                              * 
                                                                                        * - * .google.protobuf.Timestamp external_system_update_time = 5; + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; */ - public Builder setExternalSystemUpdateTime(com.google.protobuf.Timestamp value) { - if (externalSystemUpdateTimeBuilder_ == null) { + public Builder setTicketInfo( + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo value) { + if (ticketInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - externalSystemUpdateTime_ = value; + ticketInfo_ = value; } else { - externalSystemUpdateTimeBuilder_.setMessage(value); + ticketInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -1403,20 +4659,20 @@ public Builder setExternalSystemUpdateTime(com.google.protobuf.Timestamp value) * * *
                                                                                        -     * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -     * updated in the external system.
                                                                                        +     * Information about the ticket, if any, that is being used to track the
                                                                                        +     * resolution of the issue that is identified by this finding.
                                                                                              * 
                                                                                        * - * .google.protobuf.Timestamp external_system_update_time = 5; + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; */ - public Builder setExternalSystemUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (externalSystemUpdateTimeBuilder_ == null) { - externalSystemUpdateTime_ = builderForValue.build(); + public Builder setTicketInfo( + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.Builder builderForValue) { + if (ticketInfoBuilder_ == null) { + ticketInfo_ = builderForValue.build(); } else { - externalSystemUpdateTimeBuilder_.setMessage(builderForValue.build()); + ticketInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -1424,26 +4680,29 @@ public Builder setExternalSystemUpdateTime( * * *
                                                                                        -     * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -     * updated in the external system.
                                                                                        +     * Information about the ticket, if any, that is being used to track the
                                                                                        +     * resolution of the issue that is identified by this finding.
                                                                                              * 
                                                                                        * - * .google.protobuf.Timestamp external_system_update_time = 5; + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; */ - public Builder mergeExternalSystemUpdateTime(com.google.protobuf.Timestamp value) { - if (externalSystemUpdateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && externalSystemUpdateTime_ != null - && externalSystemUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getExternalSystemUpdateTimeBuilder().mergeFrom(value); + public Builder mergeTicketInfo( + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo value) { + if (ticketInfoBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && ticketInfo_ != null + && ticketInfo_ + != com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo + .getDefaultInstance()) { + getTicketInfoBuilder().mergeFrom(value); } else { - externalSystemUpdateTime_ = value; + ticketInfo_ = value; } } else { - externalSystemUpdateTimeBuilder_.mergeFrom(value); + ticketInfoBuilder_.mergeFrom(value); } - if (externalSystemUpdateTime_ != null) { - bitField0_ |= 0x00000010; + if (ticketInfo_ != null) { + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -1452,18 +4711,18 @@ public Builder mergeExternalSystemUpdateTime(com.google.protobuf.Timestamp value * * *
                                                                                        -     * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -     * updated in the external system.
                                                                                        +     * Information about the ticket, if any, that is being used to track the
                                                                                        +     * resolution of the issue that is identified by this finding.
                                                                                              * 
                                                                                        * - * .google.protobuf.Timestamp external_system_update_time = 5; + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; */ - public Builder clearExternalSystemUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000010); - externalSystemUpdateTime_ = null; - if (externalSystemUpdateTimeBuilder_ != null) { - externalSystemUpdateTimeBuilder_.dispose(); - externalSystemUpdateTimeBuilder_ = null; + public Builder clearTicketInfo() { + bitField0_ = (bitField0_ & ~0x00000400); + ticketInfo_ = null; + if (ticketInfoBuilder_ != null) { + ticketInfoBuilder_.dispose(); + ticketInfoBuilder_ = null; } onChanged(); return this; @@ -1472,61 +4731,63 @@ public Builder clearExternalSystemUpdateTime() { * * *
                                                                                        -     * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -     * updated in the external system.
                                                                                        +     * Information about the ticket, if any, that is being used to track the
                                                                                        +     * resolution of the issue that is identified by this finding.
                                                                                              * 
                                                                                        * - * .google.protobuf.Timestamp external_system_update_time = 5; + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; */ - public com.google.protobuf.Timestamp.Builder getExternalSystemUpdateTimeBuilder() { - bitField0_ |= 0x00000010; + public com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.Builder + getTicketInfoBuilder() { + bitField0_ |= 0x00000400; onChanged(); - return getExternalSystemUpdateTimeFieldBuilder().getBuilder(); + return getTicketInfoFieldBuilder().getBuilder(); } /** * * *
                                                                                        -     * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -     * updated in the external system.
                                                                                        +     * Information about the ticket, if any, that is being used to track the
                                                                                        +     * resolution of the issue that is identified by this finding.
                                                                                              * 
                                                                                        * - * .google.protobuf.Timestamp external_system_update_time = 5; + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; */ - public com.google.protobuf.TimestampOrBuilder getExternalSystemUpdateTimeOrBuilder() { - if (externalSystemUpdateTimeBuilder_ != null) { - return externalSystemUpdateTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfoOrBuilder + getTicketInfoOrBuilder() { + if (ticketInfoBuilder_ != null) { + return ticketInfoBuilder_.getMessageOrBuilder(); } else { - return externalSystemUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : externalSystemUpdateTime_; + return ticketInfo_ == null + ? com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.getDefaultInstance() + : ticketInfo_; } } /** * * *
                                                                                        -     * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -     * updated in the external system.
                                                                                        +     * Information about the ticket, if any, that is being used to track the
                                                                                        +     * resolution of the issue that is identified by this finding.
                                                                                              * 
                                                                                        * - * .google.protobuf.Timestamp external_system_update_time = 5; + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getExternalSystemUpdateTimeFieldBuilder() { - if (externalSystemUpdateTimeBuilder_ == null) { - externalSystemUpdateTimeBuilder_ = + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo, + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.Builder, + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfoOrBuilder> + getTicketInfoFieldBuilder() { + if (ticketInfoBuilder_ == null) { + ticketInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExternalSystemUpdateTime(), getParentForChildren(), isClean()); - externalSystemUpdateTime_ = null; + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo, + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo.Builder, + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfoOrBuilder>( + getTicketInfo(), getParentForChildren(), isClean()); + ticketInfo_ = null; } - return externalSystemUpdateTimeBuilder_; + return ticketInfoBuilder_; } @java.lang.Override diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java index 71ec79684a1d..ccfea8270364 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemOrBuilder.java @@ -110,7 +110,8 @@ public interface ExternalSystemOrBuilder * * *
                                                                                        -   * Identifier that's used to track the given finding in the external system.
                                                                                        +   * The identifier that's used to track the finding's corresponding case in the
                                                                                        +   * external system.
                                                                                            * 
                                                                                        * * string external_uid = 3; @@ -122,7 +123,8 @@ public interface ExternalSystemOrBuilder * * *
                                                                                        -   * Identifier that's used to track the given finding in the external system.
                                                                                        +   * The identifier that's used to track the finding's corresponding case in the
                                                                                        +   * external system.
                                                                                            * 
                                                                                        * * string external_uid = 3; @@ -135,8 +137,8 @@ public interface ExternalSystemOrBuilder * * *
                                                                                        -   * Most recent status of the corresponding finding's ticket/tracker in the
                                                                                        -   * external system.
                                                                                        +   * The most recent status of the finding's corresponding case, as reported by
                                                                                        +   * the external system.
                                                                                            * 
                                                                                        * * string status = 4; @@ -148,8 +150,8 @@ public interface ExternalSystemOrBuilder * * *
                                                                                        -   * Most recent status of the corresponding finding's ticket/tracker in the
                                                                                        -   * external system.
                                                                                        +   * The most recent status of the finding's corresponding case, as reported by
                                                                                        +   * the external system.
                                                                                            * 
                                                                                        * * string status = 4; @@ -162,8 +164,8 @@ public interface ExternalSystemOrBuilder * * *
                                                                                        -   * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -   * updated in the external system.
                                                                                        +   * The time when the case was last updated, as reported by the external
                                                                                        +   * system.
                                                                                            * 
                                                                                        * * .google.protobuf.Timestamp external_system_update_time = 5; @@ -175,8 +177,8 @@ public interface ExternalSystemOrBuilder * * *
                                                                                        -   * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -   * updated in the external system.
                                                                                        +   * The time when the case was last updated, as reported by the external
                                                                                        +   * system.
                                                                                            * 
                                                                                        * * .google.protobuf.Timestamp external_system_update_time = 5; @@ -188,11 +190,204 @@ public interface ExternalSystemOrBuilder * * *
                                                                                        -   * The most recent time when the corresponding finding's ticket/tracker was
                                                                                        -   * updated in the external system.
                                                                                        +   * The time when the case was last updated, as reported by the external
                                                                                        +   * system.
                                                                                            * 
                                                                                        * * .google.protobuf.Timestamp external_system_update_time = 5; */ com.google.protobuf.TimestampOrBuilder getExternalSystemUpdateTimeOrBuilder(); + + /** + * + * + *
                                                                                        +   * The link to the finding's corresponding case in the external system.
                                                                                        +   * 
                                                                                        + * + * string case_uri = 6; + * + * @return The caseUri. + */ + java.lang.String getCaseUri(); + /** + * + * + *
                                                                                        +   * The link to the finding's corresponding case in the external system.
                                                                                        +   * 
                                                                                        + * + * string case_uri = 6; + * + * @return The bytes for caseUri. + */ + com.google.protobuf.ByteString getCaseUriBytes(); + + /** + * + * + *
                                                                                        +   * The priority of the finding's corresponding case in the external system.
                                                                                        +   * 
                                                                                        + * + * string case_priority = 7; + * + * @return The casePriority. + */ + java.lang.String getCasePriority(); + /** + * + * + *
                                                                                        +   * The priority of the finding's corresponding case in the external system.
                                                                                        +   * 
                                                                                        + * + * string case_priority = 7; + * + * @return The bytes for casePriority. + */ + com.google.protobuf.ByteString getCasePriorityBytes(); + + /** + * + * + *
                                                                                        +   * The SLA of the finding's corresponding case in the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_sla = 9; + * + * @return Whether the caseSla field is set. + */ + boolean hasCaseSla(); + /** + * + * + *
                                                                                        +   * The SLA of the finding's corresponding case in the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_sla = 9; + * + * @return The caseSla. + */ + com.google.protobuf.Timestamp getCaseSla(); + /** + * + * + *
                                                                                        +   * The SLA of the finding's corresponding case in the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_sla = 9; + */ + com.google.protobuf.TimestampOrBuilder getCaseSlaOrBuilder(); + + /** + * + * + *
                                                                                        +   * The time when the case was created, as reported by the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_create_time = 10; + * + * @return Whether the caseCreateTime field is set. + */ + boolean hasCaseCreateTime(); + /** + * + * + *
                                                                                        +   * The time when the case was created, as reported by the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_create_time = 10; + * + * @return The caseCreateTime. + */ + com.google.protobuf.Timestamp getCaseCreateTime(); + /** + * + * + *
                                                                                        +   * The time when the case was created, as reported by the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_create_time = 10; + */ + com.google.protobuf.TimestampOrBuilder getCaseCreateTimeOrBuilder(); + + /** + * + * + *
                                                                                        +   * The time when the case was closed, as reported by the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_close_time = 11; + * + * @return Whether the caseCloseTime field is set. + */ + boolean hasCaseCloseTime(); + /** + * + * + *
                                                                                        +   * The time when the case was closed, as reported by the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_close_time = 11; + * + * @return The caseCloseTime. + */ + com.google.protobuf.Timestamp getCaseCloseTime(); + /** + * + * + *
                                                                                        +   * The time when the case was closed, as reported by the external system.
                                                                                        +   * 
                                                                                        + * + * .google.protobuf.Timestamp case_close_time = 11; + */ + com.google.protobuf.TimestampOrBuilder getCaseCloseTimeOrBuilder(); + + /** + * + * + *
                                                                                        +   * Information about the ticket, if any, that is being used to track the
                                                                                        +   * resolution of the issue that is identified by this finding.
                                                                                        +   * 
                                                                                        + * + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; + * + * @return Whether the ticketInfo field is set. + */ + boolean hasTicketInfo(); + /** + * + * + *
                                                                                        +   * Information about the ticket, if any, that is being used to track the
                                                                                        +   * resolution of the issue that is identified by this finding.
                                                                                        +   * 
                                                                                        + * + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; + * + * @return The ticketInfo. + */ + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfo getTicketInfo(); + /** + * + * + *
                                                                                        +   * Information about the ticket, if any, that is being used to track the
                                                                                        +   * resolution of the issue that is identified by this finding.
                                                                                        +   * 
                                                                                        + * + * .google.cloud.securitycenter.v1.ExternalSystem.TicketInfo ticket_info = 8; + */ + com.google.cloud.securitycenter.v1.ExternalSystem.TicketInfoOrBuilder getTicketInfoOrBuilder(); } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java index 575ce375157a..33abc7184aa1 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/ExternalSystemProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_securitycenter_v1_ExternalSystem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_ExternalSystem_TicketInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_ExternalSystem_TicketInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -44,25 +48,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n4google/cloud/securitycenter/v1/externa" + "l_system.proto\022\036google.cloud.securitycen" + "ter.v1\032\031google/api/resource.proto\032\037googl" - + "e/protobuf/timestamp.proto\"\340\003\n\016ExternalS" + + "e/protobuf/timestamp.proto\"\202\007\n\016ExternalS" + "ystem\022\014\n\004name\030\001 \001(\t\022\021\n\tassignees\030\002 \003(\t\022\024" + "\n\014external_uid\030\003 \001(\t\022\016\n\006status\030\004 \001(\t\022?\n\033" + "external_system_update_time\030\005 \001(\0132\032.goog" - + "le.protobuf.Timestamp:\305\002\352A\301\002\n,securityce" - + "nter.googleapis.com/ExternalSystem\022aorga" - + "nizations/{organization}/sources/{source" - + "}/findings/{finding}/externalSystems/{ex" - + "ternalsystem}\022Ufolders/{folder}/sources/" - + "{source}/findings/{finding}/externalSyst" - + "ems/{externalsystem}\022Wprojects/{project}" - + "/sources/{source}/findings/{finding}/ext" - + "ernalSystems/{externalsystem}B\355\001\n\"com.go" - + "ogle.cloud.securitycenter.v1B\023ExternalSy" - + "stemProtoP\001ZJcloud.google.com/go/securit" - + "ycenter/apiv1/securitycenterpb;securityc" - + "enterpb\252\002\036Google.Cloud.SecurityCenter.V1" - + "\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Goog" - + "le::Cloud::SecurityCenter::V1b\006proto3" + + "le.protobuf.Timestamp\022\020\n\010case_uri\030\006 \001(\t\022" + + "\025\n\rcase_priority\030\007 \001(\t\022,\n\010case_sla\030\t \001(\013" + + "2\032.google.protobuf.Timestamp\0224\n\020case_cre" + + "ate_time\030\n \001(\0132\032.google.protobuf.Timesta" + + "mp\0223\n\017case_close_time\030\013 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022N\n\013ticket_info\030\010 \001(\01329.g" + + "oogle.cloud.securitycenter.v1.ExternalSy" + + "stem.TicketInfo\032\215\001\n\nTicketInfo\022\n\n\002id\030\001 \001" + + "(\t\022\020\n\010assignee\030\002 \001(\t\022\023\n\013description\030\003 \001(" + + "\t\022\013\n\003uri\030\004 \001(\t\022\016\n\006status\030\005 \001(\t\022/\n\013update" + + "_time\030\006 \001(\0132\032.google.protobuf.Timestamp:" + + "\305\002\352A\301\002\n,securitycenter.googleapis.com/Ex" + + "ternalSystem\022aorganizations/{organizatio" + + "n}/sources/{source}/findings/{finding}/e" + + "xternalSystems/{externalsystem}\022Ufolders" + + "/{folder}/sources/{source}/findings/{fin" + + "ding}/externalSystems/{externalsystem}\022W" + + "projects/{project}/sources/{source}/find" + + "ings/{finding}/externalSystems/{external" + + "system}B\355\001\n\"com.google.cloud.securitycen" + + "ter.v1B\023ExternalSystemProtoP\001ZJcloud.goo" + + "gle.com/go/securitycenter/apiv1/security" + + "centerpb;securitycenterpb\252\002\036Google.Cloud" + + ".SecurityCenter.V1\312\002\036Google\\Cloud\\Securi" + + "tyCenter\\V1\352\002!Google::Cloud::SecurityCen" + + "ter::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -77,7 +92,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor, new java.lang.String[] { - "Name", "Assignees", "ExternalUid", "Status", "ExternalSystemUpdateTime", + "Name", + "Assignees", + "ExternalUid", + "Status", + "ExternalSystemUpdateTime", + "CaseUri", + "CasePriority", + "CaseSla", + "CaseCreateTime", + "CaseCloseTime", + "TicketInfo", + }); + internal_static_google_cloud_securitycenter_v1_ExternalSystem_TicketInfo_descriptor = + internal_static_google_cloud_securitycenter_v1_ExternalSystem_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_ExternalSystem_TicketInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_ExternalSystem_TicketInfo_descriptor, + new java.lang.String[] { + "Id", "Assignee", "Description", "Uri", "Status", "UpdateTime", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java index 0c012fb81a6c..3f59536a25a3 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/Finding.java @@ -803,6 +803,17 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { * SCC_ERROR = 5; */ SCC_ERROR(5), + /** + * + * + *
                                                                                        +     * Describes a potential security risk due to a change in the security
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * POSTURE_VIOLATION = 6; + */ + POSTURE_VIOLATION(6), UNRECOGNIZED(-1), ; @@ -868,6 +879,17 @@ public enum FindingClass implements com.google.protobuf.ProtocolMessageEnum { * SCC_ERROR = 5; */ public static final int SCC_ERROR_VALUE = 5; + /** + * + * + *
                                                                                        +     * Describes a potential security risk due to a change in the security
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * POSTURE_VIOLATION = 6; + */ + public static final int POSTURE_VIOLATION_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -905,6 +927,8 @@ public static FindingClass forNumber(int value) { return OBSERVATION; case 5: return SCC_ERROR; + case 6: + return POSTURE_VIOLATION; default: return null; } @@ -3531,6 +3555,56 @@ public com.google.cloud.securitycenter.v1.BackupDisasterRecovery getBackupDisast : backupDisasterRecovery_; } + public static final int SECURITY_POSTURE_FIELD_NUMBER = 56; + private com.google.cloud.securitycenter.v1.SecurityPosture securityPosture_; + /** + * + * + *
                                                                                        +   * The security posture associated with the finding.
                                                                                        +   * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + * + * @return Whether the securityPosture field is set. + */ + @java.lang.Override + public boolean hasSecurityPosture() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * + * + *
                                                                                        +   * The security posture associated with the finding.
                                                                                        +   * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + * + * @return The securityPosture. + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityPosture getSecurityPosture() { + return securityPosture_ == null + ? com.google.cloud.securitycenter.v1.SecurityPosture.getDefaultInstance() + : securityPosture_; + } + /** + * + * + *
                                                                                        +   * The security posture associated with the finding.
                                                                                        +   * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityPostureOrBuilder getSecurityPostureOrBuilder() { + return securityPosture_ == null + ? com.google.cloud.securitycenter.v1.SecurityPosture.getDefaultInstance() + : securityPosture_; + } + public static final int LOG_ENTRIES_FIELD_NUMBER = 57; @SuppressWarnings("serial") @@ -3811,6 +3885,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00008000) != 0)) { output.writeMessage(55, getBackupDisasterRecovery()); } + if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(56, getSecurityPosture()); + } for (int i = 0; i < logEntries_.size(); i++) { output.writeMessage(57, logEntries_.get(i)); } @@ -3979,6 +4056,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(55, getBackupDisasterRecovery()); } + if (((bitField0_ & 0x00010000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(56, getSecurityPosture()); + } for (int i = 0; i < logEntries_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(57, logEntries_.get(i)); } @@ -4090,6 +4170,10 @@ public boolean equals(final java.lang.Object obj) { if (hasBackupDisasterRecovery()) { if (!getBackupDisasterRecovery().equals(other.getBackupDisasterRecovery())) return false; } + if (hasSecurityPosture() != other.hasSecurityPosture()) return false; + if (hasSecurityPosture()) { + if (!getSecurityPosture().equals(other.getSecurityPosture())) return false; + } if (!getLogEntriesList().equals(other.getLogEntriesList())) return false; if (!getLoadBalancersList().equals(other.getLoadBalancersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -4237,6 +4321,10 @@ public int hashCode() { hash = (37 * hash) + BACKUP_DISASTER_RECOVERY_FIELD_NUMBER; hash = (53 * hash) + getBackupDisasterRecovery().hashCode(); } + if (hasSecurityPosture()) { + hash = (37 * hash) + SECURITY_POSTURE_FIELD_NUMBER; + hash = (53 * hash) + getSecurityPosture().hashCode(); + } if (getLogEntriesCount() > 0) { hash = (37 * hash) + LOG_ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getLogEntriesList().hashCode(); @@ -4444,6 +4532,7 @@ private void maybeForceBuilderInitialization() { getOrgPoliciesFieldBuilder(); getApplicationFieldBuilder(); getBackupDisasterRecoveryFieldBuilder(); + getSecurityPostureFieldBuilder(); getLogEntriesFieldBuilder(); getLoadBalancersFieldBuilder(); } @@ -4601,20 +4690,25 @@ public Builder clear() { backupDisasterRecoveryBuilder_.dispose(); backupDisasterRecoveryBuilder_ = null; } + securityPosture_ = null; + if (securityPostureBuilder_ != null) { + securityPostureBuilder_.dispose(); + securityPostureBuilder_ = null; + } if (logEntriesBuilder_ == null) { logEntries_ = java.util.Collections.emptyList(); } else { logEntries_ = null; logEntriesBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00000200); + bitField1_ = (bitField1_ & ~0x00000400); if (loadBalancersBuilder_ == null) { loadBalancers_ = java.util.Collections.emptyList(); } else { loadBalancers_ = null; loadBalancersBuilder_.clear(); } - bitField1_ = (bitField1_ & ~0x00000400); + bitField1_ = (bitField1_ & ~0x00000800); return this; } @@ -4718,18 +4812,18 @@ private void buildPartialRepeatedFields(com.google.cloud.securitycenter.v1.Findi result.orgPolicies_ = orgPoliciesBuilder_.build(); } if (logEntriesBuilder_ == null) { - if (((bitField1_ & 0x00000200) != 0)) { + if (((bitField1_ & 0x00000400) != 0)) { logEntries_ = java.util.Collections.unmodifiableList(logEntries_); - bitField1_ = (bitField1_ & ~0x00000200); + bitField1_ = (bitField1_ & ~0x00000400); } result.logEntries_ = logEntries_; } else { result.logEntries_ = logEntriesBuilder_.build(); } if (loadBalancersBuilder_ == null) { - if (((bitField1_ & 0x00000400) != 0)) { + if (((bitField1_ & 0x00000800) != 0)) { loadBalancers_ = java.util.Collections.unmodifiableList(loadBalancers_); - bitField1_ = (bitField1_ & ~0x00000400); + bitField1_ = (bitField1_ & ~0x00000800); } result.loadBalancers_ = loadBalancers_; } else { @@ -4882,6 +4976,11 @@ private void buildPartial1(com.google.cloud.securitycenter.v1.Finding result) { : backupDisasterRecoveryBuilder_.build(); to_bitField0_ |= 0x00008000; } + if (((from_bitField1_ & 0x00000200) != 0)) { + result.securityPosture_ = + securityPostureBuilder_ == null ? securityPosture_ : securityPostureBuilder_.build(); + to_bitField0_ |= 0x00010000; + } result.bitField0_ |= to_bitField0_; } @@ -5240,11 +5339,14 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) { if (other.hasBackupDisasterRecovery()) { mergeBackupDisasterRecovery(other.getBackupDisasterRecovery()); } + if (other.hasSecurityPosture()) { + mergeSecurityPosture(other.getSecurityPosture()); + } if (logEntriesBuilder_ == null) { if (!other.logEntries_.isEmpty()) { if (logEntries_.isEmpty()) { logEntries_ = other.logEntries_; - bitField1_ = (bitField1_ & ~0x00000200); + bitField1_ = (bitField1_ & ~0x00000400); } else { ensureLogEntriesIsMutable(); logEntries_.addAll(other.logEntries_); @@ -5257,7 +5359,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) { logEntriesBuilder_.dispose(); logEntriesBuilder_ = null; logEntries_ = other.logEntries_; - bitField1_ = (bitField1_ & ~0x00000200); + bitField1_ = (bitField1_ & ~0x00000400); logEntriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLogEntriesFieldBuilder() @@ -5271,7 +5373,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) { if (!other.loadBalancers_.isEmpty()) { if (loadBalancers_.isEmpty()) { loadBalancers_ = other.loadBalancers_; - bitField1_ = (bitField1_ & ~0x00000400); + bitField1_ = (bitField1_ & ~0x00000800); } else { ensureLoadBalancersIsMutable(); loadBalancers_.addAll(other.loadBalancers_); @@ -5284,7 +5386,7 @@ public Builder mergeFrom(com.google.cloud.securitycenter.v1.Finding other) { loadBalancersBuilder_.dispose(); loadBalancersBuilder_ = null; loadBalancers_ = other.loadBalancers_; - bitField1_ = (bitField1_ & ~0x00000400); + bitField1_ = (bitField1_ & ~0x00000800); loadBalancersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLoadBalancersFieldBuilder() @@ -5641,6 +5743,12 @@ public Builder mergeFrom( bitField1_ |= 0x00000100; break; } // case 442 + case 450: + { + input.readMessage(getSecurityPostureFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000200; + break; + } // case 450 case 458: { com.google.cloud.securitycenter.v1.LogEntry m = @@ -13949,14 +14057,202 @@ public Builder clearBackupDisasterRecovery() { return backupDisasterRecoveryBuilder_; } + private com.google.cloud.securitycenter.v1.SecurityPosture securityPosture_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityPosture, + com.google.cloud.securitycenter.v1.SecurityPosture.Builder, + com.google.cloud.securitycenter.v1.SecurityPostureOrBuilder> + securityPostureBuilder_; + /** + * + * + *
                                                                                        +     * The security posture associated with the finding.
                                                                                        +     * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + * + * @return Whether the securityPosture field is set. + */ + public boolean hasSecurityPosture() { + return ((bitField1_ & 0x00000200) != 0); + } + /** + * + * + *
                                                                                        +     * The security posture associated with the finding.
                                                                                        +     * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + * + * @return The securityPosture. + */ + public com.google.cloud.securitycenter.v1.SecurityPosture getSecurityPosture() { + if (securityPostureBuilder_ == null) { + return securityPosture_ == null + ? com.google.cloud.securitycenter.v1.SecurityPosture.getDefaultInstance() + : securityPosture_; + } else { + return securityPostureBuilder_.getMessage(); + } + } + /** + * + * + *
                                                                                        +     * The security posture associated with the finding.
                                                                                        +     * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + */ + public Builder setSecurityPosture(com.google.cloud.securitycenter.v1.SecurityPosture value) { + if (securityPostureBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + securityPosture_ = value; + } else { + securityPostureBuilder_.setMessage(value); + } + bitField1_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The security posture associated with the finding.
                                                                                        +     * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + */ + public Builder setSecurityPosture( + com.google.cloud.securitycenter.v1.SecurityPosture.Builder builderForValue) { + if (securityPostureBuilder_ == null) { + securityPosture_ = builderForValue.build(); + } else { + securityPostureBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The security posture associated with the finding.
                                                                                        +     * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + */ + public Builder mergeSecurityPosture(com.google.cloud.securitycenter.v1.SecurityPosture value) { + if (securityPostureBuilder_ == null) { + if (((bitField1_ & 0x00000200) != 0) + && securityPosture_ != null + && securityPosture_ + != com.google.cloud.securitycenter.v1.SecurityPosture.getDefaultInstance()) { + getSecurityPostureBuilder().mergeFrom(value); + } else { + securityPosture_ = value; + } + } else { + securityPostureBuilder_.mergeFrom(value); + } + if (securityPosture_ != null) { + bitField1_ |= 0x00000200; + onChanged(); + } + return this; + } + /** + * + * + *
                                                                                        +     * The security posture associated with the finding.
                                                                                        +     * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + */ + public Builder clearSecurityPosture() { + bitField1_ = (bitField1_ & ~0x00000200); + securityPosture_ = null; + if (securityPostureBuilder_ != null) { + securityPostureBuilder_.dispose(); + securityPostureBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The security posture associated with the finding.
                                                                                        +     * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + */ + public com.google.cloud.securitycenter.v1.SecurityPosture.Builder getSecurityPostureBuilder() { + bitField1_ |= 0x00000200; + onChanged(); + return getSecurityPostureFieldBuilder().getBuilder(); + } + /** + * + * + *
                                                                                        +     * The security posture associated with the finding.
                                                                                        +     * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + */ + public com.google.cloud.securitycenter.v1.SecurityPostureOrBuilder + getSecurityPostureOrBuilder() { + if (securityPostureBuilder_ != null) { + return securityPostureBuilder_.getMessageOrBuilder(); + } else { + return securityPosture_ == null + ? com.google.cloud.securitycenter.v1.SecurityPosture.getDefaultInstance() + : securityPosture_; + } + } + /** + * + * + *
                                                                                        +     * The security posture associated with the finding.
                                                                                        +     * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityPosture, + com.google.cloud.securitycenter.v1.SecurityPosture.Builder, + com.google.cloud.securitycenter.v1.SecurityPostureOrBuilder> + getSecurityPostureFieldBuilder() { + if (securityPostureBuilder_ == null) { + securityPostureBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityPosture, + com.google.cloud.securitycenter.v1.SecurityPosture.Builder, + com.google.cloud.securitycenter.v1.SecurityPostureOrBuilder>( + getSecurityPosture(), getParentForChildren(), isClean()); + securityPosture_ = null; + } + return securityPostureBuilder_; + } + private java.util.List logEntries_ = java.util.Collections.emptyList(); private void ensureLogEntriesIsMutable() { - if (!((bitField1_ & 0x00000200) != 0)) { + if (!((bitField1_ & 0x00000400) != 0)) { logEntries_ = new java.util.ArrayList(logEntries_); - bitField1_ |= 0x00000200; + bitField1_ |= 0x00000400; } } @@ -14172,7 +14468,7 @@ public Builder addAllLogEntries( public Builder clearLogEntries() { if (logEntriesBuilder_ == null) { logEntries_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00000200); + bitField1_ = (bitField1_ & ~0x00000400); onChanged(); } else { logEntriesBuilder_.clear(); @@ -14294,7 +14590,7 @@ public com.google.cloud.securitycenter.v1.LogEntry.Builder addLogEntriesBuilder( com.google.cloud.securitycenter.v1.LogEntry, com.google.cloud.securitycenter.v1.LogEntry.Builder, com.google.cloud.securitycenter.v1.LogEntryOrBuilder>( - logEntries_, ((bitField1_ & 0x00000200) != 0), getParentForChildren(), isClean()); + logEntries_, ((bitField1_ & 0x00000400) != 0), getParentForChildren(), isClean()); logEntries_ = null; } return logEntriesBuilder_; @@ -14304,11 +14600,11 @@ public com.google.cloud.securitycenter.v1.LogEntry.Builder addLogEntriesBuilder( java.util.Collections.emptyList(); private void ensureLoadBalancersIsMutable() { - if (!((bitField1_ & 0x00000400) != 0)) { + if (!((bitField1_ & 0x00000800) != 0)) { loadBalancers_ = new java.util.ArrayList( loadBalancers_); - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; } } @@ -14526,7 +14822,7 @@ public Builder addAllLoadBalancers( public Builder clearLoadBalancers() { if (loadBalancersBuilder_ == null) { loadBalancers_ = java.util.Collections.emptyList(); - bitField1_ = (bitField1_ & ~0x00000400); + bitField1_ = (bitField1_ & ~0x00000800); onChanged(); } else { loadBalancersBuilder_.clear(); @@ -14652,7 +14948,7 @@ public com.google.cloud.securitycenter.v1.LoadBalancer.Builder addLoadBalancersB com.google.cloud.securitycenter.v1.LoadBalancer.Builder, com.google.cloud.securitycenter.v1.LoadBalancerOrBuilder>( loadBalancers_, - ((bitField1_ & 0x00000400) != 0), + ((bitField1_ & 0x00000800) != 0), getParentForChildren(), isClean()); loadBalancers_ = null; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java index 31f5d0348ec2..de0905153d00 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOrBuilder.java @@ -1759,6 +1759,41 @@ com.google.cloud.securitycenter.v1.ContactDetails getContactsOrDefault( com.google.cloud.securitycenter.v1.BackupDisasterRecoveryOrBuilder getBackupDisasterRecoveryOrBuilder(); + /** + * + * + *
                                                                                        +   * The security posture associated with the finding.
                                                                                        +   * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + * + * @return Whether the securityPosture field is set. + */ + boolean hasSecurityPosture(); + /** + * + * + *
                                                                                        +   * The security posture associated with the finding.
                                                                                        +   * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + * + * @return The securityPosture. + */ + com.google.cloud.securitycenter.v1.SecurityPosture getSecurityPosture(); + /** + * + * + *
                                                                                        +   * The security posture associated with the finding.
                                                                                        +   * 
                                                                                        + * + * .google.cloud.securitycenter.v1.SecurityPosture security_posture = 56; + */ + com.google.cloud.securitycenter.v1.SecurityPostureOrBuilder getSecurityPostureOrBuilder(); + /** * * diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java index 80746cad8f4c..f1126cd5a827 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/FindingOuterClass.java @@ -85,97 +85,101 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "to\032/google/cloud/securitycenter/v1/org_p" + "olicy.proto\032,google/cloud/securitycenter" + "/v1/process.proto\0323google/cloud/security" - + "center/v1/security_marks.proto\0322google/c" - + "loud/securitycenter/v1/vulnerability.pro" - + "to\032\034google/protobuf/struct.proto\032\037google" - + "/protobuf/timestamp.proto\"\300\031\n\007Finding\022\014\n" - + "\004name\030\001 \001(\t\022\016\n\006parent\030\002 \001(\t\022\025\n\rresource_" - + "name\030\003 \001(\t\022<\n\005state\030\004 \001(\0162-.google.cloud" - + ".securitycenter.v1.Finding.State\022\020\n\010cate" - + "gory\030\005 \001(\t\022\024\n\014external_uri\030\006 \001(\t\022X\n\021sour" - + "ce_properties\030\007 \003(\0132=.google.cloud.secur" - + "itycenter.v1.Finding.SourcePropertiesEnt" - + "ry\022J\n\016security_marks\030\010 \001(\0132-.google.clou" - + "d.securitycenter.v1.SecurityMarksB\003\340A\003\022." - + "\n\nevent_time\030\t \001(\0132\032.google.protobuf.Tim" - + "estamp\022/\n\013create_time\030\n \001(\0132\032.google.pro" - + "tobuf.Timestamp\022B\n\010severity\030\014 \001(\01620.goog" - + "le.cloud.securitycenter.v1.Finding.Sever" - + "ity\022\026\n\016canonical_name\030\016 \001(\t\022:\n\004mute\030\017 \001(" - + "\0162,.google.cloud.securitycenter.v1.Findi" - + "ng.Mute\022K\n\rfinding_class\030\021 \001(\01624.google." - + "cloud.securitycenter.v1.Finding.FindingC" - + "lass\022<\n\tindicator\030\022 \001(\0132).google.cloud.s" - + "ecuritycenter.v1.Indicator\022D\n\rvulnerabil" - + "ity\030\024 \001(\0132-.google.cloud.securitycenter." - + "v1.Vulnerability\0229\n\020mute_update_time\030\025 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022[\n\020e" - + "xternal_systems\030\026 \003(\0132<.google.cloud.sec" - + "uritycenter.v1.Finding.ExternalSystemsEn" - + "tryB\003\340A\003\022A\n\014mitre_attack\030\031 \001(\0132+.google." - + "cloud.securitycenter.v1.MitreAttack\0226\n\006a" - + "ccess\030\032 \001(\0132&.google.cloud.securitycente" - + "r.v1.Access\022?\n\013connections\030\037 \003(\0132*.googl" - + "e.cloud.securitycenter.v1.Connection\022\026\n\016" - + "mute_initiator\030\034 \001(\t\022:\n\tprocesses\030\036 \003(\0132" - + "\'.google.cloud.securitycenter.v1.Process" - + "\022L\n\010contacts\030! \003(\01325.google.cloud.securi" - + "tycenter.v1.Finding.ContactsEntryB\003\340A\003\022?" - + "\n\013compliances\030\" \003(\0132*.google.cloud.secur" - + "itycenter.v1.Compliance\022 \n\023parent_displa" - + "y_name\030$ \001(\tB\003\340A\003\022\023\n\013description\030% \001(\t\022B" - + "\n\014exfiltration\030& \001(\0132,.google.cloud.secu" - + "ritycenter.v1.Exfiltration\022@\n\014iam_bindin" - + "gs\030\' \003(\0132*.google.cloud.securitycenter.v" - + "1.IamBinding\022\022\n\nnext_steps\030( \001(\t\022\023\n\013modu" - + "le_name\030) \001(\t\022=\n\ncontainers\030* \003(\0132).goog" - + "le.cloud.securitycenter.v1.Container\022>\n\n" - + "kubernetes\030+ \001(\0132*.google.cloud.security" - + "center.v1.Kubernetes\022:\n\010database\030, \001(\0132(" - + ".google.cloud.securitycenter.v1.Database" - + "\0223\n\005files\030. \003(\0132$.google.cloud.securityc" - + "enter.v1.File\022P\n\024cloud_dlp_inspection\0300 " - + "\001(\01322.google.cloud.securitycenter.v1.Clo" - + "udDlpInspection\022S\n\026cloud_dlp_data_profil" - + "e\0301 \001(\01323.google.cloud.securitycenter.v1" - + ".CloudDlpDataProfile\022E\n\016kernel_rootkit\0302" - + " \001(\0132-.google.cloud.securitycenter.v1.Ke" - + "rnelRootkit\022?\n\014org_policies\0303 \003(\0132).goog" - + "le.cloud.securitycenter.v1.OrgPolicy\022@\n\013" - + "application\0305 \001(\0132+.google.cloud.securit" - + "ycenter.v1.Application\022X\n\030backup_disaste" - + "r_recovery\0307 \001(\01326.google.cloud.security" - + "center.v1.BackupDisasterRecovery\022=\n\013log_" - + "entries\0309 \003(\0132(.google.cloud.securitycen" - + "ter.v1.LogEntry\022D\n\016load_balancers\030: \003(\0132" - + ",.google.cloud.securitycenter.v1.LoadBal" - + "ancer\032O\n\025SourcePropertiesEntry\022\013\n\003key\030\001 " - + "\001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf.Val" - + "ue:\0028\001\032f\n\024ExternalSystemsEntry\022\013\n\003key\030\001 " - + "\001(\t\022=\n\005value\030\002 \001(\0132..google.cloud.securi" - + "tycenter.v1.ExternalSystem:\0028\001\032_\n\rContac" - + "tsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..go" - + "ogle.cloud.securitycenter.v1.ContactDeta" - + "ils:\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" - + "\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\"Q\n\010Severity\022\030\n" - + "\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRITICAL\020\001\022\010\n" - + "\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004\"C\n\004Mute\022\024\n\020" - + "MUTE_UNSPECIFIED\020\000\022\t\n\005MUTED\020\001\022\013\n\007UNMUTED" - + "\020\002\022\r\n\tUNDEFINED\020\004\"\202\001\n\014FindingClass\022\035\n\031FI" - + "NDING_CLASS_UNSPECIFIED\020\000\022\n\n\006THREAT\020\001\022\021\n" - + "\rVULNERABILITY\020\002\022\024\n\020MISCONFIGURATION\020\003\022\017" - + "\n\013OBSERVATION\020\004\022\r\n\tSCC_ERROR\020\005:\333\001\352A\327\001\n%s" - + "ecuritycenter.googleapis.com/Finding\022@or" - + "ganizations/{organization}/sources/{sour" - + "ce}/findings/{finding}\0224folders/{folder}" - + "/sources/{source}/findings/{finding}\0226pr" - + "ojects/{project}/sources/{source}/findin" - + "gs/{finding}B\330\001\n\"com.google.cloud.securi" - + "tycenter.v1P\001ZJcloud.google.com/go/secur" - + "itycenter/apiv1/securitycenterpb;securit" - + "ycenterpb\252\002\036Google.Cloud.SecurityCenter." - + "V1\312\002\036Google\\Cloud\\SecurityCenter\\V1\352\002!Go" - + "ogle::Cloud::SecurityCenter::V1b\006proto3" + + "center/v1/security_marks.proto\0325google/c" + + "loud/securitycenter/v1/security_posture." + + "proto\0322google/cloud/securitycenter/v1/vu" + + "lnerability.proto\032\034google/protobuf/struc" + + "t.proto\032\037google/protobuf/timestamp.proto" + + "\"\242\032\n\007Finding\022\014\n\004name\030\001 \001(\t\022\016\n\006parent\030\002 \001" + + "(\t\022\025\n\rresource_name\030\003 \001(\t\022<\n\005state\030\004 \001(\016" + + "2-.google.cloud.securitycenter.v1.Findin" + + "g.State\022\020\n\010category\030\005 \001(\t\022\024\n\014external_ur" + + "i\030\006 \001(\t\022X\n\021source_properties\030\007 \003(\0132=.goo" + + "gle.cloud.securitycenter.v1.Finding.Sour" + + "cePropertiesEntry\022J\n\016security_marks\030\010 \001(" + + "\0132-.google.cloud.securitycenter.v1.Secur" + + "ityMarksB\003\340A\003\022.\n\nevent_time\030\t \001(\0132\032.goog" + + "le.protobuf.Timestamp\022/\n\013create_time\030\n \001" + + "(\0132\032.google.protobuf.Timestamp\022B\n\010severi" + + "ty\030\014 \001(\01620.google.cloud.securitycenter.v" + + "1.Finding.Severity\022\026\n\016canonical_name\030\016 \001" + + "(\t\022:\n\004mute\030\017 \001(\0162,.google.cloud.security" + + "center.v1.Finding.Mute\022K\n\rfinding_class\030" + + "\021 \001(\01624.google.cloud.securitycenter.v1.F" + + "inding.FindingClass\022<\n\tindicator\030\022 \001(\0132)" + + ".google.cloud.securitycenter.v1.Indicato" + + "r\022D\n\rvulnerability\030\024 \001(\0132-.google.cloud." + + "securitycenter.v1.Vulnerability\0229\n\020mute_" + + "update_time\030\025 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\022[\n\020external_systems\030\026 \003(\0132<.g" + + "oogle.cloud.securitycenter.v1.Finding.Ex" + + "ternalSystemsEntryB\003\340A\003\022A\n\014mitre_attack\030" + + "\031 \001(\0132+.google.cloud.securitycenter.v1.M" + + "itreAttack\0226\n\006access\030\032 \001(\0132&.google.clou" + + "d.securitycenter.v1.Access\022?\n\013connection" + + "s\030\037 \003(\0132*.google.cloud.securitycenter.v1" + + ".Connection\022\026\n\016mute_initiator\030\034 \001(\t\022:\n\tp" + + "rocesses\030\036 \003(\0132\'.google.cloud.securityce" + + "nter.v1.Process\022L\n\010contacts\030! \003(\01325.goog" + + "le.cloud.securitycenter.v1.Finding.Conta" + + "ctsEntryB\003\340A\003\022?\n\013compliances\030\" \003(\0132*.goo" + + "gle.cloud.securitycenter.v1.Compliance\022 " + + "\n\023parent_display_name\030$ \001(\tB\003\340A\003\022\023\n\013desc" + + "ription\030% \001(\t\022B\n\014exfiltration\030& \001(\0132,.go" + + "ogle.cloud.securitycenter.v1.Exfiltratio" + + "n\022@\n\014iam_bindings\030\' \003(\0132*.google.cloud.s" + + "ecuritycenter.v1.IamBinding\022\022\n\nnext_step" + + "s\030( \001(\t\022\023\n\013module_name\030) \001(\t\022=\n\ncontaine" + + "rs\030* \003(\0132).google.cloud.securitycenter.v" + + "1.Container\022>\n\nkubernetes\030+ \001(\0132*.google" + + ".cloud.securitycenter.v1.Kubernetes\022:\n\010d" + + "atabase\030, \001(\0132(.google.cloud.securitycen" + + "ter.v1.Database\0223\n\005files\030. \003(\0132$.google." + + "cloud.securitycenter.v1.File\022P\n\024cloud_dl" + + "p_inspection\0300 \001(\01322.google.cloud.securi" + + "tycenter.v1.CloudDlpInspection\022S\n\026cloud_" + + "dlp_data_profile\0301 \001(\01323.google.cloud.se" + + "curitycenter.v1.CloudDlpDataProfile\022E\n\016k" + + "ernel_rootkit\0302 \001(\0132-.google.cloud.secur" + + "itycenter.v1.KernelRootkit\022?\n\014org_polici" + + "es\0303 \003(\0132).google.cloud.securitycenter.v" + + "1.OrgPolicy\022@\n\013application\0305 \001(\0132+.googl" + + "e.cloud.securitycenter.v1.Application\022X\n" + + "\030backup_disaster_recovery\0307 \001(\01326.google" + + ".cloud.securitycenter.v1.BackupDisasterR" + + "ecovery\022I\n\020security_posture\0308 \001(\0132/.goog" + + "le.cloud.securitycenter.v1.SecurityPostu" + + "re\022=\n\013log_entries\0309 \003(\0132(.google.cloud.s" + + "ecuritycenter.v1.LogEntry\022D\n\016load_balanc" + + "ers\030: \003(\0132,.google.cloud.securitycenter." + + "v1.LoadBalancer\032O\n\025SourcePropertiesEntry" + + "\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.pr" + + "otobuf.Value:\0028\001\032f\n\024ExternalSystemsEntry" + + "\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..google.cl" + + "oud.securitycenter.v1.ExternalSystem:\0028\001" + + "\032_\n\rContactsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030" + + "\002 \001(\0132..google.cloud.securitycenter.v1.C" + + "ontactDetails:\0028\001\"8\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\014\n\010INACTIVE\020\002\"Q\n\010S" + + "everity\022\030\n\024SEVERITY_UNSPECIFIED\020\000\022\014\n\010CRI" + + "TICAL\020\001\022\010\n\004HIGH\020\002\022\n\n\006MEDIUM\020\003\022\007\n\003LOW\020\004\"C" + + "\n\004Mute\022\024\n\020MUTE_UNSPECIFIED\020\000\022\t\n\005MUTED\020\001\022" + + "\013\n\007UNMUTED\020\002\022\r\n\tUNDEFINED\020\004\"\231\001\n\014FindingC" + + "lass\022\035\n\031FINDING_CLASS_UNSPECIFIED\020\000\022\n\n\006T" + + "HREAT\020\001\022\021\n\rVULNERABILITY\020\002\022\024\n\020MISCONFIGU" + + "RATION\020\003\022\017\n\013OBSERVATION\020\004\022\r\n\tSCC_ERROR\020\005" + + "\022\025\n\021POSTURE_VIOLATION\020\006:\333\001\352A\327\001\n%security" + + "center.googleapis.com/Finding\022@organizat" + + "ions/{organization}/sources/{source}/fin" + + "dings/{finding}\0224folders/{folder}/source" + + "s/{source}/findings/{finding}\0226projects/" + + "{project}/sources/{source}/findings/{fin" + + "ding}B\330\001\n\"com.google.cloud.securitycente" + + "r.v1P\001ZJcloud.google.com/go/securitycent" + + "er/apiv1/securitycenterpb;securitycenter" + + "pb\252\002\036Google.Cloud.SecurityCenter.V1\312\002\036Go" + + "ogle\\Cloud\\SecurityCenter\\V1\352\002!Google::C" + + "loud::SecurityCenter::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -206,6 +210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v1.OrgPolicyProto.getDescriptor(), com.google.cloud.securitycenter.v1.ProcessProto.getDescriptor(), com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(), + com.google.cloud.securitycenter.v1.SecurityPostureProto.getDescriptor(), com.google.cloud.securitycenter.v1.VulnerabilityProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -257,6 +262,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrgPolicies", "Application", "BackupDisasterRecovery", + "SecurityPosture", "LogEntries", "LoadBalancers", }); @@ -315,6 +321,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.securitycenter.v1.OrgPolicyProto.getDescriptor(); com.google.cloud.securitycenter.v1.ProcessProto.getDescriptor(); com.google.cloud.securitycenter.v1.SecurityMarksOuterClass.getDescriptor(); + com.google.cloud.securitycenter.v1.SecurityPostureProto.getDescriptor(); com.google.cloud.securitycenter.v1.VulnerabilityProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityPosture.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityPosture.java new file mode 100644 index 000000000000..760233d20438 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityPosture.java @@ -0,0 +1,3448 @@ +/* + * 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/securitycenter/v1/security_posture.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.securitycenter.v1; + +/** + * + * + *
                                                                                        + * Represents a posture that is deployed on Google Cloud by the
                                                                                        + * Security Command Center Posture Management service.
                                                                                        + * A posture contains one or more policy sets. A policy set is a
                                                                                        + * group of policies that enforce a set of security rules on Google
                                                                                        + * Cloud.
                                                                                        + * 
                                                                                        + * + * Protobuf type {@code google.cloud.securitycenter.v1.SecurityPosture} + */ +public final class SecurityPosture extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SecurityPosture) + SecurityPostureOrBuilder { + private static final long serialVersionUID = 0L; + // Use SecurityPosture.newBuilder() to construct. + private SecurityPosture(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SecurityPosture() { + name_ = ""; + revisionId_ = ""; + postureDeploymentResource_ = ""; + postureDeployment_ = ""; + changedPolicy_ = ""; + policySet_ = ""; + policy_ = ""; + policyDriftDetails_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SecurityPosture(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityPostureProto + .internal_static_google_cloud_securitycenter_v1_SecurityPosture_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityPostureProto + .internal_static_google_cloud_securitycenter_v1_SecurityPosture_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.SecurityPosture.class, + com.google.cloud.securitycenter.v1.SecurityPosture.Builder.class); + } + + public interface PolicyDriftDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                        +     * The name of the updated field, for example
                                                                                        +     * constraint.implementation.policy_rules[0].enforce
                                                                                        +     * 
                                                                                        + * + * string field = 1; + * + * @return The field. + */ + java.lang.String getField(); + /** + * + * + *
                                                                                        +     * The name of the updated field, for example
                                                                                        +     * constraint.implementation.policy_rules[0].enforce
                                                                                        +     * 
                                                                                        + * + * string field = 1; + * + * @return The bytes for field. + */ + com.google.protobuf.ByteString getFieldBytes(); + + /** + * + * + *
                                                                                        +     * The value of this field that was configured in a posture, for example,
                                                                                        +     * `true` or `allowed_values={"projects/29831892"}`.
                                                                                        +     * 
                                                                                        + * + * string expected_value = 2; + * + * @return The expectedValue. + */ + java.lang.String getExpectedValue(); + /** + * + * + *
                                                                                        +     * The value of this field that was configured in a posture, for example,
                                                                                        +     * `true` or `allowed_values={"projects/29831892"}`.
                                                                                        +     * 
                                                                                        + * + * string expected_value = 2; + * + * @return The bytes for expectedValue. + */ + com.google.protobuf.ByteString getExpectedValueBytes(); + + /** + * + * + *
                                                                                        +     * The detected value that violates the deployed posture, for example,
                                                                                        +     * `false` or `allowed_values={"projects/22831892"}`.
                                                                                        +     * 
                                                                                        + * + * string detected_value = 3; + * + * @return The detectedValue. + */ + java.lang.String getDetectedValue(); + /** + * + * + *
                                                                                        +     * The detected value that violates the deployed posture, for example,
                                                                                        +     * `false` or `allowed_values={"projects/22831892"}`.
                                                                                        +     * 
                                                                                        + * + * string detected_value = 3; + * + * @return The bytes for detectedValue. + */ + com.google.protobuf.ByteString getDetectedValueBytes(); + } + /** + * + * + *
                                                                                        +   * The policy field that violates the deployed posture and its expected and
                                                                                        +   * detected values.
                                                                                        +   * 
                                                                                        + * + * Protobuf type {@code google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails} + */ + public static final class PolicyDriftDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails) + PolicyDriftDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PolicyDriftDetails.newBuilder() to construct. + private PolicyDriftDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PolicyDriftDetails() { + field_ = ""; + expectedValue_ = ""; + detectedValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PolicyDriftDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityPostureProto + .internal_static_google_cloud_securitycenter_v1_SecurityPosture_PolicyDriftDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityPostureProto + .internal_static_google_cloud_securitycenter_v1_SecurityPosture_PolicyDriftDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.class, + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.Builder.class); + } + + public static final int FIELD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object field_ = ""; + /** + * + * + *
                                                                                        +     * The name of the updated field, for example
                                                                                        +     * constraint.implementation.policy_rules[0].enforce
                                                                                        +     * 
                                                                                        + * + * string field = 1; + * + * @return The field. + */ + @java.lang.Override + public java.lang.String getField() { + java.lang.Object ref = field_; + 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(); + field_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +     * The name of the updated field, for example
                                                                                        +     * constraint.implementation.policy_rules[0].enforce
                                                                                        +     * 
                                                                                        + * + * string field = 1; + * + * @return The bytes for field. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPECTED_VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object expectedValue_ = ""; + /** + * + * + *
                                                                                        +     * The value of this field that was configured in a posture, for example,
                                                                                        +     * `true` or `allowed_values={"projects/29831892"}`.
                                                                                        +     * 
                                                                                        + * + * string expected_value = 2; + * + * @return The expectedValue. + */ + @java.lang.Override + public java.lang.String getExpectedValue() { + java.lang.Object ref = expectedValue_; + 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(); + expectedValue_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +     * The value of this field that was configured in a posture, for example,
                                                                                        +     * `true` or `allowed_values={"projects/29831892"}`.
                                                                                        +     * 
                                                                                        + * + * string expected_value = 2; + * + * @return The bytes for expectedValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExpectedValueBytes() { + java.lang.Object ref = expectedValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expectedValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DETECTED_VALUE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object detectedValue_ = ""; + /** + * + * + *
                                                                                        +     * The detected value that violates the deployed posture, for example,
                                                                                        +     * `false` or `allowed_values={"projects/22831892"}`.
                                                                                        +     * 
                                                                                        + * + * string detected_value = 3; + * + * @return The detectedValue. + */ + @java.lang.Override + public java.lang.String getDetectedValue() { + java.lang.Object ref = detectedValue_; + 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(); + detectedValue_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +     * The detected value that violates the deployed posture, for example,
                                                                                        +     * `false` or `allowed_values={"projects/22831892"}`.
                                                                                        +     * 
                                                                                        + * + * string detected_value = 3; + * + * @return The bytes for detectedValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDetectedValueBytes() { + java.lang.Object ref = detectedValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + detectedValue_ = 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(field_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expectedValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, expectedValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, detectedValue_); + } + 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(field_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expectedValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, expectedValue_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(detectedValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, detectedValue_); + } + 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.securitycenter.v1.SecurityPosture.PolicyDriftDetails)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails other = + (com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails) obj; + + if (!getField().equals(other.getField())) return false; + if (!getExpectedValue().equals(other.getExpectedValue())) return false; + if (!getDetectedValue().equals(other.getDetectedValue())) 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) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + hash = (37 * hash) + EXPECTED_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getExpectedValue().hashCode(); + hash = (37 * hash) + DETECTED_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDetectedValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails 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.securitycenter.v1.SecurityPosture.PolicyDriftDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails 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.securitycenter.v1.SecurityPosture.PolicyDriftDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails 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.securitycenter.v1.SecurityPosture.PolicyDriftDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails + 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.securitycenter.v1.SecurityPosture.PolicyDriftDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails 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.securitycenter.v1.SecurityPosture.PolicyDriftDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
                                                                                        +     * The policy field that violates the deployed posture and its expected and
                                                                                        +     * detected values.
                                                                                        +     * 
                                                                                        + * + * Protobuf type {@code google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails) + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityPostureProto + .internal_static_google_cloud_securitycenter_v1_SecurityPosture_PolicyDriftDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityPostureProto + .internal_static_google_cloud_securitycenter_v1_SecurityPosture_PolicyDriftDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.class, + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.Builder + .class); + } + + // Construct using + // com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + field_ = ""; + expectedValue_ = ""; + detectedValue_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecurityPostureProto + .internal_static_google_cloud_securitycenter_v1_SecurityPosture_PolicyDriftDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails + getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails build() { + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails buildPartial() { + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails result = + new com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.field_ = field_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.expectedValue_ = expectedValue_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.detectedValue_ = detectedValue_; + } + } + + @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.securitycenter.v1.SecurityPosture.PolicyDriftDetails) { + return mergeFrom( + (com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails other) { + if (other + == com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails + .getDefaultInstance()) return this; + if (!other.getField().isEmpty()) { + field_ = other.field_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getExpectedValue().isEmpty()) { + expectedValue_ = other.expectedValue_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDetectedValue().isEmpty()) { + detectedValue_ = other.detectedValue_; + bitField0_ |= 0x00000004; + 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: + { + field_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + expectedValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + detectedValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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 bitField0_; + + private java.lang.Object field_ = ""; + /** + * + * + *
                                                                                        +       * The name of the updated field, for example
                                                                                        +       * constraint.implementation.policy_rules[0].enforce
                                                                                        +       * 
                                                                                        + * + * string field = 1; + * + * @return The field. + */ + public java.lang.String getField() { + java.lang.Object ref = field_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +       * The name of the updated field, for example
                                                                                        +       * constraint.implementation.policy_rules[0].enforce
                                                                                        +       * 
                                                                                        + * + * string field = 1; + * + * @return The bytes for field. + */ + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +       * The name of the updated field, for example
                                                                                        +       * constraint.implementation.policy_rules[0].enforce
                                                                                        +       * 
                                                                                        + * + * string field = 1; + * + * @param value The field to set. + * @return This builder for chaining. + */ + public Builder setField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The name of the updated field, for example
                                                                                        +       * constraint.implementation.policy_rules[0].enforce
                                                                                        +       * 
                                                                                        + * + * string field = 1; + * + * @return This builder for chaining. + */ + public Builder clearField() { + field_ = getDefaultInstance().getField(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The name of the updated field, for example
                                                                                        +       * constraint.implementation.policy_rules[0].enforce
                                                                                        +       * 
                                                                                        + * + * string field = 1; + * + * @param value The bytes for field to set. + * @return This builder for chaining. + */ + public Builder setFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object expectedValue_ = ""; + /** + * + * + *
                                                                                        +       * The value of this field that was configured in a posture, for example,
                                                                                        +       * `true` or `allowed_values={"projects/29831892"}`.
                                                                                        +       * 
                                                                                        + * + * string expected_value = 2; + * + * @return The expectedValue. + */ + public java.lang.String getExpectedValue() { + java.lang.Object ref = expectedValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + expectedValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +       * The value of this field that was configured in a posture, for example,
                                                                                        +       * `true` or `allowed_values={"projects/29831892"}`.
                                                                                        +       * 
                                                                                        + * + * string expected_value = 2; + * + * @return The bytes for expectedValue. + */ + public com.google.protobuf.ByteString getExpectedValueBytes() { + java.lang.Object ref = expectedValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + expectedValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +       * The value of this field that was configured in a posture, for example,
                                                                                        +       * `true` or `allowed_values={"projects/29831892"}`.
                                                                                        +       * 
                                                                                        + * + * string expected_value = 2; + * + * @param value The expectedValue to set. + * @return This builder for chaining. + */ + public Builder setExpectedValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + expectedValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The value of this field that was configured in a posture, for example,
                                                                                        +       * `true` or `allowed_values={"projects/29831892"}`.
                                                                                        +       * 
                                                                                        + * + * string expected_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearExpectedValue() { + expectedValue_ = getDefaultInstance().getExpectedValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The value of this field that was configured in a posture, for example,
                                                                                        +       * `true` or `allowed_values={"projects/29831892"}`.
                                                                                        +       * 
                                                                                        + * + * string expected_value = 2; + * + * @param value The bytes for expectedValue to set. + * @return This builder for chaining. + */ + public Builder setExpectedValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + expectedValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object detectedValue_ = ""; + /** + * + * + *
                                                                                        +       * The detected value that violates the deployed posture, for example,
                                                                                        +       * `false` or `allowed_values={"projects/22831892"}`.
                                                                                        +       * 
                                                                                        + * + * string detected_value = 3; + * + * @return The detectedValue. + */ + public java.lang.String getDetectedValue() { + java.lang.Object ref = detectedValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + detectedValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +       * The detected value that violates the deployed posture, for example,
                                                                                        +       * `false` or `allowed_values={"projects/22831892"}`.
                                                                                        +       * 
                                                                                        + * + * string detected_value = 3; + * + * @return The bytes for detectedValue. + */ + public com.google.protobuf.ByteString getDetectedValueBytes() { + java.lang.Object ref = detectedValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + detectedValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +       * The detected value that violates the deployed posture, for example,
                                                                                        +       * `false` or `allowed_values={"projects/22831892"}`.
                                                                                        +       * 
                                                                                        + * + * string detected_value = 3; + * + * @param value The detectedValue to set. + * @return This builder for chaining. + */ + public Builder setDetectedValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + detectedValue_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The detected value that violates the deployed posture, for example,
                                                                                        +       * `false` or `allowed_values={"projects/22831892"}`.
                                                                                        +       * 
                                                                                        + * + * string detected_value = 3; + * + * @return This builder for chaining. + */ + public Builder clearDetectedValue() { + detectedValue_ = getDefaultInstance().getDetectedValue(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +       * The detected value that violates the deployed posture, for example,
                                                                                        +       * `false` or `allowed_values={"projects/22831892"}`.
                                                                                        +       * 
                                                                                        + * + * string detected_value = 3; + * + * @param value The bytes for detectedValue to set. + * @return This builder for chaining. + */ + public Builder setDetectedValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + detectedValue_ = value; + bitField0_ |= 0x00000004; + 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.securitycenter.v1.SecurityPosture.PolicyDriftDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails) + private static final com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails(); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyDriftDetails 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.securitycenter.v1.SecurityPosture.PolicyDriftDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
                                                                                        +   * Name of the posture, for example, `CIS-Posture`.
                                                                                        +   * 
                                                                                        + * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +   * Name of the posture, for example, `CIS-Posture`.
                                                                                        +   * 
                                                                                        + * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object revisionId_ = ""; + /** + * + * + *
                                                                                        +   * The version of the posture, for example, `c7cfa2a8`.
                                                                                        +   * 
                                                                                        + * + * string revision_id = 2; + * + * @return The revisionId. + */ + @java.lang.Override + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + 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(); + revisionId_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +   * The version of the posture, for example, `c7cfa2a8`.
                                                                                        +   * 
                                                                                        + * + * string revision_id = 2; + * + * @return The bytes for revisionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSTURE_DEPLOYMENT_RESOURCE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object postureDeploymentResource_ = ""; + /** + * + * + *
                                                                                        +   * The project, folder, or organization on which the posture is deployed,
                                                                                        +   * for example, `projects/{project_number}`.
                                                                                        +   * 
                                                                                        + * + * string posture_deployment_resource = 3; + * + * @return The postureDeploymentResource. + */ + @java.lang.Override + public java.lang.String getPostureDeploymentResource() { + java.lang.Object ref = postureDeploymentResource_; + 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(); + postureDeploymentResource_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +   * The project, folder, or organization on which the posture is deployed,
                                                                                        +   * for example, `projects/{project_number}`.
                                                                                        +   * 
                                                                                        + * + * string posture_deployment_resource = 3; + * + * @return The bytes for postureDeploymentResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPostureDeploymentResourceBytes() { + java.lang.Object ref = postureDeploymentResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + postureDeploymentResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSTURE_DEPLOYMENT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object postureDeployment_ = ""; + /** + * + * + *
                                                                                        +   * The name of the posture deployment, for example,
                                                                                        +   * `organizations/{org_id}/posturedeployments/{posture_deployment_id}`.
                                                                                        +   * 
                                                                                        + * + * string posture_deployment = 4; + * + * @return The postureDeployment. + */ + @java.lang.Override + public java.lang.String getPostureDeployment() { + java.lang.Object ref = postureDeployment_; + 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(); + postureDeployment_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +   * The name of the posture deployment, for example,
                                                                                        +   * `organizations/{org_id}/posturedeployments/{posture_deployment_id}`.
                                                                                        +   * 
                                                                                        + * + * string posture_deployment = 4; + * + * @return The bytes for postureDeployment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPostureDeploymentBytes() { + java.lang.Object ref = postureDeployment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + postureDeployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANGED_POLICY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object changedPolicy_ = ""; + /** + * + * + *
                                                                                        +   * The name of the updated policy, for example,
                                                                                        +   * `projects/{project_id}/policies/{constraint_name}`.
                                                                                        +   * 
                                                                                        + * + * string changed_policy = 5; + * + * @return The changedPolicy. + */ + @java.lang.Override + public java.lang.String getChangedPolicy() { + java.lang.Object ref = changedPolicy_; + 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(); + changedPolicy_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +   * The name of the updated policy, for example,
                                                                                        +   * `projects/{project_id}/policies/{constraint_name}`.
                                                                                        +   * 
                                                                                        + * + * string changed_policy = 5; + * + * @return The bytes for changedPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChangedPolicyBytes() { + java.lang.Object ref = changedPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + changedPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_SET_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object policySet_ = ""; + /** + * + * + *
                                                                                        +   * The name of the updated policyset, for example, `cis-policyset`.
                                                                                        +   * 
                                                                                        + * + * string policy_set = 6; + * + * @return The policySet. + */ + @java.lang.Override + public java.lang.String getPolicySet() { + java.lang.Object ref = policySet_; + 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(); + policySet_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +   * The name of the updated policyset, for example, `cis-policyset`.
                                                                                        +   * 
                                                                                        + * + * string policy_set = 6; + * + * @return The bytes for policySet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicySetBytes() { + java.lang.Object ref = policySet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policySet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object policy_ = ""; + /** + * + * + *
                                                                                        +   * The ID of the updated policy, for example, `compute-policy-1`.
                                                                                        +   * 
                                                                                        + * + * string policy = 7; + * + * @return The policy. + */ + @java.lang.Override + public java.lang.String getPolicy() { + java.lang.Object ref = policy_; + 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(); + policy_ = s; + return s; + } + } + /** + * + * + *
                                                                                        +   * The ID of the updated policy, for example, `compute-policy-1`.
                                                                                        +   * 
                                                                                        + * + * string policy = 7; + * + * @return The bytes for policy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyBytes() { + java.lang.Object ref = policy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_DRIFT_DETAILS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List + policyDriftDetails_; + /** + * + * + *
                                                                                        +   * The details about a change in an updated policy that violates the deployed
                                                                                        +   * posture.
                                                                                        +   * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + @java.lang.Override + public java.util.List + getPolicyDriftDetailsList() { + return policyDriftDetails_; + } + /** + * + * + *
                                                                                        +   * The details about a change in an updated policy that violates the deployed
                                                                                        +   * posture.
                                                                                        +   * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetailsOrBuilder> + getPolicyDriftDetailsOrBuilderList() { + return policyDriftDetails_; + } + /** + * + * + *
                                                                                        +   * The details about a change in an updated policy that violates the deployed
                                                                                        +   * posture.
                                                                                        +   * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + @java.lang.Override + public int getPolicyDriftDetailsCount() { + return policyDriftDetails_.size(); + } + /** + * + * + *
                                                                                        +   * The details about a change in an updated policy that violates the deployed
                                                                                        +   * posture.
                                                                                        +   * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails + getPolicyDriftDetails(int index) { + return policyDriftDetails_.get(index); + } + /** + * + * + *
                                                                                        +   * The details about a change in an updated policy that violates the deployed
                                                                                        +   * posture.
                                                                                        +   * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetailsOrBuilder + getPolicyDriftDetailsOrBuilder(int index) { + return policyDriftDetails_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, revisionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postureDeploymentResource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, postureDeploymentResource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postureDeployment_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, postureDeployment_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(changedPolicy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, changedPolicy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policySet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, policySet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, policy_); + } + for (int i = 0; i < policyDriftDetails_.size(); i++) { + output.writeMessage(8, policyDriftDetails_.get(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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revisionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, revisionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postureDeploymentResource_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(3, postureDeploymentResource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postureDeployment_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, postureDeployment_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(changedPolicy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, changedPolicy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policySet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, policySet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, policy_); + } + for (int i = 0; i < policyDriftDetails_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, policyDriftDetails_.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.securitycenter.v1.SecurityPosture)) { + return super.equals(obj); + } + com.google.cloud.securitycenter.v1.SecurityPosture other = + (com.google.cloud.securitycenter.v1.SecurityPosture) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRevisionId().equals(other.getRevisionId())) return false; + if (!getPostureDeploymentResource().equals(other.getPostureDeploymentResource())) return false; + if (!getPostureDeployment().equals(other.getPostureDeployment())) return false; + if (!getChangedPolicy().equals(other.getChangedPolicy())) return false; + if (!getPolicySet().equals(other.getPolicySet())) return false; + if (!getPolicy().equals(other.getPolicy())) return false; + if (!getPolicyDriftDetailsList().equals(other.getPolicyDriftDetailsList())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REVISION_ID_FIELD_NUMBER; + hash = (53 * hash) + getRevisionId().hashCode(); + hash = (37 * hash) + POSTURE_DEPLOYMENT_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getPostureDeploymentResource().hashCode(); + hash = (37 * hash) + POSTURE_DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getPostureDeployment().hashCode(); + hash = (37 * hash) + CHANGED_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getChangedPolicy().hashCode(); + hash = (37 * hash) + POLICY_SET_FIELD_NUMBER; + hash = (53 * hash) + getPolicySet().hashCode(); + hash = (37 * hash) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + getPolicy().hashCode(); + if (getPolicyDriftDetailsCount() > 0) { + hash = (37 * hash) + POLICY_DRIFT_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getPolicyDriftDetailsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture 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.securitycenter.v1.SecurityPosture parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture 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.securitycenter.v1.SecurityPosture parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture 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.securitycenter.v1.SecurityPosture parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture 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.securitycenter.v1.SecurityPosture parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture 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.securitycenter.v1.SecurityPosture 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; + } + /** + * + * + *
                                                                                        +   * Represents a posture that is deployed on Google Cloud by the
                                                                                        +   * Security Command Center Posture Management service.
                                                                                        +   * A posture contains one or more policy sets. A policy set is a
                                                                                        +   * group of policies that enforce a set of security rules on Google
                                                                                        +   * Cloud.
                                                                                        +   * 
                                                                                        + * + * Protobuf type {@code google.cloud.securitycenter.v1.SecurityPosture} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.securitycenter.v1.SecurityPosture) + com.google.cloud.securitycenter.v1.SecurityPostureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.securitycenter.v1.SecurityPostureProto + .internal_static_google_cloud_securitycenter_v1_SecurityPosture_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.securitycenter.v1.SecurityPostureProto + .internal_static_google_cloud_securitycenter_v1_SecurityPosture_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.securitycenter.v1.SecurityPosture.class, + com.google.cloud.securitycenter.v1.SecurityPosture.Builder.class); + } + + // Construct using com.google.cloud.securitycenter.v1.SecurityPosture.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + revisionId_ = ""; + postureDeploymentResource_ = ""; + postureDeployment_ = ""; + changedPolicy_ = ""; + policySet_ = ""; + policy_ = ""; + if (policyDriftDetailsBuilder_ == null) { + policyDriftDetails_ = java.util.Collections.emptyList(); + } else { + policyDriftDetails_ = null; + policyDriftDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.securitycenter.v1.SecurityPostureProto + .internal_static_google_cloud_securitycenter_v1_SecurityPosture_descriptor; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityPosture getDefaultInstanceForType() { + return com.google.cloud.securitycenter.v1.SecurityPosture.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityPosture build() { + com.google.cloud.securitycenter.v1.SecurityPosture result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.securitycenter.v1.SecurityPosture buildPartial() { + com.google.cloud.securitycenter.v1.SecurityPosture result = + new com.google.cloud.securitycenter.v1.SecurityPosture(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.securitycenter.v1.SecurityPosture result) { + if (policyDriftDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + policyDriftDetails_ = java.util.Collections.unmodifiableList(policyDriftDetails_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.policyDriftDetails_ = policyDriftDetails_; + } else { + result.policyDriftDetails_ = policyDriftDetailsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.securitycenter.v1.SecurityPosture result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revisionId_ = revisionId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.postureDeploymentResource_ = postureDeploymentResource_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.postureDeployment_ = postureDeployment_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.changedPolicy_ = changedPolicy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.policySet_ = policySet_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.policy_ = policy_; + } + } + + @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.securitycenter.v1.SecurityPosture) { + return mergeFrom((com.google.cloud.securitycenter.v1.SecurityPosture) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.securitycenter.v1.SecurityPosture other) { + if (other == com.google.cloud.securitycenter.v1.SecurityPosture.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRevisionId().isEmpty()) { + revisionId_ = other.revisionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPostureDeploymentResource().isEmpty()) { + postureDeploymentResource_ = other.postureDeploymentResource_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPostureDeployment().isEmpty()) { + postureDeployment_ = other.postureDeployment_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getChangedPolicy().isEmpty()) { + changedPolicy_ = other.changedPolicy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getPolicySet().isEmpty()) { + policySet_ = other.policySet_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getPolicy().isEmpty()) { + policy_ = other.policy_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (policyDriftDetailsBuilder_ == null) { + if (!other.policyDriftDetails_.isEmpty()) { + if (policyDriftDetails_.isEmpty()) { + policyDriftDetails_ = other.policyDriftDetails_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensurePolicyDriftDetailsIsMutable(); + policyDriftDetails_.addAll(other.policyDriftDetails_); + } + onChanged(); + } + } else { + if (!other.policyDriftDetails_.isEmpty()) { + if (policyDriftDetailsBuilder_.isEmpty()) { + policyDriftDetailsBuilder_.dispose(); + policyDriftDetailsBuilder_ = null; + policyDriftDetails_ = other.policyDriftDetails_; + bitField0_ = (bitField0_ & ~0x00000080); + policyDriftDetailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPolicyDriftDetailsFieldBuilder() + : null; + } else { + policyDriftDetailsBuilder_.addAllMessages(other.policyDriftDetails_); + } + } + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + revisionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + postureDeploymentResource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + postureDeployment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + changedPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + policySet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + policy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails m = + input.readMessage( + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails + .parser(), + extensionRegistry); + if (policyDriftDetailsBuilder_ == null) { + ensurePolicyDriftDetailsIsMutable(); + policyDriftDetails_.add(m); + } else { + policyDriftDetailsBuilder_.addMessage(m); + } + break; + } // case 66 + 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 name_ = ""; + /** + * + * + *
                                                                                        +     * Name of the posture, for example, `CIS-Posture`.
                                                                                        +     * 
                                                                                        + * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +     * Name of the posture, for example, `CIS-Posture`.
                                                                                        +     * 
                                                                                        + * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +     * Name of the posture, for example, `CIS-Posture`.
                                                                                        +     * 
                                                                                        + * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * Name of the posture, for example, `CIS-Posture`.
                                                                                        +     * 
                                                                                        + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * Name of the posture, for example, `CIS-Posture`.
                                                                                        +     * 
                                                                                        + * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object revisionId_ = ""; + /** + * + * + *
                                                                                        +     * The version of the posture, for example, `c7cfa2a8`.
                                                                                        +     * 
                                                                                        + * + * string revision_id = 2; + * + * @return The revisionId. + */ + public java.lang.String getRevisionId() { + java.lang.Object ref = revisionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revisionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +     * The version of the posture, for example, `c7cfa2a8`.
                                                                                        +     * 
                                                                                        + * + * string revision_id = 2; + * + * @return The bytes for revisionId. + */ + public com.google.protobuf.ByteString getRevisionIdBytes() { + java.lang.Object ref = revisionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revisionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +     * The version of the posture, for example, `c7cfa2a8`.
                                                                                        +     * 
                                                                                        + * + * string revision_id = 2; + * + * @param value The revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The version of the posture, for example, `c7cfa2a8`.
                                                                                        +     * 
                                                                                        + * + * string revision_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearRevisionId() { + revisionId_ = getDefaultInstance().getRevisionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The version of the posture, for example, `c7cfa2a8`.
                                                                                        +     * 
                                                                                        + * + * string revision_id = 2; + * + * @param value The bytes for revisionId to set. + * @return This builder for chaining. + */ + public Builder setRevisionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revisionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object postureDeploymentResource_ = ""; + /** + * + * + *
                                                                                        +     * The project, folder, or organization on which the posture is deployed,
                                                                                        +     * for example, `projects/{project_number}`.
                                                                                        +     * 
                                                                                        + * + * string posture_deployment_resource = 3; + * + * @return The postureDeploymentResource. + */ + public java.lang.String getPostureDeploymentResource() { + java.lang.Object ref = postureDeploymentResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + postureDeploymentResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +     * The project, folder, or organization on which the posture is deployed,
                                                                                        +     * for example, `projects/{project_number}`.
                                                                                        +     * 
                                                                                        + * + * string posture_deployment_resource = 3; + * + * @return The bytes for postureDeploymentResource. + */ + public com.google.protobuf.ByteString getPostureDeploymentResourceBytes() { + java.lang.Object ref = postureDeploymentResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + postureDeploymentResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +     * The project, folder, or organization on which the posture is deployed,
                                                                                        +     * for example, `projects/{project_number}`.
                                                                                        +     * 
                                                                                        + * + * string posture_deployment_resource = 3; + * + * @param value The postureDeploymentResource to set. + * @return This builder for chaining. + */ + public Builder setPostureDeploymentResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + postureDeploymentResource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The project, folder, or organization on which the posture is deployed,
                                                                                        +     * for example, `projects/{project_number}`.
                                                                                        +     * 
                                                                                        + * + * string posture_deployment_resource = 3; + * + * @return This builder for chaining. + */ + public Builder clearPostureDeploymentResource() { + postureDeploymentResource_ = getDefaultInstance().getPostureDeploymentResource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The project, folder, or organization on which the posture is deployed,
                                                                                        +     * for example, `projects/{project_number}`.
                                                                                        +     * 
                                                                                        + * + * string posture_deployment_resource = 3; + * + * @param value The bytes for postureDeploymentResource to set. + * @return This builder for chaining. + */ + public Builder setPostureDeploymentResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + postureDeploymentResource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object postureDeployment_ = ""; + /** + * + * + *
                                                                                        +     * The name of the posture deployment, for example,
                                                                                        +     * `organizations/{org_id}/posturedeployments/{posture_deployment_id}`.
                                                                                        +     * 
                                                                                        + * + * string posture_deployment = 4; + * + * @return The postureDeployment. + */ + public java.lang.String getPostureDeployment() { + java.lang.Object ref = postureDeployment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + postureDeployment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +     * The name of the posture deployment, for example,
                                                                                        +     * `organizations/{org_id}/posturedeployments/{posture_deployment_id}`.
                                                                                        +     * 
                                                                                        + * + * string posture_deployment = 4; + * + * @return The bytes for postureDeployment. + */ + public com.google.protobuf.ByteString getPostureDeploymentBytes() { + java.lang.Object ref = postureDeployment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + postureDeployment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +     * The name of the posture deployment, for example,
                                                                                        +     * `organizations/{org_id}/posturedeployments/{posture_deployment_id}`.
                                                                                        +     * 
                                                                                        + * + * string posture_deployment = 4; + * + * @param value The postureDeployment to set. + * @return This builder for chaining. + */ + public Builder setPostureDeployment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + postureDeployment_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The name of the posture deployment, for example,
                                                                                        +     * `organizations/{org_id}/posturedeployments/{posture_deployment_id}`.
                                                                                        +     * 
                                                                                        + * + * string posture_deployment = 4; + * + * @return This builder for chaining. + */ + public Builder clearPostureDeployment() { + postureDeployment_ = getDefaultInstance().getPostureDeployment(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The name of the posture deployment, for example,
                                                                                        +     * `organizations/{org_id}/posturedeployments/{posture_deployment_id}`.
                                                                                        +     * 
                                                                                        + * + * string posture_deployment = 4; + * + * @param value The bytes for postureDeployment to set. + * @return This builder for chaining. + */ + public Builder setPostureDeploymentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + postureDeployment_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object changedPolicy_ = ""; + /** + * + * + *
                                                                                        +     * The name of the updated policy, for example,
                                                                                        +     * `projects/{project_id}/policies/{constraint_name}`.
                                                                                        +     * 
                                                                                        + * + * string changed_policy = 5; + * + * @return The changedPolicy. + */ + public java.lang.String getChangedPolicy() { + java.lang.Object ref = changedPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + changedPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +     * The name of the updated policy, for example,
                                                                                        +     * `projects/{project_id}/policies/{constraint_name}`.
                                                                                        +     * 
                                                                                        + * + * string changed_policy = 5; + * + * @return The bytes for changedPolicy. + */ + public com.google.protobuf.ByteString getChangedPolicyBytes() { + java.lang.Object ref = changedPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + changedPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +     * The name of the updated policy, for example,
                                                                                        +     * `projects/{project_id}/policies/{constraint_name}`.
                                                                                        +     * 
                                                                                        + * + * string changed_policy = 5; + * + * @param value The changedPolicy to set. + * @return This builder for chaining. + */ + public Builder setChangedPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + changedPolicy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The name of the updated policy, for example,
                                                                                        +     * `projects/{project_id}/policies/{constraint_name}`.
                                                                                        +     * 
                                                                                        + * + * string changed_policy = 5; + * + * @return This builder for chaining. + */ + public Builder clearChangedPolicy() { + changedPolicy_ = getDefaultInstance().getChangedPolicy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The name of the updated policy, for example,
                                                                                        +     * `projects/{project_id}/policies/{constraint_name}`.
                                                                                        +     * 
                                                                                        + * + * string changed_policy = 5; + * + * @param value The bytes for changedPolicy to set. + * @return This builder for chaining. + */ + public Builder setChangedPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + changedPolicy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object policySet_ = ""; + /** + * + * + *
                                                                                        +     * The name of the updated policyset, for example, `cis-policyset`.
                                                                                        +     * 
                                                                                        + * + * string policy_set = 6; + * + * @return The policySet. + */ + public java.lang.String getPolicySet() { + java.lang.Object ref = policySet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policySet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +     * The name of the updated policyset, for example, `cis-policyset`.
                                                                                        +     * 
                                                                                        + * + * string policy_set = 6; + * + * @return The bytes for policySet. + */ + public com.google.protobuf.ByteString getPolicySetBytes() { + java.lang.Object ref = policySet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policySet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +     * The name of the updated policyset, for example, `cis-policyset`.
                                                                                        +     * 
                                                                                        + * + * string policy_set = 6; + * + * @param value The policySet to set. + * @return This builder for chaining. + */ + public Builder setPolicySet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + policySet_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The name of the updated policyset, for example, `cis-policyset`.
                                                                                        +     * 
                                                                                        + * + * string policy_set = 6; + * + * @return This builder for chaining. + */ + public Builder clearPolicySet() { + policySet_ = getDefaultInstance().getPolicySet(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The name of the updated policyset, for example, `cis-policyset`.
                                                                                        +     * 
                                                                                        + * + * string policy_set = 6; + * + * @param value The bytes for policySet to set. + * @return This builder for chaining. + */ + public Builder setPolicySetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policySet_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object policy_ = ""; + /** + * + * + *
                                                                                        +     * The ID of the updated policy, for example, `compute-policy-1`.
                                                                                        +     * 
                                                                                        + * + * string policy = 7; + * + * @return The policy. + */ + public java.lang.String getPolicy() { + java.lang.Object ref = policy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
                                                                                        +     * The ID of the updated policy, for example, `compute-policy-1`.
                                                                                        +     * 
                                                                                        + * + * string policy = 7; + * + * @return The bytes for policy. + */ + public com.google.protobuf.ByteString getPolicyBytes() { + java.lang.Object ref = policy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
                                                                                        +     * The ID of the updated policy, for example, `compute-policy-1`.
                                                                                        +     * 
                                                                                        + * + * string policy = 7; + * + * @param value The policy to set. + * @return This builder for chaining. + */ + public Builder setPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The ID of the updated policy, for example, `compute-policy-1`.
                                                                                        +     * 
                                                                                        + * + * string policy = 7; + * + * @return This builder for chaining. + */ + public Builder clearPolicy() { + policy_ = getDefaultInstance().getPolicy(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
                                                                                        +     * The ID of the updated policy, for example, `compute-policy-1`.
                                                                                        +     * 
                                                                                        + * + * string policy = 7; + * + * @param value The bytes for policy to set. + * @return This builder for chaining. + */ + public Builder setPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policy_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List + policyDriftDetails_ = java.util.Collections.emptyList(); + + private void ensurePolicyDriftDetailsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + policyDriftDetails_ = + new java.util.ArrayList< + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails>( + policyDriftDetails_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails, + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.Builder, + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetailsOrBuilder> + policyDriftDetailsBuilder_; + + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public java.util.List + getPolicyDriftDetailsList() { + if (policyDriftDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(policyDriftDetails_); + } else { + return policyDriftDetailsBuilder_.getMessageList(); + } + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public int getPolicyDriftDetailsCount() { + if (policyDriftDetailsBuilder_ == null) { + return policyDriftDetails_.size(); + } else { + return policyDriftDetailsBuilder_.getCount(); + } + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails + getPolicyDriftDetails(int index) { + if (policyDriftDetailsBuilder_ == null) { + return policyDriftDetails_.get(index); + } else { + return policyDriftDetailsBuilder_.getMessage(index); + } + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public Builder setPolicyDriftDetails( + int index, com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails value) { + if (policyDriftDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyDriftDetailsIsMutable(); + policyDriftDetails_.set(index, value); + onChanged(); + } else { + policyDriftDetailsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public Builder setPolicyDriftDetails( + int index, + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.Builder + builderForValue) { + if (policyDriftDetailsBuilder_ == null) { + ensurePolicyDriftDetailsIsMutable(); + policyDriftDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + policyDriftDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public Builder addPolicyDriftDetails( + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails value) { + if (policyDriftDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyDriftDetailsIsMutable(); + policyDriftDetails_.add(value); + onChanged(); + } else { + policyDriftDetailsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public Builder addPolicyDriftDetails( + int index, com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails value) { + if (policyDriftDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyDriftDetailsIsMutable(); + policyDriftDetails_.add(index, value); + onChanged(); + } else { + policyDriftDetailsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public Builder addPolicyDriftDetails( + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.Builder + builderForValue) { + if (policyDriftDetailsBuilder_ == null) { + ensurePolicyDriftDetailsIsMutable(); + policyDriftDetails_.add(builderForValue.build()); + onChanged(); + } else { + policyDriftDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public Builder addPolicyDriftDetails( + int index, + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.Builder + builderForValue) { + if (policyDriftDetailsBuilder_ == null) { + ensurePolicyDriftDetailsIsMutable(); + policyDriftDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + policyDriftDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public Builder addAllPolicyDriftDetails( + java.lang.Iterable< + ? extends com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails> + values) { + if (policyDriftDetailsBuilder_ == null) { + ensurePolicyDriftDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyDriftDetails_); + onChanged(); + } else { + policyDriftDetailsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public Builder clearPolicyDriftDetails() { + if (policyDriftDetailsBuilder_ == null) { + policyDriftDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + policyDriftDetailsBuilder_.clear(); + } + return this; + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public Builder removePolicyDriftDetails(int index) { + if (policyDriftDetailsBuilder_ == null) { + ensurePolicyDriftDetailsIsMutable(); + policyDriftDetails_.remove(index); + onChanged(); + } else { + policyDriftDetailsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.Builder + getPolicyDriftDetailsBuilder(int index) { + return getPolicyDriftDetailsFieldBuilder().getBuilder(index); + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetailsOrBuilder + getPolicyDriftDetailsOrBuilder(int index) { + if (policyDriftDetailsBuilder_ == null) { + return policyDriftDetails_.get(index); + } else { + return policyDriftDetailsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public java.util.List< + ? extends + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetailsOrBuilder> + getPolicyDriftDetailsOrBuilderList() { + if (policyDriftDetailsBuilder_ != null) { + return policyDriftDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(policyDriftDetails_); + } + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.Builder + addPolicyDriftDetailsBuilder() { + return getPolicyDriftDetailsFieldBuilder() + .addBuilder( + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails + .getDefaultInstance()); + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.Builder + addPolicyDriftDetailsBuilder(int index) { + return getPolicyDriftDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails + .getDefaultInstance()); + } + /** + * + * + *
                                                                                        +     * The details about a change in an updated policy that violates the deployed
                                                                                        +     * posture.
                                                                                        +     * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + public java.util.List< + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.Builder> + getPolicyDriftDetailsBuilderList() { + return getPolicyDriftDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails, + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.Builder, + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetailsOrBuilder> + getPolicyDriftDetailsFieldBuilder() { + if (policyDriftDetailsBuilder_ == null) { + policyDriftDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails, + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails.Builder, + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetailsOrBuilder>( + policyDriftDetails_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + policyDriftDetails_ = null; + } + return policyDriftDetailsBuilder_; + } + + @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.securitycenter.v1.SecurityPosture) + } + + // @@protoc_insertion_point(class_scope:google.cloud.securitycenter.v1.SecurityPosture) + private static final com.google.cloud.securitycenter.v1.SecurityPosture DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.securitycenter.v1.SecurityPosture(); + } + + public static com.google.cloud.securitycenter.v1.SecurityPosture getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SecurityPosture 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.securitycenter.v1.SecurityPosture getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityPostureOrBuilder.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityPostureOrBuilder.java new file mode 100644 index 000000000000..84f9107f9f7c --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityPostureOrBuilder.java @@ -0,0 +1,278 @@ +/* + * 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/securitycenter/v1/security_posture.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.securitycenter.v1; + +public interface SecurityPostureOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.securitycenter.v1.SecurityPosture) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                                                                                        +   * Name of the posture, for example, `CIS-Posture`.
                                                                                        +   * 
                                                                                        + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
                                                                                        +   * Name of the posture, for example, `CIS-Posture`.
                                                                                        +   * 
                                                                                        + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                                                                                        +   * The version of the posture, for example, `c7cfa2a8`.
                                                                                        +   * 
                                                                                        + * + * string revision_id = 2; + * + * @return The revisionId. + */ + java.lang.String getRevisionId(); + /** + * + * + *
                                                                                        +   * The version of the posture, for example, `c7cfa2a8`.
                                                                                        +   * 
                                                                                        + * + * string revision_id = 2; + * + * @return The bytes for revisionId. + */ + com.google.protobuf.ByteString getRevisionIdBytes(); + + /** + * + * + *
                                                                                        +   * The project, folder, or organization on which the posture is deployed,
                                                                                        +   * for example, `projects/{project_number}`.
                                                                                        +   * 
                                                                                        + * + * string posture_deployment_resource = 3; + * + * @return The postureDeploymentResource. + */ + java.lang.String getPostureDeploymentResource(); + /** + * + * + *
                                                                                        +   * The project, folder, or organization on which the posture is deployed,
                                                                                        +   * for example, `projects/{project_number}`.
                                                                                        +   * 
                                                                                        + * + * string posture_deployment_resource = 3; + * + * @return The bytes for postureDeploymentResource. + */ + com.google.protobuf.ByteString getPostureDeploymentResourceBytes(); + + /** + * + * + *
                                                                                        +   * The name of the posture deployment, for example,
                                                                                        +   * `organizations/{org_id}/posturedeployments/{posture_deployment_id}`.
                                                                                        +   * 
                                                                                        + * + * string posture_deployment = 4; + * + * @return The postureDeployment. + */ + java.lang.String getPostureDeployment(); + /** + * + * + *
                                                                                        +   * The name of the posture deployment, for example,
                                                                                        +   * `organizations/{org_id}/posturedeployments/{posture_deployment_id}`.
                                                                                        +   * 
                                                                                        + * + * string posture_deployment = 4; + * + * @return The bytes for postureDeployment. + */ + com.google.protobuf.ByteString getPostureDeploymentBytes(); + + /** + * + * + *
                                                                                        +   * The name of the updated policy, for example,
                                                                                        +   * `projects/{project_id}/policies/{constraint_name}`.
                                                                                        +   * 
                                                                                        + * + * string changed_policy = 5; + * + * @return The changedPolicy. + */ + java.lang.String getChangedPolicy(); + /** + * + * + *
                                                                                        +   * The name of the updated policy, for example,
                                                                                        +   * `projects/{project_id}/policies/{constraint_name}`.
                                                                                        +   * 
                                                                                        + * + * string changed_policy = 5; + * + * @return The bytes for changedPolicy. + */ + com.google.protobuf.ByteString getChangedPolicyBytes(); + + /** + * + * + *
                                                                                        +   * The name of the updated policyset, for example, `cis-policyset`.
                                                                                        +   * 
                                                                                        + * + * string policy_set = 6; + * + * @return The policySet. + */ + java.lang.String getPolicySet(); + /** + * + * + *
                                                                                        +   * The name of the updated policyset, for example, `cis-policyset`.
                                                                                        +   * 
                                                                                        + * + * string policy_set = 6; + * + * @return The bytes for policySet. + */ + com.google.protobuf.ByteString getPolicySetBytes(); + + /** + * + * + *
                                                                                        +   * The ID of the updated policy, for example, `compute-policy-1`.
                                                                                        +   * 
                                                                                        + * + * string policy = 7; + * + * @return The policy. + */ + java.lang.String getPolicy(); + /** + * + * + *
                                                                                        +   * The ID of the updated policy, for example, `compute-policy-1`.
                                                                                        +   * 
                                                                                        + * + * string policy = 7; + * + * @return The bytes for policy. + */ + com.google.protobuf.ByteString getPolicyBytes(); + + /** + * + * + *
                                                                                        +   * The details about a change in an updated policy that violates the deployed
                                                                                        +   * posture.
                                                                                        +   * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + java.util.List + getPolicyDriftDetailsList(); + /** + * + * + *
                                                                                        +   * The details about a change in an updated policy that violates the deployed
                                                                                        +   * posture.
                                                                                        +   * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails getPolicyDriftDetails( + int index); + /** + * + * + *
                                                                                        +   * The details about a change in an updated policy that violates the deployed
                                                                                        +   * posture.
                                                                                        +   * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + int getPolicyDriftDetailsCount(); + /** + * + * + *
                                                                                        +   * The details about a change in an updated policy that violates the deployed
                                                                                        +   * posture.
                                                                                        +   * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + java.util.List< + ? extends com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetailsOrBuilder> + getPolicyDriftDetailsOrBuilderList(); + /** + * + * + *
                                                                                        +   * The details about a change in an updated policy that violates the deployed
                                                                                        +   * posture.
                                                                                        +   * 
                                                                                        + * + * + * repeated .google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetails policy_drift_details = 8; + * + */ + com.google.cloud.securitycenter.v1.SecurityPosture.PolicyDriftDetailsOrBuilder + getPolicyDriftDetailsOrBuilder(int index); +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityPostureProto.java b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityPostureProto.java new file mode 100644 index 000000000000..f1172ef883a0 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/SecurityPostureProto.java @@ -0,0 +1,98 @@ +/* + * 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/securitycenter/v1/security_posture.proto + +// Protobuf Java Version: 3.25.2 +package com.google.cloud.securitycenter.v1; + +public final class SecurityPostureProto { + private SecurityPostureProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_SecurityPosture_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_SecurityPosture_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_securitycenter_v1_SecurityPosture_PolicyDriftDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_securitycenter_v1_SecurityPosture_PolicyDriftDetails_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/securitycenter/v1/securit" + + "y_posture.proto\022\036google.cloud.securityce" + + "nter.v1\"\350\002\n\017SecurityPosture\022\014\n\004name\030\001 \001(" + + "\t\022\023\n\013revision_id\030\002 \001(\t\022#\n\033posture_deploy" + + "ment_resource\030\003 \001(\t\022\032\n\022posture_deploymen" + + "t\030\004 \001(\t\022\026\n\016changed_policy\030\005 \001(\t\022\022\n\npolic" + + "y_set\030\006 \001(\t\022\016\n\006policy\030\007 \001(\t\022`\n\024policy_dr" + + "ift_details\030\010 \003(\0132B.google.cloud.securit" + + "ycenter.v1.SecurityPosture.PolicyDriftDe" + + "tails\032S\n\022PolicyDriftDetails\022\r\n\005field\030\001 \001" + + "(\t\022\026\n\016expected_value\030\002 \001(\t\022\026\n\016detected_v" + + "alue\030\003 \001(\tB\356\001\n\"com.google.cloud.security" + + "center.v1B\024SecurityPostureProtoP\001ZJcloud" + + ".google.com/go/securitycenter/apiv1/secu" + + "ritycenterpb;securitycenterpb\252\002\036Google.C" + + "loud.SecurityCenter.V1\312\002\036Google\\Cloud\\Se" + + "curityCenter\\V1\352\002!Google::Cloud::Securit" + + "yCenter::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_securitycenter_v1_SecurityPosture_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_securitycenter_v1_SecurityPosture_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_SecurityPosture_descriptor, + new java.lang.String[] { + "Name", + "RevisionId", + "PostureDeploymentResource", + "PostureDeployment", + "ChangedPolicy", + "PolicySet", + "Policy", + "PolicyDriftDetails", + }); + internal_static_google_cloud_securitycenter_v1_SecurityPosture_PolicyDriftDetails_descriptor = + internal_static_google_cloud_securitycenter_v1_SecurityPosture_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_securitycenter_v1_SecurityPosture_PolicyDriftDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_securitycenter_v1_SecurityPosture_PolicyDriftDetails_descriptor, + new java.lang.String[] { + "Field", "ExpectedValue", "DetectedValue", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto index 0e23d6a675f6..3bf44779cb93 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/external_system.proto @@ -36,6 +36,29 @@ message ExternalSystem { pattern: "projects/{project}/sources/{source}/findings/{finding}/externalSystems/{externalsystem}" }; + // Information about the ticket, if any, that is being used to track the + // resolution of the issue that is identified by this finding. + message TicketInfo { + // The identifier of the ticket in the ticket system. + string id = 1; + + // The assignee of the ticket in the ticket system. + string assignee = 2; + + // The description of the ticket in the ticket system. + string description = 3; + + // The link to the ticket in the ticket system. + string uri = 4; + + // The latest status of the ticket, as reported by the ticket system. + string status = 5; + + // The time when the ticket was last updated, as reported by the ticket + // system. + google.protobuf.Timestamp update_time = 6; + } + // Full resource name of the external system, for example: // "organizations/1234/sources/5678/findings/123456/externalSystems/jira", // "folders/1234/sources/5678/findings/123456/externalSystems/jira", @@ -45,14 +68,34 @@ message ExternalSystem { // References primary/secondary etc assignees in the external system. repeated string assignees = 2; - // Identifier that's used to track the given finding in the external system. + // The identifier that's used to track the finding's corresponding case in the + // external system. string external_uid = 3; - // Most recent status of the corresponding finding's ticket/tracker in the - // external system. + // The most recent status of the finding's corresponding case, as reported by + // the external system. string status = 4; - // The most recent time when the corresponding finding's ticket/tracker was - // updated in the external system. + // The time when the case was last updated, as reported by the external + // system. google.protobuf.Timestamp external_system_update_time = 5; + + // The link to the finding's corresponding case in the external system. + string case_uri = 6; + + // The priority of the finding's corresponding case in the external system. + string case_priority = 7; + + // The SLA of the finding's corresponding case in the external system. + google.protobuf.Timestamp case_sla = 9; + + // The time when the case was created, as reported by the external system. + google.protobuf.Timestamp case_create_time = 10; + + // The time when the case was closed, as reported by the external system. + google.protobuf.Timestamp case_close_time = 11; + + // Information about the ticket, if any, that is being used to track the + // resolution of the issue that is identified by this finding. + TicketInfo ticket_info = 8; } diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto index 088c9fd3ba25..c79a1e319663 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/finding.proto @@ -41,6 +41,7 @@ import "google/cloud/securitycenter/v1/mitre_attack.proto"; import "google/cloud/securitycenter/v1/org_policy.proto"; import "google/cloud/securitycenter/v1/process.proto"; import "google/cloud/securitycenter/v1/security_marks.proto"; +import "google/cloud/securitycenter/v1/security_posture.proto"; import "google/cloud/securitycenter/v1/vulnerability.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -176,6 +177,10 @@ message Finding { // Describes an error that prevents some SCC functionality. SCC_ERROR = 5; + + // Describes a potential security risk due to a change in the security + // posture. + POSTURE_VIOLATION = 6; } // The [relative resource @@ -374,6 +379,9 @@ message Finding { // Fields related to Backup and DR findings. BackupDisasterRecovery backup_disaster_recovery = 55; + // The security posture associated with the finding. + SecurityPosture security_posture = 56; + // Log entries that are relevant to the finding. repeated LogEntry log_entries = 57; diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_posture.proto b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_posture.proto new file mode 100644 index 000000000000..5367b1e908e5 --- /dev/null +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/security_posture.proto @@ -0,0 +1,76 @@ +// 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 +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.securitycenter.v1; + +option csharp_namespace = "Google.Cloud.SecurityCenter.V1"; +option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb"; +option java_multiple_files = true; +option java_outer_classname = "SecurityPostureProto"; +option java_package = "com.google.cloud.securitycenter.v1"; +option php_namespace = "Google\\Cloud\\SecurityCenter\\V1"; +option ruby_package = "Google::Cloud::SecurityCenter::V1"; + +// Represents a posture that is deployed on Google Cloud by the +// Security Command Center Posture Management service. +// A posture contains one or more policy sets. A policy set is a +// group of policies that enforce a set of security rules on Google +// Cloud. +message SecurityPosture { + // The policy field that violates the deployed posture and its expected and + // detected values. + message PolicyDriftDetails { + // The name of the updated field, for example + // constraint.implementation.policy_rules[0].enforce + string field = 1; + + // The value of this field that was configured in a posture, for example, + // `true` or `allowed_values={"projects/29831892"}`. + string expected_value = 2; + + // The detected value that violates the deployed posture, for example, + // `false` or `allowed_values={"projects/22831892"}`. + string detected_value = 3; + } + + // Name of the posture, for example, `CIS-Posture`. + string name = 1; + + // The version of the posture, for example, `c7cfa2a8`. + string revision_id = 2; + + // The project, folder, or organization on which the posture is deployed, + // for example, `projects/{project_number}`. + string posture_deployment_resource = 3; + + // The name of the posture deployment, for example, + // `organizations/{org_id}/posturedeployments/{posture_deployment_id}`. + string posture_deployment = 4; + + // The name of the updated policy, for example, + // `projects/{project_id}/policies/{constraint_name}`. + string changed_policy = 5; + + // The name of the updated policyset, for example, `cis-policyset`. + string policy_set = 6; + + // The ID of the updated policy, for example, `compute-policy-1`. + string policy = 7; + + // The details about a change in an updated policy that violates the deployed + // posture. + repeated PolicyDriftDetails policy_drift_details = 8; +} diff --git a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClient.java b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClient.java index e2ed42e78ae8..28c149e59461 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClient.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClient.java @@ -138,7 +138,7 @@ *
                                                                                      *

                                                                                      "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

                                                                                      *
                                                                                        - *
                                                                                      • listSubscriptions(int pageSize, String pageToken, String filter) + *

                                                                                      • listSubscriptions(String filter) *

                                                                                      *

                                                                                      Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

                                                                                      *
                                                                                        @@ -760,25 +760,14 @@ public final UnaryCallable getSubscription * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (SubscriptionsServiceClient subscriptionsServiceClient = * SubscriptionsServiceClient.create()) { - * int pageSize = 883849137; - * String pageToken = "pageToken873572522"; * String filter = "filter-1274492040"; * for (Subscription element : - * subscriptionsServiceClient.listSubscriptions(pageSize, pageToken, filter).iterateAll()) { + * subscriptionsServiceClient.listSubscriptions(filter).iterateAll()) { * // doThingsWith(element); * } * } * }
                                                                                      * - * @param pageSize Optional. The maximum number of subscriptions to return. The service might - * return fewer than this value. - *

                                                                                      If unspecified or set to `0`, up to 50 subscriptions are returned. - *

                                                                                      The maximum value is 100. If you specify a value more than 100, the system only returns - * 100 subscriptions. - * @param pageToken Optional. A page token, received from a previous list subscriptions call. - * Provide this parameter to retrieve the subsequent page. - *

                                                                                      When paginating, the filter value should match the call that provided the page token. - * Passing a different value might lead to unexpected results. * @param filter Required. A query filter. *

                                                                                      You can filter subscriptions by event type (`event_types`) and target resource * (`target_resource`). @@ -797,14 +786,9 @@ public final UnaryCallable getSubscription *

                                                                                      The server rejects invalid queries with an `INVALID_ARGUMENT` error. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListSubscriptionsPagedResponse listSubscriptions( - int pageSize, String pageToken, String filter) { + public final ListSubscriptionsPagedResponse listSubscriptions(String filter) { ListSubscriptionsRequest request = - ListSubscriptionsRequest.newBuilder() - .setPageSize(pageSize) - .setPageToken(pageToken) - .setFilter(filter) - .build(); + ListSubscriptionsRequest.newBuilder().setFilter(filter).build(); return listSubscriptions(request); } diff --git a/java-workspaceevents/google-cloud-workspaceevents/src/test/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClientHttpJsonTest.java b/java-workspaceevents/google-cloud-workspaceevents/src/test/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClientHttpJsonTest.java index 8bc4f2385566..cea0d49f03bf 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/test/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClientHttpJsonTest.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/test/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClientHttpJsonTest.java @@ -349,12 +349,9 @@ public void listSubscriptionsTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - int pageSize = 883849137; - String pageToken = "pageToken873572522"; String filter = "filter-1274492040"; - ListSubscriptionsPagedResponse pagedListResponse = - client.listSubscriptions(pageSize, pageToken, filter); + ListSubscriptionsPagedResponse pagedListResponse = client.listSubscriptions(filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); @@ -384,10 +381,8 @@ public void listSubscriptionsExceptionTest() throws Exception { mockService.addException(exception); try { - int pageSize = 883849137; - String pageToken = "pageToken873572522"; String filter = "filter-1274492040"; - client.listSubscriptions(pageSize, pageToken, filter); + client.listSubscriptions(filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-workspaceevents/google-cloud-workspaceevents/src/test/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClientTest.java b/java-workspaceevents/google-cloud-workspaceevents/src/test/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClientTest.java index d44e41b13fe1..4b2e5e6a4a5a 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/test/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClientTest.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/test/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceClientTest.java @@ -332,12 +332,9 @@ public void listSubscriptionsTest() throws Exception { .build(); mockSubscriptionsService.addResponse(expectedResponse); - int pageSize = 883849137; - String pageToken = "pageToken873572522"; String filter = "filter-1274492040"; - ListSubscriptionsPagedResponse pagedListResponse = - client.listSubscriptions(pageSize, pageToken, filter); + ListSubscriptionsPagedResponse pagedListResponse = client.listSubscriptions(filter); List resources = Lists.newArrayList(pagedListResponse.iterateAll()); @@ -348,8 +345,6 @@ public void listSubscriptionsTest() throws Exception { Assert.assertEquals(1, actualRequests.size()); ListSubscriptionsRequest actualRequest = ((ListSubscriptionsRequest) actualRequests.get(0)); - Assert.assertEquals(pageSize, actualRequest.getPageSize()); - Assert.assertEquals(pageToken, actualRequest.getPageToken()); Assert.assertEquals(filter, actualRequest.getFilter()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -363,10 +358,8 @@ public void listSubscriptionsExceptionTest() throws Exception { mockSubscriptionsService.addException(exception); try { - int pageSize = 883849137; - String pageToken = "pageToken873572522"; String filter = "filter-1274492040"; - client.listSubscriptions(pageSize, pageToken, filter); + client.listSubscriptions(filter); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/Subscription.java b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/Subscription.java index 84e3585f6433..a99c86a4d137 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/Subscription.java +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/Subscription.java @@ -25,7 +25,7 @@ *

                                                                                        * A subscription to receive events about a Google Workspace resource. To learn
                                                                                        * more about subscriptions, see the [Google Workspace Events API
                                                                                      - * overview](https://developers.google.com/workspace/events/guides).
                                                                                      + * overview](https://developers.google.com/workspace/events).
                                                                                        * 
                                                                                      * * Protobuf type {@code google.apps.events.subscriptions.v1.Subscription} @@ -831,8 +831,9 @@ public com.google.protobuf.ByteString getUidBytes() { * Required. Immutable. The Google Workspace resource that's monitored for * events, formatted as the [full resource * name](https://google.aip.dev/122#full-resource-names). To learn about - * target resources, see [Supported Google Workspace - * resources](https://developers.google.com/workspace/events/guides#supported-resources). + * target resources and the events that they support, see [Supported Google + * Workspace + * events](https://developers.google.com/workspace/events#supported-events). * * A user can only authorize your app to create one subscription for a given * target resource. If your app tries to create another subscription with the @@ -864,8 +865,9 @@ public java.lang.String getTargetResource() { * Required. Immutable. The Google Workspace resource that's monitored for * events, formatted as the [full resource * name](https://google.aip.dev/122#full-resource-names). To learn about - * target resources, see [Supported Google Workspace - * resources](https://developers.google.com/workspace/events/guides#supported-resources). + * target resources and the events that they support, see [Supported Google + * Workspace + * events](https://developers.google.com/workspace/events#supported-events). * * A user can only authorize your app to create one subscription for a given * target resource. If your app tries to create another subscription with the @@ -904,12 +906,9 @@ public com.google.protobuf.ByteString getTargetResourceBytes() { * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -936,12 +935,9 @@ public com.google.protobuf.ProtocolStringList getEventTypesList() { * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -968,12 +964,9 @@ public int getEventTypesCount() { * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -1001,12 +994,9 @@ public java.lang.String getEventTypes(int index) { * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -1830,7 +1820,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
                                                                                          * A subscription to receive events about a Google Workspace resource. To learn
                                                                                          * more about subscriptions, see the [Google Workspace Events API
                                                                                      -   * overview](https://developers.google.com/workspace/events/guides).
                                                                                      +   * overview](https://developers.google.com/workspace/events).
                                                                                          * 
                                                                                      * * Protobuf type {@code google.apps.events.subscriptions.v1.Subscription} @@ -2969,8 +2959,9 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { * Required. Immutable. The Google Workspace resource that's monitored for * events, formatted as the [full resource * name](https://google.aip.dev/122#full-resource-names). To learn about - * target resources, see [Supported Google Workspace - * resources](https://developers.google.com/workspace/events/guides#supported-resources). + * target resources and the events that they support, see [Supported Google + * Workspace + * events](https://developers.google.com/workspace/events#supported-events). * * A user can only authorize your app to create one subscription for a given * target resource. If your app tries to create another subscription with the @@ -3001,8 +2992,9 @@ public java.lang.String getTargetResource() { * Required. Immutable. The Google Workspace resource that's monitored for * events, formatted as the [full resource * name](https://google.aip.dev/122#full-resource-names). To learn about - * target resources, see [Supported Google Workspace - * resources](https://developers.google.com/workspace/events/guides#supported-resources). + * target resources and the events that they support, see [Supported Google + * Workspace + * events](https://developers.google.com/workspace/events#supported-events). * * A user can only authorize your app to create one subscription for a given * target resource. If your app tries to create another subscription with the @@ -3033,8 +3025,9 @@ public com.google.protobuf.ByteString getTargetResourceBytes() { * Required. Immutable. The Google Workspace resource that's monitored for * events, formatted as the [full resource * name](https://google.aip.dev/122#full-resource-names). To learn about - * target resources, see [Supported Google Workspace - * resources](https://developers.google.com/workspace/events/guides#supported-resources). + * target resources and the events that they support, see [Supported Google + * Workspace + * events](https://developers.google.com/workspace/events#supported-events). * * A user can only authorize your app to create one subscription for a given * target resource. If your app tries to create another subscription with the @@ -3064,8 +3057,9 @@ public Builder setTargetResource(java.lang.String value) { * Required. Immutable. The Google Workspace resource that's monitored for * events, formatted as the [full resource * name](https://google.aip.dev/122#full-resource-names). To learn about - * target resources, see [Supported Google Workspace - * resources](https://developers.google.com/workspace/events/guides#supported-resources). + * target resources and the events that they support, see [Supported Google + * Workspace + * events](https://developers.google.com/workspace/events#supported-events). * * A user can only authorize your app to create one subscription for a given * target resource. If your app tries to create another subscription with the @@ -3091,8 +3085,9 @@ public Builder clearTargetResource() { * Required. Immutable. The Google Workspace resource that's monitored for * events, formatted as the [full resource * name](https://google.aip.dev/122#full-resource-names). To learn about - * target resources, see [Supported Google Workspace - * resources](https://developers.google.com/workspace/events/guides#supported-resources). + * target resources and the events that they support, see [Supported Google + * Workspace + * events](https://developers.google.com/workspace/events#supported-events). * * A user can only authorize your app to create one subscription for a given * target resource. If your app tries to create another subscription with the @@ -3134,12 +3129,9 @@ private void ensureEventTypesIsMutable() { * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -3167,12 +3159,9 @@ public com.google.protobuf.ProtocolStringList getEventTypesList() { * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -3199,12 +3188,9 @@ public int getEventTypesCount() { * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -3232,12 +3218,9 @@ public java.lang.String getEventTypes(int index) { * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -3265,12 +3248,9 @@ public com.google.protobuf.ByteString getEventTypesBytes(int index) { * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -3306,12 +3286,9 @@ public Builder setEventTypes(int index, java.lang.String value) { * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -3346,12 +3323,9 @@ public Builder addEventTypes(java.lang.String value) { * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -3383,12 +3357,9 @@ public Builder addAllEventTypes(java.lang.Iterable values) { * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -3419,12 +3390,9 @@ public Builder clearEventTypes() { * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionOrBuilder.java b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionOrBuilder.java index 034484f2e78d..cf3d40bee64e 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionOrBuilder.java +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionOrBuilder.java @@ -171,8 +171,9 @@ public interface SubscriptionOrBuilder * Required. Immutable. The Google Workspace resource that's monitored for * events, formatted as the [full resource * name](https://google.aip.dev/122#full-resource-names). To learn about - * target resources, see [Supported Google Workspace - * resources](https://developers.google.com/workspace/events/guides#supported-resources). + * target resources and the events that they support, see [Supported Google + * Workspace + * events](https://developers.google.com/workspace/events#supported-events). * * A user can only authorize your app to create one subscription for a given * target resource. If your app tries to create another subscription with the @@ -193,8 +194,9 @@ public interface SubscriptionOrBuilder * Required. Immutable. The Google Workspace resource that's monitored for * events, formatted as the [full resource * name](https://google.aip.dev/122#full-resource-names). To learn about - * target resources, see [Supported Google Workspace - * resources](https://developers.google.com/workspace/events/guides#supported-resources). + * target resources and the events that they support, see [Supported Google + * Workspace + * events](https://developers.google.com/workspace/events#supported-events). * * A user can only authorize your app to create one subscription for a given * target resource. If your app tries to create another subscription with the @@ -217,12 +219,9 @@ public interface SubscriptionOrBuilder * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -247,12 +246,9 @@ public interface SubscriptionOrBuilder * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -277,12 +273,9 @@ public interface SubscriptionOrBuilder * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). @@ -308,12 +301,9 @@ public interface SubscriptionOrBuilder * Otherwise, output only. One or more types of events to receive about the * target resource. Formatted according to the CloudEvents specification. * - * For a list of supported event types, see the following documentation: - * - * * [Google Chat - * events](https://developers.google.com/workspace/events/guides/events-chat) - * * [Google Meet - * events](https://developers.google.com/workspace/events/guides/events-meet) + * The supported event types depend on the target resource of your + * subscription. For details, see [Supported Google Workspace + * events](https://developers.google.com/workspace/events/guides#supported-events). * * By default, you also receive events about the [lifecycle of your * subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceProto.java b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceProto.java index 0bad93d45b8f..60e48cf3d6dc 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceProto.java +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/java/com/google/apps/events/subscriptions/v1/SubscriptionsServiceProto.java @@ -116,7 +116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "xt_page_token\030\002 \001(\t\"\034\n\032UpdateSubscriptio" + "nMetadata\"\034\n\032CreateSubscriptionMetadata\"" + "\034\n\032DeleteSubscriptionMetadata\" \n\036Reactiv" - + "ateSubscriptionMetadata2\226\017\n\024Subscription" + + "ateSubscriptionMetadata2\377\016\n\024Subscription" + "sService\022\330\001\n\022CreateSubscription\022>.google" + ".apps.events.subscriptions.v1.CreateSubs" + "criptionRequest\032\035.google.longrunning.Ope" @@ -132,47 +132,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nts.subscriptions.v1.GetSubscriptionRequ" + "est\0321.google.apps.events.subscriptions.v" + "1.Subscription\")\332A\004name\202\323\344\223\002\034\022\032/v1/{name" - + "=subscriptions/*}\022\315\001\n\021ListSubscriptions\022" + + "=subscriptions/*}\022\266\001\n\021ListSubscriptions\022" + "=.google.apps.events.subscriptions.v1.Li" + "stSubscriptionsRequest\032>.google.apps.eve" + "nts.subscriptions.v1.ListSubscriptionsRe" - + "sponse\"9\332A\035page_size, page_token, filter" - + "\202\323\344\223\002\023\022\021/v1/subscriptions\022\373\001\n\022UpdateSubs" - + "cription\022>.google.apps.events.subscripti" - + "ons.v1.UpdateSubscriptionRequest\032\035.googl" - + "e.longrunning.Operation\"\205\001\312A*\n\014Subscript" - + "ion\022\032UpdateSubscriptionMetadata\332A\030subscr" - + "iption,update_mask\202\323\344\223\00272\'/v1/{subscript" - + "ion.name=subscriptions/*}:\014subscription\022" - + "\345\001\n\026ReactivateSubscription\022B.google.apps" - + ".events.subscriptions.v1.ReactivateSubsc" - + "riptionRequest\032\035.google.longrunning.Oper" - + "ation\"h\312A.\n\014Subscription\022\036ReactivateSubs" - + "criptionMetadata\332A\004name\202\323\344\223\002*\"%/v1/{name" - + "=subscriptions/*}:reactivate:\001*\032\346\004\312A\036wor" - + "kspaceevents.googleapis.com\322A\301\004https://w" - + "ww.googleapis.com/auth/chat.bot,https://" - + "www.googleapis.com/auth/chat.memberships" - + ",https://www.googleapis.com/auth/chat.me" - + "mberships.readonly,https://www.googleapi" - + "s.com/auth/chat.messages,https://www.goo" - + "gleapis.com/auth/chat.messages.reactions" - + ",https://www.googleapis.com/auth/chat.me" - + "ssages.reactions.readonly,https://www.go" - + "ogleapis.com/auth/chat.messages.readonly" - + ",https://www.googleapis.com/auth/chat.sp" - + "aces,https://www.googleapis.com/auth/cha" - + "t.spaces.readonly,https://www.googleapis" - + ".com/auth/meetings.space.created,https:/" - + "/www.googleapis.com/auth/meetings.space." - + "readonlyB\221\002\n\'com.google.apps.events.subs" - + "criptions.v1B\031SubscriptionsServiceProtoP" - + "\001ZScloud.google.com/go/apps/events/subsc" - + "riptions/apiv1/subscriptionspb;subscript" - + "ionspb\252\002#Google.Apps.Events.Subscription" - + "s.V1\312\002#Google\\Apps\\Events\\Subscriptions\\" - + "V1\352\002\'Google::Apps::Events::Subscriptions" - + "::V1b\006proto3" + + "sponse\"\"\332A\006filter\202\323\344\223\002\023\022\021/v1/subscriptio" + + "ns\022\373\001\n\022UpdateSubscription\022>.google.apps." + + "events.subscriptions.v1.UpdateSubscripti" + + "onRequest\032\035.google.longrunning.Operation" + + "\"\205\001\312A*\n\014Subscription\022\032UpdateSubscription" + + "Metadata\332A\030subscription,update_mask\202\323\344\223\002" + + "72\'/v1/{subscription.name=subscriptions/" + + "*}:\014subscription\022\345\001\n\026ReactivateSubscript" + + "ion\022B.google.apps.events.subscriptions.v" + + "1.ReactivateSubscriptionRequest\032\035.google" + + ".longrunning.Operation\"h\312A.\n\014Subscriptio" + + "n\022\036ReactivateSubscriptionMetadata\332A\004name" + + "\202\323\344\223\002*\"%/v1/{name=subscriptions/*}:react" + + "ivate:\001*\032\346\004\312A\036workspaceevents.googleapis" + + ".com\322A\301\004https://www.googleapis.com/auth/" + + "chat.bot,https://www.googleapis.com/auth" + + "/chat.memberships,https://www.googleapis" + + ".com/auth/chat.memberships.readonly,http" + + "s://www.googleapis.com/auth/chat.message" + + "s,https://www.googleapis.com/auth/chat.m" + + "essages.reactions,https://www.googleapis" + + ".com/auth/chat.messages.reactions.readon" + + "ly,https://www.googleapis.com/auth/chat." + + "messages.readonly,https://www.googleapis" + + ".com/auth/chat.spaces,https://www.google" + + "apis.com/auth/chat.spaces.readonly,https" + + "://www.googleapis.com/auth/meetings.spac" + + "e.created,https://www.googleapis.com/aut" + + "h/meetings.space.readonlyB\221\002\n\'com.google" + + ".apps.events.subscriptions.v1B\031Subscript" + + "ionsServiceProtoP\001ZScloud.google.com/go/" + + "apps/events/subscriptions/apiv1/subscrip" + + "tionspb;subscriptionspb\252\002#Google.Apps.Ev" + + "ents.Subscriptions.V1\312\002#Google\\Apps\\Even" + + "ts\\Subscriptions\\V1\352\002\'Google::Apps::Even" + + "ts::Subscriptions::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/proto/google/apps/events/subscriptions/v1/subscription_resource.proto b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/proto/google/apps/events/subscriptions/v1/subscription_resource.proto index b29dbf6b1653..a7bae2095d31 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/proto/google/apps/events/subscriptions/v1/subscription_resource.proto +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/proto/google/apps/events/subscriptions/v1/subscription_resource.proto @@ -40,7 +40,7 @@ option (google.api.resource_definition) = { // A subscription to receive events about a Google Workspace resource. To learn // more about subscriptions, see the [Google Workspace Events API -// overview](https://developers.google.com/workspace/events/guides). +// overview](https://developers.google.com/workspace/events). message Subscription { option (google.api.resource) = { type: "workspaceevents.googleapis.com/Subscription" @@ -155,8 +155,9 @@ message Subscription { // Required. Immutable. The Google Workspace resource that's monitored for // events, formatted as the [full resource // name](https://google.aip.dev/122#full-resource-names). To learn about - // target resources, see [Supported Google Workspace - // resources](https://developers.google.com/workspace/events/guides#supported-resources). + // target resources and the events that they support, see [Supported Google + // Workspace + // events](https://developers.google.com/workspace/events#supported-events). // // A user can only authorize your app to create one subscription for a given // target resource. If your app tries to create another subscription with the @@ -171,12 +172,9 @@ message Subscription { // Otherwise, output only. One or more types of events to receive about the // target resource. Formatted according to the CloudEvents specification. // - // For a list of supported event types, see the following documentation: - // - // * [Google Chat - // events](https://developers.google.com/workspace/events/guides/events-chat) - // * [Google Meet - // events](https://developers.google.com/workspace/events/guides/events-meet) + // The supported event types depend on the target resource of your + // subscription. For details, see [Supported Google Workspace + // events](https://developers.google.com/workspace/events/guides#supported-events). // // By default, you also receive events about the [lifecycle of your // subscription](https://developers.google.com/workspace/events/guides/events-lifecycle). diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/proto/google/apps/events/subscriptions/v1/subscriptions_service.proto b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/proto/google/apps/events/subscriptions/v1/subscriptions_service.proto index e019711f85ec..bd5b966027e1 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/proto/google/apps/events/subscriptions/v1/subscriptions_service.proto +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/src/main/proto/google/apps/events/subscriptions/v1/subscriptions_service.proto @@ -98,7 +98,7 @@ service SubscriptionsService { option (google.api.http) = { get: "/v1/subscriptions" }; - option (google.api.method_signature) = "page_size, page_token, filter"; + option (google.api.method_signature) = "filter"; } // Updates or renews a Google Workspace subscription. To learn how to use this diff --git a/java-workspaceevents/samples/snippets/generated/com/google/apps/events/subscriptions/v1/subscriptionsservice/listsubscriptions/SyncListSubscriptionsString.java b/java-workspaceevents/samples/snippets/generated/com/google/apps/events/subscriptions/v1/subscriptionsservice/listsubscriptions/SyncListSubscriptionsString.java new file mode 100644 index 000000000000..f44385feb2c5 --- /dev/null +++ b/java-workspaceevents/samples/snippets/generated/com/google/apps/events/subscriptions/v1/subscriptionsservice/listsubscriptions/SyncListSubscriptionsString.java @@ -0,0 +1,45 @@ +/* + * 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. + */ + +package com.google.apps.events.subscriptions.v1.samples; + +// [START workspaceevents_v1_generated_SubscriptionsService_ListSubscriptions_String_sync] +import com.google.apps.events.subscriptions.v1.Subscription; +import com.google.apps.events.subscriptions.v1.SubscriptionsServiceClient; + +public class SyncListSubscriptionsString { + + public static void main(String[] args) throws Exception { + syncListSubscriptionsString(); + } + + public static void syncListSubscriptionsString() throws Exception { + // 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 (SubscriptionsServiceClient subscriptionsServiceClient = + SubscriptionsServiceClient.create()) { + String filter = "filter-1274492040"; + for (Subscription element : + subscriptionsServiceClient.listSubscriptions(filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END workspaceevents_v1_generated_SubscriptionsService_ListSubscriptions_String_sync]